/* =================================================================
   Lyra Health Singapore — design system mirrored from lyrahealth.com
   Tokens (colour scale, type, radii) extracted from the parent
   theme's compiled main.css. Fonts: Rethink Sans + Instrument Serif.
   ================================================================= */

:root {
  /* Burlingame (primary navy/blue) */
  --navy:        #002066;
  --blue:        #004ec3;
  --blue-bright: #2a7bf4;
  --blue-100:    #dceaff;
  --blue-50:     #edf5ff;
  /* Teal accents */
  --teal:        #017a8d;
  --teal-mid:    #3ba5b5;
  --teal-deep:   #073345;
  --teal-10:     #eff7f7;
  /* Oatmeal neutrals */
  --cream:       #fbfaf9;
  --oat-15:      #f7f6f5;
  --oat-20:      #f5f2ee;
  --line:        #dfdbd6;
  --muted:       #4f4d4a;
  --ink:         #1a1918;
  /* Soft section tints */
  --bg-green:    #edf5dc;
  --bg-peri:     #edf0fc;
  --bg-teal:     #e7f8f8;
  --bg-yellow:   #fff1d6;
  --bg-beige:    #fbeee0;

  --radius-sm: .5rem;
  --radius:    1rem;
  --radius-lg: 1.875rem;
  --radius-xl: 2.5rem;

  --maxw: 1200px;
  --pad: clamp(1.25rem, 4vw, 4rem);

  --font-sans: "Rethink Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  --shadow-sm: 0 1px 2px rgba(7,51,69,.06), 0 4px 16px rgba(7,51,69,.05);
  --shadow:    0 8px 40px rgba(7,51,69,.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { color: var(--navy); line-height: 1.08; font-weight: 700; letter-spacing: -.02em; margin: 0 0 .5em; overflow-wrap: break-word; }
h1 { font-size: clamp(2rem, 7vw, 4.25rem); }
h2 { font-size: clamp(1.7rem, 4.5vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
p  { margin: 0 0 1.1em; }

/* Serif italic accent used inside headlines, à la lyrahealth.com */
.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal); margin: 0 0 1rem;
}
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: inherit; font-weight: 600; font-size: 1rem;
  padding: .85rem 1.6rem; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .2s ease, color .2s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--blue); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,250,249,.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 1.5rem; height: 76px; }
.brand { display: flex; align-items: baseline; gap: .5rem; font-weight: 700; }
.brand .mark { font-size: 1.7rem; font-weight: 700; color: var(--navy); letter-spacing: -.03em; }
.brand .sub { font-size: .82rem; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: 1.4rem; margin-left: 1rem; }
.nav-links a { color: var(--ink); font-weight: 500; font-size: .98rem; }
.nav-links a:hover { color: var(--navy); text-decoration: none; }
.nav-links a.active { color: var(--navy); font-weight: 600; }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: .75rem; }
.nav-cta .login { font-weight: 600; color: var(--navy); font-size: .98rem; }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 4px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(2.5rem, 5vw, 4.5rem); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero .lead { margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-media { position: relative; }
.hero-media img { width: 100%; border-radius: var(--radius-xl); box-shadow: var(--shadow); object-fit: cover; aspect-ratio: 4/3.2; }
.hero-badge {
  position: absolute; left: -1.2rem; bottom: -1.2rem; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1rem 1.25rem; max-width: 230px; border: 1px solid var(--line);
}
.hero-badge strong { color: var(--navy); font-size: 1.9rem; display: block; line-height: 1; }
.hero-badge span { font-size: .85rem; color: var(--muted); }

/* ---------- Sections ---------- */
section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.section-tint { background: var(--oat-20); }
.section-teal { background: var(--teal-deep); color: #fff; }
.section-teal h1, .section-teal h2, .section-teal h3 { color: #fff; }
.section-teal .lead, .section-teal p { color: rgba(255,255,255,.82); }
.section-teal .eyebrow { color: var(--teal-mid); }
.section-head { max-width: 64ch; margin-bottom: 2.5rem; }
.section-head.center { margin-inline: auto; }

/* ---------- Split (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); object-fit: cover; aspect-ratio: 4/3; }
.split + .split { margin-top: clamp(3rem, 6vw, 5rem); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.5rem; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--bg-peri); border: 1px solid transparent; border-radius: var(--radius-lg);
  padding: 2rem; transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { font-size: 1.25rem; }
.card p { color: var(--muted); margin-bottom: 0; }
.card .ico {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: #fff; color: var(--teal); margin-bottom: 1.1rem; font-size: 1.4rem;
}
.card .ico svg { width: 26px; height: 26px; }
/* rotate tints so grids read like lyrahealth.com, not a white wall */
.grid .card:nth-child(3n+1) { background: var(--bg-peri); }
.grid .card:nth-child(3n+2) { background: var(--bg-teal); }
.grid .card:nth-child(3n+3) { background: var(--bg-green); }
.tint-green .ico { color: var(--green-50, #3d701a); }
.tint-peri  .ico { color: var(--blue); }
.tint-yellow .ico{ color: var(--gold, #ab4c11); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat { text-align: center; }
.stat strong { display: block; font-size: clamp(2.4rem, 4vw, 3.4rem); color: #fff; line-height: 1; font-weight: 700; letter-spacing: -.03em; }
.section-teal .stat span { color: rgba(255,255,255,.75); font-size: .95rem; }

/* ---------- Pills (approaches / languages) ---------- */
.pills { display: flex; flex-wrap: wrap; gap: .6rem; }
.pill {
  background: var(--bg-teal); border: 1px solid transparent; color: var(--teal-deep);
  padding: .5rem 1rem; border-radius: 999px; font-size: .92rem; font-weight: 500;
}
.pill:hover { background: var(--bg-peri); color: var(--navy); }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.member { background: var(--bg-peri); border: 1px solid transparent; border-radius: var(--radius-lg); overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
.member:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.member img { width: 100%; aspect-ratio: 1/1; object-fit: cover; object-position: top center; background: var(--oat-20); }
.member .body { padding: 1.1rem 1.2rem 1.4rem; }
.member h3 { font-size: 1.1rem; margin-bottom: .15rem; }
.member .role { color: var(--teal); font-weight: 600; font-size: .9rem; margin-bottom: .6rem; }
.member .svc { color: var(--muted); font-size: .85rem; margin-bottom: .6rem; }
.member .lang { font-size: .82rem; color: var(--ink); }
.member .lang b { color: var(--navy); }

/* ---------- FAQ ---------- */
.faq-group { margin-bottom: 2.5rem; }
.faq-group > h3 { color: var(--teal); font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
/* lyrahealth.com FAQ = one soft-blue band, questions separated by thin dividers (not boxed cards) */
.faq-section { background: var(--bg-peri); }
details.faq {
  background: transparent; border: none; border-bottom: 1px solid rgba(0,32,102,.12);
  border-radius: 0; margin: 0; padding: 0; overflow: hidden;
}
.faq-group > details.faq:last-of-type { border-bottom: none; }
details.faq summary {
  list-style: none; cursor: pointer; padding: 1.25rem 0; font-weight: 600; color: var(--navy);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--teal); font-weight: 400; transition: transform .2s; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq .ans { padding: 0 0 1.25rem; color: var(--muted); }
details.faq .ans p:last-child { margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.contact-list .ico { font-size: 1.3rem; }
.contact-list b { display: block; color: var(--navy); }
.contact-list a { color: var(--ink); }
.form-card { background: var(--bg-peri); border: 1px solid transparent; border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.5rem); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; color: var(--navy); margin-bottom: .4rem; font-size: .95rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 1rem; color: var(--ink); background: #fff;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue); background: #fff; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(339.6deg, #06f 0.04%, #002066 80.9%); color: #fff; border-radius: var(--radius-xl); padding: clamp(2.5rem, 5vw, 4rem); text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 52ch; margin-inline: auto; }
.cta-band .btn-primary { background: #fff; color: var(--navy); }
.cta-band .btn-primary:hover { background: var(--blue-50); }

/* ---------- Deep-blue feature panel (lyrahealth.com signature block) ---------- */
.feature-blue {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #fff; border-radius: var(--radius-xl);
  padding: clamp(2rem, 5vw, 4rem);
}
.feature-blue h2, .feature-blue h3 { color: #fff; }
.feature-blue p { color: rgba(255,255,255,.85); }
.feature-blue .eyebrow { color: #8fd6fd; }
.feature-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem,5vw,3.5rem); align-items: center; }
.feature-blue .feature-media img {
  width: 100%; max-width: 460px; height: auto; aspect-ratio: auto;
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  background: #fff; padding: 1.5rem; margin-inline: auto; display: block; object-fit: contain;
}
/* these home/EAP section images are transparent illustrations — show them whole at native
   aspect (no crop, no letterbox, no upscaling) so they stay sharp */
.split-media img, .hero-media img {
  width: auto; max-width: min(100%, 540px); height: auto; aspect-ratio: auto;
  object-fit: contain; background: transparent; box-shadow: none; border-radius: 0;
  margin-inline: auto; display: block;
}
.feature-blue .btn-primary { background: #fff; color: var(--navy); }
.feature-blue .btn-primary:hover { background: var(--blue-50); }
.feature-blue .btn-outline { color: #fff; border-color: rgba(255,255,255,.6); }
.feature-blue .btn-outline:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* ---------- Text link paired with a circular arrow chip ---------- */
.link-arrow { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; color: var(--navy); }
.link-arrow:hover { text-decoration: none; }
.link-arrow .chip {
  width: 32px; height: 32px; border-radius: 50%; background: var(--bg-peri);
  display: grid; place-items: center; color: var(--navy); transition: transform .15s ease, background .2s ease;
}
.link-arrow:hover .chip { transform: translate(2px,-2px); background: var(--blue-100); }
.link-arrow .chip svg { width: 13px; height: 13px; }

/* contact list svg icons (emoji → line icons) */
.contact-list .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--bg-teal); color: var(--teal); display: grid; place-items: center; flex: none; }
.contact-list .ico svg { width: 20px; height: 20px; }

/* ---------- Logos / trust ---------- */
.trust { text-align: center; }
.trust p { color: var(--muted); font-size: .9rem; letter-spacing: .04em; text-transform: uppercase; font-weight: 600; }
.lang-flow { display: flex; flex-wrap: wrap; gap: .5rem .6rem; justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-deep); color: rgba(255,255,255,.8); padding: clamp(3rem,5vw,4.5rem) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 2rem; }
.site-footer h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.site-footer a { color: rgba(255,255,255,.8); display: block; padding: .3rem 0; }
.site-footer a:hover { color: #fff; }
.site-footer .brand .mark { color: #fff; }
.site-footer .brand .sub { color: rgba(255,255,255,.6); }
.footer-about { font-size: .92rem; max-width: 34ch; margin-top: 1rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 2.5rem; padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .85rem; }
.footer-bottom a { display: inline; }
.disclosure { font-size: .8rem; color: rgba(255,255,255,.55); max-width: 80ch; margin-top: 1rem; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 1.5rem; }
.intro-narrow { max-width: 70ch; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .split, .split.reverse .split-media, .contact-grid { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .hero-media { margin-top: 1rem; }
  .cols-4, .team-grid { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .menu-toggle { display: block; margin-left: auto; }
  .nav-cta { margin-left: 0; }
  .nav-cta .login { display: none; }
  .nav.open .nav-links {
    display: flex; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column;
    background: var(--cream); border-bottom: 1px solid var(--line); padding: 1rem var(--pad); gap: .25rem; margin: 0;
  }
  .nav.open .nav-links a { padding: .6rem 0; }
}
@media (max-width: 680px) {
  .cols-2, .cols-3, .cols-4, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-badge { position: static; margin-top: 1rem; max-width: none; }
}
@media (max-width: 460px) {
  .cols-2, .cols-3, .team-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 1.95rem; }
  .eyebrow { letter-spacing: .08em; font-size: .72rem; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
}

/* =================================================================
   v2 — real logo, mega-menu dropdowns, signature blue hero, legal pages
   ================================================================= */

/* ---- Brand logo ---- */
.brand .logo { height: 28px; width: auto; display: block; }
.site-footer .brand .logo { height: 34px; }
.brand .sub { font-size: .82rem; color: var(--muted); font-weight: 600; align-self: center; }
.site-footer .brand { display: flex; align-items: center; gap: .55rem; margin-bottom: .25rem; }

/* ---- Nav / mega-menu ---- */
.nav-links { list-style: none; display: flex; gap: .35rem; margin: 0 0 0 1.5rem; padding: 0; align-items: center; }
.nav-item { position: relative; }
.nav-top {
  display: inline-flex; align-items: center; gap: .35rem; font-family: inherit; font-size: .98rem;
  font-weight: 500; color: var(--ink); background: none; border: 0; cursor: pointer;
  padding: .55rem .7rem; border-radius: 10px; line-height: 1; text-decoration: none;
}
.nav-top:hover { color: var(--navy); background: var(--oat-20); text-decoration: none; }
.nav-top.active { color: var(--navy); font-weight: 600; }
.nav-top .chev { transition: transform .2s ease; margin-top: 1px; }
.has-dd:hover .nav-top .chev, .nav-item.open .nav-top .chev { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: 100%; left: 0; right: auto; transform: translateY(6px);
  opacity: 0; visibility: hidden; transition: opacity .16s ease, transform .16s ease; z-index: 60;
  padding-top: 16px;  /* transparent, hoverable bridge so the menu doesn't close in the gap */
}
.has-dd:hover .dropdown, .nav-item.open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-inner { max-width: min(680px, 90vw); }
.dropdown-inner {
  display: flex; gap: 1.5rem; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 1.4rem; width: max-content; max-width: 720px;
}
.dd-cols { display: flex; gap: 2rem; }
.dd-col { min-width: 220px; }
.dd-head { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--teal); font-weight: 700; margin: .2rem 0 .6rem; }
.dd-link { display: block; padding: .55rem .6rem; border-radius: 12px; text-decoration: none; }
.dd-link:hover { background: var(--oat-15); text-decoration: none; }
.dd-link .dd-t { display: block; color: var(--navy); font-weight: 600; font-size: .98rem; }
.dd-link .dd-d { display: block; color: var(--muted); font-size: .85rem; margin-top: .1rem; }
.dd-feature {
  display: flex; flex-direction: column; justify-content: center; gap: .3rem; min-width: 210px;
  background: linear-gradient(176deg, #d8f1ff, #f3fbff); border-radius: var(--radius); padding: 1.2rem; text-decoration: none;
}
.dd-feature:hover { text-decoration: none; }
.dd-ft { font-family: var(--font-serif); font-style: italic; font-size: 1.35rem; color: var(--navy); line-height: 1.15; }
.dd-fd { color: var(--muted); font-size: .9rem; }
.dd-fl { color: var(--blue); font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: .3rem; margin-top: .2rem; }
.dd-fl .arr { stroke: currentColor; }

.nav-cta .login { display: inline-flex; align-items: center; gap: .3rem; }
.login .arr { stroke: currentColor; }

/* ---- Signature blue hero panel ---- */
.hero-blue-section { padding: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(2.5rem,5vw,4rem); }
.hero-blue {
  position: relative; display: grid; grid-template-columns: 1.02fr .98fr; align-items: stretch;
  background: linear-gradient(168deg, #dcf1ff 0%, #aae0ff 52%, #8fd6fd 100%);
  border-radius: var(--radius-xl); overflow: hidden; box-shadow: 0 20px 60px rgba(7,51,69,.12);
}
.hero-blue::before {  /* soft oval glow, echoing lyrahealth.com */
  content: ""; position: absolute; width: 60%; height: 140%; right: 28%; top: -20%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,.55), rgba(255,255,255,0) 70%);
  pointer-events: none;
}
.hero-blue-text { position: relative; z-index: 1; padding: clamp(2rem, 4.5vw, 4rem); align-self: center; }
.hero-blue-text .eyebrow { color: var(--teal-deep); }
.hero-blue-text h1 { color: var(--navy); }
.hero-blue-text .lead { color: #173a5e; }
.hero-blue-media { position: relative; min-height: 360px; }
.hero-blue-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-blue .hero-badge { position: absolute; left: clamp(1rem,3vw,2rem); bottom: clamp(1rem,3vw,2rem); z-index: 2; }

/* ---- Legal / policy pages ---- */
.legal { padding-top: clamp(2.5rem,5vw,4rem); }
.legal-updated { color: var(--muted); font-size: .9rem; margin-top: -.4rem; }
.legal-body { margin-top: 2rem; }
.legal-body h3 { margin-top: 2rem; font-size: 1.25rem; }
.legal-body p { color: var(--muted); }
.pol-card { display: flex; flex-direction: column; gap: .4rem; text-decoration: none; }
.pol-card:hover { text-decoration: none; }
.pol-card h3 { font-size: 1.2rem; }
.pol-card p { color: var(--muted); margin-bottom: .3rem; }

/* ---- Mobile nav / dropdowns (final block — overrides v2 base by source order) ---- */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .nav-cta { margin-left: auto; gap: .5rem; }
  .nav-cta .login { display: none; }
  .nav-cta .btn { padding: .6rem 1rem; font-size: .9rem; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; align-items: stretch; gap: .15rem; margin: 0;
    position: absolute; top: 76px; left: 0; right: 0; background: var(--cream);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: .75rem var(--pad) 1.25rem; max-height: calc(100vh - 76px); overflow-y: auto; z-index: 60;
  }
  .nav-top { width: 100%; justify-content: space-between; font-size: 1.05rem; padding: .85rem .3rem; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav-top:hover { background: none; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; padding: 0; display: none; width: auto; left: auto; }
  .nav-item.open .dropdown, .has-dd:hover .dropdown { display: block; transform: none; }
  .dropdown-inner { flex-direction: column; background: transparent; box-shadow: none; border: 0; border-radius: 0; padding: .5rem 0 1rem .4rem; width: auto; max-width: none; gap: 1rem; }
  .dd-cols { flex-direction: column; gap: 1.25rem; }
  .dd-col { min-width: 0; }
  .dd-feature { display: none; }
}
@media (max-width: 540px) {
  .brand .sub { display: none; }
  .nav { gap: .5rem; }
  .nav-cta .btn { padding: .55rem .85rem; font-size: .82rem; }
}

/* ---- v3: team profiles, topic/category pages, linked cards ---- */
a.member { text-decoration: none; color: inherit; display: block; }
a.member:hover { text-decoration: none; }
a.pol-card { color: inherit; }
.back-link { color: var(--muted); font-weight: 600; }
.back-link:hover { color: var(--navy); text-decoration: none; }

.profile { padding-top: clamp(2rem,4vw,3rem); }
.profile-grid { display: grid; grid-template-columns: 360px 1fr; gap: clamp(2rem,5vw,4rem); align-items: start; }
.profile-photo img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 1/1; object-fit: cover; object-position: top center; background: var(--oat-20); }
.profile-info h1 { margin-top: .2rem; }
.profile-meta { display: grid; gap: 1rem; margin: 1.5rem 0; }
.profile-meta > div { display: grid; gap: .2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.pm-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--teal); font-weight: 700; }
.pm-value { color: var(--ink); }
.profile-blurb { color: var(--muted); }
.topic h1 { margin-bottom: .3rem; }
.topic .pill { cursor: pointer; }

@media (max-width: 780px) {
  .profile-grid { grid-template-columns: 1fr; }
  .profile-photo img { max-width: 320px; }
}

/* ---- v4: nav floats inside the blue hero on the home page (à la lyrahealth.com) ---- */
body.home .site-header {
  position: absolute; top: 0; left: 0; right: 0;
  background: transparent; border-bottom: 0; -webkit-backdrop-filter: none; backdrop-filter: none;
}
body.home .hero-blue-section { padding-top: .6rem; }          /* let the blue oval reach the top */
body.home .hero-blue-text { padding-top: clamp(6rem, 9vw, 8rem); }
body.home .nav-top { color: #0a2a52; }                         /* navy nav text reads on light blue */
body.home .nav-top:hover { background: rgba(255,255,255,.45); }
body.home .nav-cta .login { color: #0a2a52; }
body.home .menu-toggle span { background: #0a2a52; }
@media (max-width: 980px) {
  /* On mobile the open menu panel needs a solid background even on home */
  body.home .nav.open .nav-links { background: #fff; }
}

/* ---- v5: enlarge the home blue oval, give the floating nav a solid blue band, drop the photo below the nav ---- */
body.home .hero-blue-section { padding-top: 0; padding-inline: clamp(.75rem, 2.5vw, 1.5rem); }
body.home .hero-blue-section .wrap { max-width: 1320px; padding-inline: 0; }   /* larger oval, wider than the 1200 nav */
body.home .site-header { top: 14px; }                                          /* nav sits a touch lower, inside the band */
body.home .hero-blue { padding-top: 116px; }                                   /* solid blue headroom so logo + button float on blue */
body.home .hero-blue-text { padding-top: clamp(.5rem, 2vw, 1.5rem); }
/* the grid's top padding pushes BOTH columns down, so the photo now starts below the nav */
@media (max-width: 980px) {
  body.home .site-header { top: 0; }
  body.home .hero-blue { padding-top: 0; }
  body.home .hero-blue-text { padding-top: clamp(6rem, 9vw, 8rem); }
}

/* ================================================================= v6: closer match to lyrahealth.com */
/* Buttons: rounded rectangles, not pills */
.btn { border-radius: 14px; }

/* Home hero oval: margin off the screen edges + darker-top→lighter-bottom gradient */
body.home .hero-blue-section { padding-top: clamp(.75rem, 1.4vw, 1.1rem); }
body.home .site-header { top: 22px; }
body.home .hero-blue { padding-top: 112px; }
.hero-blue {
  background: linear-gradient(180deg, #6fc8fb 0%, #8fd8ff 42%, #a9e0fe 78%, #b6e6ff 100%);
}
.hero-blue::before {
  width: 70%; height: 90%; right: 20%; top: -8%;
  background: radial-gradient(ellipse at 50% 35%, rgba(255,255,255,.5), rgba(255,255,255,0) 60%);
}

/* Login: plain text link with arrow (matches lyra) */
.nav-cta .login { padding: .4rem .2rem; border-radius: 12px; }

/* Dropdown: Instrument-Serif italic section headers + icon-led single-line links */
.dd-head {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: 1.35rem; letter-spacing: 0; text-transform: none; color: var(--ink);
  margin: .1rem 0 .5rem;
}
.dd-link { display: flex; align-items: center; gap: .8rem; padding: .6rem .7rem; border-radius: 14px; }
.dd-link:hover { background: var(--blue-50); }
.dd-ico { flex: none; width: 24px; height: 24px; display: grid; place-items: center; color: var(--blue); }
.dd-ico svg { width: 24px; height: 24px; }
.dd-link .dd-t { color: var(--ink); font-weight: 500; font-size: 1rem; }
.dd-feature .dd-ft { font-size: 1.5rem; }
@media (max-width: 980px) {
  .dd-head { font-size: 1.25rem; }
  body.home .site-header { top: 0; }
}

/* ================================================================= v7: nav inside a light-blue rounded bar + circular Log-in arrow */
/* Log in = text + white circular arrow button (matches lyrahealth.com) */
.nav-cta .login { display: inline-flex; align-items: center; gap: .55rem; font-weight: 500; color: var(--ink); padding: 0; }
.nav-cta .login:hover { text-decoration: none; }
.login-arrow {
  width: 38px; height: 38px; border-radius: 50%; background: #fff;
  display: grid; place-items: center; color: #000; border: 1px solid rgba(7,51,69,.08);
  box-shadow: 0 1px 3px rgba(7,51,69,.12); transition: transform .15s ease;
}
.nav-cta .login:hover .login-arrow { transform: translate(1px,-1px); }
.login-arrow svg { width: 13px; height: 13px; stroke: #000; }

/* Home: the whole nav row becomes a light-blue rounded bar floating on the hero */
body.home .site-header { top: 44px; }
body.home .site-header > .wrap { max-width: 1320px; padding-inline: clamp(.75rem, 2.5vw, 1.5rem); }
body.home .nav {
  background: linear-gradient(180deg, #d2efff 0%, #dcf3ff 100%);
  border-radius: 22px; height: 66px;
  padding-inline: clamp(1rem, 2vw, 1.75rem);
  margin-inline: clamp(.5rem, 2.5vw, 2.25rem);
  box-shadow: 0 2px 14px rgba(7,51,69,.06);
}
body.home .hero-blue { padding-top: 150px; }          /* room for the bar + a band of hero above and below it */
body.home .nav-top:hover { background: rgba(255,255,255,.55); }
body.home .login-arrow { box-shadow: 0 2px 6px rgba(7,51,69,.18); border-color: transparent; }

/* keep the dropdown anchored to the bar */
body.home .dropdown { top: 100%; }

@media (max-width: 980px) {
  body.home .site-header { top: 0; }
  body.home .site-header > .wrap { max-width: var(--maxw); padding-inline: var(--pad); }
  body.home .nav { background: none; border-radius: 0; height: 76px; margin-inline: 0; padding-inline: 0; box-shadow: none; }
  body.home .hero-blue { padding-top: 0; }
  .nav-cta .login { display: none; }   /* hidden on mobile already, keep */
}
