/* ============================================================
   Foundation Clinic — Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Belleza&family=Plus+Jakarta+Sans:wght@300;400;500;600&display=swap');

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --espresso:     #2E1F14;
  --t-90:         #3D2C1F;
  --bark:         #5A3E2B;
  --t-50:         #9B8775;
  --t-30:         #C9BBA9;
  --t-15:         #E7DCCD;
  --t-08:         #F2E8D9;
  --cream:        #FDF6EE;
  --ivory:        #FDFAF7;
  --fg-1:         #2E1F14;
  --fg-2:         #5A4736;
  --fg-3:         #8C7866;
  --fg-4:         #B5A18C;
  --bg-page:      #FDFAF7;
  --bg-surface:   #FDF6EE;
  --bg-sunken:    #F6ECDD;
  --bg-elevated:  #FFFFFF;
  --teal:         #0EA5A0;
  --blush:        #E8446A;
  --amber:        #F59E0B;
  --success-fg:   #0EA5A0;
  --success-bg:   #E6F4F3;
  --warning-fg:   #F59E0B;
  --warning-bg:   #FCEFD6;
  --review-fg:    #E8446A;
  --review-bg:    #FBE4EA;
  --font-display: 'Belleza', Georgia, serif;
  --font-body:    'Plus Jakarta Sans', system-ui, sans-serif;
  --display-xl:   88px;
  --display-m:    48px;
  --h1:           40px;
  --h2:           32px;
  --h3:           24px;
  --h4:           20px;
  --body-lg:      18px;
  --body:         16px;
  --body-sm:      14px;
  --caption:      12px;
  --display-tracking: -0.005em;
  --lh-display:   1.05;
  --lh-heading:   1.2;
  --lh-body:      1.625;
  --radius-xs:    4px;
  --radius-sm:    6px;
  --radius-md:    8px;
  --radius-lg:    12px;
  --radius-2xl:   24px;
  --radius-pill:  999px;
  --s-1:  4px;
  --s-2:  8px;
  --s-3:  12px;
  --s-4:  16px;
  --s-5:  20px;
  --s-6:  24px;
  --s-8:  32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-16: 64px;
  --s-20: 80px;
  --s-24: 96px;
  --ease-out:     cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-in-out:  cubic-bezier(0.6, 0, 0.2, 1);
  --dur-fast:     140ms;
  --dur:          220ms;
  --dur-slow:     360ms;
  --shadow-1: 0 1px 4px rgba(46,31,20,0.06), 0 1px 2px rgba(46,31,20,0.04);
  --shadow-2: 0 2px 12px rgba(46,31,20,0.08), 0 1px 4px rgba(46,31,20,0.05);
  --shadow-3: 0 8px 24px rgba(46,31,20,0.10), 0 2px 8px rgba(46,31,20,0.06);
  --shadow-4: 0 16px 48px rgba(46,31,20,0.14), 0 4px 16px rgba(46,31,20,0.08);
  --nav-height:   68px;
  --max-width:    1160px;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg-page);
  color: var(--fg-1);
  font-size: var(--body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  animation: pageFadeIn var(--dur-slow) var(--ease-out) both;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

@keyframes pageFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: var(--lh-heading);
  color: var(--fg-1);
  letter-spacing: var(--display-tracking);
}
h1 { font-size: clamp(2rem, 5vw, var(--h1)); }
h2 { font-size: clamp(1.6rem, 4vw, var(--h2)); }
h3 { font-size: clamp(1.2rem, 2.5vw, var(--h3)); }
h4 { font-size: var(--h4); }
p  { color: var(--fg-2); line-height: var(--lh-body); }

.display-m {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, var(--display-m));
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: var(--display-tracking);
}
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--caption);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-3);
  display: block;
  margin-bottom: var(--s-3);
}
.body-lg { font-size: var(--body-lg); line-height: var(--lh-body); }
.body-sm { font-size: var(--body-sm); }
.caption  { font-size: var(--caption); color: var(--fg-3); }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--s-8);
}
section { padding: var(--s-20) 0; }
.text-center { text-align: center; }
.text-center .lead { margin-left: auto; margin-right: auto; }
.max-prose { max-width: 640px; }

@media (max-width: 600px) {
  .container { padding: 0 var(--s-5); }
}

/* ============================================================
   SECTION VARIANTS
   ============================================================ */
.section-ivory    { background: var(--ivory); }
.section-cream    { background: var(--bg-surface); }
.section-sunken   { background: var(--bg-sunken); }
.section-espresso { background: var(--espresso); color: var(--cream); }
.section-espresso h1,
.section-espresso h2,
.section-espresso h3,
.section-espresso h4 { color: var(--cream); }
.section-espresso p,
.section-espresso .lead { color: var(--t-30); }
.section-espresso .eyebrow { color: var(--t-50); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-body);
  font-size: var(--body-sm);
  font-weight: 600;
  padding: 13px var(--s-6);
  border-radius: var(--radius-md);
  transition: all var(--dur-fast) var(--ease-out);
  cursor: pointer;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--espresso); color: var(--cream); }
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); box-shadow: var(--shadow-2); }
.btn-outline { background: transparent; color: var(--fg-1); border: 1.5px solid var(--fg-1); }
.btn-outline:hover { background: var(--espresso); color: var(--cream); border-color: var(--espresso); }
.btn-ghost { background: transparent; color: var(--fg-2); border: 1px solid var(--t-15); }
.btn-ghost:hover { background: var(--bg-sunken); color: var(--fg-1); }
/* Card CTA — text button pinned to the bottom-left of a flex card (pricing / feature cards) */
.card-cta { margin-top: auto; align-self: flex-start; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 100;
  background: rgba(253,250,247,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--t-15);
  transition: box-shadow var(--dur) var(--ease-out);
}
.nav.scrolled { box-shadow: var(--shadow-2); }

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--s-8);
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--s-10);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--fg-1);
  letter-spacing: var(--display-tracking);
  line-height: 1.15;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  flex: 1;
}
.nav-links a {
  font-size: var(--body-sm);
  font-weight: 400;
  color: var(--fg-2);
  padding: var(--s-2) var(--s-3);
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--fg-1); background: var(--bg-sunken); }
.nav-links a.active { color: var(--fg-1); }

.nav-right {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  flex-shrink: 0;
}
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--bg-sunken);
  border-radius: var(--radius-sm);
  padding: 3px;
}
.lang-switcher a {
  font-family: var(--font-body);
  font-size: var(--caption);
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 4px;
  color: var(--fg-3);
  transition: all var(--dur-fast) var(--ease-out);
}
.lang-switcher a.active {
  background: var(--bg-elevated);
  color: var(--fg-1);
  box-shadow: var(--shadow-1);
}
.nav-cta {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  background: var(--espresso);
  color: var(--cream);
  padding: 10px 20px;
  border-radius: var(--radius-md);
  transition: opacity var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.nav-cta:hover { opacity: 0.88; }

.nav-dropdown-btn {
  font-size: var(--body-sm);
  font-weight: 400;
  color: var(--fg-2);
  padding: var(--s-2) var(--s-3);
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-body);
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.nav-dropdown-btn:hover { color: var(--fg-1); background: var(--bg-sunken); }

/* ── Desktop About dropdown — full width mega menu ─────────── */
.nav-dropdown-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(253,250,247,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--t-15);
  box-shadow: var(--shadow-4);
  z-index: 99;
  padding: var(--s-10) var(--s-8);
}
.nav-dropdown.open { display: block; }

.nav-dropdown-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--s-4);
}

.nav-dropdown a {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: var(--s-5) var(--s-4);
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  background: none;
  white-space: normal;
  overflow-wrap: break-word;
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.nav-dropdown a:hover {
  background: var(--bg-sunken);
  border-color: var(--t-15);
}
.nav-dropdown a .dd-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-1);
  line-height: 1.3;
}
.nav-dropdown a .dd-desc {
  font-size: 11px;
  color: var(--fg-3);
  line-height: 1.4;
  min-height: 2.8em;
}
.dd-img {
  width: 100%;
  height: 120px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--s-3);
}
.dd-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--dur) var(--ease-out);
}
.nav-dropdown a:hover .dd-img img {
  transform: scale(1.04);
}

/* Hamburger — hidden on desktop */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--s-2);
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--fg-1);
  border-radius: 2px;
}

/* Mobile controls group (lang dropdown + hamburger) */
.nav-mobile-controls {
  display: none;
  align-items: center;
  gap: var(--s-3);
  margin-left: auto;
}

/* Lang switcher dropdown (mobile only) */
.lang-switcher-desktop { display: flex; }
.lang-current {
  font-family: var(--font-body);
  font-size: var(--caption);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--fg-2);
  background: var(--bg-sunken);
  border: none;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.lang-switcher-mobile { position: relative; }
.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-elevated);
  border: 1px solid var(--t-15);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-3);
  overflow: hidden;
  z-index: 200;
  min-width: 52px;
}
.lang-dropdown.open { display: block; }
.lang-dropdown a {
  display: block;
  font-size: var(--caption);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--fg-2);
  padding: 8px 12px;
  border-bottom: 1px solid var(--t-08);
  text-align: center;
}
.lang-dropdown a:last-child { border-bottom: none; }
.lang-dropdown a.active { color: var(--fg-1); }
.lang-dropdown a:hover { background: var(--bg-sunken); }

/* Mobile nav dropdown */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: var(--bg-page);
  border-bottom: 1px solid var(--t-15);
  padding: var(--s-4) var(--s-5) var(--s-6);
  z-index: 99;
  box-shadow: var(--shadow-3);
}
.nav-mobile.open { display: block; }
.nav-mobile a {
  display: block;
  font-size: var(--body);
  color: var(--fg-2);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--t-08);
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile-cta {
  display: block;
  margin-top: var(--s-4);
  background: var(--espresso);
  color: var(--cream) !important;
  text-align: center;
  padding: 13px var(--s-6);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--body-sm);
  border-bottom: none !important;
}

/* ── Nav mobile breakpoint ──────────────────────────────────── */
@media (max-width: 768px) {
  .nav-inner        { padding: 0 var(--s-5); gap: var(--s-4); }
  .nav-links        { display: none; }
  .nav-hamburger    { display: flex; }
  .nav-right        { display: none; }
  .nav-mobile-controls { display: flex; }
  .lang-switcher-desktop { display: none; }
}

/* ============================================================
   HERO — FULL BLEED (homepage)
   ============================================================ */
.hero-fullbleed {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 75%;
  background-repeat: no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(46,31,20,0.92) 0%,
    rgba(46,31,20,0.45) 45%,
    rgba(46,31,20,0.15) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 10;
  margin-top: auto;
  padding: 0 var(--s-8) var(--s-16);
  max-width: var(--max-width);
  width: 100%;
  align-self: center;
}
.hero-eyebrow {
  font-size: var(--caption);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(201,187,169,0.85);
  margin-bottom: var(--s-5);
  font-family: var(--font-body);
  display: block;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--cream);
  letter-spacing: -0.02em;
  margin-bottom: var(--s-6);
  max-width: 680px;
}
.hero-lead {
  font-size: var(--body-lg);
  color: rgba(253,246,238,0.75);
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: var(--s-8);
}
.hero-cta { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.hero-btn-primary { background: var(--cream); color: var(--espresso); }
.hero-btn-primary:hover { background: var(--ivory); transform: translateY(-1px); box-shadow: var(--shadow-2); }
.hero-btn-outline { background: transparent; color: var(--cream); border: 1.5px solid rgba(253,246,238,0.45); }
.hero-btn-outline:hover { border-color: var(--cream); background: rgba(253,246,238,0.08); }

@media (max-width: 768px) {
  .hero-content { padding: 0 var(--s-5) var(--s-16); }
  .hero-headline { font-size: clamp(2.2rem, 8vw, 3rem); }
  .hero-btn-primary,
  .hero-btn-outline { padding: 10px 18px; font-size: 13px; }
  .hero-cta { margin-bottom: 72px; }
}

/* ============================================================
   HERO — SUBPAGE (60vh)
   ============================================================ */
.hero-subpage {
  position: relative;
  height: 60vh;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.hero-subpage .hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}
.hero-subpage .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(46,31,20,0.88) 0%, rgba(46,31,20,0.35) 50%, rgba(46,31,20,0.05) 100%);
}
.hero-subpage .hero-content {
  position: relative;
  z-index: 10;
  padding: var(--s-24) var(--s-8) var(--s-16);
  max-width: var(--max-width);
  width: 100%;
  align-self: center;
  margin-top: 0;
}
.hero-subpage .hero-eyebrow {
  font-size: var(--caption);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(201,187,169,0.85);
  margin-bottom: var(--s-3);
  font-family: var(--font-body);
  display: block;
}
.hero-subpage .hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 400;
  line-height: 1.08;
  color: var(--cream);
  letter-spacing: -0.02em;
  margin-bottom: var(--s-4);
  max-width: 680px;
}
.hero-subpage .hero-lead {
  font-size: var(--body-lg);
  color: rgba(253,246,238,0.72);
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .hero-subpage { height: 50vh; }
  .hero-subpage .hero-content {
    padding: 0 var(--s-5) var(--s-12);
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    margin-top: var(--nav-height);
  }
  .hero-subpage .hero-lead {
    font-size: var(--body);
  }
}

/* ============================================================
   HERO NAV (inside full-bleed hero, desktop only)
   ============================================================ */
.hero-nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: var(--s-10);
  padding: 28px var(--s-8);
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
}
.hero-nav-logo { flex-shrink: 0; }
.hero-nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  flex: 1;
}
.hero-nav-links a {
  font-size: var(--body-sm);
  color: rgba(253,246,238,0.7);
  padding: var(--s-2) var(--s-3);
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast) var(--ease-out);
}
.hero-nav-links a:hover { color: var(--cream); }
.hero-nav-right { display: flex; align-items: center; gap: var(--s-4); flex-shrink: 0; }
.lang-switcher-light { background: rgba(253,246,238,0.12); }
.lang-switcher-light a { color: rgba(253,246,238,0.6); }
.lang-switcher-light a.active { background: rgba(253,246,238,0.15); color: var(--cream); box-shadow: none; }
.hero-nav-cta {
  font-family: var(--font-body);
  font-size: var(--body-sm);
  font-weight: 600;
  color: var(--espresso);
  background: var(--cream);
  padding: 10px 20px;
  border-radius: var(--radius-md);
  transition: opacity var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.hero-nav-cta:hover { opacity: 0.88; }

@media (max-width: 768px) {
  .hero-nav-links { display: none; }
}

/* ============================================================
   WHO WE ARE
   ============================================================ */
.who-we-are {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px var(--s-8);
}
.who-we-are-image {
  overflow: hidden;
  border-radius: var(--radius-lg);
  height: 600px;
}
.who-we-are-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.who-we-are-content {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
}
.who-we-are-content h2 {
  margin-top: 0;
  margin-bottom: 20px;
}
.who-we-are-content > p {
  color: var(--fg-2);
  line-height: 1.75;
  margin-bottom: 20px;
}
.who-we-are-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.who-card {
  background: var(--bg-elevated);
  border: 1px solid var(--t-15);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}
.who-card h4 {
  font-family: var(--font-body);
  font-size: var(--caption);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-2);
  margin-bottom: 6px;
}
.who-card p {
  font-size: 13px;
  color: var(--fg-3);
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 860px) {
  .who-we-are { grid-template-columns: 1fr; padding: 48px var(--s-5); gap: 40px; }
  .who-we-are-image { height: 400px; }
}
@media (max-width: 560px) {
  .who-we-are-cards { grid-template-columns: 1fr; }
}

/* ============================================================
   WHAT WE DO
   ============================================================ */
.what-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
}
.what-card {
  background: var(--bg-elevated);
  border: 1px solid var(--t-15);
  border-radius: var(--radius-lg);
  padding: var(--s-8) var(--s-6);
  padding-top: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.what-card:hover { border-color: var(--t-30); box-shadow: var(--shadow-2); }
.what-card h3 { font-size: var(--h4); margin: 0; }
.what-card p  { font-size: var(--body-sm); color: var(--fg-3); margin: 0; line-height: 1.65; }
.what-card-image {
  width: calc(100% + var(--s-6) * 2);
  margin-left: calc(-1 * var(--s-6));
  margin-right: calc(-1 * var(--s-6));
  margin-top: 0;
  margin-bottom: 0;
  height: 200px;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.what-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (max-width: 900px) { .what-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .what-grid { grid-template-columns: 1fr; } }

/* 3-column .what-grid variant (e.g. Care Abroad) — collapses responsively like the 4-col default */
.what-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .what-grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .what-grid-3 { grid-template-columns: 1fr; } }

/* ============================================================
   PRICING
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s-5);
  margin-top: var(--s-12);
}
.pricing-card {
  background: var(--bg-surface);
  border: 1px solid var(--t-15);
  border-radius: var(--radius-lg);
  padding: var(--s-8) var(--s-6);
  display: flex;
  flex-direction: column;
  transition: all var(--dur) var(--ease-out);
}
.pricing-card:hover { border-color: var(--t-30); transform: translateY(-2px); box-shadow: var(--shadow-3); }
.pricing-card.featured { background: var(--espresso); border-color: var(--espresso); }
.pricing-card.featured * { color: var(--t-30); }
.pricing-card.featured .price { color: var(--cream); }
.pricing-card.featured .pricing-tier { color: var(--t-50); }
.pricing-card.featured .pricing-features li { border-bottom-color: var(--t-90); }
.pricing-card.featured .pricing-features li::before { color: var(--teal); }
.pricing-tier {
  font-size: var(--caption);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: var(--s-2);
}
.price {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 400;
  color: var(--fg-1);
  line-height: 1;
  margin-bottom: var(--s-1);
}
.price-label { font-size: var(--body-sm); color: var(--fg-3); margin-bottom: var(--s-6); }
.pricing-features { flex: 1; margin-bottom: var(--s-6); }
.pricing-features li {
  font-size: 10px;
  color: var(--fg-2);
  padding: var(--s-2) 0;
  border-bottom: 1px solid var(--t-08);
  display: flex;
  align-items: flex-start;
  gap: var(--s-2);
}
.pricing-features li::before { content: '✓'; color: var(--teal); font-weight: 600; flex-shrink: 0; }

/* ============================================================
   CTA FULL-BLEED
   ============================================================ */
.cta-fullbleed {
  position: relative;
  padding: var(--s-24) 0;
  min-height: 400px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.cta-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  filter: blur(0.5px);
  transform: scale(1.02);
}
.cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(46,31,20,0.65);
}
.cta-content { position: relative; z-index: 10; }
.cta-fullbleed h2 { color: var(--cream); }
.cta-fullbleed p  { color: rgba(253,246,238,0.75); }

/* ============================================================
   FULLBLEED IMAGE SECTION
   ============================================================ */
.section-fullbleed-image {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  padding: var(--s-24) 0;
}
.fullbleed-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  z-index: 0;
}
.fullbleed-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 15, 8, 0.55);
  z-index: 1;
}
.fullbleed-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--s-8);
}
/* Careers — "Open positions" two-column roles grid inside the full-bleed band (light text on darkened image) */
.openings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-16);
  margin-top: var(--s-8);
  align-items: start;
}
.openings h3 { color: #FDF6EE; }
.openings p  { color: rgba(253,246,238,0.78); margin-top: var(--s-3); margin-bottom: var(--s-6); }
@media (max-width: 860px) { .openings { grid-template-columns: 1fr; gap: var(--s-10); } }

/* Careers — side-opening job-ad drawers (same slide-in pattern as the memberships price list) */
.careers-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(46,31,20,0.35);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.careers-drawer-overlay.open { opacity: 1; pointer-events: all; }
.careers-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 520px;
  max-width: 95vw;
  background: var(--ivory);
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(46,31,20,0.12);
}
.careers-drawer.open { transform: translateX(0); }
.careers-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: 28px 32px 20px;
  border-bottom: 1px solid var(--t-15);
  flex-shrink: 0;
}
.careers-drawer-header h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--fg-1);
  margin: 0;
}
.careers-drawer-close {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--t-08);
  border: none;
  cursor: pointer;
  color: var(--fg-1);
  font-size: 18px;
  transition: background 0.15s ease;
}
.careers-drawer-close:hover { background: var(--t-15); }
.careers-drawer-body {
  overflow-y: auto;
  flex: 1;
  padding: 24px 32px 48px;
}
.careers-drawer-body .job-ad { max-width: none; }
.careers-drawer-body .job-ad > h4:first-child { margin-top: 0; }
.job-ad h4 { margin-top: var(--s-8); margin-bottom: var(--s-3); }
.job-ad p  { margin-bottom: var(--s-4); }
.job-ad ul { margin: 0 0 var(--s-4); padding-left: 0; list-style: none; }
.job-ad li { margin-bottom: var(--s-3); line-height: var(--lh-body); color: var(--fg-2); }
.job-ad li strong { color: var(--fg-1); }
/* Inline text links inside a job ad (e.g. the How-to-apply email) — match the site's inline link style */
.job-ad a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }
.job-ad a:hover { opacity: 0.8; }
@media (max-width: 600px) {
  .careers-drawer { width: 100%; max-width: 100%; }
  .careers-drawer-header { padding: 20px 20px 16px; }
  .careers-drawer-body { padding: 20px 20px 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .careers-drawer, .careers-drawer-overlay { transition: none; }
}

/* ============================================================
   SPLIT LAYOUT
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-20);
  align-items: center;
}
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.split-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-2xl);
}
.split-content h2 { margin-bottom: var(--s-4); }
.split-content p  { margin-bottom: var(--s-5); }
/* Separate stacked role blocks (e.g. Careers "Open positions") so a role's arrow button
   doesn't crowd the next role's heading. */
.split-content a.btn-outline + h3 { margin-top: var(--s-12); }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: var(--s-10); }
  .split.reverse { direction: ltr; }
}
.approach-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.approach-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: var(--s-4);
  padding: var(--s-5) 0 0;
  border-bottom: 1px solid var(--t-15);
}
.approach-step:last-child { border-bottom: none; }
.approach-num {
  font-family: var(--font-display);
  font-size: var(--h3);
  color: var(--fg-3);
  line-height: 1.2;
}
.approach-step h3 {
  font-size: var(--h4);
  margin-bottom: var(--s-2);
}
.approach-step p {
  font-size: var(--body-sm);
  color: var(--fg-3);
  line-height: 1.7;
}

/* ============================================================
   CARDS (generic)
   ============================================================ */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--t-15);
  border-radius: var(--radius-lg);
  padding: var(--s-8);
  box-shadow: var(--shadow-2);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-3); }
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s-6);
}

/* ============================================================
   TEAM
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--s-8);
  margin-top: var(--s-12);
}
.team-card { text-align: left; }
.team-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: var(--s-4);
  background: var(--bg-sunken);
}
.team-photo-wrap {
  position: relative;
  margin-bottom: var(--s-4);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.team-photo-wrap .team-photo {
  margin-bottom: 0;
  border-radius: 0;
  display: block;
}
.team-photo-note {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--s-2) var(--s-3);
  background: color-mix(in srgb, var(--espresso) 75%, transparent);
  color: rgba(255, 255, 255, 0.9);
  font-style: normal;
  font-size: var(--caption);
  text-align: center;
}
.team-name { font-family: var(--font-display); font-size: var(--body-lg); font-weight: 400; color: var(--fg-1); margin-bottom: var(--s-1); }
.team-role { font-size: var(--body-sm); color: var(--fg-3); line-height: 1.4; margin-bottom: var(--s-1); }
.team-email { font-size: var(--caption); color: var(--teal); }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-form { max-width: 560px; }
.form-group { margin-bottom: var(--s-5); }
.form-group label { display: block; font-size: var(--body-sm); font-weight: 500; color: var(--fg-2); margin-bottom: var(--s-2); }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--body);
  color: var(--fg-1);
  background: var(--bg-elevated);
  border: 1px solid var(--t-15);
  border-radius: var(--radius-md);
  padding: 12px var(--s-4);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
  outline: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--t-50); box-shadow: 0 0 0 3px rgba(46,31,20,0.07); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }

@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #1C1410; color: var(--t-30); padding: var(--s-16) 0 var(--s-10); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s-12);
  margin-bottom: var(--s-12);
  align-items: start;
}
.footer-logo { font-family: var(--font-display); font-size: 1.5rem; color: var(--cream); margin-bottom: var(--s-4); }
.footer-tagline { font-size: var(--body-sm); color: var(--t-50); line-height: 1.65; max-width: 240px; }
.footer-heading { font-size: var(--caption); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--t-50); margin-bottom: var(--s-4); }
.footer-links { display: flex; flex-direction: column; gap: var(--s-2); }
.footer-links a { font-size: var(--body-sm); color: var(--t-30); transition: color var(--dur-fast) var(--ease-out); }
.footer-links a:hover { color: var(--cream); }
.footer-bottom {
  border-top: 1px solid var(--t-90);
  padding-top: var(--s-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-4);
}
.footer-copy { font-size: var(--caption); color: var(--t-50); }
.footer-legal { display: flex; gap: var(--s-5); }
.footer-legal a { font-size: var(--caption); color: var(--t-50); transition: color var(--dur-fast) var(--ease-out); }
.footer-legal a:hover { color: var(--t-30); }

@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  padding-top: calc(var(--nav-height) + var(--s-16));
  padding-bottom: var(--s-16);
  background: var(--bg-sunken);
  border-bottom: 1px solid var(--t-15);
}
.page-hero h1 { margin-bottom: var(--s-4); }

/* ============================================================
   BADGES
   ============================================================ */
.badge { display: inline-flex; align-items: center; gap: var(--s-1); font-size: var(--caption); font-weight: 500; padding: 3px 10px; border-radius: var(--radius-pill); }
.badge-success { background: var(--success-bg); color: var(--success-fg); }
.badge-warning  { background: var(--warning-bg); color: var(--warning-fg); }
.badge-review   { background: var(--review-bg);  color: var(--review-fg); }

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal-body { max-width: 720px; margin: 0 auto; }
.legal-body h2 { font-size: var(--h3); margin-top: 48px; margin-bottom: 16px; }
.legal-body h3 { font-size: var(--body-lg); margin-top: 32px; margin-bottom: 12px; }
.legal-body p { margin-bottom: 16px; }
.legal-body ul { margin: 0 0 16px 24px; list-style: disc; }
.legal-body ul li { color: var(--fg-2); font-size: var(--body); line-height: var(--lh-body); margin-bottom: 6px; }
.legal-body a { color: var(--teal); text-decoration: underline; }
.legal-back { display: inline-flex; align-items: center; gap: 8px; font-size: var(--body-sm); color: var(--fg-3); margin-bottom: 32px; }
.legal-link-card { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; background: var(--bg-surface); border: 1px solid var(--t-15); border-radius: var(--radius-lg); margin-bottom: 12px; transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.legal-link-card:hover { border-color: var(--t-30); box-shadow: var(--shadow-2); }
.legal-link-card-title { font-weight: 500; color: var(--fg-1); font-size: var(--body); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.fade-up.visible { opacity: 1; transform: none; }

/* ============================================================
   WHATSAPP BUTTON
   ============================================================ */
.whatsapp-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  height: 48px;
  padding: 0 18px 0 14px;
  background: rgba(253,246,238,0.88);
  color: var(--espresso);
  border-radius: 999px;
  border: 1px solid rgba(46,31,20,0.08);
  display: flex;
  align-items: center;
  gap: 9px;
  box-shadow: 0 2px 12px rgba(46,31,20,0.10), 0 1px 4px rgba(46,31,20,0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-family: var(--font-body);
  font-size: var(--body-sm);
  font-weight: 500;
  white-space: nowrap;
}
.whatsapp-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(46,31,20,0.14); }
.whatsapp-label { font-size: var(--body-sm); font-weight: 500; color: var(--espresso); }
.whatsapp-btn svg { color: #25D366; flex-shrink: 0; }

@media (max-width: 768px) {
  .whatsapp-btn {
    bottom: 28px;
    right: 16px;
    padding: 0 12px;
    width: 48px;
    justify-content: center;
  }
  .whatsapp-label { display: none; }
}
/* Network portrait image */
.network-portrait {
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.network-portrait img {
  width: 100%;
  object-fit: cover;
}
.rights-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
}
.countries-grid {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  flex-wrap: wrap;
}
.hero-subpage .hero-bg {
  background-position: center 40%;
}

@media (max-width: 768px) {
  .whatsapp-btn {
    bottom: 28px;
    right: 16px;
    padding: 0 12px;
    width: 48px;
    justify-content: center;
  }
  .whatsapp-label { display: none; }
  .locations-grid {
    grid-template-columns: 1fr !important;
    gap: 48px !important;
  }
  .split {
    grid-template-columns: 1fr !important;
    gap: var(--s-8) !important;
  }
  #coordinated-care .split {
    gap: 0 !important;
  }
  .approach-diagram {
    display: none;
  }
  .approach-services-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .network-inner {
    grid-template-columns: 1fr !important;
    display: grid !important;
  }
  .network-portrait img {
    aspect-ratio: 4/3 !important;
    width: 100% !important;
  }
  .partners-list {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: var(--s-4) !important;
    font-size: var(--caption) !important;
  }
  .partners-list div[style*="font-size: 12px"] {
    font-size: 10px !important;
    line-height: 1.8 !important;
  }
  #our-network-split {
    display: flex !important;
    flex-direction: column;
  }
  #our-network-split > div:first-child {
    order: 1;
  }
  #our-network-split > div:last-child {
    order: 2;
  }
  .membership-onboarding-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  .membership-services-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  .membership-services-image {
    display: none;
  }
  .service-card-inner {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .service-card-price {
    text-align: left !important;
  }
  .service-card-price br {
    display: none;
  }
  .tailored-cta {
    margin: 0 !important;
  }
  .what-grid {
    grid-template-columns: 1fr !important;
  }
  .what-card {
    padding: var(--s-5) !important;
  }
  .what-card h3 {
    font-size: var(--body) !important;
  }
  .what-card p {
    font-size: 11px !important;
  }
  .split-image img[alt="Doctor reviewing patient data"] {
    width: 100% !important;
    height: auto !important;
    min-width: unset !important;
  }
  .compliance-table {
    display: block !important;
    overflow-x: auto !important;
  }
  .compliance-table td,
  .compliance-table th {
    white-space: normal !important;
    padding: 10px 12px !important;
  }
  .compliance-table th:first-child,
  .compliance-table td:first-child {
    width: 120px !important;
  }
  .rights-row {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  .countries-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: var(--s-3) !important;
  }
    .countries-grid span {
    font-size: var(--caption) !important;
  }
  .hero-subpage .hero-bg {
    background-position: center 38% !important;
    background-size: 275% !important;
  }
}