/* =========================================================
   Thriving Life Chiropractic — Design System
   ========================================================= */

:root {
  /* Brand color */
  --color-teal-50:  #eef8f6;
  --color-teal-100: #d7eeea;
  --color-teal-300: #7fcec3;
  --color-teal-500: #2f9c93;   /* primary brand teal */
  --color-teal-600: #26837b;
  --color-teal-700: #1d6961;

  /* Deep neutral (replaces pure black header/footer) */
  --color-ink-900: #172623;    /* near-black with a hint of teal */
  --color-ink-800: #203330;
  --color-ink-700: #2b423e;

  /* Neutrals */
  --color-cream:   #fbf9f4;    /* warm off-white background */
  --color-white:   #ffffff;
  --color-sand-50: #f3f0e9;
  --color-gray-600:#5c6462;
  --color-gray-400:#8b928f;
  --color-gray-200:#e3e6e4;

  /* Text */
  --text-heading: #1c2b28;
  --text-body:    #3c4442;
  --text-on-dark: #f3f6f5;
  --text-on-dark-muted: #b7c4c1;

  /* Typography */
  --font-heading: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --max-width: 1180px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(23, 38, 35, 0.06);
  --shadow-md: 0 12px 32px rgba(23, 38, 35, 0.12);
  --header-height: 90px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--color-cream);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); font-weight: 500; }
h3 { font-size: 1.35rem; font-weight: 600; }
p { margin: 0 0 1.1em; }
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 88px 0; }
@media (max-width: 700px) {
  section { padding: 56px 0; }
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--color-teal-600);
  margin-bottom: 14px;
}
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--text-body); font-size: 1.08rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  padding: 15px 30px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--color-teal-500);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--color-teal-600); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: var(--text-on-dark);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn-outline-dark {
  background: transparent;
  border-color: var(--color-ink-700);
  color: var(--color-ink-700);
}
.btn-outline-dark:hover { background: var(--color-ink-700); color: #fff; }
.btn-sm { padding: 11px 22px; font-size: 0.88rem; }
/* On phones a long label (often in Spanish, e.g. "Especial para pacientes nuevos") may not
   fit on one line inside a card; let it wrap instead of pushing the page sideways. */
@media (max-width: 480px) {
  .btn { white-space: normal; text-align: center; justify-content: center; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(23, 38, 35, 1);
  transition: background-color .25s ease;
}
/* The blur lives on a pseudo-element, not the header itself: a backdrop-filter on the
   header would make it the containing block of the fixed mobile menu, and browsers
   (Safari vs Chrome) disagree on that. Keeping it off the header keeps the menu fixed
   to the screen everywhere. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  -webkit-backdrop-filter: saturate(160%) blur(6px);
  backdrop-filter: saturate(160%) blur(6px);
}
.site-header.is-scrolled { background: rgba(23, 38, 35, 0.9); }
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { height: 64px; width: auto; flex-shrink: 0; }
.brand-name {
  font-family: var(--font-heading);
  color: #fff;
  font-size: 1.15rem;
  line-height: 1.2;
}
.brand-name strong { display: block; font-size: 1.02rem; }
.brand-name span { display: block; font-size: 0.72rem; letter-spacing: 0.12em; color: var(--color-teal-300); text-transform: uppercase; }

.main-nav { display: flex; align-items: center; }
.main-nav > ul { display: flex; align-items: center; gap: 4px; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-on-dark-muted);
  font-weight: 600;
  font-size: 0.84rem;
  padding: 12px 10px;
  border-radius: 8px;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-mobile-cta { display: none; }
.main-nav > ul > li > a:hover,
.main-nav > ul > li.active > a { color: #fff; background: rgba(255,255,255,0.08); }
.main-nav .caret { width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-top: -3px; transition: transform .2s ease; opacity: .7; }
.main-nav li:hover > .caret,
.main-nav li:hover .caret { transform: rotate(-135deg); margin-top: 3px; }

.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 240px;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.main-nav li:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: 6px;
  color: var(--text-body);
  font-size: 0.92rem;
  font-weight: 500;
}
.dropdown a:hover { background: var(--color-teal-50); color: var(--color-teal-700); }

.header-cta { display: flex; align-items: center; gap: 18px; }
.header-phone {
  color: #fff;
  font-weight: 700;
  font-size: 0.98rem;
  white-space: nowrap;
  display: none;
}
.header-phone small { display: block; font-weight: 500; color: var(--text-on-dark-muted); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; }
@media (min-width: 1420px) { .header-phone { display: block; } }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.1);
  cursor: pointer;
}
.nav-toggle span {
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1180px) {
  .main-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: 300px;
    max-width: 86%;
    height: 100vh;
    height: 100dvh;
    background: var(--color-ink-900);
    padding: 110px 28px 40px;
    overscroll-behavior: contain;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .38s cubic-bezier(.65,0,.35,1), visibility 0s linear .38s;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex-direction: column;
    align-items: stretch;
  }
  .main-nav.open { transform: translateX(0); visibility: visible; transition: transform .38s cubic-bezier(.65,0,.35,1); }
  .main-nav > ul { flex-direction: column; align-items: stretch; width: 100%; gap: 2px; }
  .main-nav > ul > li > a { padding: 15px 6px; font-size: 1.05rem; justify-content: space-between; }
  .dropdown {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    box-shadow: none; background: rgba(255,255,255,0.04);
    max-height: 0; overflow: hidden; padding: 0 10px;
    transition: max-height .3s ease, padding .3s ease;
  }
  .dropdown a { color: var(--text-on-dark-muted); }
  .dropdown a:hover { background: rgba(255,255,255,0.08); color: #fff; }
  li.dd-open .dropdown { max-height: 400px; padding: 8px 10px; }
  .main-nav .caret { border-color: var(--text-on-dark-muted); }
  /* Above the open menu panel, so the whole round button (not just the X lines) closes it. */
  .nav-toggle { display: flex; position: relative; z-index: 1; }
  .header-cta > .btn { display: none; }
  .nav-scrim {
    position: fixed; inset: 0; background: rgba(10,16,15,0.55);
    opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s;
    z-index: 150;
  }
  .nav-scrim.open { opacity: 1; visibility: visible; }
  .nav-mobile-cta { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
  .nav-mobile-cta a.btn { width: 100%; justify-content: center; }
  .nav-mobile-phone { color: #fff; font-weight: 700; text-align: center; }
}

/* ---------- Announcement bar (replaces aggressive popup) ---------- */
.announce-bar {
  background: var(--color-teal-600);
  color: #fff;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 44px 10px 16px;
  position: relative;
  /* Each notice (New Patient Special, We're hiring) wraps onto its own line as a whole. */
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 32px;
}
.announce-bar a { text-decoration: underline; text-underline-offset: 2px; }
/* "We're hiring" has a long wording for wide screens and a short one for phones. */
.announce-short { display: none; }
@media (max-width: 700px) {
  .announce-long { display: none; }
  .announce-short { display: inline; }
}
.announce-bar .close-announce {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: #fff; opacity: 0.8; cursor: pointer;
  font-size: 1.1rem; line-height: 1; padding: 6px;
}
.announce-bar .close-announce:hover { opacity: 1; }
.announce-bar[hidden] { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  top: -25%; left: 0; right: 0;
  height: 150%;
  background-size: cover;
  background-position: center;
  z-index: 0;
  will-change: transform;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, rgba(15,27,25,0.86) 20%, rgba(15,27,25,0.45) 75%);
}
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 640px; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--color-teal-300); }
.hero p.lede { font-size: 1.15rem; color: var(--text-on-dark-muted); max-width: 520px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.page-hero {
  position: relative;
  color: #fff;
  padding: 150px 0 90px;
  background-size: cover;
  background-position: center;
  text-align: center;
}
.page-hero::before { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(15,27,25,0.88), rgba(23,38,35,0.78)); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero .crumb { color: var(--color-teal-300); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.82rem; }
.page-hero-lede { color: var(--text-on-dark-muted); font-size: 1.12rem; max-width: 680px; margin: 0 auto 28px; }
/* Keep in-page anchor targets (e.g. #book) clear of the sticky header. */
section[id] { scroll-margin-top: var(--header-height); }

/* ---------- New Patient Special ---------- */
.book-kicker { font-weight: 600; color: var(--text-heading); margin-bottom: 6px; }
.steps { list-style: none; margin: 32px 0 0; padding: 0; }
.steps li { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 20px; padding-bottom: 28px; }
.steps li:last-child { padding-bottom: 0; }
/* Thin line joining the step numbers */
.steps li:not(:last-child)::before { content: ""; position: absolute; left: 23px; top: 52px; bottom: 4px; width: 2px; background: var(--color-teal-100); }
.step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--color-teal-500); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-size: 1.25rem; font-weight: 600;
}
.steps h3 { font-size: 1.2rem; margin: 10px 0 6px; }
.steps p { margin: 0; }

/* ---------- Legal pages ---------- */
.legal-content { max-width: 760px; }
.legal-content h2 { font-size: 1.3rem; margin-top: 40px; }
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content h3 { font-size: 1.05rem; margin-top: 24px; }
.legal-content ul { margin: 0 0 1.1em; padding-left: 1.4em; list-style: disc; }
.legal-content li { margin-bottom: 6px; }
.legal-updated { color: var(--color-gray-600); font-size: 0.9rem; font-style: italic; margin-bottom: 32px; }
.sitemap-list { columns: 2; gap: 32px; margin-bottom: 40px; }
.sitemap-list li { break-inside: avoid; margin-bottom: 10px; }
.sitemap-list a:hover { color: var(--color-teal-600); text-decoration: underline; }
@media (max-width: 560px) {
  .sitemap-list { columns: 1; }
}

/* ---------- Cards / Grids ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 34px 28px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.icon-circle {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--color-teal-50);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.icon-circle svg { width: 28px; height: 28px; stroke: var(--color-teal-600); }
.card h3 a { color: var(--text-heading); }
.card .learn-more { display: inline-flex; align-items: center; gap: 6px; color: var(--color-teal-600); font-weight: 600; font-size: 0.92rem; margin-top: 6px; }
.card .learn-more svg { width: 14px; height: 14px; transition: transform .2s ease; }
.card:hover .learn-more svg { transform: translateX(4px); }

/* Booking card with tappable phone / email rows */
.book-card { padding: 36px 32px; border-top: 4px solid var(--color-teal-500); }
.book-card:hover { transform: none; box-shadow: var(--shadow-sm); }
.book-card h3 { margin-bottom: 8px; }
.book-card > p { margin-bottom: 24px; }
.contact-option {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-sm);
  transition: border-color .2s ease, background-color .2s ease;
}
.contact-option + .contact-option { margin-top: 12px; }
.contact-option:hover { border-color: var(--color-teal-300); background: var(--color-teal-50); }
.contact-option .icon-circle { width: 48px; height: 48px; margin: 0; flex: none; }
.contact-option .icon-circle svg { width: 22px; height: 22px; }
.contact-text { flex: 1; min-width: 0; }
.contact-label { display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-gray-600); }
.contact-value { display: block; font-size: 1.25rem; font-weight: 600; color: var(--text-heading); line-height: 1.35; overflow-wrap: anywhere; } /* long emails/handles may break on very small phones instead of widening the page */
.contact-email { font-size: 1.02rem; }
.contact-note { display: block; margin-top: 4px; font-size: 0.88rem; line-height: 1.45; color: var(--color-gray-600); }
.contact-chevron { width: 18px; height: 18px; flex: none; stroke: var(--color-teal-600); transition: transform .2s ease; }
.contact-option:hover .contact-chevron { transform: translateX(3px); }
@media (max-width: 480px) {
  .book-card { padding: 28px 20px; }
  .contact-option { padding: 14px; gap: 12px; }
  .contact-option .icon-circle { width: 40px; height: 40px; }
  .contact-chevron { display: none; }
}

/* Split section (image + text) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split.reverse .split-text { order: 1; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse .split-media,
  .split.reverse .split-text { order: initial; }
}
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.split-media { position: relative; }
.split-media .accent-blob {
  position: absolute; z-index: -1; width: 70%; height: 70%;
  background: var(--color-teal-100); border-radius: var(--radius-lg);
}
.split.reverse .split-media .accent-blob { right: -24px; bottom: -24px; }
.split:not(.reverse) .split-media .accent-blob { left: -24px; bottom: -24px; }
/* Service page intro: the heading sits beside the photo, and the photo stays
   in view while the longer copy scrolls past. */
.split-intro { align-items: start; }
.split-intro .split-media { position: sticky; top: calc(var(--header-height) + 32px); }
.split-intro .split-media img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.split-intro .split-media img.is-portrait { aspect-ratio: 4 / 5; }
@media (max-width: 900px) {
  .split-intro .split-media { position: relative; top: auto; }
}

/* ---------- Team ---------- */
.team-list { max-width: 1120px; }
.team-member {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--color-gray-200);
}
.section-head + .team-member { padding-top: 8px; }
.team-member:last-child { border-bottom: none; padding-bottom: 0; }
.team-member.reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.team-member.reverse .team-photo { order: 2; }
.team-photo {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: 18px 18px 0 var(--color-teal-100);
}
.team-member.reverse .team-photo { box-shadow: -18px 18px 0 var(--color-teal-100); }
.team-member .role { color: var(--color-teal-600); font-weight: 600; font-size: 0.92rem; letter-spacing: 0.02em; margin: 0 0 16px; display: block; }
.team-member h3 { font-size: clamp(1.6rem, 2.4vw, 2rem); font-weight: 500; margin-bottom: 4px; }
.team-member p:last-child { margin-bottom: 0; }
@media (max-width: 860px) {
  .team-member,
  .team-member.reverse { grid-template-columns: 1fr; gap: 32px; padding: 44px 0; }
  .team-member.reverse .team-photo { order: 0; }
  .team-photo,
  .team-member.reverse .team-photo { max-width: 460px; box-shadow: 12px 12px 0 var(--color-teal-100); }
}

/* ---------- Testimonials ---------- */
.testimonials-band { background: var(--color-ink-900); color: var(--text-on-dark); }
.testimonials-band h2 { color: #fff; }
.testimonials-band .section-head p { color: var(--text-on-dark-muted); }
.t-card {
  background: var(--color-ink-800);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  height: 100%;
}
.t-card .stars { color: #f4c752; letter-spacing: 2px; margin-bottom: 14px; font-size: 0.95rem; }
.t-card p { color: var(--text-on-dark-muted); font-size: 0.98rem; }
.t-card .name { color: #fff; font-weight: 700; margin-top: 12px; }

/* ---------- Stat strip ---------- */
.stat-strip { background: var(--color-teal-50); padding: 46px 0; }
.stat-strip .grid { text-align: center; }
.stat-strip .stat-num { font-family: var(--font-heading); font-size: 2.4rem; color: var(--color-teal-700); }
.stat-strip .stat-label { font-size: 0.88rem; color: var(--text-body); font-weight: 600; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--color-teal-700), var(--color-teal-500));
  color: #fff;
  text-align: center;
  padding: 76px 0;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255,255,255,0.88); max-width: 560px; margin: 0 auto 30px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-ink-900); color: var(--text-on-dark-muted); padding-top: 72px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.1); }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; gap: 36px; } }
/* A link only as wide as the logo; block so the spacing below matches the old layout. */
.footer-brand { display: block; width: fit-content; margin-bottom: 18px; transition: opacity .2s ease; }
.footer-brand:hover { opacity: 0.85; }
.footer-brand img { height: 84px; width: auto; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 18px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a:hover { color: #fff; }
.footer-contact li { margin-bottom: 14px; display: flex; gap: 10px; }
.footer-contact a:hover { color: #fff; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center; transition: background .2s ease;
}
.footer-social a:hover { background: var(--color-teal-500); }
.footer-social svg { width: 17px; height: 17px; fill: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 26px 0; font-size: 0.85rem; flex-wrap: wrap; gap: 10px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 6px; }
.footer-legal a:hover { color: #fff; text-decoration: underline; }

/* ---------- Misc ---------- */
.badge-row { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 22px; }
.badge-row span { font-size: 0.86rem; font-weight: 600; color: var(--color-teal-700); background: var(--color-teal-50); padding: 6px 14px; border-radius: 999px; }

.two-col-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 30px; margin: 20px 0; }
@media (max-width: 640px) { .two-col-list { grid-template-columns: 1fr; } }
.two-col-list li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--text-heading); }
.two-col-list svg { width: 18px; height: 18px; stroke: var(--color-teal-600); flex-shrink: 0; margin-top: 3px; }

.form-embed-placeholder {
  border: 2px dashed var(--color-gray-200);
  border-radius: var(--radius-md);
  padding: 40px 24px;
  text-align: center;
  color: var(--color-gray-400);
  background: #fff;
  font-size: 0.92rem;
}

.map-embed { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.map-embed iframe { width: 100%; height: 360px; border: 0; display: block; }

.back-to-top {
  position: fixed; right: 22px; bottom: 22px;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--color-teal-500); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  z-index: 190; border: none; cursor: pointer;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* New Patient Special pop-up: a dismissible corner card, deliberately not a modal
   (no overlay, page stays usable). Shown and remembered by main.js. */
.promo-popup {
  position: fixed; left: 24px; bottom: 24px; z-index: 140;
  width: min(360px, calc(100% - 32px));
  padding: 22px 24px 22px;
  background: #fff; border-radius: 18px; border-top: 4px solid var(--color-teal-500);
  box-shadow: 0 18px 50px rgba(23, 38, 35, 0.22);
  opacity: 0; transform: translateY(24px);
  transition: opacity .4s ease, transform .4s cubic-bezier(.2,.65,.3,1);
}
.promo-popup.is-visible { opacity: 1; transform: none; }
.promo-popup[hidden] { display: none; }
.promo-title { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 500; color: var(--text-heading); margin: 0 28px 6px 0; line-height: 1.25; }
.promo-text { font-size: 0.95rem; line-height: 1.5; color: var(--text-body); margin: 0 0 16px; }
.promo-close {
  position: absolute; top: 10px; right: 10px;
  width: 32px; height: 32px; border-radius: 50%; border: none; cursor: pointer;
  background: transparent; color: var(--color-gray-600); font-size: 1.4rem; line-height: 1;
  transition: background-color .2s ease, color .2s ease;
}
.promo-close:hover { background: var(--color-teal-50); color: var(--text-heading); }
/* The card sits where the back-to-top button would on phones, so hide that while it shows. */
.promo-open .back-to-top { opacity: 0; visibility: hidden; }
@media (max-width: 600px) {
  .promo-popup { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 18px 18px 18px; }
  .promo-title { font-size: 1.15rem; }
}

/* ---------- Link-in-bio page ---------- */
.bio-page {
  min-height: 100vh;
  background: radial-gradient(circle at 50% -10%, var(--color-teal-100), var(--color-cream) 60%);
  padding: 40px 20px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.bio-card {
  width: 100%; max-width: 440px;
  background: #fff; border-radius: 24px; overflow: hidden;
  box-shadow: 0 18px 50px rgba(23, 38, 35, 0.12);
}
.bio-cover {
  position: relative; height: 170px;
  background-size: cover; background-position: 45% 28%;
}
.bio-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,27,25,0.05), rgba(15,27,25,0.35)); }
.bio-avatar {
  position: relative; z-index: 1;
  width: 104px; height: 104px; margin: -52px auto 0;
  border-radius: 50%; background: #fff; border: 4px solid #fff;
  box-shadow: 0 6px 20px rgba(23, 38, 35, 0.14);
  display: flex; align-items: center; justify-content: center;
}
.bio-avatar img { width: 70px; height: auto; }
.bio-intro { padding: 18px 24px 0; text-align: center; }
.bio-main { display: block; padding: 0 24px 30px; text-align: center; }
.bio-intro .eyebrow { color: var(--color-teal-600); margin-bottom: 6px; }
.bio-intro h1 { font-size: 1.6rem; line-height: 1.2; margin-bottom: 12px; }
.bio-tagline { color: var(--text-body); font-size: 0.98rem; line-height: 1.55; margin-bottom: 8px; }
.bio-sub { display: inline-flex; align-items: center; gap: 6px; color: var(--color-gray-600); font-size: 0.88rem; margin-bottom: 0; }
.bio-sub svg { width: 15px; height: 15px; stroke: var(--color-teal-600); flex: none; }

.bio-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 22px 0 22px; }
.bio-quick a {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 6px; border-radius: 14px;
  background: var(--color-teal-50); color: var(--color-teal-700);
  font-weight: 600; font-size: 0.84rem; line-height: 1.2;
  transition: background-color .2s ease;
}
.bio-quick a:hover { background: var(--color-teal-100); }
.bio-quick svg { width: 22px; height: 22px; stroke: currentColor; }

.bio-links { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; text-align: left; }
.bio-link {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; border-radius: 14px;
  background: #fff; color: var(--text-heading);
  border: 1px solid var(--color-gray-200);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, background-color .2s ease;
}
.bio-link:hover { border-color: var(--color-teal-300); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.bio-link-icon {
  width: 40px; height: 40px; flex: none; border-radius: 10px;
  background: var(--color-teal-50);
  display: flex; align-items: center; justify-content: center;
}
.bio-link-icon svg { width: 20px; height: 20px; stroke: var(--color-teal-600); }
.bio-link-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bio-link-text strong { font-weight: 600; font-size: 0.98rem; line-height: 1.3; }
.bio-link-text small { margin-top: 2px; font-size: 0.8rem; line-height: 1.35; color: var(--color-gray-600); }
.bio-chevron { width: 18px; height: 18px; flex: none; stroke: var(--color-gray-400); transition: transform .2s ease; }
.bio-link:hover .bio-chevron { transform: translateX(3px); stroke: var(--color-teal-600); }
.bio-link.bio-link-primary { background: var(--color-teal-500); border-color: transparent; color: #fff; box-shadow: var(--shadow-md); }
.bio-link.bio-link-primary:hover { background: var(--color-teal-600); }
.bio-link-primary .bio-link-icon { background: rgba(255, 255, 255, 0.18); }
.bio-link-primary .bio-link-icon svg,
.bio-link-primary .bio-chevron,
.bio-link-primary:hover .bio-chevron { stroke: #fff; }
.bio-link-primary .bio-link-text small { color: rgba(255, 255, 255, 0.88); }

.bio-info {
  display: grid; gap: 14px; margin-bottom: 22px;
  padding: 16px 18px; border-radius: 14px;
  background: var(--color-cream); text-align: left;
}
.bio-info-row { display: flex; gap: 12px; }
.bio-info-row > svg { width: 20px; height: 20px; flex: none; margin-top: 1px; stroke: var(--color-teal-600); }
.bio-info h2 {
  font-family: var(--font-body); font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-gray-600); margin: 0 0 2px;
}
.bio-info p { margin: 0; font-size: 0.92rem; line-height: 1.5; color: var(--text-body); }
.bio-info .nowrap { white-space: nowrap; }

.bio-social { display: flex; justify-content: center; gap: 12px; margin-bottom: 18px; }
.bio-social a {
  width: 42px; height: 42px; border-radius: 50%; background: var(--color-teal-50);
  display: flex; align-items: center; justify-content: center; transition: background .2s ease;
}
.bio-social a:hover { background: var(--color-teal-500); }
.bio-social a:hover svg { fill: #fff; }
.bio-social svg { width: 18px; height: 18px; fill: var(--color-teal-700); }
.bio-footer { font-size: 0.78rem; line-height: 1.6; color: var(--color-gray-600); margin: 0; }
@media (max-width: 480px) {
  .bio-page { padding: 0; background: #fff; }
  .bio-card { max-width: none; border-radius: 0; box-shadow: none; }
  .bio-intro { padding: 16px 16px 0; }
  .bio-main { padding: 0 16px 28px; }
}
/* The map and the wide layout only exist on desktop. */
.bio-map { display: none; }

/* Desktop: fixed photo panel on the left, links and details on the right. */
@media (min-width: 960px) {
  .bio-page { display: block; padding: 0; background: var(--color-cream); }
  .bio-card {
    max-width: none; min-height: 100vh;
    display: grid; grid-template-columns: minmax(400px, 40%) minmax(0, 1fr);
    background: transparent; border-radius: 0; box-shadow: none; overflow: visible;
  }
  .bio-profile {
    position: sticky; top: 0; height: 100vh;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 56px clamp(40px, 4vw, 64px) 64px;
    overflow: hidden; isolation: isolate; color: #fff;
  }
  .bio-cover { position: absolute; inset: 0; z-index: -1; height: auto; background-position: 42% 50%; }
  .bio-cover::after { background: linear-gradient(180deg, rgba(15,27,25,0.1) 0%, rgba(15,27,25,0.5) 45%, rgba(15,27,25,0.92) 100%); }
  .bio-avatar { width: 92px; height: 92px; margin: 0 0 24px; }
  .bio-avatar img { width: 62px; }
  .bio-intro { padding: 0; text-align: left; }
  .bio-intro .eyebrow { color: var(--color-teal-300); }
  .bio-intro h1 { color: #fff; font-size: clamp(2rem, 2.6vw, 2.7rem); margin-bottom: 14px; }
  .bio-tagline { color: rgba(255,255,255,0.86); font-size: 1.06rem; max-width: 480px; }
  .bio-sub { color: rgba(255,255,255,0.75); }
  .bio-sub svg { stroke: var(--color-teal-300); }
  .bio-quick { max-width: 480px; margin: 28px 0 0; }
  .bio-quick a {
    background: rgba(255,255,255,0.12); color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  }
  .bio-quick a:hover { background: rgba(255,255,255,0.22); }

  .bio-main { align-self: center; width: 100%; max-width: 880px; margin: 0 auto; padding: 96px clamp(40px, 4vw, 64px) 48px; }
  .bio-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
  .bio-link {
    position: relative; flex-direction: column; align-items: flex-start; gap: 16px;
    min-height: 150px; padding: 22px 24px; border-radius: 18px;
  }
  .bio-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
  .bio-link-icon { width: 46px; height: 46px; border-radius: 12px; }
  .bio-link-icon svg { width: 22px; height: 22px; }
  .bio-link-text strong { font-size: 1.08rem; }
  .bio-link-text small { font-size: 0.86rem; }
  .bio-link .bio-chevron { position: absolute; top: 24px; right: 22px; }
  .bio-link.bio-link-primary,
  .bio-link.bio-link-wide { grid-column: 1 / -1; flex-direction: row; align-items: center; min-height: 0; }
  .bio-link-primary .bio-chevron,
  .bio-link-wide .bio-chevron { position: static; }
  .bio-link.bio-link-primary { gap: 20px; padding: 26px 28px; }
  .bio-link-primary .bio-link-icon { width: 58px; height: 58px; border-radius: 14px; }
  .bio-link-primary .bio-link-icon svg { width: 28px; height: 28px; }
  .bio-link-primary .bio-link-text strong { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 500; }
  .bio-link-primary .bio-link-text small { font-size: 0.95rem; }
  .bio-link.bio-link-wide { padding: 16px 24px; }
  .bio-link-wide .bio-link-icon { width: 40px; height: 40px; }

  .bio-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 32px; }
  .bio-info { margin: 0; padding: 24px; border-radius: 18px; background: #fff; border: 1px solid var(--color-gray-200); align-content: center; }
  .bio-map { display: block; width: 100%; height: 100%; min-height: 220px; border: 0; border-radius: 18px; background: var(--color-teal-50); }
}

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 300;
  background: var(--color-teal-600); color: #fff; font-weight: 600;
  padding: 10px 18px; border-radius: var(--radius-sm); transition: top .2s ease;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--color-teal-300); outline-offset: 3px; }

/* ---------- Language toggle ---------- */
.lang-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 36px; padding: 0 12px; border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,0.35); color: #fff;
  font-weight: 700; font-size: 0.8rem; letter-spacing: 0.08em;
  transition: background .2s ease, border-color .2s ease;
}
.lang-toggle:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.standalone-lang { position: absolute; top: 18px; right: 18px; z-index: 5; }
.standalone-lang .lang-toggle { color: var(--color-teal-700); border-color: var(--color-teal-300); background: rgba(255, 255, 255, 0.92); }
.standalone-lang .lang-toggle:hover { background: #fff; border-color: var(--color-teal-500); }

/* ---------- Webinars ---------- */
.lang-note { font-size: 0.88rem; font-style: italic; color: var(--color-gray-600); }
.btn-lg { padding: 18px 36px; font-size: 1.05rem; }
.split-media img.no-frame { border-radius: 0; box-shadow: none; }

.webinar-feature {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px; align-items: center;
  max-width: 1040px; margin: 0 auto; padding: 40px;
  background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-md);
}
.webinar-feature-media { display: block; border-radius: 22px; overflow: hidden; }
.webinar-feature-media img { width: 100%; transition: transform .4s ease; }
.webinar-feature-media:hover img { transform: scale(1.03); }
.webinar-feature-text h2 { margin-bottom: 14px; }
.webinar-feature-text .btn { margin-top: 8px; }
@media (max-width: 860px) {
  .webinar-feature { grid-template-columns: 1fr; gap: 28px; padding: 24px; }
}

/* Opt-in */
.optin-hero { padding: calc(var(--header-height) * 0.6) 0 88px; background: linear-gradient(180deg, var(--color-teal-50), var(--color-cream)); }
.optin-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; align-items: center; }
.optin-hero h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); line-height: 1.12; margin-bottom: 16px; }
.optin-lede { font-weight: 600; font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-teal-700); margin-bottom: 28px; }
.optin-cta { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.optin-bonus { margin: 0; font-size: 0.95rem; color: var(--text-heading); }
.optin-cta .lang-note { margin: 0; }
.optin-hero-media { display: block; }
.optin-hero-media img { width: 100%; filter: drop-shadow(0 18px 36px rgba(23, 38, 35, 0.18)); transition: transform .4s ease; }
.optin-hero-media:hover img { transform: scale(1.02); }
.optin-role { color: var(--color-teal-600); font-weight: 600; margin-top: -8px; }
@media (max-width: 900px) {
  .optin-hero { padding: 40px 0 64px; }
  .optin-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .optin-hero-media { max-width: 460px; }
}

.check-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 14px; }
.check-list li {
  position: relative; padding-left: 38px; line-height: 1.5;
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--color-teal-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2326837b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Same round badge, different icon: sparkle (✨) and heart (💚) from Dr. Cassidy's hiring post. */
.check-list.is-sparkle li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2326837b'%3E%3Cpath d='M12 2.5l2.2 6.6a1.5 1.5 0 0 0 .9.9l6.4 2-6.4 2a1.5 1.5 0 0 0-.9.9L12 21.5l-2.2-6.6a1.5 1.5 0 0 0-.9-.9l-6.4-2 6.4-2a1.5 1.5 0 0 0 .9-.9z'/%3E%3C/svg%3E");
}
.check-list.is-heart li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2326837b'%3E%3Cpath d='M12 21s-8.5-5.2-8.5-11.4A4.9 4.9 0 0 1 12 6.3a4.9 4.9 0 0 1 8.5 3.3C20.5 15.8 12 21 12 21z'/%3E%3C/svg%3E");
}

/* ---------- Join Our Team ---------- */
.hiring-card { padding: 40px 36px; }
.hiring-card:hover { transform: none; box-shadow: var(--shadow-sm); }
.hiring-card h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-bottom: 24px; }
.hiring-card .check-list { margin-bottom: 0; }
.hiring-callout {
  font-family: var(--font-heading); font-weight: 500; color: var(--text-heading);
  font-size: clamp(1.45rem, 2.6vw, 1.95rem); line-height: 1.3;
}
.hiring-note .split-media { max-width: 480px; width: 100%; justify-self: center; }
.hiring-note .split-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; }
.signoff { margin: 28px 0 0; font-style: italic; }
.signoff-name { display: block; font-family: var(--font-heading); font-style: normal; font-size: 1.3rem; font-weight: 600; color: var(--text-heading); }
.text-link { color: var(--color-teal-700); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.apply-grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; align-items: center;
  max-width: 1040px; margin: 0 auto;
}
.apply-grid .steps { margin: 0; }
.know-us { max-width: 1040px; margin: 0 auto; }
.know-us .book-card h3 { margin-bottom: 20px; }
.icon-circle svg.icon-fill { fill: var(--color-teal-600); stroke: none; }
.share-btn, .share-btn:hover { background: #fff; color: var(--color-teal-700); }
@media (max-width: 860px) {
  .apply-grid { grid-template-columns: 1fr; gap: 36px; }
  .hiring-card { padding: 30px 22px; }
}

/* Open positions on /join-our-team/ (cards generated by build.py from pages.json "job" entries) */
.job-list { display: grid; gap: 20px; max-width: 960px; margin: 0 auto; }
.job-card {
  display: flex; align-items: center; justify-content: space-between; gap: 20px 36px;
  padding: 30px 32px; border-left: 4px solid var(--color-teal-500);
}
.job-card:hover { transform: none; box-shadow: var(--shadow-md); }
.job-card h3 { font-size: 1.5rem; margin-bottom: 12px; }
.job-card h3 a:hover { color: var(--color-teal-700); }
.job-details { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.job-details li {
  font-size: 0.84rem; font-weight: 600; line-height: 1.4; color: var(--color-teal-700);
  background: var(--color-teal-50); padding: 5px 12px; border-radius: 999px;
}
.job-card p { margin: 0; }
.job-card .btn { flex: none; }
.job-card .btn svg { width: 16px; height: 16px; stroke: currentColor; }
.job-card-empty { justify-content: center; text-align: center; border-left: none; }
.job-card-empty a, .job-back a { color: var(--color-teal-700); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.job-back { text-align: center; margin: 40px 0 0; }
.sitemap-list .sitemap-sub { padding-left: 1.2em; }
@media (max-width: 760px) {
  .job-card { flex-direction: column; align-items: flex-start; padding: 24px 20px; }
  .job-card .btn { white-space: normal; }
}

/* Short "We're hiring" invitation near the end of About Us and Meet the Team */
.hiring-band {
  display: flex; align-items: center; justify-content: space-between; gap: 20px 32px;
  max-width: 1040px; margin: 0 auto; padding: 32px 36px;
  background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--color-teal-500);
}
.hiring-band .eyebrow { margin-bottom: 8px; }
.hiring-band h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 8px; }
.hiring-band p { margin: 0; }
.hiring-band .btn { flex: none; }
@media (max-width: 760px) {
  .hiring-band { flex-direction: column; align-items: flex-start; padding: 26px 22px; }
}

.quote-card {
  position: relative; max-width: 820px; margin: 0 auto; padding: 48px 48px 40px;
  background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-md);
}
.quote-card::before {
  content: "\201C"; position: absolute; top: -18px; left: 36px;
  font-family: var(--font-heading); font-size: 7rem; line-height: 1; color: var(--color-teal-300);
}
.quote-card blockquote { margin: 12px 0 0; font-size: 1.1rem; line-height: 1.7; color: var(--text-heading); }
.quote-card blockquote p:last-child { margin-bottom: 0; }
.quote-card .quote-prompt {
  margin: 22px 0 10px; padding-left: 14px; border-left: 3px solid var(--color-teal-300);
  font-size: 0.95rem; font-style: italic; color: var(--color-gray-600);
}
@media (max-width: 600px) { .quote-card { padding: 40px 22px 28px; } }

/* Webinar replay */
.webinar-stage { background: var(--color-ink-900); color: var(--text-on-dark); padding: 64px 0 88px; }
.webinar-stage-head { max-width: 820px; margin: 0 auto 36px; text-align: center; }
.webinar-stage-head .eyebrow { color: var(--color-teal-300); }
.webinar-stage-head h1 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.15; }
.webinar-stage .lang-note { color: var(--text-on-dark-muted); margin: 10px 0 0; }
.webinar-layout { display: grid; gap: 44px; max-width: 1000px; margin: 0 auto; }
.video-player {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--radius-md); background: #000; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.video-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-poster { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.video-poster img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: opacity .3s ease; }
.video-poster:hover img { opacity: 1; }
.video-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 88px; height: 88px; border-radius: 50%; background: var(--color-teal-500);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); transition: transform .25s ease, background-color .25s ease;
}
.video-play svg { width: 38px; height: 38px; fill: #fff; margin-left: 4px; }
.video-poster:hover .video-play { transform: translate(-50%, -50%) scale(1.08); background: var(--color-teal-600); }
.video-pending-note { display: none; }
.video-player.is-pending .video-poster { cursor: default; }
.video-player.is-pending .video-play { opacity: 0.5; }
.video-player.is-pending .video-pending-note {
  display: block; position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  margin: 0; padding: 8px 16px; border-radius: 999px; white-space: nowrap;
  background: rgba(15, 27, 25, 0.8); color: #fff; font-size: 0.88rem; font-weight: 600;
}
.video-title { color: #fff; font-family: var(--font-body); font-size: 1.15rem; font-weight: 600; margin: 18px 0 0; }
.webinar-schedule h2 { color: #fff; font-size: 1.5rem; margin-bottom: 18px; }
.webinar-schedule ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.webinar-schedule li { display: flex; }
.chapter {
  display: flex; flex-direction: column; gap: 10px; width: 100%;
  padding: 18px; border-radius: 14px; text-align: left; cursor: pointer;
  font: inherit; color: var(--text-on-dark-muted);
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color .2s ease, border-color .2s ease;
}
.chapter:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.16); }
.chapter.is-active { border-color: var(--color-teal-300); background: rgba(143, 217, 205, 0.1); }
.chapter-time {
  align-self: flex-start; padding: 3px 10px; border-radius: 999px;
  background: rgba(143, 217, 205, 0.14); color: var(--color-teal-300);
  font-size: 0.82rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.chapter-body { font-size: 0.9rem; line-height: 1.55; }
.chapter-body strong { display: block; margin-bottom: 4px; color: #fff; font-size: 1rem; }
@media (max-width: 900px) { .webinar-schedule ol { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .webinar-stage { padding: 40px 0 56px; }
  .webinar-schedule ol { grid-template-columns: 1fr; }
  .video-play { width: 68px; height: 68px; }
  .video-play svg { width: 30px; height: 30px; }
  .video-player.is-pending .video-pending-note { bottom: 12px; font-size: 0.8rem; }
}
.download-meta { margin-top: 10px; font-size: 0.85rem; color: var(--color-gray-600); }

/* Funnel pages: no navigation, so the header only needs the logo and language switch. */
.site-header-landing .header-cta { display: flex; }

/* ---------- Blog ---------- */
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.post-tags li {
  padding: 4px 12px; border-radius: 999px;
  background: var(--color-teal-50); color: var(--color-teal-700);
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.02em; line-height: 1.5;
}
.post-meta { font-size: 0.9rem; color: var(--color-gray-600); }

/* Index and "More from the Blog" cards */
.post-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.post-card-media { display: block; overflow: hidden; }
.post-card-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .post-card-media img { transform: scale(1.04); }
.post-card-body { display: flex; flex-direction: column; flex: 1; padding: 24px 26px 28px; }
.post-card .post-tags { margin-bottom: 14px; }
.post-card h3 { font-size: 1.3rem; line-height: 1.25; margin-bottom: 10px; }
.post-card h3 a:hover { color: var(--color-teal-700); }
.post-card .post-meta { margin-bottom: 12px; }
.post-card-body > p:not(.post-meta) { font-size: 0.95rem; line-height: 1.6; }
.post-card .learn-more { margin-top: auto; }

/* Post page: dark title banner, photo overlapping it, then a narrow reading column. */
.post-hero { padding: 120px 0 190px; background-color: var(--color-ink-900); }
.post-hero .container { max-width: 920px; }
.post-hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); line-height: 1.15; margin-bottom: 18px; }
.post-hero a.crumb { display: inline-block; margin-bottom: 10px; }
.post-hero a.crumb:hover { color: #fff; }
.post-hero .post-meta { color: var(--text-on-dark-muted); font-size: 0.98rem; margin-bottom: 18px; }
.post-hero .post-meta a { color: #fff; font-weight: 600; }
.post-hero .post-meta a:hover { text-decoration: underline; }
.post-hero .post-tags { justify-content: center; }
.post-hero .post-tags li { background: rgba(255, 255, 255, 0.1); color: var(--color-teal-100); }

.post { padding-bottom: 88px; }
.post-figure { position: relative; max-width: 980px; margin: -140px auto 56px; }
.post-figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.post-body { max-width: 720px; margin: 0 auto; font-size: 1.08rem; line-height: 1.75; }
.post-body h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin: 1.8em 0 0.6em; }
.post-body > :first-child { margin-top: 0; }
.post-body ul, .post-body ol { margin: 0 0 1.3em; padding-left: 1.4em; }
.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body li { margin-bottom: 0.5em; padding-left: 0.2em; }
.post-body li::marker { color: var(--color-teal-600); }
.post-body strong { color: var(--text-heading); font-weight: 600; }
.post-body a { color: var(--color-teal-700); text-decoration: underline; text-underline-offset: 3px; }
.post-body a:hover { color: var(--color-teal-600); }
.post-lead { font-family: var(--font-heading); font-size: clamp(1.25rem, 2.2vw, 1.45rem); line-height: 1.5; color: var(--text-heading); }

.post-actions {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  max-width: 720px; margin: 56px auto 0; padding-top: 32px; border-top: 1px solid var(--color-gray-200);
}
.post-back { color: var(--color-teal-700); font-weight: 600; }
.post-back:hover { text-decoration: underline; }
.post-book { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.post-phone { color: var(--text-heading); font-weight: 700; line-height: 1.3; }
.post-phone small { display: block; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-gray-600); }
.post-more { background: var(--color-white); }
/* Same card width as the blog index, centred whether there are one, two or three. */
.post-more-grid {
  display: grid; gap: 28px; justify-content: center;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 360px));
}
@media (max-width: 700px) {
  .post-hero { padding: 64px 0 120px; }
  .post-figure { margin: -84px auto 36px; }
  .post-figure img { border-radius: var(--radius-md); }
  .post-body { font-size: 1.02rem; }
  .post-actions { flex-direction: column-reverse; align-items: stretch; margin-top: 44px; }
  .post-book { justify-content: space-between; }
}

/* ---------- Motion ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}
.hero-content > *,
.page-hero .container > *,
.bio-intro > *,
.bio-main > * {
  animation: rise .9s cubic-bezier(.2,.65,.3,1) both;
}
.hero-content > :nth-child(2), .page-hero .container > :nth-child(2), .bio-intro > :nth-child(2) { animation-delay: .1s; }
.hero-content > :nth-child(3), .page-hero .container > :nth-child(3), .bio-intro > :nth-child(3) { animation-delay: .2s; }
.hero-content > :nth-child(4), .page-hero .container > :nth-child(4), .bio-intro > :nth-child(4) { animation-delay: .3s; }
.bio-intro > :nth-child(n+5), .bio-main > * { animation-delay: .4s; }

/* Scroll reveal: main.js only tags elements that start below the fold */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .8s cubic-bezier(.2,.65,.3,1), transform .8s cubic-bezier(.2,.65,.3,1);
  transition-delay: var(--reveal-delay, 0s);
}
[data-reveal="shown"] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
