/*
Theme Name: Cybele Winter
Template: blossom-coach
Author: Cybele Winter
Description: Custom theme for Cybele Winter Psicologia, built on the Serene Clinical design system.
Version: 1.0.0
Text Domain: cybele-winter
*/

:root {
    --primary: #466551;
    --primary-dark: #2f4d3a;
    --primary-container: #84a58e;
    --on-primary-container: #1d3b29;
    --secondary-container: #cbead3;
    --on-secondary-container: #4f6b58;
    --surface: #fbf9f8;
    --surface-container-low: #f5f3f3;
    --surface-container: #efeded;
    --surface-container-lowest: #ffffff;
    --sandstone: #f4f1ea;
    --on-background: #1b1c1c;
    --on-surface-variant: #424843;
    --outline-variant: #c2c8c1;
    --primary-fixed: #c8ebd1;
    --on-primary-fixed: #022111;

    --font-headline: 'Source Serif 4', serif;
    --font-body: 'Work Sans', sans-serif;

    --container-max: 1140px;
    --gutter: 24px;
    --margin-mobile: 20px;
    --section-padding: 60px;
    --section-padding-mobile: 32px;
}

* {
    box-sizing: border-box;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.cw-skip-link:focus {
    position: fixed;
    top: 8px;
    left: 8px;
    width: auto;
    height: auto;
    padding: 12px 20px;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    background: var(--primary-dark);
    color: #fff;
    border-radius: 6px;
    z-index: 9999;
}

body.cybele-winter-theme {
    background-color: var(--sandstone);
    color: var(--on-background);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    overflow-x: hidden;
}

.cw-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--margin-mobile);
}

@media (min-width: 768px) {
    .cw-container {
        padding: 0 var(--gutter);
    }
}

h1, h2, h3, h4 {
    font-family: var(--font-headline);
    font-weight: 600;
    margin: 0;
    color: var(--on-background);
}

/* Parent theme's own stylesheet is dequeued sitewide (see functions.php),
   so inherited archive/search markup (no child template previously existed)
   falls back to browser UA heading sizes. blossom_coach_entry_header() was
   changed from h3 to h2 for card titles here (correct heading order now
   that archive.php/search.php render a real h1), but that alone would
   visibly enlarge the cards since h2's UA default is bigger than h3's.
   Pin the size to what h3 rendered at before, so the tag change is
   semantic-only. */
.entry-title {
    font-size: 1.17em;
}

/* ---------- Header ---------- */
.cw-header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 50;
    background-color: var(--surface);
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.cw-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.cw-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--primary);
}

.cw-logo-name {
    font-family: var(--font-headline);
    font-size: 24px;
    font-weight: 600;
    color: var(--primary);
}

.cw-nav {
    display: none;
    align-items: center;
    gap: 32px;
}

@media (min-width: 900px) {
    .cw-nav { display: flex; }
}

.cw-nav a {
    color: var(--on-surface-variant);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: color 0.2s ease;
}

.cw-nav a:hover {
    color: var(--primary);
}

/* Header CTA is duplicated inside the mobile dropdown panel below 900px,
   so the header itself only needs to show logo + hamburger there — this
   is what keeps the header from ever wrapping to two lines on narrow
   phones (the original bug: logo + full-text button both fighting for
   space in one flex row). */
a.cw-header-cta {
    display: none;
}

@media (min-width: 900px) {
    a.cw-header-cta { display: inline-block; }
}

.cw-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    padding: 0;
    color: var(--primary);
    cursor: pointer;
    position: relative;
}

@media (min-width: 900px) {
    .cw-nav-toggle { display: none; }
}

.cw-nav-toggle-icon {
    display: flex;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.cw-nav-toggle-icon-close {
    opacity: 0;
    transform: rotate(-45deg);
}

.cw-nav-toggle.is-active .cw-nav-toggle-icon-menu {
    opacity: 0;
    transform: rotate(45deg);
}

.cw-nav-toggle.is-active .cw-nav-toggle-icon-close {
    opacity: 1;
    transform: rotate(0);
}

.cw-mobile-nav {
    display: flex;
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    background-color: var(--surface);
    border-top: 1px solid transparent;
    transition: max-height 0.3s ease;
}

.cw-mobile-nav.is-open {
    max-height: 400px;
    border-top-color: var(--outline-variant);
}

@media (min-width: 900px) {
    .cw-mobile-nav { display: none; }
}

.cw-mobile-nav a {
    padding: 16px var(--margin-mobile);
    color: var(--on-background);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid var(--outline-variant);
    min-height: 44px;
    display: flex;
    align-items: center;
}

.cw-mobile-nav a.cw-btn {
    margin: 16px var(--margin-mobile);
    justify-content: center;
    border-bottom: none;
    color: #fff !important;
}

body.cw-nav-locked {
    overflow: hidden;
}

.cw-btn {
    display: inline-block;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none !important;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
}

.cw-btn:active {
    transform: scale(0.98);
}

.cw-btn-primary {
    background-color: var(--primary);
    color: #fff !important;
    padding: 12px 28px;
}

.cw-btn-primary:hover {
    background-color: var(--primary-dark);
    color: #fff !important;
}

.cw-btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.cw-btn-secondary {
    background-color: transparent;
    color: var(--primary) !important;
    border: 1.5px solid var(--primary);
    padding: 14.5px 30px;
}

.cw-btn-secondary:hover {
    background-color: rgba(70, 101, 81, 0.08);
}

.cw-btn-inverse {
    background-color: #fff;
    color: var(--primary) !important;
    padding: 14px 30px;
}

.cw-btn-inverse:hover {
    background-color: var(--surface-container-low);
}

/* ---------- Hero ---------- */
.cw-hero {
    padding: var(--section-padding-mobile) 0;
    background-color: var(--sandstone);
}

@media (min-width: 900px) {
    .cw-hero { padding: var(--section-padding) 0; }
}

.cw-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}

@media (min-width: 900px) {
    .cw-hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 64px;
    }
}


.cw-eyebrow {
    display: inline-block;
    margin-bottom: 16px;
    padding: 6px 16px;
    border-radius: 9999px;
    background-color: var(--secondary-container);
    color: var(--on-secondary-container);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.cw-hero-title {
    font-size: 32px;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin-bottom: 20px;
}

@media (min-width: 900px) {
    .cw-hero-title { font-size: 46px; }
}

.cw-hero-subtitle {
    font-size: 17px;
    line-height: 1.6;
    color: var(--on-surface-variant);
    max-width: 480px;
    margin-bottom: 32px;
}

.cw-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.cw-hero-photo-frame {
    position: relative;
}

.cw-hero-photo-frame img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 32px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    position: relative;
    z-index: 1;
}

.cw-hero-blob {
    position: absolute;
    bottom: -32px;
    left: -32px;
    width: 220px;
    height: 220px;
    background-color: var(--primary-fixed);
    border-radius: 50%;
    opacity: 0.4;
    filter: blur(50px);
    z-index: 0;
}

/* ---------- Credentials bar ---------- */
.cw-credentials {
    background-color: var(--surface);
    padding: 40px 0;
    border-top: 1px solid rgba(194, 200, 193, 0.3);
    border-bottom: 1px solid rgba(194, 200, 193, 0.3);
}

.cw-credentials-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px 48px;
}

@media (min-width: 900px) {
    .cw-credentials-row { justify-content: space-between; }
}

.cw-credential-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--on-background);
}

.cw-credential-item .cw-icon {
    color: var(--primary);
}

/* ---------- Generic section ---------- */
.cw-section {
    padding: var(--section-padding-mobile) 0;
}

@media (min-width: 900px) {
    .cw-section { padding: var(--section-padding) 0; }
}

.cw-section-alt {
    background-color: var(--surface-container-low);
}

.cw-section-white {
    background-color: var(--surface);
}

.cw-section-header {
    text-align: center;
    margin-bottom: 56px;
}

.cw-section-title {
    font-size: 28px;
    margin-bottom: 12px;
}

@media (min-width: 900px) {
    .cw-section-title { font-size: 32px; }
}

.cw-section-subtitle {
    color: var(--on-surface-variant);
    font-size: 16px;
}

/* ---------- About / Quem sou Eu ---------- */
.cw-about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}

@media (min-width: 900px) {
    .cw-about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 80px;
    }
}

.cw-about-photo-wrap {
    position: relative;
}

.cw-about-photo-border {
    position: absolute;
    inset: -16px;
    border: 2px solid var(--primary-container);
    border-radius: 32px;
    pointer-events: none;
}

.cw-about-photo-wrap img {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.cw-about-title {
    font-size: 28px;
    margin-bottom: 24px;
}

.cw-about-text p {
    color: var(--on-surface-variant);
    margin: 0 0 24px;
    line-height: 1.7;
}

.cw-about-text p:last-child {
    margin-bottom: 0;
}

/* ---------- Cards (How therapy works) ---------- */
.cw-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 700px) {
    .cw-cards-grid { grid-template-columns: repeat(3, 1fr); }
}

.cw-card {
    background-color: var(--surface-container-lowest);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid rgba(194, 200, 193, 0.3);
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cw-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.cw-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--secondary-container);
    color: var(--on-secondary-container);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
}

.cw-card-title {
    font-size: 20px;
    margin-bottom: 14px;
}

.cw-card-text {
    color: var(--on-surface-variant);
    margin: 0;
    line-height: 1.6;
    font-size: 15px;
}

/* ---------- Quote ---------- */
.cw-quote-section {
    background-color: var(--primary);
    color: #fff;
    padding: 64px 0;
    text-align: center;
}

.cw-quote-inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 var(--margin-mobile);
}

.cw-quote-icon {
    opacity: 0.4;
    margin-bottom: 24px;
}

.cw-quote-text {
    font-family: var(--font-headline);
    font-size: 24px;
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 24px;
}

@media (min-width: 900px) {
    .cw-quote-text { font-size: 30px; }
}

.cw-quote-author {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.8;
    display: block;
    margin-bottom: 40px;
}

/* ---------- Areas grid ---------- */
.cw-areas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (min-width: 700px) {
    /* 9 cards: 3×3 on desktop (was 4×2 with 8 cards) */
    .cw-areas-grid { grid-template-columns: repeat(3, 1fr); }
}

.cw-areas-grid > li {
    display: contents;
}

/* Odd 9th card fills the last mobile row (2-col grid) instead of orphaning */
@media (max-width: 699px) {
    .cw-areas-grid > li:nth-child(9) .cw-area-card { grid-column: 1 / -1; }
}

.cw-area-card {
    background-color: var(--surface-container-lowest);
    padding: 28px 16px;
    border-radius: 16px;
    text-align: center;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cw-area-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.cw-area-card .cw-icon {
    color: var(--primary);
    margin-bottom: 12px;
}

.cw-area-card-title {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--on-background);
}

/* ---------- Blog ---------- */
.cw-blog-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 48px;
}

.cw-blog-header h2 {
    font-size: 28px;
    margin-bottom: 8px;
}

.cw-blog-header p {
    color: var(--on-surface-variant);
    margin: 0;
}

.cw-blog-link {
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cw-blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.cw-blog-grid > article {
    display: contents;
}

@media (min-width: 700px) {
    .cw-blog-grid { grid-template-columns: repeat(3, 1fr); }
}

.cw-blog-card {
    text-decoration: none !important;
    color: inherit;
    display: block;
}

.cw-blog-thumb {
    aspect-ratio: 16 / 10;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
}

.cw-blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cw-blog-card:hover .cw-blog-thumb img {
    transform: scale(1.05);
}

.cw-blog-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.cw-blog-tag {
    background-color: var(--primary-fixed);
    color: var(--on-primary-fixed);
    font-size: 12px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 6px;
}

.cw-blog-date {
    font-size: 12px;
    color: var(--on-surface-variant);
}

.cw-blog-card h3 {
    font-size: 19px;
    margin-bottom: 10px;
    transition: color 0.2s ease;
}

.cw-blog-card:hover h3 {
    color: var(--primary);
}

.cw-blog-excerpt {
    color: var(--on-surface-variant);
    font-size: 14.5px;
    margin: 0;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- Blog index (home.php) ---------- */
.cw-blog-featured-section {
    padding: 48px 0;
    background-color: var(--sandstone);
}

.cw-blog-featured {
    display: grid;
    grid-template-columns: 1fr;
    background-color: var(--surface-container-lowest);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    text-decoration: none !important;
    color: inherit;
}

@media (min-width: 800px) {
    .cw-blog-featured { grid-template-columns: 1.2fr 1fr; }
}

.cw-blog-featured-media {
    aspect-ratio: 16 / 10;
}

@media (min-width: 800px) {
    .cw-blog-featured-media { aspect-ratio: auto; height: 100%; }
}

.cw-blog-featured-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cw-blog-featured-copy {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cw-blog-featured-label {
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.cw-blog-featured-copy h2 {
    font-size: 26px;
    line-height: 1.25;
    margin-bottom: 16px;
}

.cw-blog-featured-copy p {
    color: var(--on-surface-variant);
    margin: 0 0 24px;
    line-height: 1.6;
}

.cw-blog-index {
    padding-top: 40px;
}

.cw-blog-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--outline-variant);
}

.cw-blog-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cw-cat-pill {
    background: none;
    border: 1px solid var(--outline-variant);
    color: var(--on-surface-variant);
    padding: 8px 18px;
    border-radius: 9999px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cw-cat-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.cw-cat-pill.is-active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.cw-blog-search {
    display: flex;
    align-items: center;
    background-color: var(--surface-container-lowest);
    border: 1px solid var(--outline-variant);
    border-radius: 9999px;
    padding: 4px 4px 4px 18px;
    min-width: 260px;
}

.cw-blog-search input {
    border: none;
    background: none;
    font-family: var(--font-body);
    font-size: 14px;
    flex: 1;
    outline: none;
}

.cw-blog-search button {
    background-color: var(--primary) !important;
    color: #fff !important;
    border: none !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.cw-blog-search button .cw-icon {
    width: 16px;
    height: 16px;
}

.cw-blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px 32px;
}

@media (min-width: 700px) {
    .cw-blog-grid { grid-template-columns: repeat(3, 1fr); }
}

.cw-blog-empty {
    color: var(--on-surface-variant);
    padding: 40px 0;
}

.cw-blog-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.cw-blog-pagination span,
.cw-blog-pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    color: var(--on-surface-variant);
    font-size: 14px;
    font-weight: 500;
}

.cw-blog-pagination a:hover {
    background-color: var(--surface-container-low);
}

.cw-blog-pagination .current {
    background-color: var(--primary);
    color: #fff;
}


/* ---------- Single post ---------- */
.cw-post-header {
    padding: 48px 0 32px;
    text-align: center;
    max-width: 800px;
}

.cw-breadcrumb {
    font-size: 13px;
    color: var(--on-surface-variant);
    margin-bottom: 20px;
}

.cw-breadcrumb ol {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.cw-breadcrumb li:not(:last-child)::after {
    content: "/";
    margin-left: 8px;
}

.cw-breadcrumb a {
    color: var(--on-surface-variant);
    text-decoration: none;
}

.cw-breadcrumb a:hover {
    color: var(--primary);
}

.cw-cat-pill-static {
    display: inline-block;
    background-color: var(--secondary-container);
    color: var(--on-secondary-container);
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 20px;
}

.cw-post-title {
    font-size: 34px;
    line-height: 1.25;
    margin-bottom: 20px;
}

@media (min-width: 700px) {
    .cw-post-title { font-size: 42px; }
}

.cw-post-meta {
    display: flex;
    justify-content: center;
    gap: 24px;
    color: var(--on-surface-variant);
    font-size: 14px;
}

.cw-post-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cw-post-featured-img {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 48px;
}

.cw-post-featured-img img {
    width: 100%;
    height: auto;
    display: block;
}

.cw-post-body {
    max-width: 760px;
    padding-bottom: 60px;
}

.cw-post-content {
    font-size: 17px;
    line-height: 1.8;
    color: var(--on-surface-variant);
}

.cw-post-content p {
    margin: 0 0 24px;
}

.cw-post-content h2 {
    font-size: 26px;
    color: var(--on-background);
    margin: 48px 0 20px;
}

.cw-post-content h3 {
    font-size: 21px;
    color: var(--on-background);
    margin: 36px 0 16px;
}

.cw-post-content strong {
    color: var(--on-background);
}

.cw-post-content blockquote {
    background-color: var(--surface-container-low);
    border-left: 4px solid var(--primary);
    border-radius: 0 12px 12px 0;
    padding: 24px 32px;
    margin: 32px 0;
    font-family: var(--font-headline);
    font-style: italic;
    font-size: 20px;
    color: var(--on-background);
}

.cw-post-content ul,
.cw-post-content ol {
    margin: 0 0 24px;
    padding-left: 0;
    list-style: none;
}

.cw-post-content ul li,
.cw-post-content ol li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 12px;
}

.cw-post-content ul li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--secondary-container);
}

.cw-post-content ul li:after {
    content: "";
    position: absolute;
    left: 4px;
    top: 11px;
    width: 8px;
    height: 4px;
    border-left: 2px solid var(--on-secondary-container);
    border-bottom: 2px solid var(--on-secondary-container);
    transform: rotate(-45deg);
}

.cw-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 16px 0;
}

.cw-post-content a {
    color: var(--primary);
}

.cw-post-share {
    display: flex;
    gap: 12px;
    padding: 24px 0;
    margin-bottom: 32px;
    border-top: 1px solid var(--outline-variant);
    border-bottom: 1px solid var(--outline-variant);
}

.cw-post-share span {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--surface-container-low);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cw-author-card {
    display: flex;
    gap: 20px;
    background-color: var(--surface-container-low);
    border-radius: 16px;
    padding: 28px;
    align-items: flex-start;
}

.cw-author-photo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.cw-author-card h3 {
    font-size: 17px;
    margin-bottom: 6px;
}

.cw-author-role {
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 8px;
}

.cw-author-bio {
    color: var(--on-surface-variant);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.cw-cta-banner {
    padding: 80px 0;
    text-align: center;
    background-color: var(--sandstone);
}

.cw-cta-banner h2 {
    font-size: 28px;
    margin-bottom: 16px;
}

.cw-cta-banner p {
    color: var(--on-surface-variant);
    max-width: 560px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

/* ---------- Footer ---------- */
.cw-footer {
    background-color: var(--surface-container-low);
    border-top: 1px solid var(--outline-variant);
    width: 100%;
}

.cw-footer-top {
    padding: 64px 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}

@media (min-width: 700px) {
    .cw-footer-top { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .cw-footer-top { grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; }
}

.cw-footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--primary);
}

.cw-footer-brand span.cw-logo-name {
    font-size: 20px;
}

.cw-footer p {
    color: var(--on-surface-variant);
    margin: 0 0 28px;
    line-height: 1.6;
}

.cw-footer-social {
    display: flex;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.cw-footer-social a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--surface-container);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    text-decoration: none;
}

.cw-footer-social a:hover {
    background-color: var(--primary-fixed);
}

.cw-footer h4 {
    color: var(--primary);
    font-size: 18px;
    margin-bottom: 24px;
}

.cw-footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cw-footer-list li {
    margin-bottom: 16px;
}

.cw-footer-list a {
    color: var(--on-surface-variant);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.cw-footer-list a:hover {
    color: var(--primary);
}

.cw-footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cw-footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--on-surface-variant);
    font-size: 14px;
    font-weight: 500;
}

.cw-footer-contact-list .cw-icon {
    color: var(--primary);
}

.cw-footer-contact-list a {
    color: inherit;
    text-decoration: none;
}

.cw-footer-contact-list a:hover {
    color: var(--primary);
}

.cw-footer-bottom {
    border-top: 1px solid rgba(194, 200, 193, 0.3);
    padding: 24px 0;
}

.cw-footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    opacity: 0.7;
    font-size: 12px;
}

.cw-icon {
    display: inline-flex;
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
}

.cw-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Back to top */
.cw-back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    padding: 0 !important;
    background-color: var(--primary) !important;
    color: #fff !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    border: none !important;
    cursor: pointer;
    z-index: 40;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.cw-back-to-top.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* ============================================================
   Áreas de Atuação — service-page module
   Reusable blocks for the /areas-de-atuacao/ pages. All colors
   come from the Serene Clinical tokens so these pages match the
   rest of the site. Rendered inside .cw-post-content (760px).
   ============================================================ */

/* Lead paragraph under the H1 */
.cw-area-lead {
    font-size: 20px;
    line-height: 1.6;
    color: var(--on-background);
    font-family: var(--font-headline);
    margin: 0 0 40px;
}

@media (min-width: 700px) {
    .cw-area-lead { font-size: 22px; }
}

/* Section heading with icon chip */
.cw-area-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 56px 0 20px;
}

.cw-area-head .cw-area-head-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: var(--secondary-container);
    color: var(--on-secondary-container);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cw-area-head h2 {
    font-size: 24px;
    line-height: 1.25;
    color: var(--on-background);
    margin: 0;
}

@media (min-width: 700px) {
    .cw-area-head h2 { font-size: 26px; }
}

/* Highlighted takeaway box */
.cw-area-callout {
    background-color: var(--surface-container-low);
    border-left: 4px solid var(--primary);
    border-radius: 0 12px 12px 0;
    padding: 20px 28px;
    margin: 32px 0;
    color: var(--on-background);
    font-weight: 500;
}

.cw-area-callout p { margin: 0; }

/* Generic card grid (symptoms, "como a terapia ajuda", steps) */
.cw-area-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 28px 0;
}

@media (min-width: 560px) {
    .cw-area-grid-2 { grid-template-columns: repeat(2, 1fr); }
    .cw-area-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 760px) {
    .cw-area-grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.cw-area-card {
    background-color: var(--surface-container-lowest);
    border: 1px solid var(--outline-variant);
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cw-area-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.cw-area-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--secondary-container);
    color: var(--on-secondary-container);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.cw-area-card h3 {
    font-size: 18px;
    color: var(--on-background);
    margin: 0 0 10px;
}

.cw-area-card p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--on-surface-variant);
    margin: 0;
}

/* Numbered step badge (reuses .cw-area-card) */
.cw-area-step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary);
    color: #fff;
    font-family: var(--font-headline);
    font-weight: 600;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

/* Symptom / comparison column list */
.cw-area-list-card {
    background-color: var(--surface-container-lowest);
    border: 1px solid var(--outline-variant);
    border-radius: 16px;
    padding: 28px;
}

.cw-area-list-card h3 {
    font-size: 18px;
    color: var(--primary);
    margin: 0 0 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--outline-variant);
}

.cw-area-list-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cw-area-list-card li {
    position: relative;
    padding: 0 0 0 26px;
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--on-surface-variant);
}

.cw-area-list-card li:before {
    content: "";
    position: absolute;
    left: 4px;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary-container);
}

/* Sobre a psicóloga block */
.cw-area-sobre {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: center;
    background-color: var(--surface-container-low);
    border-radius: 20px;
    padding: 32px;
    margin: 40px 0;
}

@media (min-width: 620px) {
    .cw-area-sobre { grid-template-columns: 160px 1fr; gap: 32px; }
}

.cw-area-sobre img {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.cw-area-sobre-body h3 {
    font-size: 20px;
    margin: 0 0 6px;
}

.cw-area-sobre-role {
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin: 0 0 14px;
}

.cw-area-sobre-body p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--on-surface-variant);
    margin: 0 0 12px;
}

.cw-area-sobre-body p:last-child { margin-bottom: 0; }

/* "Outras áreas" pill navigation */
.cw-area-links {
    margin: 48px 0 8px;
}

.cw-area-links-title {
    font-size: 20px;
    margin: 0 0 18px;
}

.cw-area-links-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cw-area-pill {
    display: inline-block;
    background-color: var(--surface-container-lowest);
    border: 1px solid var(--outline-variant);
    color: var(--on-surface-variant) !important;
    padding: 9px 18px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.cw-area-pill:hover {
    border-color: var(--primary);
    color: var(--primary) !important;
    background-color: var(--surface-container-low);
}

/* Glossário de Psicologia */
.cw-glossary-search {
    margin: 8px 0 24px;
}

.cw-glossary-search input {
    width: 100%;
    max-width: none;
    background-color: var(--surface-container-lowest);
    border: 1px solid var(--outline-variant);
    border-radius: 9999px;
    padding: 14px 22px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--on-background);
    outline: none;
    transition: border-color 0.2s ease;
}

.cw-glossary-search input:focus {
    border-color: var(--primary);
}

.cw-glossary-alpha {
    max-width: none;
    margin: 0 0 40px;
}

.cw-glossary-letter {
    max-width: none;
    padding-top: 28px;
    margin-top: 28px;
    border-top: 1px solid var(--outline-variant);
}

.cw-glossary-letter:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.cw-glossary-letter h2 {
    color: var(--primary);
    font-size: 22px;
    margin: 0 0 20px;
}

.cw-glossary-term {
    margin-bottom: 22px;
}

.cw-glossary-term:last-child {
    margin-bottom: 0;
}

.cw-glossary-term h3 {
    font-size: 17px;
    color: var(--on-background);
    margin: 0 0 4px;
}

.cw-glossary-term p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--on-surface-variant);
    margin: 0;
}

.cw-glossary-empty {
    text-align: center;
    color: var(--on-surface-variant);
    padding: 40px 0;
}

/* The .cw-post-content wrapper caps text at a comfortable measure;
   let the area component blocks use the full body width. */
.cw-post-content .cw-area-grid,
.cw-post-content .cw-area-sobre,
.cw-post-content .cw-area-links-row {
    max-width: none;
}

/* "Você se identifica?" pain-point checklist */
.cw-area-recognize {
    background-color: var(--surface-container-low);
    border: 1px solid var(--outline-variant);
    border-radius: 20px;
    padding: 32px;
    margin: 32px 0;
}

.cw-area-recognize h2,
.cw-area-recognize h3 {
    margin: 0 0 20px;
    font-size: 22px;
}

.cw-area-recognize ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 620px) {
    .cw-area-recognize ul { grid-template-columns: 1fr 1fr; gap: 12px 28px; }
}

.cw-area-recognize li {
    position: relative;
    padding-left: 30px;
    color: var(--on-surface-variant);
    line-height: 1.5;
}

.cw-area-recognize li:before {
    content: "";
    position: absolute;
    left: 2px;
    top: 3px;
    width: 18px;
    height: 18px;
    border-radius: 5px;
    background-color: var(--secondary-container);
}

.cw-area-recognize li:after {
    content: "";
    position: absolute;
    left: 7px;
    top: 7px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary);
}

.cw-area-recognize-note {
    margin: 22px 0 0;
    font-family: var(--font-headline);
    font-size: 17px;
    color: var(--on-background);
}

/* Inline (mid-page) CTA */
.cw-area-inline-cta {
    text-align: center;
    margin: 40px 0;
}

.cw-area-inline-cta .cw-btn {
    display: inline-block;
    background-color: var(--primary);
    color: #fff !important;
    padding: 15px 32px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none !important;
    transition: background-color 0.25s ease;
}

.cw-area-inline-cta .cw-btn:hover {
    background-color: var(--primary-dark);
}

/* FAQ accordion */
.cw-area-faq {
    margin: 24px 0;
    border-top: 1px solid var(--outline-variant);
}

.cw-area-faq details {
    border-bottom: 1px solid var(--outline-variant);
}

.cw-area-faq summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 44px 20px 0;
    position: relative;
    font-family: var(--font-headline);
    font-size: 18px;
    font-weight: 600;
    color: var(--on-background);
}

.cw-area-faq summary::-webkit-details-marker { display: none; }

.cw-area-faq summary:after {
    content: "";
    position: absolute;
    right: 8px;
    top: 26px;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.cw-area-faq details[open] summary:after {
    transform: rotate(-135deg);
}

.cw-area-faq details p {
    margin: 0 0 20px;
    color: var(--on-surface-variant);
    line-height: 1.7;
}

/* ============================================================
   Área de Atuação — full-width landing page (template-area-lp)
   ============================================================ */
.cw-area-lp { display: block; }

/* Narrow, centered inner column for reading-width blocks */
.cw-container-narrow {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 var(--margin-mobile);
}

/* 4-up card grid */
.cw-cards-grid-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 560px) {
    .cw-cards-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
    .cw-cards-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Hero: lead paragraph + secondary link row reuse front-page cw-hero.
   A soft credential card floating over the hero photo. */
.cw-hero-quote-card {
    position: absolute;
    left: -24px;
    bottom: 28px;
    z-index: 2;
    max-width: 280px;
    background-color: var(--surface-container-lowest);
    border-radius: 16px;
    padding: 20px 22px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.cw-hero-quote-card p {
    margin: 0;
    font-family: var(--font-headline);
    font-style: italic;
    font-size: 15px;
    line-height: 1.5;
    color: var(--on-background);
}

.cw-hero-quote-card span {
    display: block;
    margin-top: 10px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--primary);
}

@media (max-width: 640px) {
    .cw-hero-quote-card { position: static; max-width: none; margin-top: 16px; left: 0; }
}

/* "Você se identifica?" recognize block as a centered white card */
.cw-area-lp .cw-area-recognize {
    max-width: 860px;
    margin: 0 auto;
    background-color: var(--surface-container-lowest);
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    padding: 40px;
}

.cw-area-recognize-lead {
    text-align: center;
    color: var(--on-surface-variant);
    max-width: 620px;
    margin: 0 auto 28px;
}

/* Symptom columns look better as tonal cards inside the green band */
.cw-quote-section .cw-area-grid { margin: 0; }

/* FAQ contained and centered within its section */
.cw-area-lp .cw-area-faq,
#cw-faq .cw-area-faq { max-width: 760px; margin: 0 auto; }

/* Section intro paragraph (centered under a section header) */
.cw-section-lead {
    text-align: center;
    max-width: 640px;
    margin: -32px auto 48px;
    color: var(--on-surface-variant);
    line-height: 1.7;
}

/* Steps: keep the numbered badge look on cw-card inside sections */
.cw-card .cw-area-step-num { margin-bottom: 20px; }
