/* ═══════════════════════════════════════════════════════════
   FUZION MEDICINE — "VITALITY" DESIGN SYSTEM (v3, blue)
   Airy premium-wellness look in the Vitality Health Matrix
   register: deep teal-blue as the lead color, warm gold as the
   accent, on a cool mist/white base. Elegant serif display
   headings, pill buttons, rounded cards, soft shadows.

   ── TUNING THE BLUE ──────────────────────────────────────────
   Everything blue on the site comes from the five --blue-*
   values below. Nudge those and the whole site follows —
   nav, buttons, hero wash, banners, avatars, CTA band, chips.
   Lighter, if this is too heavy:
     --blue: #255a7a · --blue-deep: #1b4258   (mid teal-blue)
     --blue: #1f4c69 · --blue-deep: #173a4f   (one step lighter)
   Darker still:
     --blue: #123243 · --blue-deep: #0d2532   (near-navy)
   Cooler / less teal, more steel:
     --blue: #1e3f5e · --blue-deep: #142c44

   The legacy names (--crimson, --navy) are kept as aliases so
   the existing HTML and inline styles keep working untouched.
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Marcellus&family=Jost:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

:root {
  /* ── the blue: single source of truth ── */
  --blue:         #1b4258;   /* primary — buttons, links, active states */
  --blue-deep:    #123243;   /* hover / darker fills */
  --blue-ink:     #0d2532;   /* deepest — headings, footer, CTA band */
  --blue-soft:    #93b3c6;   /* borders, dividers, rules */
  --blue-pale:    #e4eef4;   /* tinted fills, chips, icon circles */

  /* warm gold accent — the counterweight that keeps it from going cold */
  --gold:         #c9a24b;
  --gold-deep:    #7d5f10;
  --gold-pale:    #f7efd9;

  /* ── legacy aliases: existing markup keeps working ── */
  --crimson:      var(--blue);
  --crimson-deep: var(--blue-deep);
  --crimson-soft: var(--blue-soft);
  --crimson-pale: var(--blue-pale);
  --navy:         var(--blue-ink);
  --navy-deep:    #0f2230;
  --navy-soft:    #6d8698;

  /* neutrals — cooled off so the blue reads as the house color */
  --cream:        #f4f8fb;
  --cream-dark:   #e3ecf3;
  --ink:          #23303a;
  --ink-soft:     #55656f;
  --ink-mute:     #828f9a;
  --white:        #ffffff;
  --border:       #dde7ee;
  --border-navy:  rgba(22,48,63,0.14);
  --shadow-sm:    0 2px 10px rgba(22,48,63,0.07);
  --shadow-md:    0 10px 32px rgba(22,48,63,0.11);
  --shadow-lg:    0 22px 60px rgba(22,48,63,0.15);
  --r-sm: 10px; --r-md: 18px; --r-lg: 28px;
  --nav-h: 84px;
  --ease: 0.22s cubic-bezier(0.4,0,0.2,1);
  --font-display: 'Marcellus', 'Times New Roman', serif;
  --font-body: 'Jost', 'Segoe UI', sans-serif;
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 17px; line-height: 1.75; color: var(--ink);
  background: var(--white); overflow-x: hidden; font-weight: 400;
}
h1,h2,h3,h4,h5 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; letter-spacing: 0.3px; color: var(--navy); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
ul { list-style: none; }
::selection { background: var(--crimson-pale); }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--crimson-soft); border-radius: 4px; }

/* recolor legacy inline SVG strokes/fills (#c7536a was the old crimson) */
svg[stroke="#c7536a"], svg[stroke="#c7536a"] * { stroke: var(--crimson); }
svg [fill="#c7536a"] { fill: var(--crimson); }
svg [stroke="#fdf2dd"] { stroke: var(--gold-pale); }
svg [fill="#fdf2dd"] { fill: var(--gold-pale); }

/* ═══════════════ NAV ═══════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); z-index: 1000;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 3rem;
}
.nav__logo { display: flex; align-items: center; gap: 13px; flex-shrink: 0; }
.nav__logo-mark { width: 44px; height: 44px; flex-shrink: 0; }
.nav__logo-mark svg { width: 100%; height: 100%; }
.nav__logo-text { display: flex; flex-direction: column; line-height: 1; }
.nav__logo-name {
  font-family: var(--font-display); font-size: 21px;
  color: var(--navy); letter-spacing: 2px; text-transform: uppercase;
}
.nav__logo-tag { font-family: var(--font-body); font-weight: 500; font-size: 9.5px; color: var(--blue); letter-spacing: 3.5px; text-transform: uppercase; margin-top: 4px; }
.nav__links { display: flex; align-items: center; gap: 0.35rem; margin-left: auto; }
.nav__link {
  font-family: var(--font-body); font-weight: 500; font-size: 13.5px;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--navy);
  padding: 10px 16px; border-radius: 999px; background: none; border: none;
  transition: color var(--ease), background var(--ease); white-space: nowrap;
}
.nav__link:hover { color: var(--crimson); }
.nav__link--portal { color: var(--crimson) !important; border: 1.5px solid var(--crimson-soft); margin-left: 0.6rem; }
.nav__link--portal:hover { background: var(--crimson-pale); }
.nav__link--cta { background: var(--crimson); color: var(--white) !important; margin-left: 0.6rem; padding: 12px 24px; box-shadow: var(--shadow-sm); }
.nav__link--cta:hover { background: var(--crimson-deep); }
.nav__mobile-toggle { display: none; background: none; border: none; color: var(--navy); margin-left: auto; padding: 8px; font-size: 22px; }
.nav__mobile-menu {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: var(--white); z-index: 999; padding: 1rem 1.5rem 2rem;
  border-bottom: 1px solid var(--border); flex-direction: column; gap: 0.25rem;
  box-shadow: var(--shadow-md);
}
.nav__mobile-menu.open { display: flex; }
.nav__mobile-menu .nav__link { text-align: left; padding: 13px 16px; }

/* ═══════════════ PAGE BANNER (soft, airy) ═══════════════ */
.banner {
  position: relative; margin-top: var(--nav-h);
  background:
    radial-gradient(70% 130% at 12% 0%, var(--blue-pale) 0%, transparent 60%),
    radial-gradient(45% 100% at 92% 15%, var(--gold-pale) 0%, transparent 55%),
    linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--border);
  padding: 5rem 3rem 4.5rem; overflow: hidden; text-align: center;
}
.banner__inner { position: relative; z-index: 2; max-width: 860px; margin: 0 auto; }
.banner__eyebrow {
  display: inline-block; font-family: var(--font-body); font-weight: 500; font-size: 12px;
  letter-spacing: 4px; text-transform: uppercase; color: var(--blue); margin-bottom: 1.1rem;
}
.banner h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); color: var(--navy); }
.banner h1::after { content: ''; display: block; width: 84px; height: 3px; background: linear-gradient(90deg, var(--blue), var(--gold)); margin: 1.4rem auto 0; border-radius: 2px; }
.banner__sub { font-size: 1.12rem; color: var(--ink-soft); margin-top: 1.25rem; font-weight: 300; }
.banner__emblem { position: absolute; right: 4%; top: 50%; transform: translateY(-50%); width: 130px; opacity: 0.35; }
.banner__emblem text { fill: var(--gold-deep); }

/* ═══════════════ HERO (home) ═══════════════ */
.hero {
  margin-top: var(--nav-h); position: relative; overflow: hidden;
  background:
    radial-gradient(65% 110% at 88% 0%, var(--blue-pale) 0%, transparent 58%),
    radial-gradient(50% 95% at 5% 95%, rgba(27,66,88,0.12) 0%, transparent 60%),
    radial-gradient(35% 70% at 60% 105%, var(--gold-pale) 0%, transparent 55%),
    var(--cream);
}
.hero__inner {
  max-width: 1200px; margin: 0 auto; padding: 96px 3rem 90px;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center;
}
.eyebrow {
  display: inline-block; font-family: var(--font-body); font-weight: 500; font-size: 12px;
  letter-spacing: 4px; text-transform: uppercase; color: var(--blue); margin-bottom: 1rem;
}
.eyebrow--gold { color: var(--gold-deep); }
.eyebrow--center { display: block; text-align: center; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 3.8rem); color: var(--navy); }
.hero h1 em { display: block; font-style: italic; color: var(--crimson); }
.hero__lead { font-size: 1.13rem; color: var(--ink-soft); margin: 1.5rem 0 2.25rem; max-width: 540px; font-weight: 300; line-height: 1.8; }
.hero__ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__art { position: relative; }

/* journey preview card in hero */
.road-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 2.2rem 2rem; box-shadow: var(--shadow-lg); position: relative;
}
.road-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 5px; border-radius: var(--r-lg) var(--r-lg) 0 0; background: linear-gradient(90deg, var(--crimson), var(--gold)); }
.road-card h3 { font-size: 1.35rem; color: var(--navy); }
.road-card > p { font-size: 0.9rem; color: var(--ink-mute); margin-top: 4px; }
.mini-step { display: flex; gap: 14px; padding: 11px 0; border-bottom: 1px dashed var(--border); align-items: flex-start; }
.mini-step:last-child { border-bottom: none; }
.mini-step__tag {
  font-family: var(--font-body); font-weight: 600; font-size: 10.5px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--crimson); background: var(--crimson-pale);
  padding: 4px 12px; border-radius: 999px; white-space: nowrap; margin-top: 2px;
}
.mini-step__tag--c { background: var(--gold-pale); color: var(--gold-deep); }
.mini-step__t { font-weight: 600; font-size: 0.95rem; color: var(--navy); }
.mini-step__d { font-size: 0.85rem; color: var(--ink-mute); font-weight: 300; }

/* ═══════════════ BUTTONS (pill) ═══════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 500; font-size: 13.5px;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 14px 30px; border-radius: 999px; border: 1.5px solid transparent;
  transition: all var(--ease); white-space: nowrap;
}
.btn--lg { padding: 17px 38px; font-size: 14px; }
.btn--sm { padding: 9px 20px; font-size: 12px; letter-spacing: 1.5px; }
.btn--full { width: 100%; justify-content: center; }
.btn--crimson { background: var(--crimson); color: var(--white); box-shadow: var(--shadow-sm); }
.btn--crimson:hover { background: var(--crimson-deep); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-deep); transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: var(--navy-deep); }
.btn--gold:hover { background: var(--gold-deep); color: var(--white); transform: translateY(-2px); }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: var(--white); }

/* ═══════════════ SECTIONS ═══════════════ */
.section { padding: 96px 3rem; }
.section--white { background: var(--white); }
.section--cream { background: var(--cream); }
/* Optional deeper blue band — add class="section section--blue" to any section */
.section--blue { background: linear-gradient(180deg, var(--blue-pale) 0%, var(--cream) 100%); }
.container { max-width: 1200px; margin: 0 auto; }
.s-head { margin-bottom: 3.25rem; max-width: 720px; }
.s-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.s-title { font-size: clamp(1.9rem, 3.4vw, 2.7rem); color: var(--navy); margin-top: 0.4rem; }
.s-sub { font-size: 1.05rem; color: var(--ink-soft); margin-top: 1rem; font-weight: 300; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.75rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit,minmax(255px,1fr)); gap: 1.5rem; }

.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-md); padding: 1.75rem; box-shadow: var(--shadow-sm); }
.card--cream { background: var(--cream); box-shadow: none; }

/* ═══════════════ TABS ═══════════════ */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 2.5rem; }
.tab-btn {
  font-family: var(--font-body); font-weight: 500; font-size: 13px; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--ink-soft); background: var(--white);
  border: 1.5px solid var(--border); padding: 11px 24px; border-radius: 999px;
  transition: all var(--ease);
}
.tab-btn:hover { border-color: var(--crimson-soft); color: var(--crimson); }
.tab-btn.active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp 0.35s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ═══════════════ SERVICE CARDS ═══════════════ */
.svc { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-md); padding: 1.9rem 1.7rem; box-shadow: var(--shadow-sm); transition: transform var(--ease), box-shadow var(--ease); }
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.svc__price { font-family: var(--font-display); font-size: 1.7rem; color: var(--crimson); }
.svc__name { font-weight: 600; font-size: 1.02rem; color: var(--navy); margin-top: 6px; }
.svc__dur { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--blue); font-weight: 500; margin: 4px 0 10px; }
.svc__desc { font-size: 0.92rem; color: var(--ink-soft); font-weight: 300; line-height: 1.7; }

/* ═══════════════ MEMBERSHIP ═══════════════ */
.mem { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 2.4rem 2rem; position: relative; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.mem--feature { border: 2px solid var(--crimson); box-shadow: var(--shadow-lg); transform: scale(1.03); }
.mem__badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--gold); color: var(--navy-deep); font-size: 10.5px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; padding: 6px 18px; border-radius: 999px; }
.mem__tier { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--blue); font-weight: 600; }
.mem__name { font-family: var(--font-display); font-size: 1.5rem; color: var(--navy); margin-top: 4px; }
.mem__price { font-family: var(--font-display); font-size: 2.5rem; color: var(--crimson); margin: 0.9rem 0 1.2rem; }
.mem__price span { font-family: var(--font-body); font-size: 0.95rem; color: var(--ink-mute); }
.mem__features { flex: 1; margin-bottom: 1.6rem; }
.mem__features li { padding: 8px 0 8px 26px; font-size: 0.93rem; color: var(--ink-soft); border-bottom: 1px dashed var(--border); position: relative; font-weight: 300; }
.mem__features li::before { content: '✓'; position: absolute; left: 0; color: var(--crimson); font-weight: 600; }

/* ═══════════════ DOCTOR CARDS ═══════════════ */
.doc { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform var(--ease), box-shadow var(--ease); }
.doc:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.doc__avatar { background: linear-gradient(140deg, var(--blue) 0%, var(--blue-ink) 100%); padding: 2.4rem; position: relative; display: flex; justify-content: center; }
.doc__initials { width: 88px; height: 88px; border-radius: 50%; background: rgba(255,255,255,0.14); border: 2px solid rgba(255,255,255,0.55); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 1.8rem; color: var(--white); letter-spacing: 1px; }
.doc__badge { position: absolute; bottom: 12px; right: 14px; background: var(--gold); color: var(--navy-deep); font-size: 10px; font-weight: 600; letter-spacing: 1px; padding: 4px 12px; border-radius: 999px; }
.doc__body { padding: 1.6rem 1.6rem 1.8rem; }
.doc__name { font-family: var(--font-display); font-size: 1.25rem; color: var(--navy); }
.doc__title { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--blue); font-weight: 600; margin: 4px 0 10px; }
.doc__bio { font-size: 0.9rem; color: var(--ink-soft); font-weight: 300; line-height: 1.7; }
.doc__creds { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.cred { font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--crimson); background: var(--crimson-pale); padding: 4px 12px; border-radius: 999px; font-weight: 500; }

/* ═══════════════ QUOTES ═══════════════ */
.quote { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-md); padding: 2.1rem 1.9rem; box-shadow: var(--shadow-sm); position: relative; }
.quote::before { content: '“'; font-family: var(--font-display); font-size: 4rem; color: var(--blue-soft); position: absolute; top: 6px; left: 20px; line-height: 1; opacity: 0.85; }
.quote__text { font-style: italic; font-size: 0.99rem; color: var(--ink-soft); line-height: 1.8; padding-top: 1.4rem; font-weight: 300; }
.quote__name { font-weight: 600; color: var(--navy); margin-top: 1.1rem; }
.quote__detail { font-size: 0.8rem; color: var(--ink-mute); letter-spacing: 0.5px; }

/* ═══════════════ PILLARS (about) ═══════════════ */
.pillar { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-md); padding: 2rem 1.8rem; box-shadow: var(--shadow-sm); transition: transform var(--ease); }
.pillar:hover { transform: translateY(-4px); }
.pillar__icon { width: 62px; height: 62px; border-radius: 50%; background: var(--crimson-pale); display: flex; align-items: center; justify-content: center; margin-bottom: 1.2rem; }
.pillar__icon svg { width: 30px; height: 30px; }
.pillar h3 { font-size: 1.15rem; color: var(--navy); margin-bottom: 0.6rem; }
.pillar p { font-size: 0.92rem; color: var(--ink-soft); font-weight: 300; line-height: 1.75; }

/* ═══════════════ JOURNEY PAGE ═══════════════ */
.journey-arrow { display: flex; align-items: center; gap: 18px; max-width: 840px; margin: 0 auto 2.5rem; }
.journey-arrow span { font-family: var(--font-body); font-weight: 600; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--blue); white-space: nowrap; }
.journey-arrow .line { flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--crimson-soft) 0 10px, transparent 10px 20px); position: relative; }
.journey-arrow .line::after { content: ''; position: absolute; right: -2px; top: -5px; border: 6px solid transparent; border-left-color: var(--crimson-soft); }
.badge-rail { display: flex; justify-content: space-between; max-width: 840px; margin: 0 auto; gap: 12px; flex-wrap: wrap; }
.jbadge { width: 86px; height: 86px; border-radius: 50%; background: var(--white); border: 1.5px solid var(--border); box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: center; position: relative; }
.jbadge--pin::after { content: ''; position: absolute; bottom: -12px; left: 50%; transform: translateX(-50%); width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.jbadge svg { width: 46px; height: 46px; }

.phase { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-md); padding: 1.9rem 1.7rem; box-shadow: var(--shadow-sm); border-top: 4px solid var(--crimson); }
.phase__label { margin-bottom: 0.9rem; }
.flag { display: inline-block; background: var(--gold); color: var(--navy-deep); font-size: 11px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; padding: 6px 18px; border-radius: 999px; }
.week-tag { display: inline-block; background: var(--crimson-pale); color: var(--crimson); font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; padding: 6px 16px; border-radius: 999px; }
.week-tag--crimson { background: var(--crimson); color: var(--white); }
.week-tag--gold { background: var(--gold); color: var(--navy-deep); }
.phase__title { font-family: var(--font-display); font-size: 1.2rem; color: var(--navy); margin-bottom: 0.9rem; line-height: 1.35; }
.phase__list li { padding: 7px 0 7px 24px; font-size: 0.9rem; color: var(--ink-soft); position: relative; border-bottom: 1px dashed var(--border); font-weight: 300; }
.phase__list li:last-child { border-bottom: none; }
.phase__list li::before { content: ''; position: absolute; left: 4px; top: 15px; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }

/* ═══════════════ CTA BAND ═══════════════ */
.cta {
  background:
    radial-gradient(60% 130% at 15% 0%, rgba(27,66,88,0.75) 0%, transparent 60%),
    radial-gradient(60% 130% at 88% 10%, rgba(201,162,75,0.20) 0%, transparent 55%),
    var(--blue-ink);
  padding: 84px 3rem; text-align: center;
}
.cta h2 { font-size: clamp(1.9rem, 3.5vw, 2.7rem); color: var(--white); }
.cta p { color: rgba(255,255,255,0.72); max-width: 560px; margin: 1.1rem auto 2.2rem; font-weight: 300; font-size: 1.05rem; }

/* ═══════════════ NOTICES ═══════════════ */
.notice {
  display: flex; align-items: flex-start; gap: 6px;
  background: var(--crimson-pale); border: 1px solid var(--crimson-soft);
  border-radius: var(--r-sm); padding: 14px 20px; margin-bottom: 1.25rem;
  font-size: 0.92rem; color: var(--crimson-deep);
}
.notice--gold { background: var(--gold-pale); border-color: rgba(201,162,75,0.5); color: var(--gold-deep); }
.notice--navy { background: var(--cream); border-color: var(--blue-soft); color: var(--blue-ink); }

/* ═══════════════ FORMS ═══════════════ */
.form-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-md); padding: 2.4rem; margin-bottom: 1.5rem; box-shadow: var(--shadow-sm); }
.form-card h3 { color: var(--navy); font-size: 1.3rem; margin-bottom: 1.5rem; padding-bottom: 0.85rem; border-bottom: 1px solid var(--cream-dark); }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.f-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 1rem; }
.f-group label { font-weight: 500; font-size: 11.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--navy); }
.f-group input, .f-group select, .f-group textarea {
  border: 1.5px solid var(--border); border-radius: var(--r-sm); padding: 12px 16px;
  font-family: var(--font-body); font-size: 15px; color: var(--ink); background: var(--white); width: 100%;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.f-group input:focus, .f-group select:focus, .f-group textarea:focus { outline: none; border-color: var(--crimson); box-shadow: 0 0 0 4px var(--crimson-pale); }
.f-group textarea { min-height: 100px; resize: vertical; line-height: 1.6; }

.progress { display: flex; border: 1.5px solid var(--border); border-radius: 999px; overflow: hidden; margin-bottom: 3rem; background: var(--white); }
.progress-step { flex: 1; padding: 13px 8px; text-align: center; font-weight: 500; font-size: 11.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-mute); }
.progress-step.active { background: var(--navy); color: var(--white); }
.progress-step.done { background: var(--crimson-pale); color: var(--crimson); }

.consent { display: flex; gap: 12px; margin-bottom: 1rem; }
.consent input { margin-top: 6px; accent-color: var(--crimson); flex-shrink: 0; width: 16px; height: 16px; }
.consent label { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.65; font-weight: 300; }

/* ═══════════════ PORTAL ═══════════════ */
.portal-wrap { margin-top: var(--nav-h); background: var(--cream); min-height: calc(100vh - var(--nav-h)); }
.portal-inner { max-width: 1120px; margin: 0 auto; padding: 2.75rem 2rem 4.5rem; }
.portal-hero { background: linear-gradient(120deg, var(--blue-ink) 0%, var(--blue) 100%); border-radius: var(--r-lg); padding: 2rem 2.4rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; box-shadow: var(--shadow-md); }
.portal-hero h2 { color: var(--white); font-size: 1.65rem; }
.portal-hero p { color: rgba(255,255,255,0.68); font-size: 0.92rem; margin-top: 4px; font-weight: 300; }
.portal-hero__r { text-align: right; }
.portal-hero__date { font-size: 0.8rem; color: rgba(255,255,255,0.55); }
.portal-hero__appt { font-weight: 500; font-size: 0.88rem; color: var(--gold); margin-top: 5px; letter-spacing: 0.5px; }
.portal-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 2.25rem; }
.portal-tab { font-family: var(--font-body); font-weight: 500; font-size: 12.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-soft); background: var(--white); border: 1.5px solid var(--border); padding: 10px 20px; border-radius: 999px; transition: all var(--ease); white-space: nowrap; }
.portal-tab:hover { color: var(--crimson); border-color: var(--crimson-soft); }
.portal-tab.active { color: var(--white); background: var(--navy); border-color: var(--navy); }
.portal-panel { display: none; } .portal-panel.active { display: block; animation: fadeUp 0.3s ease; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit,minmax(185px,1fr)); gap: 1rem; margin-bottom: 1.75rem; }
.kpi { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-md); padding: 1.3rem; text-align: center; box-shadow: var(--shadow-sm); }
.kpi__label { font-size: 10.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-mute); font-weight: 500; }
.kpi__val { font-family: var(--font-display); font-size: 1.9rem; color: var(--navy); margin-top: 5px; }
.kpi__val--danger { color: #b4544b; }
.kpi__val--gold { color: var(--gold-deep); }
.kpi__sub { font-size: 0.78rem; color: var(--ink-mute); margin-top: 2px; font-weight: 300; }

.rec { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-md); padding: 1.6rem; margin-bottom: 1rem; box-shadow: var(--shadow-sm); }
.rec__head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.5rem; }
.rec__date { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-mute); font-weight: 500; }
.rec__type { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--white); background: var(--crimson); padding: 4px 14px; border-radius: 999px; font-weight: 500; }
.rec__title { font-family: var(--font-display); font-size: 1.15rem; color: var(--navy); margin-bottom: 6px; }
.rec__body { font-size: 0.93rem; color: var(--ink-soft); line-height: 1.7; font-weight: 300; }
.note { background: var(--cream); border-left: 3px solid var(--gold); border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 1rem 1.3rem; margin-top: 1rem; }
.note__by { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 4px; font-weight: 600; }
.note p { font-size: 0.92rem; color: var(--ink); font-style: italic; line-height: 1.7; }

table.bill { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--white); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); }
table.bill th { background: var(--navy); color: var(--white); font-weight: 500; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; text-align: left; padding: 13px 16px; }
table.bill td { padding: 14px 16px; font-size: 0.92rem; border-bottom: 1px solid var(--cream-dark); }
table.bill tr:last-child td { border-bottom: none; }
table.bill tr:hover td { background: var(--cream); }
.chip { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; font-weight: 600; padding: 4px 14px; border-radius: 999px; }
.chip-paid { background: var(--crimson-pale); color: var(--crimson-deep); }
.chip-due { background: #f6e3e1; color: #a34a41; }
.chip-pending { background: var(--gold-pale); color: var(--gold-deep); }
.paybtn { font-weight: 500; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--crimson); background: var(--crimson-pale); border: 1px solid var(--crimson-soft); padding: 6px 16px; border-radius: 999px; cursor: pointer; transition: all var(--ease); }
.paybtn:hover { background: var(--crimson); color: var(--white); }

.msg { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-md); padding: 1.3rem 1.5rem; margin-bottom: 0.75rem; cursor: pointer; transition: border-color var(--ease), box-shadow var(--ease); }
.msg:hover { border-color: var(--crimson-soft); box-shadow: var(--shadow-sm); }
.msg--unread { border-left: 4px solid var(--crimson); }
.msg__head { display: flex; justify-content: space-between; margin-bottom: 5px; }
.msg__from { font-weight: 600; font-size: 0.95rem; color: var(--navy); }
.msg__time { font-size: 0.78rem; color: var(--ink-mute); }
.msg__subj { font-weight: 500; font-size: 0.96rem; color: var(--ink); margin-bottom: 4px; }
.msg__prev { font-size: 0.88rem; color: var(--ink-mute); font-weight: 300; }

/* ═══════════════ FOOTER ═══════════════ */
.footer { background: var(--navy); padding: 70px 3rem 28px; color: rgba(255,255,255,0.62); }
.footer-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand__name { font-family: var(--font-display); font-size: 1.45rem; color: var(--white); text-transform: uppercase; letter-spacing: 3px; margin-bottom: 0.85rem; }
.footer-brand p, .footer-grid > div > p { font-size: 0.9rem; line-height: 1.8; font-weight: 300; }
.footer-disc { font-size: 0.75rem; color: rgba(255,255,255,0.35); margin-top: 1rem; line-height: 1.7; }
.footer-col h5 { font-weight: 500; font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold); margin-bottom: 1.1rem; font-family: var(--font-body); }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.9rem; color: rgba(255,255,255,0.62); transition: color var(--ease); font-weight: 300; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { max-width: 1180px; margin: 0 auto; padding-top: 1.6rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: 0.82rem; }
.footer-badges { display: flex; gap: 8px; }
.badge-pill { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); background: rgba(201,162,75,0.1); border: 1px solid rgba(201,162,75,0.35); padding: 5px 14px; border-radius: 999px; font-weight: 500; }

/* ═══════════════ TOAST ═══════════════ */
#toast { position: fixed; bottom: 2rem; right: 2rem; z-index: 9999; background: var(--navy); color: var(--white); padding: 15px 24px; border-radius: 999px; font-size: 13.5px; letter-spacing: 0.5px; border: 1px solid rgba(201,162,75,0.5); box-shadow: var(--shadow-lg); transform: translateY(80px); opacity: 0; transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.35s; max-width: 380px; pointer-events: none; }
#toast.show { transform: translateY(0); opacity: 1; }

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 44px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .mem--feature { transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .banner__emblem { display: none; }
}
@media (max-width: 640px) {
  .section { padding: 60px 1.25rem; }
  .banner { padding: 3.25rem 1.25rem 3rem; }
  .nav { padding: 0 1.25rem; } .nav__links { display: none; } .nav__mobile-toggle { display: block; }
  .hero__inner { padding: 56px 1.25rem; }
  .hero__ctas { flex-direction: column; } .hero__ctas .btn { justify-content: center; }
  .f-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .portal-hero { flex-direction: column; align-items: flex-start; } .portal-hero__r { text-align: left; }
  .badge-rail { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
