/* ==========================================================================
   NAYI · Global styles + reusable components  (depends on tokens.css)
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  /* sticky footer: keep the footer at the bottom on short pages */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
.footer { flex-shrink: 0; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-sm); }
::selection { background: var(--sage-200); color: var(--ink-900); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: var(--z-toast);
  background: var(--primary); color: var(--on-primary);
  padding: .6rem 1rem; border-radius: var(--r-sm); transition: top var(--dur-1);
}
.skip-link:focus { top: 12px; }

/* ---------- Typography ---------- */
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 600; line-height: var(--lh-snug); letter-spacing: var(--tracking-tight); color: var(--text); }
.display { font-family: var(--font-display); font-size: var(--fs-display); line-height: var(--lh-tight); font-weight: 600; letter-spacing: -.03em; }
h1, .h1 { font-size: var(--fs-h1); }
h2, .h2 { font-size: var(--fs-h2); }
h3, .h3 { font-size: var(--fs-h3); }
h4, .h4 { font-size: var(--fs-h4); }
.lead { font-size: var(--fs-lead); color: var(--text-muted); line-height: 1.55; }
.muted { color: var(--text-muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase; color: var(--sage-600);
}
.eyebrow::before { content:""; width: 26px; height: 1.5px; background: var(--accent); display:inline-block; }
.text-gradient { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
:lang(hi), .deva { font-family: var(--font-deva); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-wide { max-width: var(--container-wide); }
.section { padding-block: var(--section-y); }
.section-sm { padding-block: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.stack > * + * { margin-top: var(--sp-4); }
.center { text-align: center; }
.grid { display: grid; gap: var(--sp-5); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px){ .cols-3,.cols-4 { grid-template-columns: repeat(2,1fr);} }
@media (max-width: 620px){ .cols-2,.cols-3,.cols-4 { grid-template-columns: 1fr;} }
.section-head { max-width: 720px; margin-inline: auto; text-align: center; margin-bottom: var(--sp-8); }
.section-head .lead { margin-top: var(--sp-4); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.5rem; border-radius: var(--r-pill); border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; line-height: 1; letter-spacing: .01em;
  transition: transform var(--dur-1) var(--ease-out), box-shadow var(--dur-2), background var(--dur-2), color var(--dur-2);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: var(--sh-sm); }
.btn-primary:hover { background: var(--primary-hover); box-shadow: var(--sh-md); }
.btn-accent { background: var(--accent); color: var(--on-accent); box-shadow: var(--sh-sm); }
.btn-accent:hover { background: var(--accent-hover); box-shadow: var(--sh-gold); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--primary); }
.btn-white { background: var(--surface); color: var(--text); box-shadow: var(--sh-sm); }
.btn-lg { padding: 1.05rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: var(--sp-6);
  box-shadow: var(--sh-sm); transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2), border-color var(--dur-2);
}
.card-hover:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: var(--sage-200); }
.card-media { padding: 0; overflow: hidden; }
.card-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform var(--dur-3) var(--ease-out); }
.card-hover:hover .card-media img { transform: scale(1.06); }
.card-body { padding: var(--sp-5); }

.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  border: 1px solid var(--glass-border);
}

/* Pills / badges / chips */
.pill { display:inline-flex; align-items:center; gap:.45rem; padding:.4rem .85rem; border-radius:var(--r-pill); font-size:var(--fs-xs); font-weight:600; }
.pill svg { width:15px; height:15px; flex:none; }
.mega a svg.m-ic { width:20px; height:20px; flex:none; color:var(--primary); }
.pill-sage { background: var(--sage-100); color: var(--sage-700); }
.pill-gold { background: var(--gold-50); color: var(--gold-700); }
.pill-terra{ background: var(--terra-100); color: var(--terra-700); }
.pill-outline { border:1px solid var(--border-strong); color: var(--text-muted); background: transparent; }
.badge-upcoming { background: var(--gold-100); color: var(--gold-700); }
.price { font-family: var(--font-display); font-weight: 600; color: var(--primary); }
.price .cur { font-size: .7em; vertical-align: .35em; margin-right: 2px; }

.chip {
  padding: .5rem 1rem; border-radius: var(--r-pill); border: 1px solid var(--border);
  background: var(--surface); font-size: var(--fs-sm); font-weight: 500; color: var(--text-muted);
  transition: all var(--dur-1); white-space: nowrap;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip[aria-pressed="true"], .chip.is-active { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: var(--z-nav);
  transition: box-shadow var(--dur-2), background var(--dur-2), padding var(--dur-2);
}
.nav-inner { display: flex; align-items: center; gap: var(--sp-5); padding-block: .9rem; }
.nav.scrolled { box-shadow: var(--sh-sm); }
.nav.scrolled .nav-inner { padding-block: .55rem; }
.nav-logo { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.nav-logo img { height: 38px; width: auto; }
.nav-links { display: flex; align-items: center; gap: .1rem; margin-left: auto; }
.nav-link {
  position: relative; padding: .5rem .7rem; border-radius: var(--r-pill); white-space: nowrap;
  font-weight: 500; font-size: .9rem; color: var(--text-muted); isolation: isolate;
  transition: color var(--dur-1), background var(--dur-2) var(--ease-out), transform var(--dur-1), box-shadow var(--dur-2);
}
/* animated gold underline indicator */
.nav-link::after {
  content: ""; position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%) scaleX(0);
  width: 18px; height: 2.5px; border-radius: 2px; background: var(--accent);
  transition: transform var(--dur-2) var(--ease-out); transform-origin: center;
}
.nav-link:hover { color: var(--text); background: var(--surface-2); }
.nav-link:hover::after { transform: translateX(-50%) scaleX(.6); }
.nav-link:active { transform: translateY(1px); }
.nav-link[aria-current="page"] {
  color: var(--primary); font-weight: 600;
  background: var(--primary-soft);
  box-shadow: inset 0 0 0 1px rgba(110,139,67,.30), 0 2px 10px rgba(67,87,41,.10);
}
.nav-link[aria-current="page"]::after { transform: translateX(-50%) scaleX(1); }
.nav-link:focus-visible { box-shadow: var(--ring); }
.has-menu { position: relative; }
.mega {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 320px; padding: .5rem; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(41,52,31,.18), 0 2px 8px rgba(41,52,31,.08);
  opacity: 0; visibility: hidden; transition: all var(--dur-2) var(--ease-out); display: grid; gap: 2px;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
:root[data-theme="dark"] .mega { background: var(--surface); border-color: var(--border); }
.has-menu:hover .mega, .has-menu:focus-within .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega a { display: flex; gap: .85rem; align-items: center; padding: .7rem .8rem; border-radius: var(--r-md); transition: background var(--dur-1); }
.mega a:hover { background: var(--surface-2); }
.mega a > span:last-child { display: flex; flex-direction: column; gap: 2px; line-height: 1.25; }
.mega a br { display: none; }
.mega .m-title { font-weight: 600; color: var(--text); }
.mega .m-desc { font-size: var(--fs-xs); color: var(--text-subtle); }
.nav-tools { display: flex; align-items: center; gap: .5rem; }
.theme-toggle, .nav-burger {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: var(--r-pill);
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
}
.nav-burger { display: none; }
@media (max-width: 1140px) {
  .nav-links { display: none; }
  .nav-burger { display: grid; }
}

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: var(--z-modal); visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(20,21,15,.5); opacity: 0; transition: opacity var(--dur-2); }
.drawer.open .drawer-scrim { opacity: 1; }
.drawer-panel {
  position: absolute; right: 0; top: 0; height: 100%; width: min(88vw, 360px);
  background: var(--surface); box-shadow: var(--sh-xl); padding: var(--sp-6);
  transform: translateX(100%); transition: transform var(--dur-2) var(--ease-out); overflow-y: auto;
}
.drawer.open .drawer-panel { transform: translateX(0); }
.drawer-panel a { display: block; padding: .8rem .2rem; border-bottom: 1px solid var(--border); font-weight: 500; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--grad-hero); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--sp-8); align-items: center; padding-block: clamp(3rem, 2rem + 5vw, 6rem); }
@media (max-width: 900px){ .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { margin-top: var(--sp-4); }
.hero .lead { margin-top: var(--sp-5); max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }
.hero-media { position: relative; border-radius: var(--r-2xl); overflow: hidden; box-shadow: var(--sh-xl); aspect-ratio: 4/5; }
.hero-media img { width:100%; height:100%; object-fit: cover; }
.hero-badge { position:absolute; padding: var(--sp-4); border-radius: var(--r-lg); box-shadow: var(--sh-md); }
.blob { position:absolute; filter: blur(40px); opacity:.5; border-radius:50%; z-index:0; pointer-events:none; }

/* ---------- Stats ---------- */
.stat { text-align: center; }
.stat .num { font-family: var(--font-display); font-size: clamp(2.2rem, 1.5rem + 2vw, 3.2rem); font-weight: 600; color: var(--primary); line-height: 1; }
.stat .lbl { color: var(--text-muted); font-size: var(--fs-sm); margin-top: .4rem; }

/* ---------- Premium stats band ---------- */
.stats-band {
  position: relative; overflow: hidden; border-radius: var(--r-2xl); isolation: isolate;
  background: linear-gradient(150deg, #3a4d29 0%, #435729 48%, #38491f 100%);
  color:#fff; padding: clamp(2.4rem, 1.8rem + 2.4vw, 3.6rem) clamp(1.25rem, 0.5rem + 2.5vw, 2.75rem);
  box-shadow: 0 24px 60px rgba(41,52,31,.28); border: 1px solid rgba(255,255,255,.07);
}
/* soft warm glow (top-right) + subtle sheen (bottom-left) — gold as accent only */
.stats-band::before {
  content:""; position:absolute; inset:0; z-index:-1; pointer-events:none;
  background:
    radial-gradient(460px 220px at 88% -10%, rgba(212,160,23,.20), transparent 68%),
    radial-gradient(360px 200px at 6% 118%, rgba(255,255,255,.07), transparent 70%);
}
/* thin gold hairline across the top */
.stats-band::after {
  content:""; position:absolute; top:0; left:8%; right:8%; height:1px;
  background: linear-gradient(90deg, transparent, var(--gold-300), transparent); opacity:.55;
}
.stats-band .stats-inner {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
@media (max-width: 720px){ .stats-band .stats-inner{ grid-template-columns: repeat(2,1fr); gap: 2.2rem 1rem;} }
.stat-cell { text-align: center; position: relative; padding: .25rem 1rem; }
.stat-cell + .stat-cell::before {
  content:""; position:absolute; left:0; top:12%; bottom:12%; width:1px;
  background: linear-gradient(transparent, rgba(255,255,255,.22), transparent);
}
@media (max-width: 720px){ .stat-cell:nth-child(odd)::before{ display:none;} }
.stat-cell .s-ic {
  width: 50px; height: 50px; margin: 0 auto 1.1rem; border-radius: 15px;
  display: grid; place-items: center; color: var(--gold-200);
  background: rgba(226,179,74,.14); border: 1px solid rgba(226,179,74,.30);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.stat-cell .s-num {
  font-family: var(--font-display); font-weight: 600; line-height: 1; letter-spacing: -.01em;
  font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.1rem);
  background: linear-gradient(180deg, #ffffff 30%, var(--gold-100));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-cell .s-lbl { margin-top: .7rem; font-size: var(--fs-sm); font-weight: 500; letter-spacing: .01em; color: rgba(255,255,255,.74); }

/* ---------- Trust bar / marquee ---------- */
.trustbar { display:flex; flex-wrap:wrap; gap: var(--sp-5) var(--sp-8); align-items:center; justify-content:center; opacity:.85; }
.trustbar .pill { background: var(--surface); border: 1px solid var(--border); }

/* ---------- Accreditation medallions (premium) ---------- */
.accred-grid { display:grid; grid-template-columns: repeat(5, 1fr); gap: var(--sp-4); }
@media (max-width: 1024px){ .accred-grid{ grid-template-columns: repeat(3,1fr);} }
@media (max-width: 720px){ .accred-grid{ grid-template-columns: repeat(2,1fr);} }
@media (max-width: 460px){ .accred-grid{ grid-template-columns: 1fr;} }
.accred-card {
  position: relative; text-align: center; padding: 2rem 1.1rem 1.4rem;
  border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--sh-sm); overflow: hidden; isolation: isolate;
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2), border-color var(--dur-2);
}
.accred-card::before {
  content:""; position:absolute; inset:0 0 auto 0; height:3px;
  background: var(--grad-gold); opacity:.85;
}
.accred-card::after {
  content:""; position:absolute; z-index:-1; width:140px; height:140px; border-radius:50%;
  background: radial-gradient(closest-side, var(--sage-100), transparent 70%);
  top:-40px; left:50%; transform:translateX(-50%); opacity:.7; transition:opacity var(--dur-2);
}
.accred-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: var(--gold-200); }
.accred-card:hover .seal { transform: scale(1.06) rotate(-3deg); }
.accred-card:hover::after { opacity:1; }

.seal {
  width: 78px; height: 78px; margin: 0 auto 1rem; border-radius: 50%;
  display: grid; place-items: center; position: relative; color: var(--sage-700);
  background: radial-gradient(circle at 50% 38%, var(--ivory-50), var(--sage-100));
  box-shadow: 0 0 0 1px var(--gold-300), 0 0 0 6px var(--surface), 0 0 0 7px var(--sage-100), var(--sh-sm);
  transition: transform var(--dur-3) var(--ease-out);
}
:root[data-theme="dark"] .seal { color: var(--sage-300); background: radial-gradient(circle at 50% 38%, #24261b, #2b3720); }
.seal svg { width: 40px; height: 40px; }
/* subtle notched-seal dots ring */
.seal-dots { position:absolute; inset:-3px; border-radius:50%; border:1.5px dashed var(--gold-300); opacity:.5; }
.seal-check {
  position:absolute; right:-2px; bottom:-2px; width:24px; height:24px; border-radius:50%;
  background: var(--gold-500); color:#fff; display:grid; place-items:center; font-size:.7rem; font-weight:800;
  box-shadow: 0 0 0 3px var(--surface);
}
.accred-card h3 { font-family: var(--font-display); font-size: 1rem; line-height:1.25; margin:0; }
.accred-card .role { display:block; margin-top:.35rem; font-size:.72rem; letter-spacing:.02em; color: var(--text-subtle); }
.accred-verified {
  display:inline-flex; align-items:center; gap:.3rem; margin-top:.8rem;
  font-size:.66rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
  color: var(--sage-700); background: var(--sage-100); padding:.25rem .6rem; border-radius: var(--r-pill);
}
:root[data-theme="dark"] .accred-verified { color: var(--sage-300); background: #2b3720; }

/* ---------- Testimonials ---------- */
.tcard { background: var(--surface); border:1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-6); box-shadow: var(--sh-sm); }
.tcard .quote { font-family: var(--font-display); font-size: 1.1rem; line-height: 1.5; }
.tcard .who { display:flex; align-items:center; gap:.75rem; margin-top: var(--sp-4); }
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--grad-sage); display:grid; place-items:center; color:#fff; font-weight:600; }
.stars { color: var(--gold-500); letter-spacing: 2px; }

/* Founder cards — large square photo, name + designation below */
.founder-card { text-align: center; }
.founder-photo {
  display: block;
  width: 100%;
  max-width: 260px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: top center;
  margin: 0 auto;
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(45,55,25,.16);
  border: 3px solid var(--surface, #fff);
  outline: 1px solid color-mix(in srgb, var(--sage-500, #6e8b43) 22%, transparent);
}
.founder-name { margin: 1.15rem 0 .55rem; }
.founder-card .pill { display: inline-flex; }
.founder-card p { text-align: left; margin-top: 1.1rem; }

/* ---------- Feature icon chip ---------- */
.feat-ic { width:52px; height:52px; border-radius:15px; display:grid; place-items:center; margin-bottom:1.1rem;
  background: var(--sage-100); color: var(--sage-700); box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }
.feat-ic svg { width:25px; height:25px; }
:root[data-theme="dark"] .feat-ic { background:#2b3720; color: var(--sage-300); }
.feat-ic.gold { background: var(--gold-50); color: var(--gold-600); }
:root[data-theme="dark"] .feat-ic.gold { background:#2e2713; color: var(--gold-300); }

/* Inline list icon (info rows) */
.li-ico { width:16px; height:16px; color: var(--accent); flex:none; }
.info-rows .muted { display:inline-flex; align-items:center; gap:.55rem; }

/* ---------- Teacher card ---------- */
.teacher { text-align:center; }
.teacher img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; margin-inline:auto; border: 3px solid var(--surface); box-shadow: var(--sh-sm); }
.teacher .name { font-family: var(--font-display); font-weight:600; margin-top: var(--sp-3); }

/* ---------- Accordion (FAQ) ---------- */
.acc-item { border-bottom: 1px solid var(--border); }
.acc-btn { width:100%; display:flex; justify-content:space-between; align-items:center; gap:1rem; padding: var(--sp-5) 0; text-align:left; background:none; border:none; font-family: var(--font-display); font-weight:600; font-size:1.1rem; color:var(--text); }
.acc-btn .ico { transition: transform var(--dur-2); color: var(--accent); flex: none; }
.acc-btn[aria-expanded="true"] .ico { transform: rotate(45deg); }
.acc-panel { display:grid; grid-template-rows:0fr; transition: grid-template-rows var(--dur-2) var(--ease-out); }
.acc-panel[data-open] { grid-template-rows:1fr; }
.acc-panel > div { overflow:hidden; }
.acc-panel p { padding-bottom: var(--sp-5); color: var(--text-muted); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--grad-cta); color: #fff; border-radius: var(--r-2xl);
  padding: clamp(3rem, 2.25rem + 3vw, 5rem) clamp(1.5rem, 0.75rem + 3vw, 4rem);
  text-align:center; position:relative; overflow:hidden; isolation:isolate;
  box-shadow: 0 24px 60px rgba(41,52,31,.24); border:1px solid rgba(255,255,255,.06);
}
.cta-band::after {
  content:""; position:absolute; z-index:-1; inset:0; pointer-events:none;
  background: radial-gradient(520px 240px at 88% -10%, rgba(212,160,23,.20), transparent 66%);
}
.cta-band h2, .cta-band p { color: #fff; }
.cta-band h2 { margin: 0; }
.cta-band .lead { color: rgba(255,255,255,.85); margin-top: var(--sp-3); max-width: 52ch; margin-inline:auto; }
.cta-band .eyebrow { color: #fff; }
/* button row — balanced spacing, wraps on small screens */
.cta-band .flex {
  margin-top: clamp(1.75rem, 1.25rem + 1.4vw, 2.5rem) !important;
  gap: clamp(.6rem, .4rem + .6vw, 1rem); flex-wrap: wrap; justify-content: center;
}
.cta-band .btn { padding: 1rem 2rem; }
@media (max-width: 480px){ .cta-band .btn { width: 100%; } }

/* ---------- Footer ---------- */
.footer { background: var(--ink-900); color: var(--ivory-200); padding-block: var(--sp-9) var(--sp-6); }
:root[data-theme="dark"] .footer { background: #0f100b; }
.footer a { color: var(--ivory-300); transition: color var(--dur-1); }
.footer a:hover { color: var(--gold-300); }
.footer h4 { color: #fff; margin-bottom: var(--sp-4); font-size: 1rem; }
.footer-grid { display:grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: var(--sp-7); }
@media (max-width: 900px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .footer-grid { grid-template-columns: 1fr; } }
.footer-links { list-style:none; padding:0; display:grid; gap:.6rem; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.1); margin-top: var(--sp-7); padding-top: var(--sp-5); display:flex; flex-wrap:wrap; gap:1rem; justify-content:space-between; font-size:var(--fs-sm); color: var(--clay-400); }

/* ---------- Blog (Binance-style listing + article) ---------- */
.blog-tabs { display:flex; flex-wrap:wrap; gap:.5rem; }
.blog-featured { display:grid; grid-template-columns:1fr 1fr; background:var(--surface); border:1px solid var(--border); border-radius:var(--r-xl); overflow:hidden; box-shadow:var(--sh-sm); transition:box-shadow var(--dur-3), transform var(--dur-3) var(--ease-out); }
.blog-featured:hover { box-shadow:var(--sh-lg); transform:translateY(-4px); }
@media(max-width:820px){ .blog-featured{ grid-template-columns:1fr; } }
.bf-media { overflow:hidden; }
.blog-featured { align-items:stretch; }
.bf-media { max-height:300px; }
.bf-media img { width:100%; height:100%; max-height:300px; object-fit:cover; object-position:center 30%; transition:transform var(--dur-4) var(--ease-out); }
@media(max-width:820px){ .bf-media, .bf-media img{ max-height:220px; } }
.blog-featured:hover .bf-media img { transform:scale(1.05); }
.bf-body { padding:clamp(1.4rem,1rem + 1.6vw,2.4rem); display:flex; flex-direction:column; justify-content:center; gap:.7rem; }
.bf-body h2 { font-size:clamp(1.4rem,1.1rem + 1.2vw,2rem) !important; line-height:1.2; }
.bf-body .lead { font-size:1rem; }
.blog-meta { font-size:var(--fs-sm); color:var(--text-subtle); display:flex; flex-wrap:wrap; gap:.5rem; align-items:center; }
.blog-meta .dot { width:3px; height:3px; border-radius:50%; background:var(--clay-400); }
.blog-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); overflow:hidden; box-shadow:var(--sh-xs); transition:box-shadow var(--dur-3), transform var(--dur-3) var(--ease-out), border-color var(--dur-2); display:flex; flex-direction:column; }
.blog-card:hover { box-shadow:var(--sh-lg); transform:translateY(-6px); border-color:var(--sage-200); }
.bc-media { overflow:hidden; }
.bc-media img { width:100%; aspect-ratio:16/10; object-fit:cover; transition:transform var(--dur-4) var(--ease-out); }
.blog-card:hover .bc-media img { transform:scale(1.06); }
.bc-body { padding:1.2rem 1.3rem 1.4rem; display:flex; flex-direction:column; gap:.55rem; flex:1; }
.bc-body h3 { font-size:1.18rem; line-height:1.25; }
.bc-cat { font-size:var(--fs-xs); font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--sage-600); }

/* Article (blog detail) */
.article-head { max-width:820px; margin-inline:auto; text-align:center; }
.article-head h1 { font-size:clamp(2rem,1.4rem + 2.6vw,3.2rem); margin:1rem 0; }
.article-hero { border-radius:var(--r-2xl); overflow:hidden; box-shadow:var(--sh-lg); margin-block:clamp(2rem,1.4rem + 2vw,3.25rem); }
.article-hero img { width:100%; aspect-ratio:16/9; max-height:460px; object-fit:cover; object-position:center; display:block; }
.prose { max-width:720px; margin-inline:auto; line-height:1.85; }
.prose > * + * { margin-top:1.25rem; }
.prose h2 { font-size:1.6rem; margin-top:2.25rem; }
.prose h3 { font-size:1.3rem; margin-top:1.75rem; }
.prose p, .prose li { color:var(--text); }
.prose ul { padding-left:1.2rem; display:grid; gap:.5rem; }
.prose blockquote { border-left:3px solid var(--accent); padding:1rem 0 1rem 1.5rem; font-family:var(--font-display); font-size:1.25rem; color:var(--text); font-style:italic; }
.share-row { display:flex; gap:.5rem; align-items:center; }
.share-btn { width:38px; height:38px; border-radius:50%; border:1px solid var(--border); background:var(--surface); display:grid; place-items:center; color:var(--text-muted); transition:all var(--dur-1); }
.share-btn:hover { border-color:var(--primary); color:var(--primary); transform:translateY(-2px); }
.tag { font-size:var(--fs-xs); padding:.35rem .8rem; border-radius:var(--r-pill); background:var(--surface-2); color:var(--text-muted); }

/* ---------- Modal (lead form) ---------- */
.modal { position: fixed; inset: 0; z-index: var(--z-modal); display: grid; place-items: center; padding: var(--gutter); visibility: hidden; }
.modal.open { visibility: visible; }
.modal-scrim { position:absolute; inset:0; background: rgba(20,21,15,.55); opacity:0; transition: opacity var(--dur-2); }
.modal.open .modal-scrim { opacity:1; }
.modal-card { position:relative; width:min(520px,100%); background:var(--surface); border-radius:var(--r-xl); padding: var(--sp-7); box-shadow: var(--sh-xl); transform: translateY(16px) scale(.98); opacity:0; transition: all var(--dur-2) var(--ease-out); }
.modal.open .modal-card { transform:none; opacity:1; }
.modal-close { position:absolute; top:14px; right:14px; width:38px; height:38px; border-radius:var(--r-pill); border:1px solid var(--border); background:var(--surface); display:grid; place-items:center; }

/* ---------- Forms ---------- */
.field { display:grid; gap:.4rem; margin-bottom: var(--sp-4); }
.field label { font-size: var(--fs-sm); font-weight:600; color: var(--text); }
.input, .select, .textarea {
  width:100%; padding:.8rem 1rem; border-radius: var(--r-md); border:1px solid var(--border);
  background: var(--surface); color: var(--text); font: inherit; transition: border var(--dur-1), box-shadow var(--dur-1);
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary); box-shadow: var(--ring); outline:none; }

/* ---------- Custom themed select (matches form fields) ---------- */
.nselect { position: relative; }
.nselect > select { position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; margin:0; }
.nselect-trigger {
  width:100%; display:flex; align-items:center; justify-content:space-between; gap:.5rem;
  padding:.8rem 1rem; border-radius: var(--r-md); border:1px solid var(--border);
  background: var(--surface); color: var(--text); font:inherit; font-size:1rem; text-align:left; line-height:1.3;
  transition: border var(--dur-1), box-shadow var(--dur-1);
}
.nselect-trigger:hover { border-color: var(--border-strong); }
.nselect.open .nselect-trigger, .nselect-trigger:focus-visible { border-color: var(--primary); box-shadow: var(--ring); outline:none; }
.nselect-trigger .chev { flex:none; color: var(--text-subtle); transition: transform var(--dur-2) var(--ease-out); }
.nselect.open .nselect-trigger .chev { transform: rotate(180deg); color: var(--primary); }
.nselect-menu {
  position:absolute; top:calc(100% + 6px); left:0; right:0; z-index: var(--z-modal);
  background: var(--surface); border:1px solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--sh-lg); padding:.35rem; margin:0; list-style:none; max-height: 264px; overflow-y:auto;
  opacity:0; visibility:hidden; transform: translateY(-8px) scale(.99); transform-origin: top center;
  transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out), visibility var(--dur-2);
}
.nselect.open .nselect-menu { opacity:1; visibility:visible; transform:none; }
.nselect.up .nselect-menu { top:auto; bottom:calc(100% + 6px); transform-origin: bottom center; }
.nselect-option {
  padding:.6rem .75rem; border-radius: var(--r-sm); font-size:.95rem; cursor:pointer;
  display:flex; align-items:center; gap:.5rem; color: var(--text); transition: background var(--dur-1);
}
.nselect-option:hover, .nselect-option.active { background: var(--surface-2); }
.nselect-option[aria-selected="true"] { color: var(--primary); font-weight:600; }
.nselect-option[aria-selected="true"]::after { content:""; width:15px; height:15px; margin-left:auto; flex:none;
  background: currentColor; -webkit-mask: var(--chk-mask) center/contain no-repeat; mask: var(--chk-mask) center/contain no-repeat; }
:root { --chk-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }

/* ---------- Phone field with country code ---------- */
.phone-group { position: relative; display: flex; align-items: stretch; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); transition: border var(--dur-1), box-shadow var(--dur-1); }
.phone-group:focus-within { border-color: var(--primary); box-shadow: var(--ring); }
.phone-cc { display: flex; align-items: center; gap: .35rem; padding: .8rem .75rem; border: 0; background: transparent; border-right: 1px solid var(--border); font: inherit; font-size: .95rem; color: var(--text); cursor: pointer; white-space: nowrap; border-radius: var(--r-md) 0 0 var(--r-md); transition: background var(--dur-1); }
.phone-cc:hover { background: var(--surface-2); }
.phone-cc .flag { font-size: 1.15rem; line-height: 1; }
.phone-cc .chev { width: 14px; height: 14px; color: var(--text-subtle); transition: transform var(--dur-2); }
.phone-group.open .phone-cc .chev { transform: rotate(180deg); }
.phone-group input[type="tel"] { border: 0 !important; box-shadow: none !important; background: transparent; flex: 1; min-width: 0; padding: .8rem 1rem; border-radius: 0 var(--r-md) var(--r-md) 0; }
.phone-group input[type="tel"]:focus { outline: none; box-shadow: none !important; }
.phone-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: var(--z-modal); min-width: 240px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--sh-lg); padding: .3rem; list-style: none; margin: 0; max-height: 244px; overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.99); transform-origin: top left; transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out), visibility var(--dur-2); }
.phone-group.open .phone-menu { opacity: 1; visibility: visible; transform: none; }
.phone-opt { display: flex; align-items: center; gap: .5rem; padding: .55rem .7rem; border-radius: var(--r-sm); font-size: .9rem; cursor: pointer; color: var(--text); transition: background var(--dur-1); }
.phone-opt:hover { background: var(--surface-2); }
.phone-opt .flag { font-size: 1.1rem; }
.phone-opt .dc { margin-left: auto; color: var(--text-subtle); }

/* ---------- WhatsApp float ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: var(--z-nav); width: 58px; height: 58px; border-radius:50%; background:#25D366; color:#fff; display:grid; place-items:center; box-shadow: var(--sh-lg); transition: transform var(--dur-2); }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-reveal="fade"] { transform: none; }
.reveal-delay-1 { transition-delay: .08s; } .reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; } .reveal-delay-4 { transition-delay: .32s; }

/* ---------- Utilities ---------- */
.flex { display:flex; } .items-center { align-items:center; } .justify-between { justify-content:space-between; }
.gap-2 { gap: var(--sp-2);} .gap-3 { gap: var(--sp-3);} .gap-4 { gap: var(--sp-4);}
.wrap { flex-wrap: wrap; } .mt-4 { margin-top: var(--sp-4);} .mt-6 { margin-top: var(--sp-6);}
.hide { display:none !important; } .relative { position:relative; }
.divider { height:1px; background: var(--border); border:0; }

/* ==========================================================================
   PREMIUM POLISH — theme-gradient pass (applies site-wide)
   ========================================================================== */

/* Ambient background gradients — subtle sage + gold wash behind everything */
body { position: relative; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(55vw 46vw at 100% -12%, rgba(110,139,67,.13), transparent 60%),
    radial-gradient(52vw 46vw at -12% 108%, rgba(212,160,23,.11), transparent 60%);
}
:root[data-theme="dark"] body::before {
  background:
    radial-gradient(55vw 46vw at 100% -12%, rgba(139,166,94,.10), transparent 60%),
    radial-gradient(52vw 46vw at -12% 108%, rgba(212,160,23,.07), transparent 60%);
}

/* Gradient buttons */
.btn-primary { background: linear-gradient(135deg, var(--sage-600) 0%, var(--sage-800) 100%); }
.btn-primary:hover { background: linear-gradient(135deg, var(--sage-700), var(--sage-900)); box-shadow: var(--sh-md); }
.btn-accent { background: linear-gradient(135deg, var(--gold-400), var(--gold-600)); color: var(--ink-900); }
.btn-accent:hover { background: linear-gradient(135deg, var(--gold-500), var(--gold-700)); box-shadow: var(--sh-gold); }

/* Gradient eyebrow labels */
.eyebrow { background: linear-gradient(90deg, var(--sage-600), var(--gold-600)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Premium card hover — animated gold top accent + deeper glow */
.card-hover { position: relative; }
.card-hover::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 2;
  background: var(--grad-gold); border-radius: var(--r-lg) var(--r-lg) 0 0;
  opacity: 0; transform: scaleX(.35); transform-origin: center;
  transition: opacity var(--dur-2), transform var(--dur-2) var(--ease-out);
}
.card-hover:hover::before { opacity: 1; transform: scaleX(1); }
.card-hover:hover { box-shadow: 0 22px 48px rgba(67,87,41,.16); }

/* Feature icon chips — soft gradient */
.feat-ic { background: linear-gradient(150deg, var(--sage-100), var(--sage-50)); }
.feat-ic.gold { background: linear-gradient(150deg, var(--gold-100), var(--gold-50)); }

/* Section headers get a faint radial halo behind the title */
.section-head { position: relative; isolation: isolate; }
.section-head::before {
  content: ""; position: absolute; z-index: -1; top: -30px; left: 50%; transform: translateX(-50%);
  width: 340px; height: 200px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(110,139,67,.10), transparent 72%);
  pointer-events: none;
}

/* Richer stat numbers */
.stat .num { background: linear-gradient(180deg, var(--sage-600), var(--sage-800)); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-theme="dark"] .stat .num { background: linear-gradient(180deg, var(--sage-300), var(--sage-500)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Pills — subtle gradient depth */
.pill-sage { background: linear-gradient(135deg, var(--sage-100), var(--sage-50)); }
.pill-gold { background: linear-gradient(135deg, var(--gold-100), var(--gold-50)); }
.pill-terra { background: linear-gradient(135deg, var(--terra-100), #f7e9e4); }

/* Footer — subtle gradient depth instead of flat ink */
.footer { background: linear-gradient(180deg, var(--ink-800), var(--ink-900)); }
:root[data-theme="dark"] .footer { background: linear-gradient(180deg, #14150f, #0d0e09); }

/* Reduced motion safety */
@media (prefers-reduced-motion: reduce) { .card-hover::before { transition: none; } }

/* ==========================================================================
   CAROUSEL / SLIDER + premium hero media
   ========================================================================== */
.carousel-wrap { position: relative; }
.carousel { display: flex; gap: var(--sp-5); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: .5rem .25rem 1rem; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { scroll-snap-align: start; flex: 0 0 auto; }
.carousel-dots { display: flex; gap: .5rem; justify-content: center; margin-top: var(--sp-4); }
.carousel-dots button { width: 8px; height: 8px; border-radius: 999px; border: 0; background: var(--border-strong); cursor: pointer; transition: width var(--dur-2) var(--ease-out), background var(--dur-2); padding: 0; }
.carousel-dots button.on { width: 28px; background: var(--grad-gold); }
.carousel-arrow { position: absolute; top: 42%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--sh-md); display: grid; place-items: center; cursor: pointer; z-index: 4; color: var(--text); transition: background var(--dur-1), color var(--dur-1), transform var(--dur-1); }
.carousel-arrow:hover { background: var(--primary); color: #fff; border-color: var(--primary); transform: translateY(-50%) scale(1.06); }
.carousel-arrow svg { width: 20px; height: 20px; }
.carousel-arrow.prev { left: -14px; } .carousel-arrow.next { right: -14px; }
@media (max-width: 760px){ .carousel-arrow { display: none; } }

/* Testimonial slide sizing */
.carousel .tcard { width: min(400px, 84vw); white-space: normal; }
/* Gallery slide */
.gcard { width: min(300px, 74vw); aspect-ratio: 3/4; border-radius: var(--r-xl); overflow: hidden; position: relative; box-shadow: var(--sh-md); }
.gcard img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-4) var(--ease-out); }
.gcard:hover img { transform: scale(1.06); }
.gcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(41,52,31,.72)); }
.gcard .cap { position: absolute; left: 1rem; bottom: 1rem; right: 1rem; z-index: 2; color: #fff; }
.gcard .cap b { font-family: var(--font-display); font-size: 1.05rem; }
.gcard .cap span { display: block; font-size: var(--fs-xs); color: rgba(255,255,255,.8); }

/* Premium hero media — gradient overlay + framing */
.hero-media { position: relative; }
.hero-media::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(155deg, rgba(67,87,41,.06) 0%, transparent 45%, rgba(41,52,31,.4) 100%); pointer-events: none; }
.hero-media .hero-badge { z-index: 2; }
.hero-frame { position: relative; border-radius: var(--r-2xl); padding: 10px; background: linear-gradient(150deg, var(--sage-200), var(--gold-200)); box-shadow: var(--sh-xl); }
.hero-frame > .hero-media { border-radius: calc(var(--r-2xl) - 8px); box-shadow: none; }

/* ==========================================================================
   PREMIUM FOOTER
   ========================================================================== */
.footer {
  position: relative; overflow: hidden; color: var(--ivory-200);
  padding-block: clamp(3rem, 2rem + 3vw, 5rem) 1.75rem;
  background:
    radial-gradient(60vw 44vw at 85% -25%, rgba(212,160,23,.16), transparent 58%),
    radial-gradient(52vw 44vw at 8% 125%, rgba(110,139,67,.20), transparent 58%),
    linear-gradient(180deg, #2b3720 0%, #1c2415 45%, #14150f 100%);
}
:root[data-theme="dark"] .footer {
  background:
    radial-gradient(60vw 44vw at 85% -25%, rgba(212,160,23,.12), transparent 58%),
    radial-gradient(52vw 44vw at 8% 125%, rgba(110,139,67,.14), transparent 58%),
    linear-gradient(180deg, #10120b 0%, #0d0e09 100%);
}
.footer::before { content:""; position:absolute; top:0; left:0; right:0; height:1px; background: linear-gradient(90deg, transparent, var(--gold-400) 30%, var(--sage-400) 70%, transparent); opacity:.75; }
.footer .container { position: relative; z-index: 1; }
.footer h4 { color:#fff; font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 1.1rem; position: relative; padding-bottom: .55rem; }
.footer h4::after { content:""; position:absolute; left:0; bottom:0; width:24px; height:2px; border-radius:2px; background: var(--grad-gold); }
.footer p { color: rgba(236,234,217,.72) !important; }
.footer a { color: rgba(236,234,217,.8); transition: color var(--dur-1); }
.footer a:hover { color: var(--gold-300); }
.footer-links { list-style:none; padding:0; display:grid; gap:.7rem; }
.footer-links a { display:inline-flex; align-items:center; gap:.45rem; width:max-content; max-width:100%; }
.footer-links a::before { content:""; width:0; height:1.5px; background: var(--gold-400); border-radius:2px; flex:none; transition: width var(--dur-2) var(--ease-out); }
.footer-links a:hover::before { width:16px; }
.footer .nav-logo img { height:46px; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.12); margin-top: var(--sp-8); padding-top: var(--sp-5); display:flex; flex-wrap:wrap; gap:1rem; justify-content:space-between; align-items:center; font-size:var(--fs-sm); color: rgba(236,234,217,.62); }
.footer-bottom a { color: rgba(236,234,217,.72); }

/* Injected social row */
.footer-social { display:flex; align-items:center; gap:.7rem; margin-top: 1.25rem; flex-wrap:wrap; }
.footer-social a {
  width:42px; height:42px; border-radius:12px; display:grid; place-items:center;
  color:#fff; border:1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05);
  transition: transform var(--dur-1) var(--ease-out), background var(--dur-2), border-color var(--dur-2);
}
.footer-social a:hover { transform: translateY(-3px); background: linear-gradient(135deg, var(--sage-600), var(--gold-600)); border-color: transparent; color:#fff; }
.footer-social a svg { width:19px; height:19px; }
.footer-brandline { font-family: var(--font-display); font-size: clamp(1.6rem, 1.2rem + 2vw, 2.6rem); color: rgba(255,255,255,.06); font-weight: 600; letter-spacing:.02em; position:absolute; right: var(--gutter); bottom: 4.5rem; pointer-events:none; z-index:0; white-space:nowrap; }
@media (max-width: 760px){ .footer-brandline { display:none; } }

/* ==========================================================================
   ARTICLE two-column layout + sticky sidebar
   ========================================================================== */
.article-layout { display:grid; grid-template-columns: minmax(0,1fr) 320px; gap: clamp(2rem,1rem + 3vw,4.5rem); align-items:start; margin-top: clamp(1.5rem,1rem + 2vw,3rem); padding-top: clamp(1.5rem,1rem + 2vw,3rem); border-top: 1px solid var(--border); }
@media (max-width: 960px){ .article-layout { grid-template-columns: 1fr; } .article-side { position: static !important; } }
.article-layout .prose { max-width: 760px; margin: 0; }
.article-side { position: sticky; top: 88px; display:flex; flex-direction:column; gap:1.1rem; }
.side-card { background: var(--surface); border:1px solid var(--border); border-radius: var(--r-lg); padding: 1.25rem 1.35rem; box-shadow: var(--sh-xs); }
.side-card .lbl { font-size:.72rem; text-transform:uppercase; letter-spacing:.12em; font-weight:700; color: var(--text-subtle); margin-bottom:.85rem; display:block; }
.toc { display:grid; gap:.1rem; }
.toc a { display:block; padding:.45rem 0 .45rem .85rem; border-left:2px solid var(--border); color: var(--text-muted); font-size:.9rem; transition: border-color var(--dur-1), color var(--dur-1); }
.toc a:hover, .toc a.active { border-color: var(--accent); color: var(--primary); font-weight:600; }
.pop-item { display:flex; gap:.75rem; align-items:center; padding:.6rem 0; border-top:1px solid var(--border); }
.pop-item:first-of-type { border-top:0; padding-top:0; }
.pop-item img { width:58px; height:58px; border-radius:10px; object-fit:cover; flex:none; }
.pop-item b { font-size:.86rem; line-height:1.3; display:block; color: var(--text); }
.pop-item span { font-size: var(--fs-xs); color: var(--text-subtle); }
.pop-item:hover b { color: var(--primary); }
.side-share { display:flex; gap:.5rem; }
.side-cta { background: var(--grad-cta); color:#fff; border:0; text-align:center; overflow:hidden; position:relative; }
.side-cta::after { content:""; position:absolute; inset:0; background: radial-gradient(300px 140px at 90% -10%, rgba(212,160,23,.28), transparent 60%); pointer-events:none; }
.side-cta .lbl { color: rgba(255,255,255,.75); position:relative; }
.side-cta h4 { color:#fff; font-family: var(--font-display); font-size:1.25rem; margin:.2rem 0 .5rem; position:relative; }
.side-cta p { color: rgba(255,255,255,.85); font-size: var(--fs-sm); margin-bottom:1rem; position:relative; }
.side-cta .btn { position:relative; }
.reading-bar { position: fixed; top: 0; left: 0; height: 3px; background: var(--grad-gold); z-index: 300; width: 0; transition: width .1s linear; }

/* ==========================================================================
   3D EFFECTS · ANIMATIONS · PAGE TRANSITIONS
   ========================================================================== */
/* Cross-page transitions disabled — the MPA view-transition flash was causing
   screen flicker on some devices. Navigation is now instant (no flash). */
@view-transition { navigation: none; }

/* 3D tilt scaffolding (JS applies the rotation) */
.card-hover, .gcard, .hero-frame, .tcard, .accred-card { transform-style: preserve-3d; }
.tilt-lift { will-change: transform; }
.hero-frame .hero-badge, .gcard .cap { transform: translateZ(40px); }

/* Floating micro-animation on hero badges */
@keyframes floaty { 0%,100% { transform: translateZ(40px) translateY(0); } 50% { transform: translateZ(40px) translateY(-9px); } }
.hero-media .hero-badge { animation: floaty 5.5s ease-in-out infinite; }
.hero-media .hero-badge:nth-of-type(2) { animation-delay: -2.75s; }

/* Zoom-reveal variant */
[data-reveal="zoom"] { opacity: 0; transform: scale(.94); }
[data-reveal="zoom"].in { opacity: 1; transform: none; }

/* Shine sweep on gradient buttons */
.btn-primary, .btn-accent, .abtn-primary { position: relative; overflow: hidden; }
.btn-primary::after, .btn-accent::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-18deg); transition: left .6s var(--ease-out);
}
.btn-primary:hover::after, .btn-accent:hover::after { left: 130%; }

@media (prefers-reduced-motion: reduce) {
  .hero-media .hero-badge { animation: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .btn-primary::after, .btn-accent::after { display: none; }
}

/* ==========================================================================
   ADMISSION / REGISTRATION FORM + PHOTO CROPPER
   ========================================================================== */
.reg-form { max-width: 900px; margin-inline: auto; }
.reg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.4rem; }
@media (max-width: 640px){ .reg-grid { grid-template-columns: 1fr; } }
.reg-grid .full { grid-column: 1 / -1; }
.reg-form .field { margin-bottom: 0; }
.req::after { content: " *"; color: var(--danger); font-weight: 700; }
.reg-section-title { font-family: var(--font-display); font-size: 1.15rem; margin: .5rem 0 .25rem; }

/* Photo cropper */
/* ===== Passport-photo uploader ===== */
.photo-up {
  border: 1px solid var(--border); border-radius: 18px; padding: 1.35rem;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 55%, transparent), transparent);
}
/* Step 1 · dropzone */
.photo-drop {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: .35rem;
  padding: 1.5rem 1rem; border: 1.5px dashed color-mix(in srgb, var(--sage-500) 42%, var(--border));
  border-radius: 14px; cursor: pointer; background: var(--surface);
  transition: border-color .18s, background .18s, transform .18s;
}
.photo-drop:hover, .photo-drop.drag { border-color: var(--gold-500); background: color-mix(in srgb, var(--gold-100, #f7edcf) 40%, var(--surface)); }
.photo-drop.has-file { border-style: solid; border-color: color-mix(in srgb, var(--sage-500) 55%, transparent); }
.photo-drop__ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--grad-sage, var(--sage-500)); color: #fff; margin-bottom: .25rem; }
.photo-drop__t { font-size: .98rem; color: var(--text); }
.photo-drop__s { font-size: var(--fs-xs); color: var(--text-subtle); }

/* Steps 2 & 3 · work area */
.photo-work { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1.25rem; }
@media (max-width: 640px){ .photo-work { grid-template-columns: 1fr; } }
.photo-col { display: flex; flex-direction: column; align-items: center; gap: .7rem; }
.photo-lbl { align-self: flex-start; display: inline-flex; align-items: center; gap: .5rem; font-size: .82rem; font-weight: 700; color: var(--text-muted); }
.photo-step { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--sage-500); color: #fff; font-size: .72rem; font-style: normal; font-weight: 700; }

.crop-stage {
  width: 100%; max-width: 240px; aspect-ratio: 207 / 266; border-radius: 14px; overflow: hidden; position: relative;
  background: var(--surface-2); border: 1px solid var(--border); touch-action: none; cursor: grab;
}
.crop-stage.dragging { cursor: grabbing; }
.crop-stage::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 2px rgba(255,255,255,.55), inset 0 0 0 3px var(--gold-400); border-radius: 14px; pointer-events: none; }
.crop-stage img { position: absolute; left: 0; top: 0; max-width: none; user-select: none; -webkit-user-drag: none; }
.crop-hint { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-subtle); font-size: .84rem; text-align: center; padding: 1.25rem; pointer-events: none; }

.crop-zoom { display: flex; align-items: center; gap: .6rem; width: 100%; max-width: 240px; color: var(--text-muted); font-size: 1.1rem; }
.crop-zoom input[type=range] { flex: 1; accent-color: var(--sage-500); }

.crop-frame { position: relative; width: 207px; height: 266px; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); }
.crop-preview { width: 100%; height: 100%; object-fit: cover; display: none; }
.crop-frame__empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--text-subtle); font-size: var(--fs-xs); line-height: 1.5; }
.crop-meta { font-size: var(--fs-sm); color: var(--text-muted); min-height: 1.2em; text-align: center; margin: 0; }

/* actions */
.photo-actions { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-top: 1.25rem; padding-top: 1.1rem; border-top: 1px solid var(--border); }
.photo-actions .crop-spec { flex: 1 1 220px; margin: 0; font-size: var(--fs-xs); color: var(--text-subtle); line-height: 1.5; text-align: right; }
@media (max-width: 640px){ .photo-actions .crop-spec { text-align: left; } .photo-actions .btn { flex: 1; } }
