@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* ═══ CUSTOM PROPERTIES ═══ */
:root {
    --green-deep: #1B6B4A;
    --mint: #D4E8D0;
    --cream: #FFF8F0;
    --peach: #FDF0E6;
    --poppy: #D4492A;
    --bark: #3E3A2E;
    --sage: #8FB09A;
    --gold: #D4B44A;
    --white: #FFFFFF;
    --text: #2D2D2D;
    --text-light: #5A5A5A;
    --text-muted: #8A8A8A;
    /* ── Semantic Roles (configurable in Settings → Color Roles) ── */
    --role-primary: var(--green-deep);
    --role-accent: var(--sage);
    --role-highlight: var(--gold);
    --role-bg: var(--cream);
    --role-bg-alt: var(--peach);
    --role-bg-tint: var(--mint);
    --role-dark: var(--bark);
    --role-alert: var(--poppy);

    /* ── Viewport-fluid header scale ──
       Logo + navbar padding scale up on big screens so the header doesn't
       feel cramped at 4K. Base size (admin's --logo-max-h) × this scale.
       Scale = 1.0 at ≤1280px viewport, ramps linearly to 1.4 at 2560px+. */
    --logo-scale: clamp(1, calc(1 + (100vw - 1280px) / 3200px), 1.4);

    /* ── Derived from roles ── */
    --primary-rgb: 27,107,74;
    --primary-dark: color-mix(in srgb, var(--role-primary), black 18%);
    --shadow-sm: 0 2px 8px rgba(30, 60, 40, 0.06);
    --shadow-md: 0 4px 20px rgba(30, 60, 40, 0.1);
    --shadow-lg: 0 12px 40px rgba(30, 60, 40, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --hero-overlay-opacity: 0.85;
    --hero-overlay-color-1: var(--role-bg-tint);
    --hero-overlay-color-2: var(--role-bg-alt);
}

/* ═══ RESET & BASE ═══ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* Cream background on html ensures the safe-area sliver above the navbar
       (visible on iPhone Pro Max with viewport-fit=cover) matches the navbar
       bg instead of showing the browser/page default. */
    background: var(--role-bg);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--role-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* Subtle paper-grain overlay across the whole viewport — gives flat color fills
   a tactile feel without competing with content. Tuned so it's perceptible only
   if you look for it; bump opacity if you want it stronger. */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    background-image: url("/static/images/noise.svg");
    background-repeat: repeat;
    opacity: 0.04;
    mix-blend-mode: multiply;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.2;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* ═══ NAVBAR ═══ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 248, 240, 0.55);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    /* iOS Dynamic Island / notch safe-area — extend the navbar background
       up into the safe area so the page bg doesn't peek through the top
       on iPhone Pro Max where the inset is taller. */
    padding-top: env(safe-area-inset-top, 0);
}

.navbar.scrolled {
    background: rgba(255, 248, 240, 0.92);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border-bottom: 1px solid rgba(139, 176, 154, 0.2);
    box-shadow: 0 1px 12px rgba(27, 107, 74, 0.06);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: calc(12px * var(--logo-scale, 1)) 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Demo / template sites typically have narrow placeholder logos. The default
   space-between layout leaves a huge gap between a small logo and the nav
   links. Switch to fit-content + start-justify so the nav block hugs its
   actual content and centers as a unit instead of pushing items to opposite
   ends of the 1100px container. */
body.demo-mode .nav-container {
    width: fit-content !important;
    max-width: 100% !important;
    justify-content: flex-start !important;
    gap: 48px !important;
}

.nav-logo-img {
    display: block;
    max-height: calc(var(--logo-max-h, 96px) * var(--logo-scale, 1));
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: left center;
    transition: var(--transition);
}

/* Split logo: inline SVG fan icon + wordmark-only PNG. Used on the default
   path (not for demo mode or custom-branding-uploaded logos). Each frond in
   the SVG is its own <path data-i="N">, animated in sequence on hover. */
.nav-logo-split {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.nav-logo-icon {
    display: inline-block;
    flex: 0 0 auto;
    line-height: 0;
}
.nav-logo-icon svg {
    display: block;
    height: calc(var(--logo-max-h, 96px) * var(--logo-scale, 1));
    width: auto;
}
.nav-logo-wordmark {
    display: block;
    max-height: calc(var(--logo-max-h, 96px) * var(--logo-scale, 1));
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: left center;
}
.logo-frond {
    /* Scale each frond from its own bbox center. SVG `<g>` flips Y, so
       the natural "bottom of frond" is at fill-box top in CSS terms.
       Using `center` keeps the wave readable without per-frond origins. */
    transform-box: fill-box;
    transform-origin: center center;
    will-change: transform;
}
.nav-logo-split:hover .logo-frond,
.nav-logo-split:focus-visible .logo-frond {
    animation: logoFrondPulse 0.55s ease-out;
}
/* 14 fronds, 55ms stagger → full wave runs ~770ms */
.nav-logo-split:hover .logo-frond[data-i="0"]  { animation-delay: 0ms;   }
.nav-logo-split:hover .logo-frond[data-i="1"]  { animation-delay: 55ms;  }
.nav-logo-split:hover .logo-frond[data-i="2"]  { animation-delay: 110ms; }
.nav-logo-split:hover .logo-frond[data-i="3"]  { animation-delay: 165ms; }
.nav-logo-split:hover .logo-frond[data-i="4"]  { animation-delay: 220ms; }
.nav-logo-split:hover .logo-frond[data-i="5"]  { animation-delay: 275ms; }
.nav-logo-split:hover .logo-frond[data-i="6"]  { animation-delay: 330ms; }
.nav-logo-split:hover .logo-frond[data-i="7"]  { animation-delay: 385ms; }
.nav-logo-split:hover .logo-frond[data-i="8"]  { animation-delay: 440ms; }
.nav-logo-split:hover .logo-frond[data-i="9"]  { animation-delay: 495ms; }
.nav-logo-split:hover .logo-frond[data-i="10"] { animation-delay: 550ms; }
.nav-logo-split:hover .logo-frond[data-i="11"] { animation-delay: 605ms; }
.nav-logo-split:hover .logo-frond[data-i="12"] { animation-delay: 660ms; }
.nav-logo-split:hover .logo-frond[data-i="13"] { animation-delay: 715ms; }
@keyframes logoFrondPulse {
    0%   { transform: scale(1); }
    45%  { transform: scale(1.18); }
    100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
    .nav-logo-split:hover .logo-frond,
    .nav-logo-split:focus-visible .logo-frond { animation: none; }
}


.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    font-size: 0.88em;
    font-weight: 500;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--role-primary);
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--role-primary);
    transition: width var(--transition);
}

.nav-links a:hover { color: var(--role-primary); }
.nav-links a:hover::after { width: 100%; }

/* Nav Dropdown */
.nav-dropdown {
    position: relative;
}
.nav-dropdown-toggle {
    font-size: 0.88em;
    font-weight: 500;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--role-primary);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    position: relative;
}
.nav-dropdown-toggle::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--role-primary);
    transition: width var(--transition);
}
.nav-dropdown:hover .nav-dropdown-toggle::after { width: 100%; }
.nav-dropdown-toggle svg {
    width: 10px;
    height: 10px;
    margin-left: 4px;
    vertical-align: middle;
    transition: transform 0.2s;
}
.nav-dropdown:hover .nav-dropdown-toggle svg { transform: rotate(180deg); }
.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    padding: 8px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 100;
}
.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
}
.nav-dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 0.85em !important;
    letter-spacing: 0.5px !important;
    text-transform: none !important;
    color: var(--text) !important;
    transition: background 0.15s;
}
.nav-dropdown-menu a::after { display: none !important; }
.nav-dropdown-menu a:hover {
    background: var(--role-bg-tint);
    color: var(--role-primary) !important;
}
.nav-dropdown-menu a .dropdown-subtitle {
    display: block;
    font-size: 0.8em;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 2px;
    letter-spacing: 0 !important;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--role-dark);
    transition: var(--transition);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ═══ HERO ═══ */
.hero {
    position: relative;
    min-height: 66vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin-top: 0;
    padding-top: 60px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        var(--hero-overlay-color-1) 0%,
        var(--hero-overlay-color-2) 50%,
        var(--hero-overlay-color-1) 100%
    );
    opacity: var(--hero-overlay-opacity);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 40px 24px;
}

/* Scroll indicator — mobile only */
.hero-scroll-indicator {
    display: none;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: var(--role-primary);
    opacity: 0.7;
    animation: scrollBounce 1.8s ease-in-out infinite;
    text-decoration: none;
    transition: opacity 0.2s;
}
.hero-scroll-indicator:hover { opacity: 1; }
@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(7px); }
}
@media (max-width: 768px) {
    .hero-scroll-indicator { display: block; }
}

.hero h1 {
    font-size: clamp(2.8em, 6vw, 4.5em);
    color: var(--role-primary);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero .hero-subtitle {
    font-size: 1.2em;
    color: var(--role-dark);
    font-weight: 300;
    margin-bottom: 40px;
    line-height: 1.6;
}

.btn-primary {
    display: inline-block;
    background: var(--role-primary);
    color: var(--white);
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95em;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    display: inline-block;
    background: transparent;
    color: var(--role-primary);
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9em;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border: 2px solid var(--role-primary);
    transition: var(--transition);
    cursor: pointer;
}

.btn-outline:hover {
    background: var(--role-primary);
    color: var(--white);
}

/* ═══ SECTIONS ═══ */
.section {
    padding: 100px 24px;
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

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

.section-header h2 {
    font-size: clamp(2em, 4vw, 2.8em);
    color: var(--role-primary);
    margin-bottom: 16px;
}

.section-header .accent-line {
    width: 60px;
    height: 3px;
    background: var(--role-highlight);
    margin: 0 auto 20px;
    border-radius: 2px;
}

.section-header p {
    font-size: 1.1em;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

.bg-peach { background: var(--role-bg-alt); }
.bg-mint { background: var(--role-bg-tint); }
.bg-cream { background: var(--role-bg); }
.bg-white { background: var(--white); }
.bg-sage { background: var(--role-bg-tint); }

/* ═══ TELEHEALTH PAGE ═══ */
.city-pill {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 24px;
    font-size: 0.9em;
    font-weight: 500;
    background: white;
    color: var(--text);
    border: 1px solid rgba(27, 107, 74, 0.15);
    transition: all 0.2s;
}
.city-pill:hover {
    border-color: var(--role-primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(27, 107, 74, 0.1);
}
.city-pill--primary {
    background: var(--role-primary);
    color: white;
    border-color: var(--role-primary);
}
.city-pill--gold {
    background: var(--role-highlight);
    color: white;
    border-color: var(--role-highlight);
    font-weight: 600;
}
.city-pill--outline {
    background: transparent;
    border: 1.5px dashed var(--role-primary);
    color: var(--role-primary);
    font-weight: 600;
}

.telehealth-card {
    display: block;
    padding: 20px 24px;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--role-bg-tint);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.telehealth-card:hover {
    border-color: var(--role-primary);
    box-shadow: 0 4px 16px rgba(27, 107, 74, 0.08);
}
.telehealth-card strong {
    color: var(--role-primary);
    font-size: 1.05em;
}
.telehealth-card span {
    display: block;
    font-size: 0.9em;
    margin-top: 4px;
    color: var(--text-light);
    font-weight: 300;
    line-height: 1.5;
}

/* ═══ OFFICE GALLERY ═══ */
@media (max-width: 768px) {
    #office div[style*="grid-template-columns: 1fr 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    #office div[style*="grid-template-columns: 1fr 1fr 1fr"] img {
        height: 200px !important;
    }
}

/* ═══ TELEHEALTH ═══ */
@media (max-width: 768px) {
    .section-inner > div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

/* ═══ ABOUT ═══ */
.about-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 60px;
    align-items: start;
}

.about-photo {
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    max-width: 280px;
}

.about-photo img {
    width: 100%;
    height: auto;
    display: block;
}

.about-text h3 {
    font-size: 1.5em;
    color: var(--role-primary);
    margin: 32px 0 16px;
}

.about-text h3:first-child {
    margin-top: 0;
}

/* "Place to land" welcome section — sits between hero and About Nic.
   Single-column 720px max for a quiet, readable mission-statement feel. */
.welcome-section .section-inner > p {
    font-size: 1.05em;
    line-height: 1.7;
    color: var(--text);
    font-weight: 300;
    margin-bottom: 22px;
}

.welcome-section .section-inner > p:last-child {
    margin-bottom: 0;
}

/* Mobile-only "scroll to next section" arrow below the philosophy text —
   mirrors the hero scroll indicator. Hidden on desktop where users can
   see the next section transition naturally. */
.welcome-scroll-indicator {
    display: none;
    margin: 32px auto 0;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    color: var(--role-primary);
    opacity: 0.7;
    animation: scrollBounceFlow 1.8s ease-in-out infinite;
    transition: opacity 0.2s;
}
.welcome-scroll-indicator:hover { opacity: 1; }
@keyframes scrollBounceFlow {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(7px); }
}
@media (max-width: 768px) {
    .welcome-scroll-indicator { display: flex; margin-top: 22px; }
    /* Tighten the welcome section on mobile so the scroll arrow can fit
       in the viewport without forcing users to scroll first. */
    .welcome-section { padding-top: 50px; padding-bottom: 40px; }
    .welcome-section .section-inner > p { font-size: 1em; line-height: 1.6; margin-bottom: 16px; }
}

.about-text p {
    font-size: 1.05em;
    color: var(--text);
    font-weight: 300;
    margin-bottom: 16px;
    line-height: 1.8;
}

.who-i-work-with {
    margin-top: 40px;
    padding: 32px;
    background: var(--white);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--role-primary);
}

.who-i-work-with h3 {
    margin-top: 0;
    margin-bottom: 20px;
}

.who-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.who-list li {
    font-size: 1em;
    color: var(--text);
    font-weight: 400;
    padding-left: 24px;
    position: relative;
}

.who-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--role-accent);
    border-radius: 50%;
}

/* ═══ SPECIALTIES CARDS ═══ */
.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.specialty-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    border-top: 4px solid var(--role-primary);
    transition: var(--transition);
    cursor: default;
    position: relative;
    overflow: hidden;
}

.specialty-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

/* LGBTQ specialty card — rainbow "stadium wave" sweep across the card on
   hover. Real sites only (not demo). The card already has overflow:hidden
   above, so the gradient stays contained. ::after sits over the content
   with pointer-events:none so it doesn't intercept the Learn-more click. */
.specialty-card[data-slug="lgbtq-therapy"]::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(115deg,
        transparent 30%,
        rgba(228, 50, 50, 0.35)   40%,
        rgba(255, 140, 0, 0.35)   45%,
        rgba(255, 215, 0, 0.35)   50%,
        rgba(0, 180, 80, 0.35)    55%,
        rgba(50, 100, 220, 0.35)  60%,
        rgba(150, 50, 200, 0.35)  65%,
        transparent 75%
    );
    transform: translateX(-110%);
    opacity: 0;
    transition: opacity 0.25s ease-out;
    border-radius: inherit;
}
body:not(.demo-mode) .specialty-card[data-slug="lgbtq-therapy"]:hover::after,
body:not(.demo-mode) .specialty-card[data-slug="lgbtq-therapy"]:focus-visible::after,
body:not(.demo-mode) .specialty-card[data-slug="lgbtq-therapy"].lgbtq-rainbow-play::after {
    opacity: 1;
    animation: lgbtqRainbowSweep 1.4s ease-out forwards;
}
@keyframes lgbtqRainbowSweep {
    0%   { transform: translateX(-110%); opacity: 0; }
    15%  { opacity: 1; }
    85%  { opacity: 1; }
    100% { transform: translateX(110%); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    body:not(.demo-mode) .specialty-card[data-slug="lgbtq-therapy"]:hover::after,
    body:not(.demo-mode) .specialty-card[data-slug="lgbtq-therapy"]:focus-visible::after {
        animation: none;
        opacity: 0;
    }
}

.specialty-card h3 {
    font-size: 1.25em;
    color: var(--role-primary);
    margin-bottom: 12px;
}

.specialty-card p {
    font-size: 0.95em;
    color: var(--text-light);
    line-height: 1.7;
    font-weight: 300;
}

.specialty-card .card-expand {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    font-size: 0.9em;
    color: var(--text-muted);
    margin-top: 0;
}

.specialty-card:hover .card-expand {
    max-height: 120px;
    margin-top: 12px;
}

.specialty-card a.card-link {
    display: inline-block;
    margin-top: 16px;
    font-size: 0.88em;
    font-weight: 600;
    color: var(--role-primary);
    letter-spacing: 0.5px;
    transition: var(--transition);
}

/* Stretched-link: the card-link's pseudo-element covers the entire card so
   clicking anywhere on the card navigates to the detail page. Text inside
   the card stays selectable via click-drag (standard Bootstrap-style pattern).
   Cards without a link stay non-clickable. */
.specialty-card a.card-link::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}

.specialty-card:has(a.card-link) {
    cursor: pointer;
}

.specialty-card a.card-link:hover {
    color: var(--role-alert);
}

/* ═══ FEES ═══ */
.fees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
    margin-bottom: 40px;
}

.fee-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 40px 28px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(27, 107, 74, 0.1);
}

.fee-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.fee-card h3 {
    font-size: 1.2em;
    color: var(--role-primary);
    margin-bottom: 8px;
}

.fee-card .fee-price {
    font-family: 'Playfair Display', serif;
    font-size: 2.8em;
    font-weight: 700;
    color: var(--role-primary);
    margin: 16px 0;
}

.fee-card .fee-duration {
    font-size: 0.88em;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.fee-card .fee-note {
    font-size: 0.9em;
    color: var(--text-light);
    font-weight: 300;
}

.fees-info {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 32px;
    border-left: 4px solid var(--role-highlight);
}

.fees-info h3 {
    color: var(--role-primary);
    margin-bottom: 12px;
    font-size: 1.2em;
}

.fees-info p {
    font-size: 0.95em;
    color: var(--text-light);
    font-weight: 300;
    line-height: 1.8;
}

/* ═══ FAQ ACCORDION ═══ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid rgba(27, 107, 74, 0.08);
    transition: var(--transition);
}

.faq-item:hover {
    border-color: rgba(27, 107, 74, 0.15);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 24px 28px;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-family: 'Inter', sans-serif;
    font-size: 1.05em;
    font-weight: 500;
    color: var(--role-dark);
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--role-primary);
}

.faq-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--role-bg-tint);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), color var(--transition), transform var(--transition);
    color: var(--role-primary);
}

.faq-icon svg { display: block; }

/* Vertical stroke of the plus collapses to zero when active, leaving a minus
   (the horizontal stroke). Pivot from the SVG's center so it shrinks inward. */
.faq-icon svg line:first-child {
    transform-origin: center;
    transform-box: fill-box;
    transition: transform var(--transition);
}

.faq-item.active .faq-icon {
    background: var(--role-primary);
    color: var(--white);
}

.faq-item.active .faq-icon svg line:first-child {
    transform: scaleY(0);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-answer-inner {
    padding: 0 28px 24px;
    font-size: 0.98em;
    color: var(--text-light);
    line-height: 1.8;
    font-weight: 300;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* ═══ CONTACT ═══ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-form-wrapper {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

.contact-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 32px;
    border-bottom: 2px solid var(--role-bg-tint);
}

.contact-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 14px 20px;
    font-family: 'Inter', sans-serif;
    font-size: 0.92em;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    text-transform: uppercase;
}

.contact-tab.active {
    color: var(--role-primary);
    border-bottom-color: var(--role-primary);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85em;
    font-weight: 500;
    color: var(--role-dark);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(27, 107, 74, 0.15);
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 0.95em;
    color: var(--text);
    background: var(--role-bg);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--role-primary);
    box-shadow: 0 0 0 3px rgba(27, 107, 74, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Focus-trace overlay — animated perimeter stroke that meets at top-center.
   The .input-wrap element is injected at runtime by animations.js around each
   focusable input/textarea/select. The SVG inside is sized + redrawn on resize
   to match the input's pixel dimensions and computed border-radius. */
.input-wrap {
    position: relative;
    display: block;
    /* Kill inline-element baseline space — the wrap's intrinsic height must
       match its single block child (the input) so the SVG inside can rely on
       pixel-exact dimensions written by JS. */
    line-height: 0;
    font-size: 0;
}

.input-wrap > .focus-trace {
    position: absolute;
    /* All four position/size props are set by JS in pixels to guarantee the
       SVG matches the input's outer box exactly, inset by half the stroke
       width so the stroke's outer edge sits on the input's outer edge. */
    pointer-events: none;
    overflow: visible;
    opacity: 0;
    transition: opacity 220ms ease-out;
}

.input-wrap > .focus-trace path {
    fill: none;
    stroke: var(--role-primary);
    stroke-width: 1.25;
    stroke-linecap: round;
    /* pathLength="100" normalizes each path so dasharray/offset are 0-100. */
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    transition: stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.input-wrap:focus-within > .focus-trace {
    opacity: 1;
    transition: opacity 0ms;
}

.input-wrap:focus-within > .focus-trace path {
    stroke-dashoffset: 0;
}

/* When wrapped with a focus trace, suppress the input's own focused border —
   otherwise we get two parallel green lines (the trace + the input's border)
   or a cream "moat" where the now-transparent border space shows the parent
   background through. The trace becomes the sole perimeter indicator and the
   focused background fills all the way to the trace. */
.input-wrap:focus-within > input,
.input-wrap:focus-within > textarea,
.input-wrap:focus-within > select {
    border-color: transparent !important;
    background-clip: border-box;
}

@media (prefers-reduced-motion: reduce) {
    .input-wrap > .focus-trace {
        display: none;
    }
}

.time-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.time-chip {
    padding: 8px 16px;
    border: 1px solid rgba(27, 107, 74, 0.2);
    border-radius: 50px;
    font-size: 0.85em;
    cursor: pointer;
    transition: var(--transition);
    background: var(--role-bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
}

.time-chip:hover,
.time-chip.selected {
    background: var(--role-primary);
    color: var(--white);
    border-color: var(--role-primary);
}

.contact-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.map-wrapper {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    height: 280px;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(100%) contrast(0.9);
}

.contact-info-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 28px;
}

.contact-info-card h3 {
    font-size: 1.15em;
    color: var(--role-primary);
    margin-bottom: 16px;
}

.contact-info-card p {
    font-size: 0.95em;
    color: var(--text-light);
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 8px;
}

.credentials-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.credential-badge {
    background: var(--role-bg-tint);
    color: var(--role-primary);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.78em;
    font-weight: 600;
    letter-spacing: 0.5px;
}

a.credential-badge {
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

a.credential-badge:hover,
a.credential-badge:focus {
    background: var(--role-primary);
    color: var(--role-bg-tint);
    transform: translateY(-1px) scale(1.04);
    text-decoration: none;
}

.form-success {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.form-success h3 {
    color: var(--role-primary);
    margin-bottom: 12px;
}

.form-success p {
    color: var(--text-light);
    font-weight: 300;
}

/* ═══ CREDENTIALS EXPANDER ═══ */
.credentials-expander { margin: 24px 0; }
.credentials-toggle {
    display: flex; align-items: center; gap: 8px;
    background: none; border: none; cursor: pointer;
    font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600;
    color: var(--role-primary); padding: 10px 0;
    transition: var(--transition);
}
.credentials-toggle:hover { opacity: 0.8; }
.cred-arrow { transition: transform 0.3s ease; }
.credentials-expander.open .cred-arrow { transform: rotate(180deg); }
.credentials-content {
    max-height: 0; overflow: hidden; transition: max-height 0.4s ease, opacity 0.3s ease; opacity: 0;
}
.credentials-expander.open .credentials-content {
    max-height: 300px; opacity: 1;
}
.cred-list {
    list-style: none; padding: 8px 0 0 0; margin: 0;
}
.cred-list li {
    font-size: 0.9em; color: var(--text-light); line-height: 1.6;
    padding: 4px 0 4px 20px; position: relative;
}
.cred-list li::before {
    content: ''; position: absolute; left: 0; top: 12px;
    width: 8px; height: 8px; background: var(--role-accent); border-radius: 50%;
}
.cred-list li strong { color: var(--text); font-weight: 600; }
.cred-list a { color: var(--role-primary); text-decoration: none; border-bottom: 1px solid rgba(var(--primary-rgb),0.2); transition: var(--transition); }
.cred-list a:hover { border-bottom-color: var(--role-primary); }

/* ═══ CONSULTATION FORM ═══ */
.consult-container { max-width: 580px; margin: 0 auto; padding: 0 20px; }
.consult-title { font-size: 2.2em; color: var(--role-primary); text-align: center; margin-bottom: 12px; }
.consult-subtitle { font-size: 1em; color: var(--text-light); text-align: center; margin-bottom: 32px; line-height: 1.6; }

.mode-toggle { display: flex; background: var(--white); border-radius: 12px; padding: 5px; margin-bottom: 32px; gap: 4px; border: 1px solid rgba(var(--primary-rgb),0.12); }
.mode-btn { flex: 1; padding: 14px 16px; border: none; background: transparent; border-radius: 9px; font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600; color: var(--text-light); cursor: pointer; transition: var(--transition); display: flex; align-items: center; justify-content: center; gap: 8px; }
.mode-btn:hover { color: var(--text); }
.mode-btn.active { background: var(--role-primary); color: white; box-shadow: 0 2px 8px rgba(var(--primary-rgb),0.2); }

.c-panel { display: none; animation: cFadeIn 0.3s ease; }
.c-panel.active { display: block; }
@keyframes cFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.c-card { background: var(--white); border: 1px solid rgba(var(--primary-rgb),0.1); border-radius: 16px; padding: 28px; box-shadow: 0 2px 12px rgba(0,0,0,0.03); }
.c-card + .c-card { margin-top: 16px; }
.c-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--role-accent); margin-bottom: 14px; }

.c-select-wrap { position: relative; }
.c-select-wrap::after { content: ''; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 5px solid var(--text-light); pointer-events: none; }
.c-select { width: 100%; padding: 14px 40px 14px 16px; font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 500; color: var(--text); background: var(--role-bg); border: 1.5px solid rgba(var(--primary-rgb),0.12); border-radius: 10px; outline: none; appearance: none; -webkit-appearance: none; cursor: pointer; transition: var(--transition); }
.c-select:hover { border-color: var(--role-accent); }
.c-select:focus { border-color: var(--role-primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb),0.08); }

.c-loading { text-align: center; padding: 20px; color: var(--text-muted); font-size: 14px; }
.c-no-slots { text-align: center; padding: 20px; color: var(--text-muted); font-size: 14px; font-style: italic; }
.c-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.c-slot { padding: 14px 16px; background: var(--role-bg); border: 2px solid rgba(var(--primary-rgb),0.12); border-radius: 12px; font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600; color: var(--role-primary); cursor: pointer; transition: var(--transition); text-align: center; line-height: 1.4; }
.c-slot:hover { border-color: var(--role-primary); background: var(--role-bg-tint); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(var(--primary-rgb),0.1); }
.c-slot.selected { background: var(--role-primary); border-color: var(--role-primary); color: white; box-shadow: 0 4px 16px rgba(var(--primary-rgb),0.2); }
.c-slot-day { font-size: 12px; font-weight: 500; color: var(--text-muted); margin-bottom: 2px; }
.c-slot.selected .c-slot-day { color: rgba(255,255,255,0.7); }
.c-slot-time { font-size: 16px; font-weight: 700; }
.c-divider { height: 1px; background: rgba(var(--primary-rgb),0.1); margin: 20px 0; }

@media (max-width: 600px) { .c-slots { grid-template-columns: 1fr; } }

/* Schedule panel: stack the two cards (info + times) with breathing room. */
#panelSchedule .c-card + .c-card { margin-top: 20px; }

.c-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.c-form-group { margin-bottom: 16px; }
.c-form-group:last-child { margin-bottom: 0; }
.c-form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }

.c-input, .c-textarea { width: 100%; padding: 12px 16px; font-family: 'Inter', sans-serif; font-size: 15px; color: var(--text); background: var(--role-bg); border: 1.5px solid rgba(var(--primary-rgb),0.12); border-radius: 10px; outline: none; transition: var(--transition); }
.c-input:focus, .c-textarea:focus { border-color: var(--role-primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb),0.08); background: white; }
.c-input::placeholder, .c-textarea::placeholder { color: #b0b0b0; }
.c-textarea { min-height: 112px; resize: vertical; line-height: 1.5; }

.c-consent { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--text-light); line-height: 1.5; margin-top: 12px; cursor: pointer; }
.c-consent input[type="checkbox"] { margin-top: 2px; accent-color: var(--role-primary); flex-shrink: 0; }
.c-consent a { color: var(--role-primary); text-decoration: underline; }

.c-btn { width: 100%; padding: 16px 24px; font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 700; color: white; background: var(--role-primary); border: none; border-radius: 30px; cursor: pointer; transition: var(--transition); margin-top: 10px; letter-spacing: 0.3px; }
.c-btn:hover { background: var(--primary-dark); box-shadow: 0 6px 20px rgba(var(--primary-rgb),0.2); transform: translateY(-1px); }
.c-btn:active { transform: translateY(0); box-shadow: none; }
.c-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }

.c-success { display: none; text-align: center; padding: 60px 20px; animation: cFadeIn 0.4s ease; }
.c-success.visible { display: block; }
.c-success-icon { width: 56px; height: 56px; background: var(--role-primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; font-size: 24px; color: white; }
.c-success h2 { font-size: 1.8em; color: var(--role-primary); margin-bottom: 12px; }
.c-success p { font-size: 15px; color: var(--text-light); line-height: 1.6; max-width: 400px; margin: 0 auto; }

/* ═══ OFFICE SECTION ═══ */
.office-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.office-map-col { display: flex; flex-direction: column; gap: 12px; }
.office-map { height: 350px; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-md); }
.office-map iframe { width: 100%; height: 100%; border: 0; }
.office-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}
.office-map-open-btn,
.office-call-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--role-accent, #8FB09A);
    color: var(--role-primary, #1B6B4A);
    background: transparent;
    border-radius: 999px;
    font-size: 0.85em;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.office-map-open-btn:hover,
.office-call-btn:hover {
    background: var(--role-accent, #8FB09A);
    color: #fff;
    border-color: var(--role-accent, #8FB09A);
}

@media (max-width: 768px) {
    .c-form-grid { grid-template-columns: 1fr; gap: 0; }
    .c-chips { flex-direction: column; }
    .c-chip { text-align: center; }
    .office-grid { grid-template-columns: 1fr; }
    .office-map { height: 250px; }
    .footer-partners { flex-direction: column; gap: 20px; }
    .footer-cta-text { font-size: 1.25em; }
    .footer-dot { display: none; }
    .footer-links { display: flex; flex-direction: column; gap: 8px; align-items: center; }
}

/* ═══ FOOTER ═══ */
.site-footer {
    background: var(--role-bg-tint);
    color: var(--role-dark);
    padding: 0 24px 48px;
}

.footer-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.footer-cta {
    padding: 48px 0 40px;
    border-bottom: 1px solid rgba(27, 107, 74, 0.12);
    margin-bottom: 36px;
}

.footer-cta-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5em;
    color: var(--role-dark);
    margin-bottom: 16px;
}

.footer-cta-btn {
    display: inline-block;
    padding: 12px 32px;
    background: var(--role-primary);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-size: 0.9em;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: var(--transition);
}

.footer-cta-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.footer-partners {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(27, 107, 74, 0.12);
    margin-bottom: 32px;
}

.footer-partners:first-child {
    padding-top: 20px;
    flex-wrap: wrap;
}

.footer-partner {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 0.95em;
    white-space: nowrap;
    transition: var(--transition);
}

.footer-partner:hover {
    color: var(--role-primary);
}

.footer-partner svg {
    color: var(--role-primary);
    flex-shrink: 0;
}

.footer-partner-logo {
    height: 72px;
    width: auto;
    opacity: 1;
    filter: brightness(0.35);
    transition: var(--transition);
}

.footer-partner:hover .footer-partner-logo {
    filter: brightness(0.25);
    transform: scale(1.05);
}

.footer-partner-stack {
    line-height: 1.15;
    font-weight: 700;
}

.footer-promo {
    padding-bottom: 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid rgba(27, 107, 74, 0.12);
    font-size: 0.95em;
    color: var(--text-light);
}

.footer-promo a {
    color: var(--role-primary);
    font-weight: 600;
    transition: var(--transition);
}

.footer-promo a:hover {
    color: var(--role-dark);
    text-decoration: underline;
}

.footer-bottom {
    padding-top: 4px;
}

.land-ack {
    font-size: 0.82em;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 24px;
    font-weight: 300;
}

.footer-links {
    margin-bottom: 16px;
}

.footer-links a {
    color: var(--role-primary);
    font-weight: 500;
    font-size: 0.9em;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--role-dark);
    text-decoration: underline;
}

.footer-dot {
    margin: 0 12px;
    color: var(--role-accent);
}

.footer-copy {
    font-size: 0.82em;
    color: var(--text-muted);
}

/* ═══ SEO LANDING PAGES ═══ */
.landing-hero {
    padding: 160px 24px 100px;
    text-align: center;
    background: linear-gradient(135deg, var(--role-bg-tint) 0%, var(--role-bg-alt) 100%);
}

.landing-hero h1 {
    font-size: clamp(2.2em, 5vw, 3.5em);
    color: var(--role-primary);
    margin-bottom: 20px;
}

.landing-hero p {
    font-size: 1.15em;
    color: var(--role-dark);
    max-width: 600px;
    margin: 0 auto 36px;
    font-weight: 300;
    line-height: 1.7;
}

.landing-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 24px;
}

.landing-content h2 {
    font-size: 1.8em;
    color: var(--role-primary);
    margin: 48px 0 20px;
}

.landing-content h2:first-child {
    margin-top: 0;
}

.landing-content p {
    font-size: 1.05em;
    color: var(--text);
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 16px;
}

.landing-content ul {
    margin: 16px 0 24px 24px;
}

.landing-content li {
    font-size: 1em;
    color: var(--text);
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 8px;
}

.landing-cta {
    text-align: center;
    padding: 80px 24px;
    background: var(--role-bg-tint);
}

.landing-cta h2 {
    font-size: 2em;
    color: var(--role-primary);
    margin-bottom: 16px;
}

.landing-cta p {
    font-size: 1.05em;
    color: var(--role-dark);
    font-weight: 300;
    margin-bottom: 32px;
}

/* ═══ SPECIALTY PAGES ═══ */
.specialty-hero {
    padding: 140px 24px 20px;
    min-height: 25vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--role-bg-tint) 0%, var(--role-bg-alt) 100%);
    position: relative;
    overflow: hidden;
}

/* LGBTQ specialty hero — rainbow sweep plays on page load, AND replays
   every time the hero re-enters the viewport (e.g. user scrolls down and
   back up). Driven by .hero-rainbow-active class toggled by an
   IntersectionObserver in specialty.html. Real sites only. */
body:not(.demo-mode) .specialty-hero[data-slug="lgbtq-therapy"]::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(115deg,
        transparent 30%,
        rgba(228, 50, 50, 0.30)   40%,
        rgba(255, 140, 0, 0.30)   45%,
        rgba(255, 215, 0, 0.30)   50%,
        rgba(0, 180, 80, 0.30)    55%,
        rgba(50, 100, 220, 0.30)  60%,
        rgba(150, 50, 200, 0.30)  65%,
        transparent 75%
    );
    transform: translateX(-110%);
    opacity: 0;
}
body:not(.demo-mode) .specialty-hero[data-slug="lgbtq-therapy"].hero-rainbow-active::after {
    animation: lgbtqRainbowSweep 1.6s ease-out 0.1s forwards;
}
@media (prefers-reduced-motion: reduce) {
    body:not(.demo-mode) .specialty-hero[data-slug="lgbtq-therapy"].hero-rainbow-active::after {
        animation: none;
    }
}

.specialty-hero .section-inner {
    text-align: center;
}

.specialty-hero + .section {
    padding-top: 48px;
}

.specialty-hero h1 {
    font-size: clamp(2.2em, 5vw, 3.5em);
    color: var(--role-primary);
    margin-bottom: 16px;
    text-align: center;
}

.specialty-hero .hero-subtitle {
    font-size: 1.15em;
    color: var(--role-dark);
    max-width: 600px;
    margin: 0 auto 24px;
    font-weight: 300;
    line-height: 1.7;
    text-align: center;
}

.breadcrumb {
    font-size: 0.85em;
    color: var(--text-muted);
    font-weight: 400;
    text-align: center;
}

.breadcrumb a {
    color: var(--role-primary);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.specialty-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}

.specialty-page .headshot-float {
    float: right;
    width: 200px;
    border-radius: 50%;
    margin: 0 0 24px 32px;
    shape-outside: circle();
}

.specialty-page h2 {
    font-size: 1.6em;
    color: var(--role-primary);
    margin: 40px 0 16px;
}

.specialty-page h2:first-of-type {
    margin-top: 0;
}

.specialty-page h3 {
    font-size: 1.25em;
    color: var(--role-primary);
    margin: 32px 0 12px;
}

.specialty-page p {
    font-size: 1.05em;
    color: var(--text);
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 16px;
}

.specialty-page ul {
    margin: 16px 0 24px 24px;
}

.specialty-page li {
    font-size: 1em;
    color: var(--text);
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .specialty-page .headshot-float {
        float: none;
        display: block;
        margin: 0 auto 24px;
        width: 160px;
    }

    .specialty-hero {
        padding: 100px 20px 16px;
        min-height: 20vh;
    }
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 968px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-photo {
        max-width: 340px;
        margin: 0 auto;
        position: static;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .who-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--role-bg);
        flex-direction: column;
        padding: 100px 40px 40px;
        gap: 24px;
        transition: right var(--transition);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1em;
    }

    .nav-dropdown-toggle {
        font-size: 1em;
    }

    .nav-dropdown {
        text-align: center;
    }

    .nav-dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        background: transparent;
        padding: 0;
        opacity: 1;
        visibility: visible;
        min-width: 0;
        text-align: center;
    }

    .nav-dropdown-menu a {
        padding: 6px 0;
        font-size: 0.9em !important;
        text-align: center;
    }

    .nav-dropdown-toggle svg { display: none; }

    .hamburger {
        display: flex;
    }

    .hero {
        min-height: 80vh;
    }

    .section {
        padding: 60px 20px;
    }

    .contact-form-wrapper {
        padding: 28px 20px;
    }

    .specialties-grid {
        grid-template-columns: 1fr;
    }

    .fees-grid {
        grid-template-columns: 1fr;
    }
}

/* Logo tablet sizing — 768–1023px */
@media (min-width: 768px) and (max-width: 1023px) {
    .nav-logo-img {
        max-height: min(72px, var(--logo-max-h, 72px));
    }
}

/* Logo mobile sizing — 767px excludes iPad (768px) so it keeps desktop logo */
@media (max-width: 767px) {
    .nav-logo-img {
        max-height: 56px;
        max-width: 180px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 12px 16px;
    }

    .hero h1 {
        font-size: 2.4em;
    }

    .section-header h2 {
        font-size: 1.8em;
    }

    .fee-card .fee-price {
        font-size: 2.2em;
    }
}

/* ═══ FOR THERAPISTS PAGE ═══ */
.ft-hero {
    background: linear-gradient(135deg, var(--role-bg-tint), var(--role-bg-alt));
    padding: 140px 24px 80px;
    text-align: center;
}

.ft-hero-inner {
    max-width: 720px;
    margin: 0 auto;
}

.ft-hero h1 {
    font-size: 2.8em;
    color: var(--role-primary);
    margin-bottom: 16px;
}

.ft-hero-sub {
    font-size: 1.25em;
    color: var(--text);
    margin-bottom: 16px;
    font-weight: 400;
}

.ft-hero-detail {
    font-size: 1em;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 28px;
}

.ft-problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.ft-problem-card {
    text-align: center;
    padding: 32px 24px;
}

.ft-problem-icon {
    color: var(--role-alert);
    margin-bottom: 16px;
}

.ft-problem-card h3 {
    font-size: 1.15em;
    color: var(--role-dark);
    margin-bottom: 12px;
}

.ft-problem-card p {
    font-size: 0.92em;
    color: var(--text-light);
    line-height: 1.7;
}

.ft-approach {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.05em;
    line-height: 1.8;
    color: var(--text-light);
}

.ft-approach p + p {
    margin-top: 16px;
}

.ft-showcase {
    display: flex;
    flex-direction: column;
    gap: 64px;
}

.ft-showcase-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.ft-showcase-reverse {
    direction: rtl;
}

.ft-showcase-reverse > * {
    direction: ltr;
}

.ft-showcase-text h3 {
    font-size: 1.4em;
    color: var(--role-primary);
    margin-bottom: 12px;
}

.ft-showcase-text p {
    font-size: 0.95em;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 16px;
}

.ft-feature-list {
    list-style: none;
    padding: 0;
}

.ft-feature-list li {
    font-size: 0.9em;
    color: var(--text);
    padding: 6px 0 6px 24px;
    position: relative;
    line-height: 1.5;
}

.ft-feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--role-primary);
    font-weight: 700;
}

.ft-showcase-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--white);
}

.ft-showcase-img img {
    width: 100%;
    height: auto;
    display: block;
}

.ft-placeholder {
    padding: 80px 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9em;
    background: linear-gradient(135deg, var(--role-bg), var(--role-bg-tint));
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ft-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.ft-feature {
    text-align: center;
    padding: 24px 16px;
}

.ft-feature svg {
    color: var(--role-primary);
    margin-bottom: 12px;
}

.ft-feature h4 {
    font-size: 1em;
    color: var(--role-dark);
    margin-bottom: 8px;
}

.ft-feature p {
    font-size: 0.85em;
    color: var(--text-light);
    line-height: 1.6;
}

.ft-pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.ft-pricing-card {
    background: var(--role-bg);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    border: 2px solid transparent;
    transition: var(--transition);
}

.ft-pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.ft-pricing-featured {
    border-color: var(--role-primary);
    background: var(--white);
}

.ft-pricing-badge {
    display: inline-block;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--role-primary);
    margin-bottom: 8px;
}

.ft-pricing-card h3 {
    font-size: 1.8em;
    color: var(--role-dark);
    margin-bottom: 12px;
}

.ft-pricing-price {
    font-size: 2.2em;
    font-weight: 700;
    color: var(--role-primary);
    margin-bottom: 4px;
}

.ft-pricing-price span {
    font-size: 0.4em;
    font-weight: 400;
    color: var(--text-light);
}

.ft-pricing-alt {
    font-size: 0.85em;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.ft-pricing-desc {
    font-size: 0.92em;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 24px;
}

.ft-pricing-list {
    list-style: none;
    padding: 0;
    margin-bottom: 28px;
    text-align: left;
}

.ft-pricing-list li {
    font-size: 0.9em;
    color: var(--text);
    padding: 8px 0 8px 24px;
    position: relative;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.ft-pricing-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--role-primary);
    font-weight: 700;
}

.ft-pricing-group {
    text-align: center;
    margin-top: 40px;
    padding: 32px;
    border: 1px dashed rgba(0,0,0,0.15);
    border-radius: 12px;
}

.ft-pricing-group h3 {
    margin: 0 0 8px;
}

.ft-pricing-group p {
    color: var(--text-light);
    max-width: 560px;
    margin: 0 auto 20px;
    line-height: 1.6;
}

.ft-process {
    max-width: 680px;
    margin: 0 auto;
}

.ft-process-step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 24px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.ft-process-step:last-child {
    border-bottom: none;
}

.ft-process-num {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--role-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1em;
}

.ft-process-content h3 {
    margin: 0 0 8px;
    font-size: 1.1em;
}

.ft-process-content p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.7;
}

.ft-about {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.05em;
    line-height: 1.8;
    color: var(--text-light);
}

.ft-about p + p {
    margin-top: 16px;
}

.ft-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.85);
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    padding: 32px;
}

.ft-lightbox.active {
    display: flex;
}

.ft-lightbox img {
    max-width: 95%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

.ft-contact-form {
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .ft-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ft-hero h1 {
        font-size: 2em;
    }

    .ft-problem-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ft-showcase-item,
    .ft-showcase-reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .ft-showcase-img {
        order: -1;
    }

    .ft-features-grid {
        grid-template-columns: 1fr;
    }

    .ft-pricing-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Blog ── */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

.blog-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.blog-card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.blog-card-body {
    padding: 24px;
}

.blog-card-body h2 {
    font-size: 1.2em;
    margin: 0 0 8px;
}

.blog-card-body p {
    color: var(--text-light);
    font-size: 0.92em;
    line-height: 1.6;
    margin: 0 0 12px;
}

.blog-card-meta {
    font-size: 0.8em;
    color: var(--text-muted);
    display: flex;
    gap: 12px;
}

.blog-post {
    max-width: 720px;
    margin: 0 auto;
}

.blog-post-header h1 {
    font-size: 2.2em;
    margin-bottom: 12px;
}

.blog-post-meta {
    font-size: 0.9em;
    color: var(--text-muted);
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.blog-post-img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 32px;
}

.blog-post-body {
    font-size: 1.05em;
    line-height: 1.85;
    color: var(--text-body);
}

.blog-post-body h2 {
    margin-top: 40px;
    margin-bottom: 16px;
}

.blog-post-body p + p {
    margin-top: 20px;
}

.blog-post-footer {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.blog-post-footer a {
    color: var(--role-primary);
    font-weight: 600;
    text-decoration: none;
}

@media (max-width: 600px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-post-header h1 {
        font-size: 1.6em;
    }
}
