/* ==========================================================================
   Clear Mind Therapy — clearmindtherapyllc.com
   Foundation (theme, layout, components) ported from the Blue Tide site.
   ========================================================================== */

/* ── Reset ── */
*:where(:not(html,iframe,canvas,img,svg,video,audio,input[type="radio"],input[type="checkbox"]):not(svg *,symbol *)){all:unset;display:revert}
*,*::before,*::after{box-sizing:border-box}
a,button{cursor:revert}
ol,ul,menu{list-style:none}
img{max-width:100%}
span,a{display:inline-block}

/* ── Base Variables ── */
:root {
    --blue-1: #0773BB;
    --blue-2: #098DE6;
    --blue-3: #065E99;
    --blue-4: #054977;
    --blue-5: #033455;
    --font-display: 'DM Serif Display', Georgia, serif;
    --font-body: 'DM Sans', sans-serif;
    /* Site default/body font — matches the Forward Roots Catering site. */
    --font-default: 'Google Sans', Roboto, Arial, sans-serif;
    --transition-theme: background-color .4s ease, color .4s ease, border-color .4s ease, box-shadow .4s ease;
    --wave-1-fill: #098DE6;
    --wave-2-fill: #065E99;
    --wave-3-fill: #054977;
}

/* ── Dark Theme (default) ── */
[data-theme="dark"] {
    --bg-body: #010f20;
    --bg-header: rgba(1,15,32,.85);
    --bg-header-scrolled: rgba(1,15,32,.95);
    --header-shadow: rgba(0,0,0,.3);
    --header-border: rgba(9,141,230,.08);
    --logo-text-color: #fff;
    --logo-sub-color: var(--blue-2);
    --nav-link-color: rgba(255,255,255,.65);
    --nav-link-hover-bg: rgba(255,255,255,.06);
    --nav-link-hover-color: #fff;
    --ham-stroke: #fff;
    --ham-nav-bg: #021a33;
    --ham-nav-link-color: rgba(255,255,255,.7);
    --ham-nav-link-hover: rgba(9,141,230,.1);
    --ham-nav-border: rgba(255,255,255,.08);
    --greyout-opacity: .5;

    --seg-icon: rgba(255,255,255,.5);
    --seg-icon-hover: #fff;
    --seg-active-bg: var(--blue-2);
    --seg-active-icon: #fff;

    --hero-bg: #010f20;
    --hero-glow: rgba(9,141,230,.1);
    --hero-eyebrow-color: var(--blue-2);
    --hero-h1-color: #fff;
    --hero-h1-accent: var(--blue-2);
    --hero-desc-color: rgba(255,255,255,.55);
    --hero-phone-color: rgba(255,255,255,.3);
    --btn-glow-bg: var(--blue-1);
    --btn-glow-shadow: rgba(9,141,230,.3);
    --btn-ghost-color: rgba(255,255,255,.7);
    --btn-ghost-border: rgba(255,255,255,.15);
    --btn-ghost-hover-border: rgba(255,255,255,.35);
    --btn-ghost-hover-color: #fff;
    --btn-ghost-hover-bg: rgba(255,255,255,.04);
    --wave-1-opacity: .08;
    --wave-2-opacity: .05;
    --wave-3-opacity: .03;

    --why-bg: #010f20;
    --serving-bg: #04192f;
    --why-card-bg: rgba(255,255,255,.03);
    --why-card-border: rgba(255,255,255,.06);
    --why-card-hover-shadow: rgba(9,141,230,.08);
    --why-card-icon-bg: rgba(9,141,230,.12);
    --why-card-icon-color: var(--blue-2);
    --why-card-h3-color: #fff;
    --why-card-p-color: rgba(255,255,255,.5);
    --section-label-color: var(--blue-2);
    --section-title-color: #fff;
    --section-desc-color: rgba(255,255,255,.5);

    --footer-bg: #010f20;
    --footer-bg-alt: #061a31;
    --footer-border: rgba(255,255,255,.04);
    --footer-text: rgba(255,255,255,.35);
    --footer-link: rgba(255,255,255,.5);
    --footer-brand-color: rgba(255,255,255,.6);
    --footer-divider: rgba(255,255,255,.06);

    --body-color: #cdd9e5;
    --selection-bg: var(--blue-2);
}

/* ── Light Theme ── */
[data-theme="light"] {
    --bg-body: #faf8f4;
    --bg-header: rgba(250,248,244,.92);
    --bg-header-scrolled: rgba(250,248,244,.97);
    --header-shadow: rgba(3,52,85,.08);
    --header-border: rgba(7,115,187,.08);
    --logo-text-color: var(--blue-5);
    --logo-sub-color: var(--blue-3);
    --nav-link-color: var(--blue-4);
    --nav-link-hover-bg: rgba(7,115,187,.08);
    --nav-link-hover-color: var(--blue-1);
    --ham-stroke: var(--blue-5);
    --ham-nav-bg: #faf8f4;
    --ham-nav-link-color: var(--blue-5);
    --ham-nav-link-hover: rgba(7,115,187,.06);
    --ham-nav-border: rgba(7,115,187,.1);
    --greyout-opacity: .3;

    --seg-icon: var(--blue-4);
    --seg-icon-hover: var(--blue-1);
    --seg-active-bg: var(--blue-1);
    --seg-active-icon: #fff;

    --hero-bg: linear-gradient(170deg, #faf8f4 0%, #e8f0f8 50%, #f5f0e8 100%);
    --hero-glow: rgba(9,141,230,.08);
    --hero-eyebrow-color: var(--blue-3);
    --hero-h1-color: var(--blue-5);
    --hero-h1-accent: var(--blue-1);
    --hero-desc-color: #4a5568;
    --hero-phone-color: rgba(5,73,119,.7);
    --btn-glow-bg: var(--blue-1);
    --btn-glow-shadow: rgba(7,115,187,.2);
    --btn-ghost-color: var(--blue-4);
    --btn-ghost-border: rgba(7,115,187,.2);
    --btn-ghost-hover-border: var(--blue-1);
    --btn-ghost-hover-color: var(--blue-1);
    --btn-ghost-hover-bg: rgba(7,115,187,.04);
    --wave-1-opacity: .06;
    --wave-2-opacity: .04;
    --wave-3-opacity: .025;

    --why-bg: #faf8f4;
    --serving-bg: #f1f4f8;
    --why-card-bg: #fff;
    --why-card-border: rgba(7,115,187,.06);
    --why-card-hover-shadow: rgba(3,52,85,.08);
    --why-card-icon-bg: rgba(9,141,230,.1);
    --why-card-icon-color: var(--blue-1);
    --why-card-h3-color: var(--blue-5);
    --why-card-p-color: #5a6577;
    --section-label-color: var(--blue-2);
    --section-title-color: var(--blue-5);
    --section-desc-color: #5a6577;

    --footer-bg: #1a1a2e;
    --footer-bg-alt: #13131f;
    --footer-border: rgba(255,255,255,.08);
    --footer-text: rgba(255,255,255,.5);
    --footer-link: rgba(255,255,255,.7);
    --footer-brand-color: rgba(255,255,255,.8);
    --footer-divider: rgba(255,255,255,.08);

    --body-color: #1a1a2e;
    --selection-bg: var(--blue-2);
}

/* ── Global ── */
html { scroll-behavior: smooth; overflow-y: scroll; height: 100%; }

body {
    font-family: var(--font-default);
    font-size: 18px;
    color: var(--body-color);
    background-color: var(--bg-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: var(--transition-theme);
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* Sticky footer: main grows to fill, footer never shrinks */
main { flex: 1 0 auto; }

::selection { background-color: var(--selection-bg); color: #fff; }

/* Kill transitions during bfcache restore so nothing flickers back */
html.no-transitions *,
html.no-transitions *::before,
html.no-transitions *::after { transition: none !important; animation: none !important; }

/* ── Header ── */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: 80px;
    background: var(--bg-header);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--header-border);
    transition: var(--transition-theme);
}

header.scrolled {
    background: var(--bg-header-scrolled);
    box-shadow: 0 2px 30px var(--header-shadow);
}

.header-inner {
    max-width: 1600px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

.logo-wrap { display: flex; align-items: center; gap: 14px; }

.logo-mark {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    background: linear-gradient(145deg, var(--blue-2), var(--blue-4));
    box-shadow: 0 2px 10px rgba(9,141,230,.25);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--logo-text-color);
    line-height: 1.1;
    transition: var(--transition-theme);
}

.logo-text small {
    display: block;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--logo-sub-color);
    margin-top: 2px;
    transition: var(--transition-theme);
}

.desktop-nav {
    display: none;
    gap: 4px;
    align-items: center;
    margin-left: auto;
    margin-right: 10px;
}

.desktop-nav a {
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--nav-link-color);
    border-radius: 6px;
    transition: all .2s;
}

.desktop-nav a:hover { color: var(--nav-link-hover-color); background: var(--nav-link-hover-bg); }
.desktop-nav a.active { color: var(--nav-link-hover-color); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-right: 52px;
}

.header-actions .nav-cta {
    background: var(--blue-1);
    color: #fff;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
}

.header-actions .nav-cta:hover { background: var(--blue-2); color: #fff; }

/* ── Theme Switcher (segmented: system / light / dark) ── */
.theme-switch {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px;
    border-radius: 100px;
    background: rgba(9,141,230,.2);
    border: 1px solid rgba(9,141,230,.15);
    flex-shrink: 0;
}

.theme-seg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 30px;
    border-radius: 100px;
    cursor: pointer;
    font-size: 16px;
    color: var(--seg-icon);
    transition: background-color .2s ease, color .2s ease;
}

.theme-seg:hover { color: var(--seg-icon-hover); }

.theme-seg.active {
    background: var(--seg-active-bg);
    color: var(--seg-active-icon);
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}

.theme-toggle-desktop { display: inline-flex; margin-left: 12px; }
.theme-toggle-mobile { margin: 0 24px 0; }

/* ── Hamburger ── */
.ham {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 400ms;
    user-select: none;
    position: fixed;
    right: 20px;
    top: 15px;
    width: 50px;
    z-index: 1000;
}
.hamRotate.active { transform: rotate(45deg); }

.line {
    fill: none;
    transition: stroke-dasharray 400ms, stroke-dashoffset 400ms, stroke .4s;
    stroke: var(--ham-stroke);
    stroke-width: 5.5;
    stroke-linecap: round;
}

.ham4 .top { stroke-dasharray: 40 121; }
.ham4 .bottom { stroke-dasharray: 40 121; }
.ham4.active .top { stroke-dashoffset: -68px; }
.ham4.active .bottom { stroke-dashoffset: -68px; }
.ham.active .line { stroke: #fff; }

/* ── Slide-out Nav ── */
#HamNav {
    background-color: var(--ham-nav-bg);
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    padding: 0 0 calc(15px + env(safe-area-inset-bottom, 0px));
    position: fixed;
    right: 0; top: 0;
    transform: translateX(105%);
    transition: transform .4s ease-in-out, box-shadow .4s ease-in-out, visibility 0s .4s;
    visibility: hidden;
    width: 88%;
    max-width: 380px;
    z-index: 990;
}

body.nav-active #HamNav {
    box-shadow: -4px 0 30px rgba(0,0,0,.3);
    transform: translateX(0);
    transition: transform .4s ease-in-out, box-shadow .4s ease-in-out;
    visibility: visible;
}

.ham-nav-top {
    background: var(--blue-5);
    padding: 24px;
    height: 80px;
    display: flex;
    align-items: center;
}

.ham-nav-top .logo-text { color: #fff; }
.ham-nav-top .logo-text small { color: rgba(255,255,255,.7); }

.ham-nav-items {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
}

.ham-nav-items a {
    display: block;
    padding: 14px 28px;
    font-size: 17px;
    font-weight: 500;
    color: var(--ham-nav-link-color);
    transition: all .2s;
}

.ham-nav-items a:hover { background: var(--ham-nav-link-hover); color: var(--blue-1); }
.ham-nav-items a.active { color: var(--blue-1); background: var(--ham-nav-link-hover); }

.ham-nav-items a.ham-nav-sub {
    padding: 10px 28px 10px 48px;
    font-size: 15px;
}

.ham-nav-phone {
    margin: 0 24px;
    padding: 16px 0;
    border-top: 1px solid var(--ham-nav-border);
    text-align: center;
}

.ham-nav-phone a {
    display: inline-block;
    padding: 14px 32px;
    background: var(--blue-1);
    color: #fff;
    border-radius: 10px;
    font-weight: 600;
}

#Greyout {
    background-color: #000;
    position: fixed;
    top: 0; left: 0; bottom: 0; right: 0;
    z-index: 980;
    opacity: 0;
    visibility: hidden;
    transition: visibility .4s ease-in-out, opacity .4s ease-in-out;
}

body.nav-active #Greyout { opacity: var(--greyout-opacity); visibility: visible; }

/* ── Hero ── */
.hero {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition-theme);
    /* Photo hero: sunset-dock behind a dark scrim, waves layered on top.
       To revert to the flat themed background, see notes/hero-section-rollback.md */
    background:
        linear-gradient(180deg, rgba(1,15,32,.36) 0%, rgba(1,15,32,.46) 55%, rgba(1,15,32,.66) 100%),
        url('/img/hero/sunset-dock_web.jpg') center / cover no-repeat,
        #010f20;
}

.hero::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--hero-glow) 0%, transparent 60%);
    pointer-events: none;
}

.hero-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    overflow: hidden;
    z-index: 0;
    display: none; /* photo hero: waves hidden — remove this line to bring them back */
}

.hero-waves svg {
    position: absolute;
    bottom: 0;
    width: 200%;
    height: 100%;
    transition: opacity .4s ease;
}

/* Photo hero: waves bumped from faint accent (var(--wave-N-opacity)) to a visible
   translucent water band over the sunset photo — see notes/hero-section-rollback.md */
.wave-1 { animation: waveScroll 12s linear infinite; opacity: .55; }
.wave-2 { animation: waveScroll 18s linear infinite reverse; opacity: .4; }
.wave-3 { animation: waveScroll 8s linear infinite; opacity: .32; }

@keyframes waveScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .wave-1, .wave-2, .wave-3 { animation: none; }
}

.hero-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 100px 24px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-eyebrow {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #bfe3ff; /* photo hero: fixed light text (see notes/hero-section-rollback.md) */
    margin-bottom: 28px;
    animation: fadeIn 1s ease both;
    transition: var(--transition-theme);
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(40px, 8vw, 72px);
    color: #fff; /* photo hero: fixed light text (see notes/hero-section-rollback.md) */
    line-height: 1.1;
    margin-bottom: 28px;
    animation: fadeIn 1s ease .2s both;
    transition: var(--transition-theme);
}

.hero h1 span { color: var(--hero-h1-accent); font-style: italic; }

.hero-desc {
    font-size: 19px;
    line-height: 1.65;
    color: rgba(255,255,255,.78); /* photo hero: fixed light text (see notes/hero-section-rollback.md) */
    max-width: 560px;
    margin: 0 auto 40px;
    animation: fadeIn 1s ease .4s both;
    transition: var(--transition-theme);
}

.hero-cta {
    animation: fadeIn 1s ease .6s both;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.btn-glow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 36px;
    background: var(--btn-glow-bg);
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    border-radius: 12px;
    transition: all .3s;
    box-shadow: 0 0 30px var(--btn-glow-shadow), 0 4px 16px rgba(0,0,0,.15);
}

.btn-glow:hover {
    background: var(--blue-2);
    box-shadow: 0 0 50px var(--btn-glow-shadow), 0 8px 24px rgba(0,0,0,.2);
    transform: translateY(-2px);
    color: #fff;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 36px;
    background: transparent;
    color: var(--btn-ghost-color);
    font-size: 17px;
    font-weight: 500;
    border: 1px solid var(--btn-ghost-border);
    border-radius: 12px;
    transition: all .3s;
}

.btn-ghost:hover {
    border-color: var(--btn-ghost-hover-border);
    color: var(--btn-ghost-hover-color);
    background: var(--btn-ghost-hover-bg);
}

/* Photo hero: keep the "Meet Our Therapists" ghost button legible over the image
   in every theme (fixed white text + border) */
.hero .btn-ghost {
    color: #fff;
    border-color: rgba(255,255,255,.7);
}
.hero .btn-ghost:hover {
    color: #fff;
    border-color: #fff;
    background-color: rgba(255,255,255,.14);
}

.hero-phone {
    margin-top: 28px;
    font-family: var(--font-display);
    font-size: 28px;
    color: rgba(255,255,255,.55); /* photo hero: fixed light text (see notes/hero-section-rollback.md) */
    animation: fadeIn 1s ease .8s both;
    transition: var(--transition-theme);
}

.hero-phone a { color: inherit; transition: color .2s; }
.hero-phone a:hover { color: var(--blue-2); }

/* ── Sections ── */
section { padding: 100px 24px; transition: var(--transition-theme); }
.section-inner { max-width: 1200px; margin: 0 auto; }

.section-label {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--section-label-color);
    margin-bottom: 12px;
    transition: var(--transition-theme);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 48px);
    color: var(--section-title-color);
    line-height: 1.15;
    margin-bottom: 16px;
    transition: var(--transition-theme);
}

.section-desc {
    font-size: 18px;
    line-height: 1.6;
    color: var(--section-desc-color);
    max-width: 560px;
    transition: var(--transition-theme);
}

.section-head-center { text-align: center; }
.section-head-center .section-desc { margin-left: auto; margin-right: auto; }

/* ── Value cards (home) ── */
.values { background: var(--why-bg); transition: var(--transition-theme); }

.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 48px;
}

.value-card {
    background: var(--why-card-bg);
    border-radius: 16px;
    padding: 36px;
    border: 1px solid var(--why-card-border);
    transition: all .3s;
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--blue-2), var(--blue-4));
    opacity: 0;
    transition: opacity .3s;
}

.value-card:hover::before { opacity: 1; }
.value-card:hover { box-shadow: 0 8px 30px var(--why-card-hover-shadow); }

.value-icon {
    width: 52px;
    height: 52px;
    background: var(--why-card-icon-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--why-card-icon-color);
    margin-bottom: 20px;
    transition: var(--transition-theme);
}

.value-card h3 {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--why-card-h3-color);
    margin-bottom: 10px;
    transition: var(--transition-theme);
}

.value-card p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--why-card-p-color);
    transition: var(--transition-theme);
}

/* ── Serving / insurance (home) ── */
.serving { background: var(--serving-bg); transition: var(--transition-theme); }

.serving-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 48px;
}
@media (min-width: 760px) { .serving-grid { grid-template-columns: 1fr 1fr; } }

.insurance-pills {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 16px;
    padding: 0;
}
.insurance-pills li {
    font-size: 14px;
    font-weight: 600;
    color: var(--why-card-icon-color);
    background: var(--why-card-icon-bg);
    border: 1px solid var(--why-card-border);
    border-radius: 999px;
    padding: 6px 14px;
}
.serving-note a { color: var(--section-label-color); font-weight: 600; text-decoration: none; }
.serving-note a:hover { text-decoration: underline; }

/* ── Closing CTA band ── */
.cta-band {
    background: linear-gradient(135deg, var(--blue-4), var(--blue-5), #021a33);
    text-align: center;
    color: #fff;
}
.cta-band .section-title { color: #fff; }
.cta-band .section-desc { color: rgba(255,255,255,.7); margin: 0 auto 32px; }

/* ── Page banner (inner pages) ── */
.page-banner {
    margin-top: 80px;
    padding: 80px 24px 60px;
    text-align: center;
    background: var(--hero-bg);
    position: relative;
    overflow: hidden;
    transition: var(--transition-theme);
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--hero-glow) 0%, transparent 60%);
    pointer-events: none;
}

.page-banner .section-inner { position: relative; z-index: 1; }
.page-banner .section-label { margin-bottom: 16px; }
.page-banner .section-title { margin-bottom: 12px; }
.page-banner .section-desc { margin: 0 auto; text-align: center; }

.page-content { padding: 80px 24px; transition: var(--transition-theme); }
.page-content .section-inner { max-width: 900px; }

/* ── Meet Our Therapists ── */
.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

.team-card {
    display: block;
    background: var(--why-card-bg);
    border: 1px solid var(--why-card-border);
    border-radius: 18px;
    padding: 34px 30px;
    text-align: center;
    color: inherit;
    transition: all .3s;
}

.team-card:hover {
    box-shadow: 0 8px 30px var(--why-card-hover-shadow);
    transform: translateY(-3px);
    border-color: rgba(9,141,230,.35);
}

.team-more {
    margin-top: 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--blue-2);
    transition: var(--transition-theme);
}
.team-card:hover .team-more { color: var(--blue-1); }

/* Therapist detail page */
.therapist-detail { text-align: center; }
.therapist-detail-avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 54px;
    color: #fff;
    background: linear-gradient(145deg, var(--blue-2), var(--blue-4));
    overflow: hidden;
}
.therapist-detail-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.therapist-detail-bio {
    font-size: 17px;
    line-height: 1.75;
    color: var(--section-desc-color);
    max-width: 640px;
    margin: 0 auto;
    text-align: left;
    transition: var(--transition-theme);
}
.therapist-detail-bio p { margin-bottom: 16px; }
.therapist-detail-bio p:last-child { margin-bottom: 0; }
.therapist-detail-actions { margin-top: 36px; text-align: center; }
.therapist-back { display: inline-block; margin-top: 22px; color: var(--blue-2); font-weight: 500; }
.therapist-back:hover { color: var(--blue-1); }

.team-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 32px;
    color: #fff;
    background: linear-gradient(145deg, var(--blue-2), var(--blue-4));
    overflow: hidden;
}
.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.team-name {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--section-title-color);
    margin-bottom: 6px;
    transition: var(--transition-theme);
}

.team-title {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--section-label-color);
    margin-bottom: 16px;
    transition: var(--transition-theme);
}

.team-bio {
    font-size: 15px;
    line-height: 1.65;
    color: var(--section-desc-color);
    transition: var(--transition-theme);
}

/* ── Contact ── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 48px;
    align-items: start;
}

.contact-info-card {
    background: var(--why-card-bg);
    border: 1px solid var(--why-card-border);
    border-radius: 16px;
    padding: 36px;
    transition: var(--transition-theme);
}

.contact-info-card h3 {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--section-title-color);
    margin-bottom: 20px;
    transition: var(--transition-theme);
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--why-card-border);
    transition: var(--transition-theme);
}

.contact-detail:last-child { border-bottom: none; }

.contact-detail i {
    width: 40px;
    height: 40px;
    background: var(--why-card-icon-bg);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--blue-2);
    flex-shrink: 0;
}

.contact-detail-text { display: flex; flex-direction: column; gap: 2px; }

.contact-detail-text strong {
    font-weight: 600;
    color: var(--section-title-color);
    font-size: 16px;
    transition: var(--transition-theme);
}

.contact-detail-text span,
.contact-detail-text a {
    font-size: 15px;
    color: var(--section-desc-color);
    transition: var(--transition-theme);
}
.contact-detail-text a:hover { color: var(--blue-2); }

/* ── Forms (floating-label fields, ported from profile page) ── */
.form-wrap { max-width: 620px; }
.form-intro {
    font-size: 16px;
    line-height: 1.6;
    color: var(--section-desc-color);
    margin-bottom: 32px;
    transition: var(--transition-theme);
}

.ud-group { margin-top: 14px; }
.ud-group:first-child { margin-top: 0; }

.ud-row { display: flex; gap: 14px; margin-top: 14px; }
.ud-row:first-child { margin-top: 0; }
.ud-row .ud-field { flex: 1; min-width: 0; margin-top: 0; }

.ud-field { position: relative; margin-top: 14px; }
.ud-field:first-child { margin-top: 0; }

.ud-input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,.14);
    background-color: rgba(255,255,255,.03);
    color: #fff;
    font: 15px var(--font-default);
    transition: border-color .12s ease, background-color .12s ease;
}
.ud-input:hover { border-color: rgba(255,255,255,.28); }
.ud-input:focus { outline: none; border-color: var(--blue-2); background-color: rgba(255,255,255,.05); }

textarea.ud-input {
    height: auto;
    min-height: 130px;
    padding: 13px 14px;
    line-height: 1.5;
    resize: vertical;
}

select.ud-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    height: 46px;
    line-height: 44px;
    padding: 0 38px 0 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%2398b0c8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}
select.ud-select option { background: var(--ham-nav-bg, #021a33); color: #fff; }

.ud-label {
    position: absolute;
    top: 13px;
    left: 14px;
    color: rgba(255,255,255,.45);
    font-size: 15px;
    pointer-events: none;
    transition: all .12s ease-in-out;
    z-index: 1;
}
.ud-field:hover .ud-label { color: rgba(255,255,255,.65); }
.ud-field.is_focused .ud-label,
.ud-field.has_value .ud-label {
    top: -8px;
    left: 10px;
    font-size: 12px;
    padding: 0 5px;
    color: var(--blue-2);
    background: var(--why-bg, #010f20);
    z-index: 2;
}

/* Light-theme field overrides */
[data-theme="light"] .ud-input { border: 1px solid rgba(7,115,187,.2); background-color: #fff; color: var(--blue-5); }
[data-theme="light"] .ud-input:hover { border-color: rgba(7,115,187,.4); }
[data-theme="light"] .ud-input:focus { border-color: var(--blue-2); background-color: #fff; }
[data-theme="light"] select.ud-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23054977' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
}
[data-theme="light"] select.ud-select option { background: #fff; color: var(--blue-5); }
[data-theme="light"] .ud-label { color: #8a96a8; }
[data-theme="light"] .ud-field:hover .ud-label { color: var(--blue-4); }
[data-theme="light"] .ud-field.is_focused .ud-label,
[data-theme="light"] .ud-field.has_value .ud-label { color: var(--blue-2); background: var(--why-bg); }

.field-note {
    margin: 16px 0 0;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--section-desc-color);
    transition: var(--transition-theme);
}

.form-actions { margin-top: 28px; }
.form-actions .btn-glow { width: 100%; justify-content: center; }

.reassure {
    margin-top: 18px;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--section-desc-color);
    transition: var(--transition-theme);
}
.reassure i { color: var(--blue-2); margin-right: 6px; }

.form-note {
    font-size: 14px;
    color: var(--section-desc-color);
    line-height: 1.5;
    margin-top: 16px;
    transition: var(--transition-theme);
}
.form-note a { color: var(--blue-2); font-weight: 600; }

/* ── Legal / prose pages ── */
.legal-content { max-width: 760px; }
.legal-updated { font-size: 14px; color: var(--section-desc-color); opacity: .85; margin-bottom: 24px; }
.legal-content h2 {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--section-title-color);
    margin: 34px 0 12px;
    transition: var(--transition-theme);
}
.legal-content p, .legal-content li {
    font-size: 16px;
    line-height: 1.7;
    color: var(--section-desc-color);
    transition: var(--transition-theme);
}
.legal-content p { margin-bottom: 14px; }
.legal-content ul { list-style: disc; padding-left: 22px; margin-bottom: 14px; }
.legal-content li { margin-bottom: 6px; }
.legal-content a { color: var(--blue-2); font-weight: 500; }

/* ── Footer ── */
footer {
    flex-shrink: 0;
    color: var(--footer-text);
    text-align: center;
    font-size: 15px;
    transition: var(--transition-theme);
}

footer a { color: var(--footer-link); transition: color .2s; }
footer a:hover { color: var(--blue-2); }

/* Top band */
.footer-top {
    background: var(--footer-bg);
    padding: 38px 0;
    transition: var(--transition-theme);
}
.footer-top-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.footer-brand {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--footer-brand-color);
    margin-bottom: 4px;
}

.footer-links { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin: 16px 0 0; }

/* Bottom band */
.footer-bottom {
    background: var(--footer-bg-alt);
    padding: 20px 0;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
    transition: var(--transition-theme);
}
.footer-bottom-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

@media (min-width: 700px) {
    .footer-bottom-inner {
        flex-direction: row;
        justify-content: space-between;
        gap: 8px 20px;
        text-align: left;
    }
}
.footer-bottom p { margin: 0; }
.footer-bottom a { font-weight: 400; }
.footer-dot { opacity: .5; margin: 0 4px; }


/* ── Animations ── */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ── */
@media (max-width: 520px) {
    .ud-row { flex-direction: column; gap: 0; }
    .ud-row .ud-field { margin-top: 14px; }
    .ud-row .ud-field:first-child { margin-top: 0; }
}

@media (max-width: 409px) {
    .theme-toggle-desktop { display: none !important; }
}

@media (max-width: 599px) {
    .header-actions .nav-cta { display: none; }
}

@media (min-width: 640px) {
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
    .contact-grid { grid-template-columns: 0.9fr 1.1fr; }
}

@media (min-width: 1000px) {
    .values-grid { grid-template-columns: repeat(3, 1fr); }
    .team-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1100px) {
    .ham { display: none; }
    .desktop-nav { display: flex; }
    .header-actions { margin-right: 0; }
}
