/* =========================================================================
   ELIT HEMSERVICE — demo design system
   Brand palette derived from the original logo: deep navy + gold + cream
   ========================================================================= */

:root {
  /* Brand */
  --navy:        #022C42;
  --navy-800:    #053347;
  --navy-700:    #0b3e54;
  --gold:        #A28750;
  --gold-deep:   #8a7140;
  --gold-light:  #CCBA84;
  --cream:       #F3E9B4;

  /* Neutrals */
  --paper:       #FBF9F3;
  --paper-2:     #F4EFE6;
  --white:       #ffffff;
  --ink:         #1c2530;
  --muted:       #5c6873;
  --line:        rgba(2, 44, 66, 0.10);
  --line-gold:   rgba(162, 135, 80, 0.30);

  /* Type */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Shape */
  --r-sm: 10px;
  --r:    18px;
  --r-lg: 28px;
  --r-xl: 40px;

  --shadow:    0 18px 50px -24px rgba(2, 44, 66, 0.35);
  --shadow-lg: 0 40px 90px -40px rgba(2, 44, 66, 0.55);

  --container: 1240px;
}

/* ---------- Reset / base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
::selection { background: var(--gold); color: #fff; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(20px, 5vw, 56px); }
.section { padding-block: clamp(64px, 9vw, 130px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--navy { background: var(--navy); color: #eaf1f4; }
.section--paper2 { background: var(--paper-2); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.04; letter-spacing: -0.01em; color: var(--navy); }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
p  { color: var(--muted); }
.section--navy p { color: rgba(234, 241, 244, 0.78); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-weight: 600; font-size: .76rem;
  letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep);
  margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 30px; height: 1.5px; background: var(--gold); display: inline-block; }
.section--navy .eyebrow { color: var(--gold-light); }
.section--navy .eyebrow::before { background: var(--gold-light); }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 60ch; }
.section--navy .lead { color: rgba(234,241,244,.82); }

.serif-accent { font-family: var(--serif); font-style: italic; color: var(--gold-deep); }

.section-head { max-width: 64ch; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: 100px;
  font-weight: 600; font-size: .96rem; letter-spacing: .01em;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-gold { background: var(--gold); color: #fff; box-shadow: 0 14px 30px -14px rgba(162,135,80,.9); }
.btn-gold:hover { background: var(--gold-deep); transform: translateY(-2px); box-shadow: 0 20px 38px -14px rgba(162,135,80,.95); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-700); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--line-gold); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-deep); }
.section--navy .btn-ghost { color: #fff; border-color: rgba(255,255,255,.28); }
.section--navy .btn-ghost:hover { border-color: var(--gold-light); color: var(--gold-light); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-sm { padding: 11px 20px; font-size: .85rem; }

.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--gold-deep); }
.text-link svg { width: 16px; height: 16px; transition: transform .25s ease; }
.text-link:hover svg { transform: translateX(4px); }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
  padding-block: 18px;
}
.nav.solid { background: rgba(251,249,243,.86); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); padding-block: 12px; }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__logo { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 1.25rem; color: var(--navy); font-weight: 600; }
.nav__logo img { width: 40px; height: 40px; }
.nav__logo small { display: block; font-family: var(--sans); font-size: .58rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; margin-top: 2px; }
.nav.on-dark:not(.solid) .nav__logo { color: #fff; }
.nav.on-dark:not(.solid) .nav__logo small { color: var(--gold-light); }

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a { padding: 9px 16px; border-radius: 100px; font-weight: 500; font-size: .94rem; color: var(--navy); transition: background .2s, color .2s; }
.nav__links a:hover { background: rgba(2,44,66,.06); }
.nav__links a.active { color: var(--gold-deep); }
.nav.on-dark:not(.solid) .nav__links a { color: rgba(255,255,255,.85); }
.nav.on-dark:not(.solid) .nav__links a:hover { background: rgba(255,255,255,.12); color: #fff; }

.nav__actions { display: flex; align-items: center; gap: 14px; }
.cart-btn { position: relative; display: inline-flex; align-items: center; gap: 9px; padding: 10px 18px; border-radius: 100px; background: var(--navy); color: #fff; font-weight: 600; font-size: .9rem; transition: transform .2s, background .2s; }
.cart-btn:hover { transform: translateY(-2px); background: var(--navy-700); }
.cart-btn svg { width: 18px; height: 18px; }
.cart-btn__count { position: absolute; top: -7px; right: -7px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 100px; background: var(--gold); color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--paper); transform: scale(0); transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
.cart-btn__count.show { transform: scale(1); }

.nav__burger { display: none; width: 44px; height: 44px; border-radius: 12px; }
.nav__burger span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px auto; border-radius: 2px; transition: .3s; }
.nav.on-dark:not(.solid) .nav__burger span { background: #fff; }

/* ---------- Hero (home) ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2,44,66,.55) 0%, rgba(2,44,66,.25) 35%, rgba(2,44,66,.85) 100%); }
.hero__inner { padding-block: clamp(60px, 12vh, 130px) clamp(48px, 8vh, 90px); width: 100%; }
.hero__eyebrow { color: var(--gold-light); }
.hero__eyebrow::before { background: var(--gold-light); }
.hero h1 { color: #fff; max-width: 16ch; }
.hero h1 em { font-style: italic; color: var(--cream); }
.hero__sub { margin-top: 22px; max-width: 52ch; font-size: clamp(1.05rem, 1.7vw, 1.3rem); color: rgba(255,255,255,.9); }
.hero__cta { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__scroll { position: absolute; bottom: 26px; right: clamp(20px,5vw,56px); display: flex; align-items: center; gap: 10px; font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.hero__scroll i { width: 1px; height: 40px; background: linear-gradient(var(--gold-light), transparent); display: block; }

/* page hero (inner pages) */
.phero { position: relative; padding-top: 150px; padding-bottom: clamp(50px, 7vw, 86px); overflow: hidden; }
.phero--navy { background: radial-gradient(120% 120% at 80% -10%, var(--navy-700), var(--navy) 60%); color: #fff; }
.phero__glow { position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(204,186,132,.20), transparent 65%); top: -160px; right: -80px; pointer-events: none; }
.phero h1 { max-width: 18ch; }
.phero .lead { margin-top: 20px; }
.phero__crumbs { font-size: .82rem; letter-spacing: .08em; color: var(--gold-light); margin-bottom: 22px; text-transform: uppercase; }
.phero__crumbs a { opacity: .7; }
.phero__crumbs a:hover { opacity: 1; }

/* ---------- Portals (three worlds) ---------- */
.portals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.portal { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 440px; display: flex; flex-direction: column; justify-content: flex-end; padding: 32px; color: #fff; isolation: isolate; transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.portal::before { content: ""; position: absolute; inset: 0; z-index: -2; transition: transform .6s ease; }
.portal::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(175deg, rgba(2,44,66,.15), rgba(2,44,66,.92)); }
.portal:hover { transform: translateY(-8px); }
.portal:hover::before { transform: scale(1.06); }
.portal--services::before { background: url("../img/clean-card.jpg") center/cover; }
.portal--shop::before { background: linear-gradient(160deg, #0b3e54, #022C42); }
.portal--courses::before { background: linear-gradient(160deg, #1a3a2e, #022C42); }
.portal__num { font-family: var(--serif); font-size: .9rem; color: var(--gold-light); letter-spacing: .1em; }
.portal h3 { color: #fff; font-size: clamp(1.5rem, 2.4vw, 2rem); margin-top: 6px; }
.portal p { color: rgba(255,255,255,.82); margin-top: 10px; font-size: .96rem; }
.portal .text-link { color: var(--cream); margin-top: 20px; }
.portal__deco { position: absolute; top: 28px; right: 28px; width: 56px; height: 56px; opacity: .9; }
.portal__deco svg { width: 100%; height: 100%; stroke: var(--gold-light); }

/* ---------- Feature grid / services ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  padding: 32px; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--line-gold); }
.card__icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--paper-2); margin-bottom: 22px; }
.card__icon svg { width: 26px; height: 26px; stroke: var(--gold-deep); }
.card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.card p { font-size: .96rem; }
.card .price-pill { display: inline-block; margin-top: 18px; padding: 7px 14px; border-radius: 100px; background: var(--paper-2); color: var(--navy); font-weight: 600; font-size: .85rem; }
.card .price-pill b { color: var(--gold-deep); }

/* service split rows */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.split--rev .split__media { order: 2; }
.split__media { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__media.navy { background: radial-gradient(120% 120% at 30% 20%, var(--navy-700), var(--navy)); display: grid; place-items: center; }
.feature-list { margin-top: 26px; display: grid; gap: 14px; }
.feature-list li { list-style: none; display: flex; gap: 13px; align-items: flex-start; color: var(--ink); }
.feature-list svg { flex: 0 0 auto; width: 22px; height: 22px; stroke: var(--gold); margin-top: 2px; }
.section--navy .feature-list li { color: rgba(234,241,244,.9); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat__num { font-family: var(--serif); font-size: clamp(2.4rem, 4.5vw, 3.4rem); color: var(--gold-light); line-height: 1; }
.stat__label { margin-top: 10px; font-size: .9rem; letter-spacing: .04em; color: rgba(234,241,244,.7); }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 34px; display: flex; flex-direction: column; }
.quote__stars { color: var(--gold); letter-spacing: 3px; margin-bottom: 16px; }
.quote p { font-family: var(--serif); font-style: italic; font-size: 1.18rem; line-height: 1.45; color: var(--navy); flex: 1; }
.quote__by { margin-top: 22px; font-weight: 600; color: var(--gold-deep); font-style: normal; font-family: var(--sans); }

/* ---------- Shop ---------- */
.shop-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 34px; }
.chip { padding: 9px 18px; border-radius: 100px; border: 1.5px solid var(--line); background: #fff; font-size: .88rem; font-weight: 500; color: var(--navy); transition: .2s; }
.chip:hover { border-color: var(--gold); }
.chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }

.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s, border-color .3s; }
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--line-gold); }
.product__media { aspect-ratio: 1/1; position: relative; display: grid; place-items: center; overflow: hidden; }
.product__media img { width: 100%; height: 100%; object-fit: cover; }
.product__media--ill { background: linear-gradient(160deg, var(--paper-2), #fff); }
.product__media--ill svg { width: 46%; height: 46%; }
.product__tag { position: absolute; top: 12px; left: 12px; padding: 5px 11px; border-radius: 100px; background: rgba(2,44,66,.85); color: #fff; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
.product__sale { position: absolute; top: 12px; right: 12px; padding: 5px 11px; border-radius: 100px; background: var(--gold); color: #fff; font-size: .72rem; font-weight: 700; }
.product__body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.product__cat { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; }
.product h3 { font-family: var(--sans); font-weight: 600; font-size: .98rem; line-height: 1.3; color: var(--ink); margin: 7px 0 14px; flex: 1; }
.product__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.product__price { font-family: var(--serif); font-size: 1.3rem; color: var(--navy); }
.product__price s { font-size: .85rem; color: var(--muted); margin-right: 6px; font-family: var(--sans); }
.add-btn { width: 42px; height: 42px; border-radius: 12px; background: var(--navy); color: #fff; display: grid; place-items: center; transition: .2s; flex: 0 0 auto; }
.add-btn:hover { background: var(--gold); transform: scale(1.06); }
.add-btn svg { width: 20px; height: 20px; }

/* featured campaign products */
.campaigns { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.campaign { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 320px; display: flex; align-items: center; padding: 40px; color: #fff; }
.campaign img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.campaign::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(2,44,66,.4), rgba(2,44,66,.05)); }
.campaign__body { max-width: 60%; }
.campaign__tag { font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; color: var(--cream); font-weight: 600; }
.campaign h3 { color: #fff; font-size: 1.7rem; margin: 10px 0 14px; }
.campaign .price-now { font-family: var(--serif); font-size: 2.4rem; }
.campaign .price-now s { font-size: 1.1rem; opacity: .7; font-family: var(--sans); margin-left: 8px; }

/* ---------- Cart drawer ---------- */
.overlay { position: fixed; inset: 0; background: rgba(2,44,66,.5); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: .35s; z-index: 200; }
.overlay.open { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 100%); background: var(--paper); z-index: 210; transform: translateX(100%); transition: transform .4s cubic-bezier(.3,.8,.3,1); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.drawer.open { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 24px 24px 18px; border-bottom: 1px solid var(--line); }
.drawer__head h3 { font-size: 1.3rem; }
.drawer__close { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; transition: .2s; }
.drawer__close:hover { background: var(--paper-2); }
.drawer__close svg { width: 22px; height: 22px; stroke: var(--navy); }
.drawer__items { flex: 1; overflow-y: auto; padding: 12px 24px; }
.drawer__empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.drawer__empty svg { width: 60px; height: 60px; stroke: var(--line-gold); margin: 0 auto 18px; }
.line { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line__thumb { width: 60px; height: 60px; border-radius: 12px; flex: 0 0 auto; display: grid; place-items: center; background: var(--paper-2); overflow: hidden; }
.line__thumb img { width: 100%; height: 100%; object-fit: cover; }
.line__thumb svg { width: 55%; height: 55%; }
.line__info { flex: 1; min-width: 0; }
.line__info h4 { font-family: var(--sans); font-size: .92rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.line__price { color: var(--gold-deep); font-weight: 600; font-size: .9rem; margin-top: 2px; }
.qty { display: inline-flex; align-items: center; gap: 0; margin-top: 8px; border: 1px solid var(--line); border-radius: 100px; overflow: hidden; }
.qty button { width: 28px; height: 28px; display: grid; place-items: center; color: var(--navy); font-size: 1rem; transition: .15s; }
.qty button:hover { background: var(--paper-2); }
.qty span { min-width: 28px; text-align: center; font-size: .85rem; font-weight: 600; }
.line__remove { align-self: flex-start; color: var(--muted); font-size: .78rem; transition: .2s; }
.line__remove:hover { color: #c0392b; }
.drawer__foot { padding: 20px 24px 26px; border-top: 1px solid var(--line); background: var(--white); }
.drawer__total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.drawer__total span { color: var(--muted); }
.drawer__total b { font-family: var(--serif); font-size: 1.7rem; color: var(--navy); font-weight: 500; }
.drawer__foot .btn { width: 100%; }
.drawer__note { text-align: center; font-size: .76rem; color: var(--muted); margin-top: 12px; }

/* toast */
.toast { position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 120%); background: var(--navy); color: #fff; padding: 14px 24px; border-radius: 100px; font-weight: 500; font-size: .92rem; z-index: 300; box-shadow: var(--shadow-lg); transition: transform .4s cubic-bezier(.3,1.4,.4,1); display: flex; align-items: center; gap: 10px; }
.toast.show { transform: translate(-50%, 0); }
.toast svg { width: 18px; height: 18px; stroke: var(--gold-light); }

/* ---------- Courses ---------- */
.course { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 30px; display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s, border-color .3s; }
.course:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--line-gold); }
.course__level { display: inline-block; align-self: flex-start; padding: 6px 14px; border-radius: 100px; background: var(--navy); color: var(--cream); font-size: .74rem; letter-spacing: .08em; font-weight: 600; text-transform: uppercase; margin-bottom: 18px; }
.course h3 { font-size: 1.35rem; margin-bottom: 8px; }
.course p { font-size: .94rem; flex: 1; }
.course__meta { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px; }
.tagpill { padding: 5px 12px; border-radius: 100px; background: var(--paper-2); font-size: .76rem; color: var(--navy); font-weight: 500; }

.modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.module { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; font-size: .94rem; }
.module svg { width: 20px; height: 20px; stroke: var(--gold-light); flex: 0 0 auto; }

/* person / advisor */
.advisor { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; background: var(--white); border: 1px solid var(--line-gold); border-radius: var(--r-lg); padding: 36px; }
.advisor__badge { width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, var(--gold-light), var(--gold-deep)); display: grid; place-items: center; font-family: var(--serif); font-size: 2.4rem; color: #fff; flex: 0 0 auto; }

/* ---------- CTA band ---------- */
.cta-band { background: radial-gradient(130% 130% at 85% 10%, var(--navy-700), var(--navy) 65%); border-radius: var(--r-xl); padding: clamp(40px, 6vw, 76px); color: #fff; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(204,186,132,.22), transparent 65%); top: -120px; left: -60px; }
.cta-band h2 { color: #fff; max-width: 20ch; margin-inline: auto; }
.cta-band p { color: rgba(234,241,244,.8); margin: 18px auto 32px; max-width: 52ch; }
.cta-band .btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: rgba(234,241,244,.7); padding-block: clamp(56px, 7vw, 88px) 32px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__brand img { width: 48px; margin-bottom: 16px; }
.footer__brand p { color: rgba(234,241,244,.65); font-size: .94rem; max-width: 34ch; }
.footer h4 { font-family: var(--sans); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 18px; }
.footer ul { list-style: none; display: grid; gap: 11px; }
.footer a:hover { color: #fff; }
.footer__contact li { display: flex; gap: 10px; font-size: .94rem; }
.footer__contact svg { width: 18px; height: 18px; stroke: var(--gold-light); flex: 0 0 auto; margin-top: 2px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 26px; font-size: .82rem; color: rgba(234,241,244,.5); }

/* ---------- Demo ribbon ---------- */
.demo-ribbon { position: fixed; bottom: 18px; left: 18px; z-index: 150; display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px; border-radius: 100px; background: rgba(2,44,66,.9); backdrop-filter: blur(8px); color: #fff; font-size: .78rem; font-weight: 500; box-shadow: var(--shadow); border: 1px solid rgba(204,186,132,.4); }
.demo-ribbon b { color: var(--gold-light); }
.demo-ribbon .dot { width: 8px; height: 8px; border-radius: 50%; background: #2ecc71; box-shadow: 0 0 0 0 rgba(46,204,113,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(46,204,113,.5)} 70%{box-shadow:0 0 0 9px rgba(46,204,113,0)} 100%{box-shadow:0 0 0 0 rgba(46,204,113,0)} }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(34px) scale(.98); filter: blur(6px); transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1), filter .9s ease; }
.reveal.in { opacity: 1; transform: none; filter: none; }
.reveal.d1 { transition-delay: .09s; } .reveal.d2 { transition-delay: .18s; } .reveal.d3 { transition-delay: .27s; } .reveal.d4 { transition-delay: .36s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; filter: none !important; } html { scroll-behavior: auto; } }

/* ---------- Marquee (brands) ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; gap: 60px; width: max-content; animation: slide 28s linear infinite; }
.marquee span { font-family: var(--serif); font-size: 1.35rem; color: var(--navy); opacity: .55; white-space: nowrap; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .products { grid-template-columns: repeat(3, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav__links { position: fixed; inset: 0 0 0 auto; width: min(320px, 82%); background: var(--paper); flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 96px 24px 30px; transform: translateX(100%); transition: transform .4s cubic-bezier(.3,.8,.3,1); box-shadow: var(--shadow-lg); gap: 6px; }
  .nav__links.open { transform: translateX(0); }
  .nav__links a { padding: 14px 16px; font-size: 1.05rem; border-radius: 12px; }
  .nav.on-dark:not(.solid) .nav__links a { color: var(--navy); }
  .nav__burger { display: block; }
  .portals, .grid-3, .grid-2, .quotes, .modules, .stats { grid-template-columns: 1fr; }
  .products { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
  .split { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }
  .campaigns { grid-template-columns: 1fr; }
  .campaign__body { max-width: 80%; }
  .advisor { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .products { grid-template-columns: 1fr 1fr; gap: 14px; }
  .product__body { padding: 14px; }
  .card, .quote, .course { padding: 24px; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }
}

/* =========================================================================
   FLASHY LAYER — entrances, parallax, cursor, magnetic, tilt, sheen
   ========================================================================= */

/* --- Scroll progress bar --- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform: scaleX(0); transform-origin: 0 50%; z-index: 300; background: linear-gradient(90deg, var(--gold-deep), var(--gold-light), var(--cream)); box-shadow: 0 0 14px rgba(204,186,132,.6); }

/* --- Button light sweep --- */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after { content: ""; position: absolute; top: 0; left: -130%; width: 55%; height: 100%; background: linear-gradient(105deg, transparent, rgba(255,255,255,.4), transparent); transform: skewX(-18deg); transition: left .65s cubic-bezier(.2,.7,.2,1); z-index: -1; }
.btn:hover::after { left: 150%; }

/* --- Animated gradient (shine) text --- */
.shine { background: linear-gradient(100deg, var(--gold-deep) 10%, var(--gold-light) 40%, var(--cream) 55%, var(--gold) 80%); background-size: 220% auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; animation: shineMove 7s linear infinite; }
@keyframes shineMove { to { background-position: 220% center; } }

/* --- Hero entrance (pure CSS, runs on load) --- */
.hero__eyebrow { animation: heroIn .9s .15s both cubic-bezier(.16,1,.3,1); }
.hero h1 { animation: heroIn 1.05s .3s both cubic-bezier(.16,1,.3,1); }
.hero__sub { animation: heroIn 1s .5s both cubic-bezier(.16,1,.3,1); }
.hero__cta { animation: heroIn 1s .66s both cubic-bezier(.16,1,.3,1); }
.hero__scroll { animation: heroIn 1s 1s both ease; }
.hero__scroll i { animation: scrollPulse 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes heroIn { from { opacity: 0; transform: translateY(46px); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes scrollPulse { 0%,100% { transform: scaleY(.4); opacity: .4; } 50% { transform: scaleY(1); opacity: 1; } }

/* page-hero entrance */
.phero .eyebrow { animation: heroIn .8s .1s both cubic-bezier(.16,1,.3,1); }
.phero h1 { animation: heroIn 1s .24s both cubic-bezier(.16,1,.3,1); }
.phero .lead { animation: heroIn 1s .42s both cubic-bezier(.16,1,.3,1); }
.phero .hero__cta { animation: heroIn 1s .58s both cubic-bezier(.16,1,.3,1); }

/* --- Drifting aurora orb on dark sections --- */
.section--navy { position: relative; overflow: hidden; }
.section--navy::after { content: ""; position: absolute; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, rgba(204,186,132,.12), transparent 62%); top: -240px; right: -160px; pointer-events: none; animation: drift 20s ease-in-out infinite alternate; z-index: 0; }
.section--navy > .container { position: relative; z-index: 1; }
@keyframes drift { to { transform: translate(-140px, 90px) scale(1.25); } }

/* --- Cursor-follow spotlight (added to dark sections via JS) --- */
[data-spotlight] { position: relative; }
[data-spotlight]::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .5s ease; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 30%), rgba(204,186,132,.16), transparent 60%); }
[data-spotlight].lit::before { opacity: 1; }
[data-spotlight] > .container { position: relative; z-index: 1; }

/* --- Custom cursor (desktop, fine pointer only) --- */
@media (hover: hover) and (pointer: fine) {
  body.has-cursor, body.has-cursor a, body.has-cursor button, body.has-cursor .portal { cursor: none; }
  .cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; border-radius: 50%; pointer-events: none; z-index: 400; will-change: transform; }
  .cursor-dot { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; background: var(--gold); }
  .cursor-ring { width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1.5px solid rgba(162,135,80,.55); transition: width .25s, height .25s, margin .25s, background .25s, border-color .25s, opacity .25s; }
  .cursor-ring.hot { width: 66px; height: 66px; margin: -33px 0 0 -33px; background: rgba(204,186,132,.14); border-color: var(--gold-light); }
  .cursor-dot.hot { background: var(--cream); }
}

/* --- Tilt + magnetic helpers --- */
.portal, .btn, .cart-btn { will-change: transform; }
.magnetic { transition: transform .3s cubic-bezier(.2,.7,.2,1); }

/* --- Count-up keeps layout steady --- */
.stat__num { font-variant-numeric: tabular-nums; }

/* --- Card hover glow accent --- */
.card, .product, .course, .quote { position: relative; }
.card::before, .course::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(130deg, transparent 40%, rgba(204,186,132,.6)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .4s; pointer-events: none; }
.card:hover::before, .course:hover::before { opacity: 1; }

/* --- Portal: animate label/arrow on hover --- */
.portal .text-link svg { transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.portal:hover .text-link svg { transform: translateX(8px); }
.portal h3 { transition: color .35s; }
.portal:hover h3 { color: var(--cream); }

@media (prefers-reduced-motion: reduce) {
  .hero__eyebrow, .hero h1, .hero__sub, .hero__cta, .hero__scroll,
  .phero .eyebrow, .phero h1, .phero .lead, .phero .hero__cta,
  .section--navy::after, .shine, .hero__scroll i { animation: none !important; }
  .scroll-progress { display: none; }
}
