/*
Theme Name: Dr Julia
Theme URI: https://drjulia.com
Author: Studio N
Description: Custom WordPress Theme for Dr Julia
Version: 1.0.0
*/

body {
    margin: 0;
    padding: 0;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Literata', Georgia, serif;

  /* ── Moodboard Palette ── */
  /* Warm navy (premium dark) */
  --c-navy:    #1A2C3D;
  --c-navy2:   #22354A;
  --c-navy3:   #2C4055;

  /* Blue system */
  --c-steel:   #B5CEDF;
  --c-steel2:  #93B9D0;
  --c-powder:  #3A6A90;

  /* Sage (patient accent) */
  --c-sage:    #72A88D;
  --c-sage2:   #559070;

  /* Gold (premium accent) */
  --c-gold:    #C9A96E;
  --c-gold2:   #B8943D;

  /* Light backgrounds — warm neutral scale */
  --c-cream:   #FAFAF8;  /* barely warm — "paper white" */
  --c-ivory:   #F6F5F1;  /* subtle warm for alt sections */
  --c-linen:   #F0EDE6;  /* used sparingly for depth */
  --c-white:   #FFFFFF;  /* true white for cards over cream */
  --c-surface: #F8FAFB;

  /* Warm neutrals */
  --c-taupe:   #6F7F88;
  --c-stone:   #D6E1E8;
  --c-warm:    #E5F2FA;

  /* Text */
  --c-text:    #1C1916;
  --c-mid:     #6B6159;
  --c-light:   #9C9087;

  /* Borders */
  --c-border:  rgba(26,44,61,0.12);
  --c-border2: rgba(26,44,61,0.07);

  /* Radius — geometric scale: small stays tight, large flows */
  --r-sm: 6px;   /* chips, badges, small buttons */
  --r-md: 10px;  /* inputs, form fields, medium buttons */
  --r-lg: 16px;  /* cards, dropdowns, panels */
  --r-xl: 20px;  /* modals, hero sections, triage cards */

  /* Shadows (warm-tinted) */
  --sh-sm: 0 1px 2px rgba(26,44,61,0.04), 0 8px 24px rgba(26,44,61,0.06);
  --sh-md: 0 12px 36px rgba(26,44,61,0.10);
  --sh-lg: 0 18px 54px rgba(26,44,61,0.14);
}

body {
  font-family: var(--font-sans);
  background: var(--c-white);
  color: var(--c-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button, input, select { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(58,106,144,0.22);
  outline-offset: 3px;
}

/* Lucide icon base */
[data-lucide] {
  display: inline-block;
  vertical-align: -0.125em;
  width: 1em; height: 1em;
  stroke-width: 1.75;
  flex-shrink: 0;
}

/* ── Responsive Container ── */
.container {
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 32px;
  padding-right: 32px;
  width: 100%;
}

/* ── Page System ── */
div.page { display: none; }
div.page.active { display: block; }

/* ══════════════════════════════
   NAVBAR
══════════════════════════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  border-bottom: 1px solid var(--c-border2);
  height: 72px;
}
.navbar .container {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  position: relative;
}
.nav-logo {
  display: flex; align-items: center;
  user-select: none; line-height: 1;
}
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-links {
  display: flex; gap: 4px; padding: 4px;
  background: var(--c-surface); border: 1px solid var(--c-border2);
  border-radius: var(--r-md);
}
.nav-link {
  padding: 8px 16px; border-radius: var(--r-sm);
  font-size: 13px; font-weight: 500; color: var(--c-mid);
  cursor: pointer; border: none; background: none;
  transition: all .2s; letter-spacing: 0;
  font-family: var(--font-sans);
  text-decoration: none;
}
.nav-link:hover { color: var(--c-text); background: var(--c-white); }
.nav-link.active { color: var(--c-navy); background: var(--c-warm); font-weight: 700; box-shadow: 0 1px 2px rgba(26,44,61,0.08); }
.nav-cta {
  background: var(--c-steel); color: var(--c-navy);
  padding: 10px 22px; border-radius: var(--r-sm);
  font-size: 13px; font-weight: 600; border: none; cursor: pointer;
  letter-spacing: 0; font-family: var(--font-sans);
  transition: background .2s, transform .15s;
  display: inline-flex; align-items: center; gap: 7px;
}
.nav-cta:hover { background: var(--c-powder); color: var(--c-white); transform: translateY(-1px); box-shadow: var(--sh-sm); }
.nav-cta [data-lucide] { width: 14px; height: 14px; }
.nav-toggle {
  display: none;
  width: 42px; height: 40px;
  border-radius: var(--r-sm);
  border: 1px solid var(--c-border);
  background: var(--c-white);
  color: var(--c-navy);
  cursor: pointer;
  align-items: center; justify-content: center;
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.nav-toggle:hover { background: var(--c-surface); border-color: var(--c-stone); }
.nav-toggle [data-lucide] { width: 20px; height: 20px; }

/* ══════════════════════════════
   SHARED SECTION HEADERS
══════════════════════════════ */
.sec-eyebrow {
  font-size: 11px; letter-spacing: 0; font-weight: 600;
  color: var(--c-powder); margin-bottom: 12px; text-transform: uppercase;
}
.sec-eyebrow.sage   { color: var(--c-sage2); }
.sec-eyebrow.gold   { color: var(--c-gold); }
.sec-eyebrow.powder { color: var(--c-powder); }

.sec-h2 {
  font-family: var(--font-serif);
  font-size: 44px; color: var(--c-text);
  margin-bottom: 12px; letter-spacing: 0; font-weight: 500;
  max-width: 760px;
}
.sec-h2.light { color: var(--c-cream); }

.sec-desc {
  font-size: 16px; color: var(--c-mid); line-height: 1.75;
  max-width: 620px; margin-bottom: 40px;
}
.sec-desc.light { color: rgba(181,206,223,0.62); }

/* ══════════════════════════════
   SHARED BUTTONS
══════════════════════════════ */
.btn-primary {
  background: var(--c-steel); color: var(--c-navy);
  padding: 13px 24px; border-radius: var(--r-md);
  font-size: 14px; font-weight: 600; border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all .2s; letter-spacing: 0;
  font-family: var(--font-sans);
}
.btn-primary:hover { background: var(--c-powder); color: var(--c-white); transform: translateY(-1px); box-shadow: var(--sh-sm); }
.btn-primary.sage  { background: var(--c-sage); }
.btn-primary.sage:hover  { background: var(--c-sage2); transform: translateY(-1px); }
.btn-primary.gold  { background: var(--c-gold); color: #1A1400; }
.btn-primary.gold:hover  { background: var(--c-gold2); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--c-border);
  color: var(--c-mid); padding: 13px 24px; border-radius: var(--r-md);
  font-size: 14px; font-weight: 500; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all .2s; font-family: var(--font-sans);
}
.btn-ghost:hover { border-color: var(--c-stone); color: var(--c-text); background: var(--c-surface); }

.btn-ghost-dark {
  background: transparent;
  border: 1.5px solid rgba(181,206,223,0.28);
  color: rgba(181,206,223,0.9); padding: 13px 24px; border-radius: var(--r-md);
  font-size: 14px; font-weight: 500; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all .2s; font-family: var(--font-sans);
}
.btn-ghost-dark:hover { border-color: rgba(181,206,223,0.55); color: var(--c-steel); background: rgba(181,206,223,0.1); }

/* ══════════════════════════════
   HOME — HERO
══════════════════════════════ */
.home-hero {
  height: 100vh;
  min-height: 520px;
  max-height: 1080px;
  background: var(--c-cream);
  display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  padding-top: 72px; overflow: hidden;
  box-sizing: border-box;
}
.home-left {
  display: flex; flex-direction: column; justify-content: center;
  padding: 24px 56px 24px max(32px, calc((100vw - 1220px) / 2 + 32px));
  margin-left: auto; max-width: 660px; width: 100%;
  box-sizing: border-box;
}
.home-eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: 11px; letter-spacing: 0; font-weight: 600;
  color: var(--c-powder); margin-bottom: 28px; text-transform: uppercase;
}
.home-eyebrow::before {
  content: ''; width: 36px; height: 1px;
  background: var(--c-powder); display: block; flex-shrink: 0;
}
.home-h1 {
  font-family: var(--font-serif);
  font-size: 66px; line-height: 1.04; color: var(--c-text);
  margin-bottom: 22px; letter-spacing: 0; font-weight: 500;
}
.home-h1 em { color: var(--c-powder); font-style: italic; }
.home-sub {
  font-size: 16px; color: var(--c-mid);
  line-height: 1.8; max-width: 440px; margin-bottom: 48px;
}
.home-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 44px; }
.home-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; padding-top: 32px;
  border-top: 1px solid var(--c-border);
}
.stat-val {
  font-family: var(--font-serif);
  font-size: 38px; font-weight: 400; color: var(--c-text); line-height: 1;
}
.stat-val sup { color: var(--c-powder); font-size: 22px; font-family: var(--font-sans); vertical-align: super; }
.stat-star { color: var(--c-gold); font-size: 22px; }
.stat-lbl { font-size: 12px; color: var(--c-light); margin-top: 5px; letter-spacing: 0; }

.home-right { position: relative; overflow: hidden; min-height: 100%; }
.home-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 15%;}
.home-photo-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, var(--c-white) 0%, rgba(255,255,255,0.62) 24%, transparent 56%),
    linear-gradient(to top, rgba(26,44,61,0.18), transparent 35%);
}

/* Floating badges */
.home-badge {
  position: absolute; bottom: 48px; left: 40px;
  background: rgba(255,255,255,0.95);
  border: 1px solid var(--c-border);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-radius: var(--r-md); padding: 16px 20px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: var(--sh-md);
}
.badge-pulse {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--c-sage); flex-shrink: 0;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(114,168,141,0.5); }
  70%  { box-shadow: 0 0 0 9px rgba(114,168,141,0); }
  100% { box-shadow: 0 0 0 0 rgba(114,168,141,0); }
}
.badge-txt p { font-size: 11px; color: var(--c-mid); margin-bottom: 2px; }
.badge-txt strong { font-size: 14px; color: var(--c-text); display: block; }

.home-tag-card {
  position: absolute; top: 104px; right: 40px;
  background: rgba(255,255,255,0.95);
  border: 1px solid var(--c-border);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-radius: var(--r-md); padding: 18px 22px;
  color: var(--c-text); font-size: 12px; text-align: center;
  box-shadow: var(--sh-md);
}
.tag-card-num {
  font-family: var(--font-serif);
  font-size: 32px; color: var(--c-powder); display: block; font-weight: 400;
}

/* ══════════════════════════════
   DOCTORS — HERO
══════════════════════════════ */
.doc-hero {
  height: 100vh;
  min-height: 520px;
  max-height: 1080px;
  padding-top: 72px;
  background: var(--c-navy);
  display: grid; grid-template-columns: 1fr 1fr;
  overflow: hidden;
  box-sizing: border-box;
}
.doc-hero-left {
  display: flex; flex-direction: column; justify-content: center;
  padding: 24px 56px 24px max(32px, calc((100vw - 1220px) / 2 + 32px));
  margin-left: auto; max-width: 660px; width: 100%;
  box-sizing: border-box;
}
.eyebrow-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(181,206,223,0.1);
  border: 1px solid rgba(181,206,223,0.22);
  color: var(--c-steel); font-size: 11px; font-weight: 600;
  letter-spacing: 0; padding: 7px 16px; border-radius: 40px;
  margin-bottom: 28px; width: fit-content; text-transform: uppercase;
}
.eyebrow-tag.sage {
  background: rgba(114,168,141,0.1);
  border-color: rgba(114,168,141,0.22);
  color: var(--c-sage);
}
.eyebrow-tag.navy {
  background: rgba(26,44,61,0.08);
  border-color: rgba(26,44,61,0.18);
  color: var(--c-navy);
}
.eyebrow-tag [data-lucide] { width: 12px; height: 12px; }
.doc-h1 {
  font-family: var(--font-serif);
  font-size: 58px; line-height: 1.06; color: var(--c-cream);
  margin-bottom: 20px; letter-spacing: 0; font-weight: 500;
}
.doc-h1 em { color: var(--c-steel); font-style: italic; }
.doc-h1 em.sage { color: var(--c-sage); }
.doc-sub {
  font-size: 16px; color: rgba(181,206,223,0.62);
  line-height: 1.8; margin-bottom: 36px; max-width: 440px;
}
.doc-hero-right { position: relative; overflow: hidden; min-height: 100%; }
.doc-hero-photo { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.doc-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, var(--c-navy) 0%, rgba(26,44,61,0.55) 30%, transparent 60%);
}
.doc-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.pill {
  background: rgba(181,206,223,0.1);
  border: 1px solid rgba(181,206,223,0.2);
  color: rgba(181,206,223,0.75);
  font-size: 12px; padding: 6px 14px; border-radius: 40px;
}

/* ══════════════════════════════
   SERVICES 2×2 GRID
══════════════════════════════ */
.doc-services-wrap { background: var(--c-cream); padding: 84px 0; }

.services-grid-2x2 {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; background: transparent;
  border-radius: 0; overflow: visible;
  box-shadow: none;
}
.srv-cell {
  background: var(--c-white); padding: 30px;
  position: relative; overflow: hidden;
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  transition: border-color .25s, box-shadow .25s, transform .25s;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.srv-cell:hover { border-color: rgba(58,106,144,0.34); box-shadow: var(--sh-md); transform: translateY(-2px); }
.srv-cell:first-child,
.srv-cell:nth-child(2),
.srv-cell:nth-child(3),
.srv-cell:last-child { border-radius: var(--r-xl); }

.srv-num {
  font-family: var(--font-serif);
  font-size: 60px; font-weight: 400; line-height: 1;
  color: rgba(58,106,144,0.18); position: absolute; top: 18px; right: 24px;
  transition: color .25s; user-select: none;
}
.srv-cell:hover .srv-num { color: var(--c-powder); }

.srv-img-wrap {
  border-radius: var(--r-md); overflow: hidden;
  margin-bottom: 20px; height: 172px;
  background: var(--c-surface);
}
.srv-icon-img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transition: transform .45s ease;
}
.srv-cell:hover .srv-icon-img { transform: scale(1.04); }
.srv-cell-title {
  font-family: var(--font-serif);
  font-size: 22px; margin-bottom: 8px; color: var(--c-text); font-weight: 500;
}
.srv-cell-desc { font-size: 13px; color: var(--c-mid); line-height: 1.65; margin-bottom: 16px; }
.srv-cell-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.srv-cell-tag {
  background: var(--c-ivory); color: var(--c-taupe);
  font-size: 10px; font-weight: 600; letter-spacing: 0;
  padding: 4px 10px; border-radius: 40px; text-transform: uppercase;
}
.srv-price-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto;
  padding-top: 16px; border-top: 1px solid var(--c-border2);
}
.srv-price-val { font-size: 18px; font-weight: 600; color: var(--c-powder); }
.btn-srv {
  background: var(--c-text); color: var(--c-cream);
  padding: 9px 18px; border-radius: var(--r-sm);
  font-size: 12px; font-weight: 600; border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background .2s; font-family: var(--font-sans);
}
.btn-srv [data-lucide] { width: 13px; height: 13px; }
.btn-srv:hover { background: var(--c-powder); }

/* ══════════════════════════════
   NOTION TEMPLATES
══════════════════════════════ */
.notion-wrap { background: var(--c-ivory); padding: 84px 0; }
.notion-cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-top: 40px;
}
.notion-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg); overflow: hidden;
  transition: transform .3s, box-shadow .3s, border-color .3s;
  cursor: pointer;
  display: flex; flex-direction: column;
}
.notion-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-lg);
  border-color: var(--c-powder);
}
.notion-card-img { width: 100%; height: 156px; object-fit: cover; }
.notion-card-body { padding: 22px 20px; display: flex; flex-direction: column; flex-grow: 1; }
.notion-card-title {
  font-family: var(--font-serif);
  font-size: 18px; color: var(--c-text); margin-bottom: 8px; font-weight: 500;
}
.notion-card-desc { font-size: 12px; color: var(--c-mid); line-height: 1.65; margin-bottom: 16px; }
.notion-card-feats {
  font-size: 11px; color: var(--c-light);
  line-height: 2.1; margin-bottom: 18px;
}
.notion-price { font-size: 20px; font-weight: 700; color: var(--c-powder); margin-top: auto; margin-bottom: 14px; }
.notion-old { font-size: 12px; color: var(--c-light); text-decoration: line-through; margin-left: 6px; font-weight: 400; }
.btn-notion {
  width: 100%; padding: 11px;
  border-radius: var(--r-sm); font-size: 12px; font-weight: 600; cursor: pointer;
  background: var(--c-cream); border: 1.5px solid var(--c-border); color: var(--c-text);
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: all .2s; font-family: var(--font-sans);
}
.btn-notion [data-lucide] { width: 13px; height: 13px; }
.btn-notion:hover { background: var(--c-powder); border-color: var(--c-powder); color: var(--c-white); }

.notion-card.combo-card {
  border-color: rgba(201,169,110,0.35);
  background: linear-gradient(160deg, var(--c-cream) 0%, var(--c-linen) 100%);
}
.notion-card.combo-card:hover { border-color: var(--c-gold); }
.notion-card.combo-card .notion-price { color: var(--c-gold); }
.notion-card.combo-card .btn-notion {
  background: rgba(201,169,110,0.1);
  border-color: rgba(201,169,110,0.35);
  color: var(--c-gold);
}
.notion-card.combo-card .btn-notion:hover {
  background: var(--c-gold); border-color: var(--c-gold); color: #1A1400;
}
.combo-badge {
  background: var(--c-gold); color: #1A1400;
  font-size: 10px; font-weight: 700; letter-spacing: 0;
  padding: 4px 10px; border-radius: 40px;
  display: inline-block; margin-bottom: 10px; text-transform: uppercase;
}

/* ══════════════════════════════
   CLUB — DOCTOR'S INNER CIRCLE
══════════════════════════════ */
.club-wrap {
  background: var(--c-navy);
  padding: 88px 0;
  position: relative; overflow: hidden;
}
.club-glow-1 {
  position: absolute; top: -160px; right: -160px;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(181,206,223,0.09) 0%, transparent 70%);
  pointer-events: none;
}
.club-glow-2 {
  position: absolute; bottom: -200px; left: -80px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,110,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.club-inner { max-width: 900px; margin: 0 auto; text-align: center; position: relative; padding: 0 52px; }
.club-badge-tag {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid rgba(181,206,223,0.28);
  color: var(--c-steel); font-size: 11px; font-weight: 600; letter-spacing: 0;
  padding: 8px 22px; border-radius: 40px; margin-bottom: 32px; text-transform: uppercase;
}
.club-badge-tag [data-lucide] { width: 12px; height: 12px; }
.club-h2 {
  font-family: var(--font-serif);
  font-size: 52px; line-height: 1.1; color: var(--c-cream);
  margin-bottom: 18px; font-weight: 500; letter-spacing: 0;
}
.club-h2 span { color: var(--c-gold); font-style: italic; }
.club-p {
  font-size: 16px; color: rgba(181,206,223,0.62);
  line-height: 1.8; margin-bottom: 56px; max-width: 600px;
  margin-left: auto; margin-right: auto;
}
.club-perks-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 14px; margin-bottom: 52px;
}
.perk {
  background: rgba(181,206,223,0.06);
  border: 1px solid rgba(181,206,223,0.12);
  border-radius: var(--r-lg); padding: 28px 24px; text-align: left;
  transition: border-color .25s, background .25s;
}
.perk:hover {
  background: rgba(181,206,223,0.1);
  border-color: rgba(181,206,223,0.2);
}
.perk-icon {
  width: 40px; height: 40px;
  background: rgba(181,206,223,0.1);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; color: var(--c-steel);
}
.perk-icon [data-lucide] { width: 20px; height: 20px; stroke-width: 1.5; }
.perk-t { font-size: 14px; font-weight: 600; color: var(--c-cream); margin-bottom: 8px; }
.perk-d { font-size: 13px; color: rgba(181,206,223,0.58); line-height: 1.65; }

.club-plans {
  display: flex; align-items: stretch;
  background: rgba(181,206,223,0.06);
  border: 1px solid rgba(181,206,223,0.12);
  border-radius: var(--r-lg); overflow: hidden; margin-bottom: 36px;
}
.club-plan-col {
  flex: 1; padding: 32px 28px; text-align: center;
  border-right: 1px solid rgba(181,206,223,0.12);
  position: relative;
  transition: all 0.3s ease;
}
.club-plan-col:last-child { border-right: none; }
.club-plan-col.best { background: rgba(201,169,110,0.08); }
.club-plan-col.active {
  background: rgba(201,169,110,0.15);
  box-shadow: inset 0 0 0 2px var(--c-gold);
}
.best-tag {
  position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  background: var(--c-gold); color: #1A1400;
  font-size: 9px; font-weight: 700; letter-spacing: 0;
  padding: 5px 14px; border-radius: 0 0 8px 8px; text-transform: uppercase;
}
.plan-name {
  font-size: 10px; letter-spacing: 0; color: rgba(181,206,223,0.48);
  margin-bottom: 12px; text-transform: uppercase;
}
.plan-price {
  font-family: var(--font-serif);
  font-size: 40px; color: var(--c-cream); line-height: 1; font-weight: 400;
}
.plan-price span { color: var(--c-gold); font-size: 22px; }
.plan-period { font-size: 12px; color: rgba(181,206,223,0.45); margin-top: 8px; }
.btn-join {
  background: var(--c-gold); color: #1A1400;
  padding: 16px 56px; border-radius: var(--r-md);
  font-size: 15px; font-weight: 700; border: none; cursor: pointer;
  letter-spacing: 0; display: inline-flex; align-items: center; gap: 10px;
  transition: all .2s; font-family: var(--font-sans);
}
.btn-join [data-lucide] { width: 18px; height: 18px; }
.btn-join:hover {
  background: var(--c-gold2); transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(201,169,110,0.35);
}

/* ══════════════════════════════
   PRICING
══════════════════════════════ */
.pricing-wrap { background: var(--c-white); padding: 84px 0; }
.pricing-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 40px; align-items: stretch; }
.price-card {
  background: var(--c-cream); border-radius: var(--r-xl);
  padding: 34px 28px; border: 1px solid var(--c-border);
  position: relative; overflow: hidden;
  transition: box-shadow .3s, transform .3s;
  display: flex; flex-direction: column;
}
.price-card:hover { box-shadow: var(--sh-md); transform: translateY(-2px); border-color: rgba(58,106,144,0.24); }
.price-card.featured { background: var(--c-navy); border-color: transparent; }
.price-card-badge {
  position: absolute; top: -1px; right: 28px;
  background: var(--c-steel); color: var(--c-navy);
  font-size: 10px; font-weight: 700; letter-spacing: 0;
  padding: 6px 18px; border-radius: 0 0 12px 12px; text-transform: uppercase;
}
.price-tier     { font-size: 10px; letter-spacing: 0; color: var(--c-light); margin-bottom: 10px; font-weight: 600; text-transform: uppercase; }
.price-tier.lf  { color: rgba(255,255,255,0.42); }
.price-name     { font-family: var(--font-serif); font-size: 28px; color: var(--c-text); margin-bottom: 24px; font-weight: 500; }
.price-name.lf  { color: var(--c-white); }
.price-amt      { font-size: 44px; font-weight: 700; color: var(--c-powder); line-height: 1; }
.price-amt.lf   { color: var(--c-gold); }
.price-period   { font-size: 13px; color: var(--c-light); margin: 6px 0 28px; }
.price-period.lf{ color: rgba(255,255,255,0.42); }
.price-divider  { height: 1px; background: var(--c-border); margin-bottom: 24px; }
.price-divider.lf { background: rgba(255,255,255,0.1); }
.price-list { list-style: none; margin-bottom: 32px; }
.price-list li {
  font-size: 13px; color: var(--c-mid);
  padding: 8px 0; border-bottom: 1px solid var(--c-border2);
  display: flex; align-items: center; gap: 10px;
}
.price-list.lf li { color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.08); }
.check-icon { display: inline-flex; flex-shrink: 0; }
.check-icon [data-lucide] { width: 15px; height: 15px; color: var(--c-sage); stroke-width: 2.5; }
.price-list.lf .check-icon [data-lucide] { color: var(--c-gold); }
.btn-price {
  width: 100%; padding: 14px;
  border-radius: var(--r-md); font-size: 14px; font-weight: 600;
  cursor: pointer; border: none; letter-spacing: 0;
  transition: all .2s; font-family: var(--font-sans);
  margin-top: auto;
}
.btn-price.def { background: var(--c-ivory); color: var(--c-text); border: 1.5px solid var(--c-border); }
.btn-price.def:hover { background: var(--c-warm); }
.btn-price.featured-btn { background: var(--c-gold); color: #1A1400; }
.btn-price.featured-btn:hover { background: var(--c-gold2); }

/* ══════════════════════════════
   PATIENTS — HERO
══════════════════════════════ */
.pat-hero {
  height: 100vh;
  min-height: 520px;
  max-height: 1080px;
  padding-top: 72px;
  background: var(--c-navy);
  display: grid; grid-template-columns: 55% 45%;
  overflow: hidden;
  box-sizing: border-box;
}
.pat-hero-left {
  display: flex; flex-direction: column; justify-content: center;
  padding: 24px 56px 24px max(32px, calc((100vw - 1220px) / 2 + 32px)); position: relative;
  margin-left: auto; max-width: 660px; width: 100%;
  box-sizing: border-box;
}
.pat-hero-accent-line {
  width: 48px; height: 2px;
  background: var(--c-sage);
  margin-bottom: 28px; border-radius: 2px;
}
.pat-hero-right {
  position: relative; overflow: hidden; min-height: 100%;
}
.pat-hero-img-single {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 5%;
}
.pat-hero-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, var(--c-navy) 0%, rgba(26,44,61,0.55) 28%, transparent 60%);
}
/* Floating trust badge on patients hero */
.pat-hero-badge {
  position: absolute; bottom: 48px; right: 40px;
  background: rgba(255,255,255,0.93);
  border: 1px solid var(--c-border);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-radius: var(--r-md); padding: 18px 22px;
  box-shadow: var(--sh-md); text-align: center; min-width: 180px;
}
.pat-badge-icon {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(114,168,141,0.15); margin: 0 auto 10px;
  color: var(--c-sage2);
}
.pat-badge-icon [data-lucide] { width: 18px; height: 18px; }
.pat-badge-val {
  font-family: var(--font-serif);
  font-size: 26px; color: var(--c-text); line-height: 1; font-weight: 400;
}
.pat-badge-lbl { font-size: 11px; color: var(--c-mid); margin-top: 4px; }

/* Desktop-only: keep patients hero inside visible viewport and crop image bottom */
@media (min-width: 861px) {
  #page-patients .pat-hero {
    height: calc(100vh - 72px);
    min-height: 0;
    max-height: calc(100vh - 72px);
  }

  #page-patients .pat-hero-right {
    min-height: 0;
  }

  #page-patients .pat-hero-img-single {
    object-position: center top;
  }
}

/* ══════════════════════════════
   WHO I HELP
══════════════════════════════ */
.who-wrap { background: var(--c-cream); padding: 84px 0; }
.who-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-top: 40px; }
.who-card {
  border-radius: var(--r-xl); overflow: hidden;
  position: relative; height: 390px; cursor: pointer;
  box-shadow: var(--sh-sm);
}
.who-card:hover .who-card-img { transform: scale(1.06); }
.who-card:hover .who-arrow { opacity: 1; transform: translateY(0); }
.who-card-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  transition: transform .55s ease;
}
.who-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,44,61,0.97) 0%, rgba(26,44,61,0.5) 45%, rgba(26,44,61,0.08) 100%);
  padding: 26px 24px;
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: background .3s;
}
.who-chip {
  background: rgba(181,206,223,0.22);
  backdrop-filter: blur(8px);
  color: rgba(255,255,255,0.96); font-size: 10px; font-weight: 600;
  letter-spacing: 0; padding: 5px 13px; border-radius: 40px;
  width: fit-content; margin-bottom: 12px; text-transform: uppercase;
  border: 1px solid rgba(181,206,223,0.28);
}
.who-title {
  font-family: var(--font-serif);
  font-size: 23px; color: var(--c-cream); margin-bottom: 10px;
  line-height: 1.2; font-weight: 500;
}
.who-points { font-size: 12px; color: rgba(181,206,223,0.72); line-height: 1.95; margin-bottom: 16px; }
.who-arrow {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(181,206,223,0.18); border: 1px solid rgba(181,206,223,0.32);
  color: var(--c-cream); opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s, transform .3s;
}
.who-arrow [data-lucide] { width: 16px; height: 16px; }

/* Touch devices: always show arrow + stronger overlay so content is readable without hover */
@media (pointer: coarse) {
  .who-arrow {
    opacity: 1;
    transform: translateY(0);
  }
  .who-card-overlay {
    background: linear-gradient(to top,
      rgba(26,44,61,0.97) 0%,
      rgba(26,44,61,0.65) 50%,
      rgba(26,44,61,0.15) 100%);
  }
  .who-points { opacity: 1; }
}

/* ══════════════════════════════
   CONSULTATIONS
══════════════════════════════ */
.consult-wrap { background: var(--c-white); padding: 84px 0; }
.consult-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 40px; }
.cons-card {
  border-radius: var(--r-xl); padding: 32px 28px;
  border: 1px solid var(--c-border); background: var(--c-cream);
  transition: border-color .25s, box-shadow .25s, transform .25s;
  display: flex; flex-direction: column; height: 100%;
}
.cons-card:hover { border-color: rgba(58,106,144,0.34); box-shadow: var(--sh-md); transform: translateY(-2px); }
.cons-card.highlight { background: var(--c-navy); border-color: transparent; }
.cons-num {
  font-family: var(--font-serif); font-size: 56px;
  color: var(--c-stone); line-height: 1; margin-bottom: 16px; font-weight: 400;
}
.cons-num.lf { color: rgba(181,206,223,0.12); }
.cons-title {
  font-family: var(--font-serif); font-size: 22px;
  color: var(--c-text); margin-bottom: 10px; font-weight: 500;
}
.cons-title.lf { color: var(--c-cream); }
.cons-desc { font-size: 13px; color: var(--c-mid); line-height: 1.65; margin-bottom: 14px; }
.cons-desc.lf { color: rgba(181,206,223,0.62); }
.cons-meta {
  font-size: 12px; color: var(--c-light); margin-bottom: 22px;
  display: flex; align-items: center; gap: 7px;
}
.cons-meta.lf { color: rgba(181,206,223,0.48); }
.cons-meta [data-lucide] { width: 13px; height: 13px; flex-shrink: 0; }
.cons-meta b { color: var(--c-powder); font-weight: 600; }
.cons-meta.lf b { color: var(--c-gold); }
.cons-price { font-size: 32px; font-weight: 700; color: var(--c-powder); margin-bottom: 22px; letter-spacing: 0; margin-top: auto; }
.cons-price.lf { color: var(--c-gold); }
.btn-cons {
  width: 100%; padding: 13px;
  border-radius: var(--r-md); font-size: 13px; font-weight: 600;
  cursor: pointer; border: none; transition: all .2s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans);
}
.btn-cons [data-lucide] { width: 15px; height: 15px; }
.btn-cons.def { background: var(--c-ivory); color: var(--c-text); border: 1.5px solid var(--c-border); }
.btn-cons.def:hover { background: var(--c-warm); border-color: var(--c-stone); }
.btn-cons.gold { background: var(--c-gold); color: #1A1400; }
.btn-cons.gold:hover { background: var(--c-gold2); }

/* ══════════════════════════════
   CALENDAR & BOOKING
══════════════════════════════ */
.cal-wrap { background: var(--c-ivory); padding: 84px 0; }
.cal-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 28px; margin-top: 40px; align-items: start;
}
.cal-main {
  display: grid;
  gap: 16px;
}

/* Input with leading icon */
.fi-wrap { position: relative; }
.fi-icon {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: var(--c-light); pointer-events: none; display: flex;
  transition: color .2s;
}
.fi-icon [data-lucide] { width: 15px; height: 15px; stroke-width: 1.75; }
.fi-wrap .fi { padding-left: 40px; }
.fi-wrap:focus-within .fi-icon { color: var(--c-powder); }
.cal-widget {
  background: var(--c-white); border-radius: var(--r-xl);
  border: 1px solid var(--c-border); overflow: hidden; box-shadow: var(--sh-sm);
}
.cal-head {
  background: var(--c-navy); padding: 22px 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.cal-month-lbl {
  font-family: var(--font-serif);
  font-size: 20px; color: var(--c-cream); font-weight: 400;
}
.cal-nav {
  background: rgba(181,206,223,0.14); border: none; color: var(--c-cream);
  width: 36px; height: 36px; border-radius: 8px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.cal-nav:hover { background: rgba(181,206,223,0.24); }
.cal-nav [data-lucide] { width: 18px; height: 18px; }
.cal-wk-row {
  display: grid; grid-template-columns: repeat(7,1fr);
  background: var(--c-ivory); padding: 12px 20px 10px;
  border-bottom: 1px solid var(--c-border2);
}
.cal-wk { font-size: 10px; font-weight: 600; color: var(--c-light); text-align: center; text-transform: uppercase; letter-spacing: 0; }
.cal-grid {
  display: grid; grid-template-columns: repeat(7,1fr);
  gap: 2px; padding: 12px 16px 18px;
}
.cal-d {
  height: 46px; display: flex; align-items: center; justify-content: center;
  font-size: 13px; border-radius: 8px; cursor: pointer; color: var(--c-mid);
  position: relative; transition: all .15s;
  font-weight: 400;
}
.cal-d:hover:not(.cal-empty) { background: var(--c-ivory); color: var(--c-text); }
.cal-d.cal-active {
  background: var(--c-navy); color: var(--c-cream);
  font-weight: 600; box-shadow: 0 4px 12px rgba(26,44,61,0.25);
}
.cal-d.cal-free::after {
  content: ''; position: absolute; bottom: 5px;
  width: 4px; height: 4px; background: var(--c-sage); border-radius: 50%;
}
.cal-d.cal-empty { opacity: 0; cursor: default; pointer-events: none; }
.cal-d.cal-disabled { opacity: 0.35; cursor: not-allowed; pointer-events: none; background: transparent; color: var(--c-mid); }
.cal-d.cal-disabled::after { content: none; }
.cal-d.cal-today { color: var(--c-powder); font-weight: 600; }
.cal-legend { display: flex; gap: 20px; padding: 14px 20px; border-top: 1px solid var(--c-border); }
.cal-legend-item { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--c-mid); }
.cal-dot { width: 7px; height: 7px; border-radius: 50%; }

.slot-panel {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: 22px;
  box-shadow: var(--sh-sm);
}
.slot-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}
.slot-kicker {
  font-size: 10px;
  color: var(--c-sage2);
  font-weight: 700;
  text-transform: uppercase;
}
.slot-title {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--c-text);
  margin-top: 4px;
}
.slot-date {
  color: var(--c-mid);
  font-size: 13px;
  white-space: nowrap;
}
.slot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.slot-btn {
  border: 1.5px solid var(--c-border);
  background: var(--c-white);
  color: var(--c-text);
  border-radius: var(--r-sm);
  padding: 12px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: border-color .2s, background .2s, color .2s, box-shadow .2s;
}
.slot-btn:hover {
  border-color: var(--c-stone);
  background: var(--c-surface);
}
.slot-btn.active {
  background: var(--c-navy);
  border-color: var(--c-navy);
  color: var(--c-white);
  box-shadow: 0 8px 20px rgba(26,44,61,0.18);
}
.slot-btn [data-lucide] { width: 15px; height: 15px; }
.slot-note {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--c-light);
  font-size: 12px;
  margin-top: 14px;
}
.slot-note [data-lucide] { width: 14px; height: 14px; }

.book-form {
  background: var(--c-white); border-radius: var(--r-xl);
  border: 1px solid var(--c-border); padding: 32px 28px; box-shadow: var(--sh-sm);
}
.book-form h3 {
  font-family: var(--font-serif);
  font-size: 22px; color: var(--c-text); margin-bottom: 24px; font-weight: 500;
}
.fg { margin-bottom: 16px; }
.fl {
  font-size: 10px; letter-spacing: 0; font-weight: 600;
  color: var(--c-light); margin-bottom: 8px; display: block; text-transform: uppercase;
}
.fi {
  width: 100%; padding: 12px 14px; border-radius: var(--r-sm);
  border: 1.5px solid var(--c-border); font-family: var(--font-sans);
  font-size: 13px; color: var(--c-text); outline: none;
  transition: border-color .2s, box-shadow .2s; background: var(--c-cream);
}
.fi:focus {
  border-color: var(--c-powder); background: var(--c-white);
  box-shadow: 0 0 0 3px rgba(77,126,165,0.1);
}
.fi-wrap.is-invalid .fi {
  border-color: #d06b6b;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(208,107,107,0.14);
}
.booking-summary {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--c-surface);
  border: 1px solid var(--c-border2);
  border-radius: var(--r-sm);
  color: var(--c-mid);
  font-size: 13px;
  padding: 12px 14px;
  margin-bottom: 16px;
}
.booking-summary [data-lucide] {
  width: 15px;
  height: 15px;
  color: var(--c-powder);
}
.booking-summary b {
  color: var(--c-navy);
  font-weight: 700;
}
.btn-submit {
  width: 100%; background: var(--c-navy); color: var(--c-cream);
  padding: 14px; border-radius: var(--r-md); font-size: 14px;
  font-weight: 600; border: none; cursor: pointer; margin-top: 6px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all .2s; font-family: var(--font-sans);
}
.btn-submit [data-lucide] { width: 16px; height: 16px; }
.btn-submit:hover { background: var(--c-powder); }
.btn-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn-submit:disabled:hover {
  background: var(--c-navy);
}
.checkout-terms-lbl.is-invalid {
  color: #b34a4a !important;
}
.form-note {
  font-size: 11px; color: var(--c-light); text-align: center; margin-top: 12px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.form-note [data-lucide] { width: 12px; height: 12px; }

/* ══════════════════════════════
   COLLABORATION
══════════════════════════════ */
.collab-wrap { background: var(--c-cream); padding: 84px 0; }
.collab-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.collab-card {
  background: var(--c-white); border: 1px solid var(--c-border);
  border-radius: var(--r-xl); padding: 34px 30px;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.collab-card:hover { border-color: rgba(58,106,144,0.34); box-shadow: var(--sh-md); transform: translateY(-2px); }
.collab-num {
  font-family: var(--font-serif); font-size: 60px;
  color: var(--c-stone); line-height: 1; margin-bottom: 16px; font-weight: 400;
  transition: color .25s;
}
.collab-card:hover .collab-num { color: var(--c-powder); }
.collab-title {
  font-family: var(--font-serif); font-size: 22px;
  color: var(--c-text); margin-bottom: 10px; font-weight: 500;
}
.collab-desc { font-size: 13px; color: var(--c-mid); line-height: 1.75; margin-bottom: 22px; }
.btn-collab {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--c-ivory); border: 1.5px solid var(--c-border);
  color: var(--c-text); padding: 10px 22px; border-radius: var(--r-sm);
  font-size: 13px; font-weight: 500; cursor: pointer;
  transition: all .2s; font-family: var(--font-sans);
}
.btn-collab [data-lucide] { width: 14px; height: 14px; transition: transform .2s; }
.btn-collab:hover { background: var(--c-steel); border-color: var(--c-steel); color: var(--c-navy); }
.btn-collab:hover [data-lucide] { transform: translateX(2px); }

/* ══════════════════════════════
   PATIENT CASES
══════════════════════════════ */
.cases-wrap { background: var(--c-ivory); padding: 84px 0; border-top: 1px solid var(--c-border); }
.cases-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.case-card {
  background: var(--c-white); border: 1px solid var(--c-border);
  border-radius: var(--r-xl); padding: 34px 30px;
  transition: border-color .25s, box-shadow .25s, transform .25s;
  display: flex; flex-direction: column; justify-content: space-between;
  height: 100%; box-sizing: border-box;
}
.case-card:hover { border-color: rgba(58,106,144,0.34); box-shadow: var(--sh-md); transform: translateY(-2px); }
.case-card-head { margin-bottom: 16px; }
.case-card-title {
  font-family: var(--font-serif); font-size: 22px;
  color: var(--c-text); margin-bottom: 12px; font-weight: 500;
}
.case-card-excerpt { font-size: 13px; color: var(--c-mid); line-height: 1.75; margin-bottom: 24px; }
.btn-case {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--c-cream); border: 1.5px solid var(--c-border);
  color: var(--c-text); padding: 10px 22px; border-radius: var(--r-sm);
  font-size: 13px; font-weight: 500; cursor: pointer; align-self: flex-start;
  transition: all .2s; font-family: var(--font-sans);
  margin-top: auto;
}
.btn-case [data-lucide] { width: 14px; height: 14px; transition: transform .2s; }
.btn-case:hover { background: var(--c-sage); border-color: var(--c-sage); color: var(--c-white); }
.btn-case:hover [data-lucide] { transform: translateX(2px); }

/* Collaboration Modal */
.collab-modal-backdrop {
  position: fixed; inset: 0; background: rgba(26,44,61,0.65);
  backdrop-filter: none; -webkit-backdrop-filter: none;
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; padding: 20px;
  animation: modalFadeIn .25s ease;
}
@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.collab-modal-box {
  background: var(--c-white); border-radius: var(--r-xl);
  border: 1px solid var(--c-border); width: 100%; max-width: 520px;
  padding: 40px; position: relative; box-shadow: var(--sh-md);
  animation: modalScaleIn .25s ease;
}
@keyframes modalScaleIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.collab-modal-close {
  position: absolute; top: 24px; right: 24px;
  background: var(--c-ivory); border: 1px solid var(--c-border);
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--c-mid); transition: all .2s;
}
.collab-modal-close:hover { background: var(--c-navy); color: var(--c-cream); border-color: var(--c-navy); }
.collab-modal-head { margin-bottom: 28px; }
.collab-modal-h3 {
  font-family: var(--font-serif); font-size: 28px; color: var(--c-text);
  margin: 10px 0 12px; font-weight: 500;
}
.collab-modal-desc { font-size: 13.5px; color: var(--c-mid); line-height: 1.65; }
.collab-modal-form { display: flex; flex-direction: column; gap: 20px; }

/* Checkout Modal */
.checkout-modal-backdrop {
  position: fixed; inset: 0; background: rgba(26,44,61,0.65);
  backdrop-filter: none; -webkit-backdrop-filter: none;
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; padding: 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: opacity;
  animation: modalFadeIn .25s ease;
}
.checkout-modal-box {
  background: var(--c-white); border-radius: var(--r-xl);
  border: 1px solid var(--c-border); width: 100%; max-width: 520px;
  padding: 40px; position: relative; box-shadow: var(--sh-md);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  transform: translateZ(0);
  backface-visibility: hidden;
  animation: modalScaleIn .25s ease;
}
.checkout-modal-close {
  position: absolute; top: 20px; right: 24px;
  background: var(--c-ivory); border: 1px solid var(--c-border);
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--c-mid); transition: all .2s;
}
.checkout-modal-close:hover { background: var(--c-navy); color: var(--c-cream); border-color: var(--c-navy); }
.checkout-modal-head { margin-bottom: 28px; }
.checkout-modal-h3 {
  font-family: var(--font-serif); font-size: 28px; color: var(--c-text);
  margin: 10px 0 12px; font-weight: 500;
}
.checkout-modal-desc { font-size: 13.5px; color: var(--c-mid); line-height: 1.65; }
.checkout-modal-form { display: flex; flex-direction: column; gap: 20px; }
.checkout-price-badge {
  background: var(--c-surface); border: 1px solid var(--c-border2);
  padding: 14px 18px; border-radius: var(--r-sm);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px; color: var(--c-text); font-weight: 600;
}
.checkout-price-badge span { font-size: 22px; color: var(--c-powder); font-weight: 700; }
.checkout-method-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checkout-method-lbl {
  border: 1.5px solid var(--c-border); padding: 14px; border-radius: var(--r-sm);
  display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all .2s; background: var(--c-white);
}
.checkout-method-lbl:hover { border-color: var(--c-powder); background: var(--c-white); }
.checkout-method-lbl input:checked + div { color: var(--c-powder); }
.checkout-method-lbl:has(input:checked) {
  border-color: var(--c-powder); background: var(--c-white);
  box-shadow: 0 0 0 3px rgba(77,126,165,0.1);
}

body.modal-open {
  overflow: hidden;
}

/* ══════════════════════════════
   DIGITAL PRODUCTS
   ══════════════════════════════ */

.products-wrap { background: var(--c-ivory); padding: 84px 0; }
.products-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-top: 40px; }
.prod-card {
  background: var(--c-white); border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid var(--c-border);
  transition: box-shadow .3s, transform .3s;
  display: flex; flex-direction: column; height: 100%; box-sizing: border-box;
}
.prod-card:hover { box-shadow: var(--sh-md); transform: translateY(-2px); }
.prod-img { width: 100%; height: 184px; object-fit: cover; object-position: top; flex-shrink: 0; }
.prod-chip {
  display: inline-block; margin: 14px 16px 6px;
  background: rgba(114,168,141,0.12); color: var(--c-sage2);
  font-size: 10px; font-weight: 600; letter-spacing: 0;
  padding: 4px 10px; border-radius: 40px; text-transform: uppercase;
  align-self: flex-start; flex-shrink: 0;
}
.prod-body {
  padding: 4px 16px 22px; flex: 1; display: flex; flex-direction: column; justify-content: space-between;
}
.prod-foot { margin-top: auto; }
.prod-name {
  font-family: var(--font-serif); font-size: 17px;
  color: var(--c-text); margin-bottom: 8px; line-height: 1.35; font-weight: 500;
}
.prod-note { font-size: 12px; color: var(--c-mid); line-height: 1.65; margin-bottom: 14px; }
.prod-price { font-size: 24px; font-weight: 700; color: var(--c-sage2); margin-bottom: 14px; }
.btn-prod {
  width: 100%; background: var(--c-navy); color: var(--c-cream);
  padding: 11px; border-radius: var(--r-sm); font-size: 12px;
  font-weight: 600; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: background .2s; font-family: var(--font-sans);
}
.btn-prod [data-lucide] { width: 13px; height: 13px; }
.btn-prod:hover { background: var(--c-sage2); }

/* ══════════════════════════════
   HOMEPAGE EXPANSION SECTIONS
   ══════════════════════════════ */

/* ── 1. Triage Bento Grid ── */
.triage-wrap {
  background: var(--c-surface);
  padding: 96px 0;
}

/* Mode Switcher */
.mode-switcher-wrap {
  display: flex;
  justify-content: center;
  margin: 40px 0 20px;
}
.mode-switcher {
  background: var(--c-stone);
  padding: 6px;
  border-radius: 50px;
  display: inline-flex;
  gap: 8px;
}
.switcher-btn {
  background: transparent;
  border: none;
  padding: 14px 32px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--c-navy);
  border-radius: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}
.switcher-btn:hover {
  color: var(--c-navy);
  background: rgba(255,255,255,0.4);
}
.switcher-btn.active {
  background: var(--c-white);
  color: var(--c-navy);
  box-shadow: var(--sh-sm);
}
.triage-grid.switched {
  grid-template-columns: 1fr;
  max-width: 840px;
  margin: 30px auto 0;
}
.switcher-pane {
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: translateY(10px);
}
.switcher-pane.active {
  opacity: 1;
  transform: translateY(0);
}

/* Blog Filter Tabs */
.filter-tab.active {
  background: var(--c-navy) !important;
  color: var(--c-white) !important;
  border-color: var(--c-navy) !important;
  box-shadow: var(--sh-sm);
}
.filter-tab:hover:not(.active) {
  background: var(--c-surface);
}

.triage-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 44px;
}
.triage-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: 48px;
  box-shadow: var(--sh-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.35s ease, transform 0.35s ease;
  height: 100%; box-sizing: border-box;
}
.triage-card:hover {
  box-shadow: var(--sh-md);
  transform: translateY(-2px);
}
.triage-card.sage-theme {
  border-top: 4px solid var(--c-sage);
}
.triage-card.navy-theme {
  border-top: 4px solid var(--c-navy);
}
.triage-card-head { margin-bottom: 36px; }
.triage-card-title {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 500;
  color: var(--c-text);
  margin-bottom: 12px;
  line-height: 1.2;
}
.triage-card-desc {
  font-size: 16px;
  color: var(--c-mid);
  line-height: 1.65;
}
.triage-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
  margin-top: auto;
}
.triage-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: var(--c-ivory);
  border: 1px solid var(--c-border2);
  border-radius: var(--r-lg);
  color: var(--c-text);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}
.triage-item a:hover {
  background: var(--c-white);
  border-color: var(--c-powder);
  color: var(--c-navy);
  box-shadow: var(--sh-sm);
  transform: translateX(4px);
}
.triage-item a [data-lucide] {
  width: 18px;
  height: 18px;
  color: var(--c-sage);
  transition: transform 0.25s ease;
}
.triage-item a:hover [data-lucide] {
  transform: translateX(3px);
}

/* ── 2. Lead Magnet Banner ── */
.lead-wrap {
  background: linear-gradient(145deg, var(--c-navy) 0%, #111e29 100%);
  color: var(--c-cream);
  padding: 84px 0;
  position: relative;
  overflow: hidden;
}
.lead-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  position: relative;
  z-index: 2;
}
.lead-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-radius: var(--r-xl);
  padding: 44px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
  display: flex; flex-direction: column; justify-content: space-between;
  height: 100%; box-sizing: border-box;
}
.lead-card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--c-powder);
  margin-bottom: 14px;
}
.lead-card-title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 500;
  color: var(--c-white);
  margin-bottom: 14px;
  line-height: 1.25;
}
.lead-card-desc {
  font-size: 15px;
  color: rgba(233, 241, 248, 0.75);
  margin-bottom: 28px;
  line-height: 1.65;
}
.lead-form {
  display: flex;
  gap: 8px;
  margin-top: auto;
}
.lead-form.lead-form-toggle {
  flex-direction: column;
  gap: 12px;
}
.lead-fields {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.lead-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--r-md);
  padding: 14px 18px;
  color: var(--c-white);
  font-size: 15px;
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.lead-input::placeholder { color: rgba(255, 255, 255, 0.45); }
.lead-input:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--c-powder);
}
.lead-btn {
  background: var(--c-sage);
  color: var(--c-white);
  border: none;
  border-radius: var(--r-md);
  padding: 0 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.25s ease, transform 0.15s ease;
}
.lead-btn:hover { background: #5f9579; transform: translateY(-1px); }

/* ── 3. FAQ Accordion ── */
.faq-wrap {
  background: var(--c-white);
  padding: 96px 0;
}
.faq-grid {
  max-width: 860px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq-item {
  background: var(--c-ivory);
  border: 1px solid var(--c-border2);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.faq-item.active {
  background: var(--c-white);
  border-color: var(--c-powder);
  box-shadow: var(--sh-sm);
}
.faq-head {
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}
.faq-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.4;
  padding-right: 16px;
}
.faq-toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--c-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-navy);
  flex-shrink: 0;
  transition: transform 0.35s ease, background 0.35s ease;
}
.faq-toggle [data-lucide] { width: 16px; height: 16px; }
.faq-item.active .faq-toggle {
  transform: rotate(180deg);
  background: var(--c-navy);
  color: var(--c-white);
}
.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
}
.faq-item.active .faq-body {
  max-height: 1000px;
  transition: max-height 0.6s ease-in-out;
}
.faq-content {
  padding: 0 28px 28px;
  font-size: 16px;
  color: var(--c-mid);
  line-height: 1.75;
}

/* ── Responsive Overrides for Homepage Expansion ── */
@media (max-width: 920px) {
  .triage-grid,
  .lead-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .triage-card { padding: 36px 28px; }
  .lead-card { padding: 36px 28px; }
  .lead-form { flex-direction: column; }
  .lead-form.lead-form-toggle { gap: 10px; }
  .lead-fields { flex-direction: column; gap: 10px; }
  .lead-toggle { width: 100%; }
  .lead-toggle-btn { flex: 1; justify-content: center; }
  .lead-btn { padding: 16px; justify-content: center; }
  .faq-head { padding: 20px 22px; }
  .faq-title { font-size: 16px; }
  .faq-content { padding: 0 22px 22px; font-size: 15px; }
}

/* ══════════════════════════════
   FOOTER

══════════════════════════════ */
footer {
  background: var(--c-navy);
  border-top: 1px solid rgba(181,206,223,0.12);
  padding: 64px 0 44px;
}
footer .container {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
}
.f-logo {
  font-family: var(--font-serif);
  font-size: 24px; color: var(--c-cream); margin-bottom: 14px; font-weight: 500;
}
.f-logo em { color: var(--c-steel); font-style: italic; }
.f-desc { font-size: 13px; color: rgba(181,206,223,0.48); line-height: 1.8; }
.f-contact {
  margin-top: 20px; display: flex; flex-direction: column; gap: 10px;
}
.f-contact-item {
  display: flex; align-items: center; gap: 9px;
  font-size: 13px; color: var(--c-steel);
}
.f-contact-item [data-lucide] { width: 14px; height: 14px; flex-shrink: 0; }
.f-col h5 {
  font-size: 10px; letter-spacing: 0; font-weight: 600;
  color: rgba(181,206,223,0.45); margin-bottom: 18px; text-transform: uppercase;
}
.f-col ul { list-style: none; }
.f-col ul li { margin-bottom: 10px; }
.f-col ul a {
  font-size: 13px; color: rgba(181,206,223,0.66);
  text-decoration: none; transition: color .2s;
  display: inline-flex; align-items: center; gap: 6px;
}
.f-col ul a:hover { color: var(--c-cream); }
.f-col ul a [data-lucide] { width: 12px; height: 12px; opacity: 0.5; }
.f-bottom {
  grid-column: 1/-1; padding-top: 32px;
  border-top: 1px solid rgba(181,206,223,0.12);
  font-size: 12px; color: rgba(181,206,223,0.38);
  display: flex; justify-content: space-between; align-items: center;
}
.f-bottom a { color: rgba(181,206,223,0.58); text-decoration: none; }
.f-bottom a:hover { color: rgba(181,206,223,0.82); }
.f-bottom-center { opacity: 0.55; letter-spacing: 0.01em; }
.f-bottom-center a { color: rgba(181,206,223,0.75); text-decoration: none; border-bottom: 1px solid rgba(181,206,223,0.25); }
.f-bottom-center a:hover { color: var(--c-cream); border-bottom-color: rgba(181,206,223,0.55); }

/* ══════════════════════════════
   RESPONSIVE SYSTEM
══════════════════════════════ */
@media (max-width: 1180px) {
  .container {
    max-width: 100%;
    padding-left: 28px;
    padding-right: 28px;
  }

  .home-hero,
  .doc-hero,
  .pat-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    height: auto;
    max-height: none;
  }

  .home-left,
  .doc-hero-left,
  .pat-hero-left {
    max-width: none;
    padding: 104px 28px 52px;
  }

  .home-right,
  .doc-hero-right,
  .pat-hero-right {
    min-height: 500px;
  }

  .home-photo-overlay,
  .doc-hero-overlay,
  .pat-hero-img-overlay {
    background: linear-gradient(to top, rgba(26,44,61,0.18), transparent 45%);
  }

  .services-grid-2x2,
  .notion-cards,
  .who-grid,
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing-cards,
  .consult-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cal-layout {
    grid-template-columns: 1fr;
  }

  .slot-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .navbar {
    height: 72px;
  }

  .navbar .container {
    gap: 12px;
    flex-wrap: nowrap;
    padding-top: 0;
    padding-bottom: 0;
  }

  .nav-actions {
    margin-left: auto;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 28px;
    right: 28px;
    z-index: 1000;
    width: auto;
    padding: 8px;
    overflow: visible;
    justify-content: stretch;
    flex-direction: column;
    background: rgba(255,255,255,0.98);
    border: 1px solid var(--c-border);
    box-shadow: var(--sh-md);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link {
    flex: none;
    width: 100%;
    text-align: left;
    white-space: nowrap;
    padding: 12px 14px;
  }

  .nav-cta {
    padding: 9px 14px;
  }

  .home-left,
  .doc-hero-left,
  .pat-hero-left {
    padding-top: 84px;
  }

  .home-h1 {
    font-size: 52px;
  }

  .doc-h1 {
    font-size: 48px;
  }

  .sec-h2 {
    font-size: 38px;
  }

  .doc-services-wrap,
  .notion-wrap,
  .club-wrap,
  .pricing-wrap,
  .who-wrap,
  .consult-wrap,
  .cal-wrap,
  .collab-wrap,
  .products-wrap {
    padding: 68px 0;
  }

  .pricing-cards,
  .consult-cards,
  .club-perks-grid,
  .collab-grid {
    grid-template-columns: 1fr;
  }

  .price-card,
  .cons-card,
  .collab-card {
    padding: 28px 24px;
  }

  footer .container {
    grid-template-columns: 1fr 1fr;
  }

  .f-bottom {
    gap: 12px;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 620px) {
  .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .nav-logo img {
    height: 36px;
  }

  /* Keep short label visible — never kill primary CTA text on mobile */
  .nav-cta {
    font-size: 12px;
    padding: 9px 12px;
    gap: 5px;
  }
  .nav-cta .nav-cta-full { display: none; }
  .nav-cta .nav-cta-short { display: inline; }

  .nav-cta [data-lucide] {
    width: 14px;
    height: 14px;
  }

  .nav-links {
    left: 18px;
    right: 18px;
  }

  .home-left,
  .doc-hero-left,
  .pat-hero-left {
    padding-left: 18px;
    padding-right: 18px;
    padding-bottom: 40px;
  }

  .home-h1 {
    font-size: 43px;
  }

  .doc-h1 {
    font-size: 40px;
  }

  .sec-h2 {
    font-size: 34px;
    line-height: 1.12;
  }

  .sec-desc {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .home-sub {
    font-size: 15px;
    margin-bottom: 34px;
  }

  .home-stats {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .home-right,
  .doc-hero-right,
  .pat-hero-right {
    min-height: 420px;
  }

  .home-badge {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  .home-tag-card,
  .pat-hero-badge {
    right: 18px;
    top: 18px;
    bottom: auto;
  }

  .services-grid-2x2,
  .notion-cards,
  .who-grid,
  .products-grid {
    grid-template-columns: 1fr;
  }

  .srv-cell,
  .notion-card-body,
  .book-form,
  .collab-card {
    padding: 24px 20px;
  }

  .srv-img-wrap,
  .notion-card-img,
  .prod-img {
    height: 180px;
  }

  .who-card {
    height: 340px;
  }

  .club-inner {
    padding: 0 18px;
  }

  .club-plans {
    display: grid;
  }

  .club-plan-col {
    border-right: none;
    border-bottom: 1px solid rgba(181,206,223,0.12);
  }

  .club-plan-col:last-child {
    border-bottom: none;
  }

  .cal-head {
    padding: 18px;
  }

  .cal-grid {
    padding: 10px;
  }

  .cal-d {
    height: 40px;
  }

  .slot-panel {
    padding: 18px;
  }

  .slot-head {
    display: block;
  }

  .slot-date {
    margin-top: 4px;
  }

  .slot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  footer .container {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ══════════════════════════════════════════
   PREMIUM UI ENHANCEMENT LAYER
   California Design Refresh — v2
══════════════════════════════════════════ */

/* ── Keyframes ── */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes badgeFloat {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}
@keyframes orbPulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.1); }
}

/* ── Navbar: scroll-aware enhancement ── */
.navbar { transition: background 0.35s ease, box-shadow 0.35s ease; }
.navbar.is-scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 1px 0 rgba(26,44,61,0.07), 0 4px 32px rgba(26,44,61,0.09);
}
.nav-logo { transition: opacity 0.2s ease; }
.nav-logo:hover { opacity: 0.75; }

/* Gradient CTA */
.nav-cta {
  background: linear-gradient(135deg, var(--c-sage) 0%, var(--c-powder) 100%);
  color: #fff;
  box-shadow: 0 2px 12px rgba(58,106,144,0.22);
}
.nav-cta:hover {
  background: linear-gradient(135deg, var(--c-sage2) 0%, #1e3d5c 100%);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(58,106,144,0.32);
}

/* ── Per-button contextual hover states (preserving each button's own color identity) ── */
/* Each variant darkens within its OWN color family — no universal override */

/* Default / steel buttons */
.btn-price.def:hover { background: var(--c-warm); border-color: var(--c-stone); color: var(--c-text); }
/* Submit / navy buttons */
.btn-submit:hover    { background: var(--c-powder); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(58,106,144,0.28); }
/* Product cards — navy button */
.btn-prod:hover      { background: var(--c-sage2); color: #fff; transform: translateY(-1px); }
/* Service cells — dark button */
.btn-srv:hover       { background: var(--c-powder); color: #fff; }
/* Collaboration / case buttons */
.btn-collab:hover, .btn-case:hover { background: var(--c-steel); border-color: var(--c-steel); color: var(--c-navy); }

/* Focus-visible: use outline, not color override */
.btn-primary:focus-visible,
.btn-srv:focus-visible,
.btn-notion:focus-visible,
.btn-join:focus-visible,
.btn-price:focus-visible,
.btn-cons:focus-visible,
.btn-submit:focus-visible,
.btn-collab:focus-visible,
.btn-prod:focus-visible {
  outline: 3px solid var(--c-powder);
  outline-offset: 3px;
}

/* Active (pressed) — slight scale-down, no color override */
.btn-primary:active,
.btn-srv:active,
.btn-notion:active,
.btn-join:active,
.btn-price:active,
.btn-cons:active,
.btn-submit:active,
.btn-collab:active,
.btn-prod:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 8px rgba(58,106,144,0.18);
}

/* ── Single service/article page polish ── */
.single-service-hero {
  background: var(--c-navy);
  padding: 84px 0 64px;
  color: var(--c-cream);
}
.single-service-eyebrow {
  color: var(--c-gold);
  margin-bottom: 16px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.1em;
  width: fit-content;
  border: 1px solid rgba(181,206,223,0.22);
  background: rgba(181,206,223,0.07);
  border-radius: 999px;
}
.single-service-title {
  font-family: var(--font-serif);
  font-size: 64px;
  margin-bottom: 24px;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--c-white);
  max-width: 100%;
}
.single-service-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.single-service-tag {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--c-white);
}
.single-service-meta {
  font-size: 20px;
  margin-bottom: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 16px 0;
}
.single-service-price { color: var(--c-gold); font-weight: 700; }
.single-service-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.single-service-cta-main,
.single-service-cta-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--r-sm);
  font-size: 16px;
  font-weight: 600;
  transition: background .2s, transform .15s, box-shadow .2s, color .2s, border-color .2s;
}
.single-service-cta-back {
  border: 1px solid rgba(181,206,223,0.44);
  color: var(--c-cream);
  background: rgba(181,206,223,0.06);
}
@media (hover: hover) and (pointer: fine) {
  .single-service-cta-back:hover {
    background: linear-gradient(135deg, var(--c-sage2) 0%, #1e3d5c 100%);
    border-color: transparent;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(58,106,144,0.32);
  }
}
.single-service-cta-back:focus-visible {
  background: linear-gradient(135deg, var(--c-sage2) 0%, #1e3d5c 100%);
  border-color: transparent;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(58,106,144,0.32);
}
.single-consult-hero {
  background: var(--c-navy);
  padding: 84px 0 64px;
  color: var(--c-cream);
}
.single-consult-eyebrow {
  color: var(--c-sage);
  margin-bottom: 16px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.1em;
  width: fit-content;
  border: 1px solid rgba(181,206,223,0.22);
  background: rgba(181,206,223,0.07);
  border-radius: 999px;
}
.single-consult-title {
  font-family: var(--font-serif);
  font-size: 64px;
  margin-bottom: 24px;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--c-white);
  max-width: 100%;
}
.single-consult-meta {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 16px;
  margin-bottom: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 16px 0;
}
.single-consult-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(233,241,248,0.9);
}
.single-consult-meta-item i[data-lucide] {
  width: 18px;
  height: 18px;
  color: var(--c-sage);
}
.single-consult-meta-item b { color: var(--c-white); }
.single-service-content-wrap {
  background: var(--c-ivory);
  padding: 72px 0 88px;
}
.single-service-container {
  max-width: 920px;
  margin: 0 auto;
}
.single-service-content {
  background: var(--c-white);
  padding: 52px 56px;
  border-radius: var(--r-xl);
  border: 1px solid var(--c-border);
  box-shadow: var(--sh-sm);
  font-size: 18px;
  line-height: 1.85;
  color: var(--c-text);
}
.single-service-content h2,
.single-service-content h3 {
  font-family: var(--font-serif);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--c-text);
}
.single-service-content h2 { font-size: 42px; margin: 0 0 18px; }
.single-service-content h3 { font-size: 28px; margin: 34px 0 14px; }
.single-service-content p { margin: 0 0 18px; color: #2b3743; }
.single-service-content ul,
.single-service-content ol { margin: 0 0 22px 1.2em; }
.single-service-content li { margin: 0 0 10px; }
.single-service-content strong { color: #1f2b36; }
.single-service-content a {
  color: var(--c-powder);
  text-underline-offset: 3px;
}
.single-service-bottom-cta {
  margin-top: 40px;
  text-align: center;
}
@media (max-width: 860px) {
  .single-service-hero { padding: 72px 0 52px; }
  .single-service-title { font-size: 48px; line-height: 1.1; }
  .single-consult-hero { padding: 72px 0 52px; }
  .single-consult-title { font-size: 48px; line-height: 1.1; }
  .single-consult-meta { gap: 16px; }
  .single-service-content { padding: 36px 28px; font-size: 17px; line-height: 1.8; }
  .single-service-content h2 { font-size: 34px; }
  .single-service-content h3 { font-size: 24px; }
}
@media (max-width: 620px) {
  .single-service-title { font-size: 38px; }
  .single-consult-title { font-size: 38px; }
  .single-service-actions > a { width: 100%; justify-content: center; }
  .single-consult-meta { font-size: 15px; }
  .single-service-content { padding: 28px 20px; font-size: 16px; }
  .single-service-content h2 { font-size: 30px; }
  .single-service-content h3 { font-size: 22px; }
}

/* Crisper active nav link */
.nav-link.active {
  color: var(--c-navy);
  background: #fff;
  font-weight: 700;
  box-shadow: 0 1px 8px rgba(26,44,61,0.10), 0 0 0 1px rgba(26,44,61,0.04);
}

/* ── Home Hero ── */
.home-hero {
  background: linear-gradient(155deg, #f3f7fb 0%, #ffffff 45%, #f8fafd 100%);
  position: relative;
}

/* Ambient orb behind copy */
.home-left { position: relative; }
.home-left::before {
  content: '';
  position: absolute;
  top: -150px; left: -120px;
  width: 580px; height: 580px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(114,168,141,0.065) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}
.home-left > * { position: relative; z-index: 1; }

/* Pill eyebrow (replaces line + text) */
.home-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(58,106,144,0.07);
  border: 1px solid rgba(58,106,144,0.15);
  color: var(--c-powder);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 7px 18px;
  border-radius: 100px;
  margin-bottom: 18px;
  width: fit-content;
  text-transform: uppercase;
}
.home-eyebrow::before { display: none; } /* remove old decorative line */
.home-eyebrow [data-lucide] { width: 12px; height: 12px; }

/* H1 — larger, gradient italic */
.home-h1 {
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}
.home-h1 em {
  background: linear-gradient(125deg, var(--c-powder) 20%, var(--c-sage) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: italic;
}

/* Subtitle and CTAs tighter spacing to ensure stats fit */
.home-sub {
  margin-bottom: 28px;
  line-height: 1.65;
}
.home-ctas {
  margin-bottom: 28px;
}

/* Stats row */
.home-stats {
  border-top-color: rgba(26,44,61,0.07);
  padding-top: 22px;
  gap: 16px;
}
.stat-val {
  font-size: clamp(30px, 3.2vw, 38px);
  letter-spacing: -0.025em;
}
.stat-lbl {
  margin-top: 4px;
}

/* ── Floating Badges ── */
.home-badge {
  background: rgba(255,255,255,0.97);
  border: 1px solid rgba(255,255,255,0.75);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  box-shadow: 0 12px 40px rgba(26,44,61,0.13), 0 0 0 1px rgba(26,44,61,0.04);
  border-radius: 18px;
  animation: badgeFloat 4.2s ease-in-out infinite;
}
.home-tag-card {
  background: rgba(255,255,255,0.97);
  border: 1px solid rgba(255,255,255,0.75);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  box-shadow: 0 12px 40px rgba(26,44,61,0.13), 0 0 0 1px rgba(26,44,61,0.04);
  border-radius: 18px;
  animation: badgeFloat 3.9s 0.7s ease-in-out infinite;
}
.tag-card-num { font-size: 34px; color: var(--c-sage2); }

/* ── Doctors Hero ── */
.doc-hero { position: relative; overflow: hidden; }

/* Orb decorations (added via PHP) */
.doc-hero-orb-1,
.doc-hero-orb-2 {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.doc-hero-orb-1 {
  top: -110px; left: -90px;
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(181,206,223,0.1) 0%, transparent 65%);
  animation: orbPulse 7s ease-in-out infinite;
}
.doc-hero-orb-2 {
  bottom: -130px; left: 160px;
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(201,169,110,0.08) 0%, transparent 65%);
  animation: orbPulse 9s 2.5s ease-in-out infinite;
}
.doc-hero-left { position: relative; z-index: 1; }

/* Doctors H1 scale-up */
.doc-h1 {
  font-size: clamp(40px, 4.8vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

/* Refined pills */
.pill {
  background: rgba(181,206,223,0.08);
  border: 1px solid rgba(181,206,223,0.26);
  color: rgba(181,206,223,0.82);
  font-size: 12px;
  font-weight: 500;
  padding: 7px 18px;
  border-radius: 100px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.pill:hover {
  background: rgba(181,206,223,0.14);
  border-color: rgba(181,206,223,0.44);
  color: var(--c-steel);
}

/* ── Patients Hero ── */
.pat-hero-accent-line {
  width: 44px;
  height: 3px;
  background: linear-gradient(90deg, var(--c-sage) 0%, rgba(114,168,141,0.2) 100%);
  border-radius: 3px;
}
.pat-hero-badge {
  background: rgba(255,255,255,0.97);
  border: 1px solid rgba(255,255,255,0.75);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  box-shadow: 0 12px 40px rgba(26,44,61,0.15), 0 0 0 1px rgba(26,44,61,0.04);
  border-radius: 18px;
  animation: badgeFloat 4s 0.4s ease-in-out infinite;
}

/* ── Button enhancements ── */
.btn-primary.sage {
  background: linear-gradient(135deg, var(--c-sage) 0%, var(--c-sage2) 100%);
  color: #fff;
  box-shadow: 0 2px 14px rgba(114,168,141,0.28);
}
.btn-primary.sage:hover {
  background: linear-gradient(135deg, var(--c-sage2) 0%, #3f7059 100%);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(114,168,141,0.40);
}
.btn-primary.gold {
  background: linear-gradient(135deg, #d4b576 0%, var(--c-gold2) 100%);
  color: #1a1400;
  box-shadow: 0 2px 14px rgba(201,169,110,0.26);
}
.btn-primary.gold:hover {
  background: linear-gradient(135deg, #dbbf82 0%, #c49a30 100%);
  color: #1a1400;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,169,110,0.40);
}
.btn-ghost-dark {
  border-color: rgba(181,206,223,0.34);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ── Eyebrow tag polish ── */
.eyebrow-tag {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 8px 18px;
}

/* ── Hero entrance animations ── */
.home-left  > *:nth-child(1) { animation: heroFadeUp 0.7s 0.05s both ease; }
.home-left  > *:nth-child(2) { animation: heroFadeUp 0.7s 0.15s both ease; }
.home-left  > *:nth-child(3) { animation: heroFadeUp 0.7s 0.25s both ease; }
.home-left  > *:nth-child(4) { animation: heroFadeUp 0.7s 0.35s both ease; }
.home-left  > *:nth-child(5) { animation: heroFadeUp 0.7s 0.45s both ease; }
.home-right                   { animation: heroFadeUp 0.8s 0.08s both ease; }

.doc-hero-left  > *:nth-child(1) { animation: heroFadeUp 0.7s 0.05s both ease; }
.doc-hero-left  > *:nth-child(2) { animation: heroFadeUp 0.7s 0.15s both ease; }
.doc-hero-left  > *:nth-child(3) { animation: heroFadeUp 0.7s 0.25s both ease; }
.doc-hero-left  > *:nth-child(4) { animation: heroFadeUp 0.7s 0.35s both ease; }
.doc-hero-left  > *:nth-child(5) { animation: heroFadeUp 0.7s 0.45s both ease; }
.doc-hero-right                   { animation: heroFadeUp 0.8s 0.08s both ease; }

.pat-hero-left  > *:nth-child(1) { animation: heroFadeUp 0.7s 0.05s both ease; }
.pat-hero-left  > *:nth-child(2) { animation: heroFadeUp 0.7s 0.15s both ease; }
.pat-hero-left  > *:nth-child(3) { animation: heroFadeUp 0.7s 0.25s both ease; }
.pat-hero-left  > *:nth-child(4) { animation: heroFadeUp 0.7s 0.35s both ease; }
.pat-hero-left  > *:nth-child(5) { animation: heroFadeUp 0.7s 0.45s both ease; }
.pat-hero-right                   { animation: heroFadeUp 0.8s 0.08s both ease; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .home-left > *, .home-right,
  .doc-hero-left > *, .doc-hero-right,
  .pat-hero-left > *, .pat-hero-right,
  .home-badge, .home-tag-card, .pat-hero-badge {
    animation: none !important;
  }
}

/* ══════════════════════════════════════════
   HERO PADDING & ALIGNMENT SYSTEM FIX
══════════════════════════════════════════ */

/*
 * Root problem: hero containers had padding-top:72px AND left panels
 * had another padding-top:72px — stacking to 144px on desktop.
 * At 1180px breakpoint: container still 72px + panel jumped to 104px = 176px. Jumpy.
 * Fix: strip padding-top from containers entirely. All vertical offset
 * now lives only in the left panel — one source of truth, no doubling.
 * Guarantee stats fit in viewport by using min-height:100vh and height:auto.
 */

/* 1 — Ensure hero containers adapt to content while filling screen */
.home-hero,
.doc-hero,
.pat-hero {
  padding-top: 0;
  min-height: 100vh;
  height: auto;
  max-height: none;
}

/* 2 — Left panels own the full offset: navbar(72) + breathing = 144px */
.home-left,
.doc-hero-left,
.pat-hero-left {
  padding-top: 144px;
}

/* 3 — Standardise column splits so the left content edge lines up
        exactly with .container on every page.
        home: keep slight asymmetry (photo is the hero); doc/pat: 50/50 */
.doc-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.pat-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

/* 4 — Right-side photo columns must fill the full hero height from
        the very top (navbar floats over them — glass effect). */
.home-right,
.doc-hero-right,
.pat-hero-right {
  min-height: 100%;
}

/* 5 — Responsive: clean taper, no double-stacking */
@media (max-width: 1180px) {
  /* single-column stack — panel owns all spacing */
  .home-hero,
  .doc-hero,
  .pat-hero {
    padding-top: 0;
  }
  .home-left,
  .doc-hero-left,
  .pat-hero-left {
    padding-top: 124px;
  }
}

@media (max-width: 860px) {
  .home-left,
  .doc-hero-left,
  .pat-hero-left {
    padding-top: 112px;
  }
}

@media (max-width: 620px) {
  .home-left,
  .doc-hero-left,
  .pat-hero-left {
    padding-top: 100px;
  }
}

/* ══════════════════════════════════════════
   TABLET & MOBILE HERO — FULL OVERHAUL
══════════════════════════════════════════ */

/* ── 1. Single-column: restore responsive grid (cascade fix) ── */
@media (max-width: 1180px) {
  .home-hero,
  .doc-hero,
  .pat-hero {
    grid-template-columns: 1fr; /* single column — always wins */
  }
}

/* ── 2. Tablet 860–1180px: stacked hero styling ── */
@media (max-width: 1180px) {
  /* Photo panels: good height, not too tall */
  .home-right,
  .doc-hero-right,
  .pat-hero-right {
    min-height: 420px;
    max-height: 500px;
  }

  .doc-hero-right { max-height: 768px; }

  /* Home photo overlay: fade top & bottom for stacked layout */
  .home-photo-overlay {
    background:
      linear-gradient(to bottom, rgba(255,255,255,0.55) 0%, transparent 30%),
      linear-gradient(to top,   rgba(255,255,255,0.55) 0%, transparent 40%);
  }

  /* Dark hero overlays: vignette at top/bottom for stacked */
  .doc-hero-overlay,
  .pat-hero-img-overlay {
    background:
      linear-gradient(to bottom, rgba(26,44,61,0.6) 0%, transparent 40%),
      linear-gradient(to top,    rgba(26,44,61,0.45) 0%, transparent 35%);
  }

  /* Typography */
  .home-h1 { font-size: 52px; }
  .doc-h1  { font-size: 48px; }
  .stat-val { font-size: 32px; }
}

/* ── 3. Mobile ≤860px ── */
@media (max-width: 860px) {
  .home-right,
  .doc-hero-right,
  .pat-hero-right {
    min-height: 340px;
    max-height: 420px;
  }

  /* Typography */
  .home-h1 { font-size: 44px; letter-spacing: -0.02em; }
  .doc-h1  { font-size: 40px; letter-spacing: -0.02em; }
  .stat-val { font-size: 28px; }

  /* Hero left: less bottom padding when stacked */
  .home-left,
  .doc-hero-left,
  .pat-hero-left {
    padding-bottom: 40px;
  }

  /* Floating badges: pull in from edges */
  .home-badge  { left: 20px;  bottom: 20px; }
  .home-tag-card { right: 20px; top: 20px; }
  .pat-hero-badge { right: 20px; bottom: 20px; }
}

/* ── 4. Small mobile ≤620px ── */
@media (max-width: 620px) {
  .home-right,
  .doc-hero-right,
  .pat-hero-right {
    min-height: 270px;
    max-height: 340px;
  }

  /* Typography */
  .home-h1 { font-size: 34px; line-height: 1.08; letter-spacing: -0.02em; }
  .doc-h1  { font-size: 32px; line-height: 1.08; letter-spacing: -0.02em; }
  .stat-val { font-size: 24px; letter-spacing: -0.02em; }
  .stat-lbl { font-size: 11px; }

  /* Home stats: compact 3-col stays readable */
  .home-stats { gap: 14px; padding-top: 24px; }

  /* Trust badge: reflow to static in-flow position below CTAs (never hide social proof) */
  .home-tag-card {
    display: flex;
    position: static;
    width: fit-content;
    margin-top: 16px;
    animation: none;
    top: auto; right: auto;
    text-align: left;
    padding: 10px 16px;
    justify-content: flex-start;
  }
  .tag-card-num { font-size: 26px; margin-right: 8px; }

  /* Eyebrows: slightly smaller */
  .home-eyebrow { font-size: 9.5px; padding: 6px 14px; }
  .eyebrow-tag  { font-size: 9.5px; padding: 6px 14px; }

  /* Pills: tighter, smaller */
  .doc-pills { gap: 6px; margin-bottom: 28px; }
  .pill { font-size: 11px; padding: 6px 13px; }

  /* Hero left: minimal padding so content breathes */
  .home-left,
  .doc-hero-left,
  .pat-hero-left {
    padding-bottom: 32px;
  }

  /* CTAs: stack full-width on very small screens */
  .home-ctas {
    flex-direction: column;
    gap: 10px;
  }
  .home-ctas .btn-primary,
  .home-ctas .btn-ghost {
    width: 100%;
    justify-content: center;
  }

  /* Accent line: tighter spacing */
  .pat-hero-accent-line { margin-bottom: 16px; }

  /* Badge: more compact */
  .home-badge { padding: 12px 16px; gap: 10px; }
  .pat-hero-badge { padding: 14px 18px; }
}

/* ══════════════════════════════════════════
   HERO VERTICAL ALIGNMENT — CONTENT ANCHOR
══════════════════════════════════════════ */
/*
 * Root cause: justify-content:center shifts content down as the hero gets
 * taller (grid row stretches to match the photo column height). At a 900px+
 * hero the "center" ends up at ~280-340px from the top — visually low.
 *
 * Fix: pin all hero left panels to flex-start. Content always starts at
 * exactly padding-top (144px) = 72px below the navbar, independent of
 * how tall the hero or viewport happens to be.
 */
.home-left,
.doc-hero-left,
.pat-hero-left {
  justify-content: flex-start;
}

/* ══════════════════════════════════════════
   FIX #7 — CARD MEDIA GALLERY (replaces inline styles in PHP)
══════════════════════════════════════════ */
.card-media-section {
  margin: 14px 0 0;
  border-top: 1px solid var(--c-border2);
  padding-top: 12px;
}
.card-media-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  color: var(--c-light);
  margin-bottom: 8px;
}
.card-media-label.sage  { color: var(--c-sage); }
.card-media-label.gold  { color: var(--c-gold); }
.card-media-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.card-media-scroll::-webkit-scrollbar { display: none; }
.card-media-thumb {
  flex: 0 0 auto;
  display: block;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid var(--c-border);
  width: 60px; height: 60px;
  transition: border-color .2s, transform .2s;
}
.card-media-thumb:hover { border-color: var(--c-powder); transform: scale(1.04); }
.card-media-thumb img {
  width: 60px; height: 60px;
  object-fit: cover;
  display: block;
}
.card-media-video {
  flex: 0 0 auto;
  width: 60px; height: 60px;
  background: #111;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.15);
  transition: background .2s, border-color .2s;
}
.card-media-video:hover { background: var(--c-navy2); border-color: rgba(255,255,255,0.3); }
.card-media-video [data-lucide] { width: 22px; height: 22px; }

/* ══════════════════════════════════════════
   FIX #8 — LEAD MAGNET TAB TOGGLE
══════════════════════════════════════════ */
.lead-toggle {
  display: flex;
  gap: 0;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--r-md);
  padding: 3px;
  margin-bottom: 14px;
  width: fit-content;
}
.lead-toggle-btn {
  background: transparent;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.55);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: calc(var(--r-md) - 3px);
  cursor: pointer;
  transition: background .2s, color .2s;
  font-family: var(--font-sans);
  letter-spacing: 0;
}
.lead-toggle-btn [data-lucide] {
  width: 14px;
  height: 14px;
  opacity: 0.9;
}
.lead-toggle-btn.active {
  background: rgba(255,255,255,0.15);
  color: #fff;
}
.lead-input.hidden { display: none; }
.lead-success {
  display: none;
  align-items: center;
  gap: 10px;
  background: rgba(74,222,128,0.12);
  border: 1px solid rgba(74,222,128,0.3);
  border-radius: var(--r-md);
  padding: 14px 18px;
  color: #a0e8b8;
  font-size: 14px;
  font-weight: 600;
  margin-top: auto;
}
.lead-success.visible { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.lead-success [data-lucide] { width: 18px; height: 18px; color: #4ade80; flex-shrink: 0; }

/* Download button shown after Telegram selection */
.lead-dl-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--c-navy);
  border: 1.5px solid rgba(255,255,255,0.5);
  padding: 10px 20px; border-radius: 8px;
  font-size: 14px; font-weight: 700; text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.lead-dl-btn:hover { background: var(--c-navy); color: #fff; }
.lead-dl-btn [data-lucide] { width: 16px; height: 16px; color: inherit; }

/* Inline error message */
.lead-error {
  font-size: 13px; color: #f87171;
  margin: 8px 0 0; padding: 0;
}

/* ══════════════════════════════════════════
   FIX #9 — BOOKING STEP INDICATOR (mobile)
══════════════════════════════════════════ */
.booking-stepper {
  display: none; /* shown only on mobile via media query below */
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 28px;
}
.step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--c-light);
}
.step-item.active { color: var(--c-sage2); }
.step-item.completed { color: var(--c-sage); }
.step-num {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2px solid var(--c-stone);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  transition: all .2s;
  flex-shrink: 0;
}
.step-item.active .step-num {
  background: var(--c-sage);
  border-color: var(--c-sage);
  color: #fff;
}
.step-item.completed .step-num {
  background: var(--c-sage2);
  border-color: var(--c-sage2);
  color: #fff;
}
.step-connector {
  width: 28px; height: 2px;
  background: var(--c-stone);
  flex-shrink: 0;
  margin: 0 4px;
}
.step-item.completed + .step-connector { background: var(--c-sage2); }

@media (max-width: 1180px) {
  .booking-stepper { display: flex; }
}

/* ══════════════════════════════════════════
   FIX #10 — PAYMENT LOGO NORMALIZATION
══════════════════════════════════════════ */
.payment-logo {
  height: 30px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
}
.payment-logo-mono { max-width: 165px; }
.payment-logo-liqpay {
  max-width: 168px;
  max-height: 34px;
  height: auto;
}
.checkout-method-lbl {
  min-height: 64px; /* fixed card height — all payment options equal weight */
}
.checkout-method-lbl img { pointer-events: none; }
.checkout-method-logo-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Checkout payment methods: desktop/tablet balanced, mobile stacked */
.checkout-method-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.checkout-method-lbl > div {
  width: 100%;
}

@media (max-width: 620px) {
  .checkout-modal-backdrop {
    padding: 10px;
  }
  .checkout-modal-box {
    padding: 18px;
    border-radius: 14px;
    max-width: 100%;
    max-height: calc(100vh - 20px);
  }
  .checkout-modal-head {
    margin-bottom: 14px;
  }
  .checkout-modal-h3 {
    font-size: 22px;
    line-height: 1.2;
  }
  .checkout-price-badge span {
    font-size: 18px;
  }
  .checkout-modal-form {
    gap: 14px;
  }
  .checkout-method-options {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .checkout-method-lbl {
    min-height: 58px;
    padding: 10px 12px;
  }
  .payment-logo {
    height: 26px;
    max-width: 138px;
  }
  .payment-logo-mono { max-width: 156px; }
  .payment-logo-liqpay {
    max-width: 152px;
    max-height: 30px;
  }
}

@media (max-width: 420px) {
  .checkout-modal-box {
    padding: 14px;
  }
  .checkout-modal-close {
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
  }
  .checkout-price-badge {
    padding: 12px 14px;
  }
  .checkout-method-lbl {
    min-height: 56px;
    padding: 10px;
  }
}

/* ══════════════════════════════════════════
   MOBILE POLISH — HERO + CASES
══════════════════════════════════════════ */
@media (max-width: 860px) {
  /* Cases: always full width (one card per row) */
  .cases-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* Hero stack rhythm: remove oversized vertical gap */
  .home-left,
  .doc-hero-left,
  .pat-hero-left {
    padding-top: 36px;
    padding-bottom: 24px;
  }

  .home-hero,
  .doc-hero,
  .pat-hero {
    min-height: auto;
  }

  .home-right,
  .doc-hero-right,
  .pat-hero-right {
    min-height: 300px;
    max-height: 360px;
  }

  .home-sub,
  .doc-sub {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 22px;
  }
}

@media (max-width: 620px) {
  /* Hero text + CTA: phone-first layout */
  .home-left,
  .doc-hero-left,
  .pat-hero-left {
    padding: 40px 18px 26px;
    max-width: 100%;
  }

  .home-h1,
  .doc-h1 {
    font-size: 38px;
    line-height: 1.1;
    margin-bottom: 18px;
    letter-spacing: 0;
  }

  .home-sub,
  .doc-sub {
    font-size: 15px;
    line-height: 1.72;
    max-width: none;
    margin-bottom: 24px;
  }

  .home-ctas {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 12px;
    margin-bottom: 22px;
  }

  .home-ctas .btn-primary,
  .home-ctas .btn-ghost,
  .home-ctas .btn-ghost-dark {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }

  .home-right,
  .doc-hero-right,
  .pat-hero-right {
    min-height: 280px;
    max-height: 330px;
  }

  /* Shift focus lower: trims top of photo so face is visible sooner */
  .home-photo {
    object-position: center 18%;
  }
  .pat-hero-img-single {
    object-position: center 30%;
  }
  .doc-hero-photo {
    object-position: center 28%;
  }

  /* Floating badges were visually noisy on narrow screens */
  .home-badge,
  .home-tag-card,
  .pat-hero-badge {
    display: none;
  }

  /* Cases: full-width cards and stronger readability */
  .cases-wrap {
    padding: 56px 0;
  }

  .cases-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 24px;
  }

  .case-card {
    width: 100%;
    border-radius: 14px;
    padding: 22px 18px;
  }

  .case-card-title {
    font-size: 22px;
    line-height: 1.24;
    margin-bottom: 10px;
  }

  .case-card-excerpt {
    font-size: 15px;
    line-height: 1.58;
    margin-bottom: 16px;
  }

  .btn-case {
    width: 100%;
    justify-content: center;
    min-height: 46px;
  }
}

/* ══════════════════════════════════════════
   ROUND 2 FIX — CASE BADGE TOKEN
══════════════════════════════════════════ */
.badge-case-patient {
  background: var(--c-linen);
  color: var(--c-text-muted);
  padding: 4px 10px;
  border-radius: var(--r-sm);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* ══════════════════════════════════════════
   ROUND 2 FIX — TOAST NOTIFICATION SYSTEM
══════════════════════════════════════════ */
.drj-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  z-index: 99999;
  padding: 14px 22px;
  border-radius: var(--r-md);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  max-width: min(420px, calc(100vw - 32px));
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
.drj-toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.drj-toast--success {
  background: #1a2e22;
  color: #a0e8b8;
  border: 1px solid rgba(74,222,128,.3);
}
.drj-toast--error {
  background: #2e1a1a;
  color: #fca5a5;
  border: 1px solid rgba(239,68,68,.3);
}
.drj-toast--info {
  background: var(--c-navy);
  color: var(--c-ivory);
  border: 1px solid rgba(255,255,255,.12);
}
@media (max-width: 480px) {
  .drj-toast { bottom: 80px; font-size: 13px; padding: 12px 18px; }
}

/* ══════════════════════════════════════════
   PATIENTS HERO MEDIA-FRAME SYSTEM
   Patients page only. One source of truth for image crop per breakpoint.
══════════════════════════════════════════ */
#page-patients .pat-hero {
  --pat-nav-offset: 72px;
  --pat-photo-x: 62%;
  --pat-photo-y: 15%;
  overflow: hidden;
  isolation: isolate;
}

#page-patients .pat-hero-right {
  position: relative;
  overflow: hidden;
  background: var(--c-navy);
}

#page-patients .pat-hero-img-single {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pat-photo-x) var(--pat-photo-y);
  filter: saturate(1.04) contrast(1.02);
}

@media (min-width: 1181px) {
  #page-patients .pat-hero {
    grid-template-columns: minmax(440px, 50vw) minmax(0, 1fr);
    height: min(calc(100svh - var(--pat-nav-offset)), 760px);
    min-height: 0;
    max-height: none;
  }

  #page-patients .pat-hero-left {
    justify-content: center;
    min-height: 0;
    padding-top: clamp(44px, 7vh, 88px);
    padding-bottom: clamp(40px, 6vh, 76px);
  }

  #page-patients .pat-hero-right {
    height: 100%;
    min-height: 0;
    max-height: none;
  }

  #page-patients .pat-hero-right::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -86px;
    width: 190px;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
      90deg,
      var(--c-navy) 0%,
      rgba(20, 35, 52, 0.96) 24%,
      rgba(20, 35, 52, 0.62) 58%,
      rgba(20, 35, 52, 0) 100%
    );
    filter: blur(18px);
    transform: translateZ(0);
  }

  #page-patients .pat-hero-img-single {
    z-index: 0;
  }

  #page-patients .pat-hero-img-overlay {
    z-index: 2;
    background: linear-gradient(to right, var(--c-navy) 0%, rgba(26, 44, 61, 0.55) 30%, transparent 60%);
  }

  #page-patients .pat-hero-badge {
    z-index: 3;
  }
}

@media (min-width: 760px) and (max-width: 1180px) {
  #page-patients .pat-hero {
    grid-template-columns: 1fr;
    height: auto;
    min-height: auto;
    max-height: none;
  }

  #page-patients .pat-hero-left {
    padding-top: 116px;
    padding-bottom: 40px;
  }

  #page-patients .pat-hero-right {
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 16 / 9;
  }

  #page-patients .pat-hero-img-single {
    --pat-photo-x: 60%;
    --pat-photo-y: 11%;
  }

  #page-patients .pat-hero-img-overlay {
    background: linear-gradient(
      to top,
      rgba(20, 35, 52, 0.58) 0%,
      rgba(20, 35, 52, 0.22) 48%,
      rgba(20, 35, 52, 0.06) 100%
    );
  }
}

@media (max-width: 860px) {
  #page-patients {
    padding-top: 32px;
  }

  #page-patients .pat-hero {
    grid-template-columns: 1fr;
    height: auto;
    min-height: auto;
    max-height: none;
  }

  #page-patients .pat-hero-left {
    padding-top: 92px;
    padding-bottom: 32px;
  }

  #page-patients .pat-hero-right {
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 4 / 3;
  }

  #page-patients .pat-hero-img-single {
    --pat-photo-x: 60%;
    --pat-photo-y: 17%;
  }

  #page-patients .pat-hero-img-overlay {
    background: linear-gradient(
      to top,
      rgba(20, 35, 52, 0.54) 0%,
      rgba(20, 35, 52, 0.18) 52%,
      rgba(20, 35, 52, 0.04) 100%
    );
  }

  #page-patients .pat-hero-badge {
    right: 16px;
    bottom: 16px;
    min-width: 132px;
    padding: 13px 16px;
  }
}

@media (max-width: 620px) {
  #page-patients {
    padding-top: 36px;
  }

  #page-patients .pat-hero-left {
    padding-top: 78px;
    padding-bottom: 28px;
  }

  #page-patients .pat-hero-right {
    aspect-ratio: 1 / 0.92;
  }

  #page-patients .pat-hero-img-single {
    --pat-photo-x: 58%;
    --pat-photo-y: 18%;
  }

  #page-patients .pat-hero-badge {
    display: none;
  }
}

@media (max-width: 430px) {
  #page-patients .pat-hero-left {
    padding-top: 72px;
  }

  #page-patients .pat-hero-right {
    aspect-ratio: 1 / 0.94;
  }
}

/* ══════════════════════════════════════════
   HOME TABLET HERO MEDIA-FRAME SYSTEM
   Home page only. Treat tablets as their own layout, not oversized phones.
══════════════════════════════════════════ */
@media (min-width: 861px) and (max-width: 1180px) {
  body.home .home-hero,
  #page-home .home-hero {
    grid-template-columns: minmax(0, 47%) minmax(0, 53%);
    min-height: min(calc(100svh - 72px), 720px);
    height: auto;
    max-height: none;
    padding-top: 0;
    overflow: hidden;
    background: linear-gradient(112deg, var(--c-cream) 0%, var(--c-cream) 47%, var(--c-navy) 47%, var(--c-navy) 100%);
  }

  body.home .home-left,
  #page-home .home-left {
    justify-content: center;
    max-width: 580px;
    margin-left: auto;
    padding: 92px 34px 48px max(30px, calc((100vw - 1040px) / 2 + 30px));
  }

  body.home .home-copy {
    max-width: 500px;
  }

  body.home .home-h1,
  #page-home .home-h1 {
    font-size: clamp(46px, 5vw, 60px);
    line-height: 1.03;
    letter-spacing: 0;
    margin-bottom: 18px;
  }

  body.home .home-sub,
  #page-home .home-sub {
    max-width: 440px;
    margin-bottom: 26px;
  }

  body.home .hero-switch {
    margin-bottom: 28px;
  }

  body.home .home-stats,
  #page-home .home-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding-top: 22px;
  }

  body.home .home-right,
  #page-home .home-right {
    height: auto;
    min-height: min(calc(100svh - 72px), 720px);
    max-height: none;
  }

  body.home .home-photo,
  #page-home .home-photo {
    object-position: center 58%;
  }

  body.home .home-photo-overlay,
  #page-home .home-photo-overlay {
    background:
      linear-gradient(90deg, rgba(20, 35, 52, 0.8) 0%, rgba(20, 35, 52, 0.42) 35%, rgba(20, 35, 52, 0.06) 72%),
      linear-gradient(180deg, rgba(20, 35, 52, 0.16) 0%, rgba(20, 35, 52, 0.04) 38%, rgba(20, 35, 52, 0.18) 100%);
  }

  body.home .home-badge,
  #page-home .home-badge {
    right: 28px;
    bottom: 28px;
    left: auto;
    min-width: 154px;
    padding: 18px 20px;
  }

  body.home .home-tag-card,
  #page-home .home-tag-card {
    top: 28px;
    right: 28px;
  }
}

@media (min-width: 621px) and (max-width: 759px) {
  body.home .home-hero,
  #page-home .home-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    height: auto;
    max-height: none;
    padding-top: 0;
    overflow: hidden;
    background: var(--c-cream);
  }

  body.home .home-left,
  #page-home .home-left {
    justify-content: flex-start;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 96px 36px 34px;
  }

  body.home .home-copy {
    max-width: 590px;
  }

  body.home .home-h1,
  #page-home .home-h1 {
    max-width: 560px;
    font-size: clamp(44px, 7vw, 58px);
    line-height: 1.04;
    letter-spacing: 0;
    margin-bottom: 18px;
  }

  body.home .home-sub,
  #page-home .home-sub {
    max-width: 560px;
    margin-bottom: 24px;
  }

  body.home .hero-switch {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 480px;
    margin-bottom: 26px;
  }

  body.home .home-stats,
  #page-home .home-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding-top: 22px;
  }

  body.home .home-right,
  #page-home .home-right {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 16 / 8.5;
    background: var(--c-navy);
    overflow: hidden;
  }

  body.home .home-photo,
  #page-home .home-photo {
    object-position: center 16%;
  }

  body.home .home-photo-overlay,
  #page-home .home-photo-overlay {
    background:
      linear-gradient(90deg, rgba(20, 35, 52, 0.7) 0%, rgba(20, 35, 52, 0.28) 42%, rgba(20, 35, 52, 0.08) 100%),
      linear-gradient(0deg, rgba(20, 35, 52, 0.44) 0%, rgba(20, 35, 52, 0.08) 46%, rgba(20, 35, 52, 0.1) 100%);
  }

  body.home .home-badge,
  #page-home .home-badge {
    display: flex;
    left: auto;
    right: 24px;
    bottom: 24px;
    min-width: 150px;
    padding: 16px 18px;
  }

  body.home .home-tag-card,
  #page-home .home-tag-card {
    display: block;
    top: 22px;
    right: 24px;
    max-width: 190px;
  }
}

@media (min-width: 760px) and (max-width: 860px) {
  body.home .home-hero,
  #page-home .home-hero {
    grid-template-columns: minmax(0, 45%) minmax(0, 55%);
    min-height: min(calc(100svh - 64px), 680px);
  }

  body.home .home-left,
  #page-home .home-left {
    padding: 84px 24px 38px max(22px, calc((100vw - 760px) / 2 + 22px));
  }

  body.home .home-copy {
    max-width: 310px;
  }

  body.home .home-h1,
  #page-home .home-h1 {
    font-size: clamp(36px, 5.3vw, 44px);
    line-height: 1.04;
    margin-bottom: 14px;
  }

  body.home .home-sub,
  #page-home .home-sub {
    max-width: 300px;
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 20px;
  }

  body.home .hero-switch {
    grid-template-columns: 1fr;
    max-width: 260px;
    gap: 10px;
    margin-bottom: 22px;
  }

  body.home .home-stats,
  #page-home .home-stats {
    gap: 12px;
    padding-top: 16px;
  }

  body.home .home-stat strong,
  #page-home .home-stat strong {
    font-size: 24px;
  }

  body.home .home-stat span,
  #page-home .home-stat span {
    font-size: 10px;
    line-height: 1.25;
  }

  body.home .home-right,
  #page-home .home-right {
    min-height: min(calc(100svh - 64px), 680px);
  }

  body.home .home-photo,
  #page-home .home-photo {
    object-position: center 54%;
  }

  body.home .home-badge,
  #page-home .home-badge {
    right: 16px;
    bottom: 16px;
    transform: scale(0.86);
    transform-origin: right bottom;
  }

  body.home .home-tag-card,
  #page-home .home-tag-card {
    display: none;
  }
}
