/* =========================================================================
   GYANVIDYA ACADEMY — DESIGN SYSTEM
   Built around the academy's lotus-sunrise mark: red → orange → gold.
   Personality: premium, disciplined, warm academic trust — not a template.
   ========================================================================= */

/* ---------------------------------------------------------------------
   1. DESIGN TOKENS
   --------------------------------------------------------------------- */
:root {
  /* Brand — sampled directly from the logo, then tuned for UI use */
  --red-primary: #E01B1F;      /* deepened logo red, headlines & primary CTAs */
  --red-deep: #B8151A;         /* pressed / dark state */
  --red-pure: #FF0000;         /* exact logo red, reserved for brand touches */
  --orange-primary: #F15A29;   /* exact logo orange */
  --orange-soft: #FF8A50;
  --gold-accent: #FBB040;      /* lotus petal-tip gold, sparing use */

  --brand-gradient: linear-gradient(135deg, var(--red-primary) 0%, var(--orange-primary) 55%, var(--gold-accent) 100%);
  --brand-gradient-text: linear-gradient(100deg, var(--red-primary) 10%, var(--orange-primary) 60%, var(--gold-accent) 110%);

  /* Neutrals — warm, never pure gray/black */
  --ink: #241A16;
  --ink-soft: #4A3B34;
  --stone: #6E625C;
  --stone-light: #9C8F88;
  --hairline: #ECE3DD;
  --hairline-strong: #E0D4CC;
  --surface: #FBF7F4;
  --surface-alt: #F5EEE8;
  --paper: #FFFCFA;
  --white: #FFFFFF;

  /* Feedback */
  --success: #2E7D4F;
  --error: #C7291E;

  /* Type scale — clamp() fluid across all breakpoints */
  --fs-xs: clamp(0.72rem, 0.68rem + 0.2vw, 0.8rem);
  --fs-sm: clamp(0.85rem, 0.8rem + 0.25vw, 0.95rem);
  --fs-base: clamp(1rem, 0.95rem + 0.25vw, 1.08rem);
  --fs-md: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem);
  --fs-lg: clamp(1.4rem, 1.2rem + 0.8vw, 1.9rem);
  --fs-xl: clamp(1.9rem, 1.5rem + 1.6vw, 2.75rem);
  --fs-2xl: clamp(2.4rem, 1.8rem + 2.6vw, 4rem);
  --fs-3xl: clamp(3rem, 2.1rem + 4vw, 5.6rem);

  /* Spacing — fluid rhythm */
  --sp-3xs: clamp(0.25rem, 0.22rem + 0.15vw, 0.375rem);
  --sp-2xs: clamp(0.5rem, 0.44rem + 0.3vw, 0.75rem);
  --sp-xs: clamp(0.75rem, 0.66rem + 0.4vw, 1rem);
  --sp-sm: clamp(1.1rem, 0.95rem + 0.6vw, 1.5rem);
  --sp-md: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
  --sp-lg: clamp(2.5rem, 1.9rem + 2.4vw, 4rem);
  --sp-xl: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);
  --sp-2xl: clamp(5rem, 3.5rem + 6vw, 9rem);

  /* Shape */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* Elevation — warm-tinted, never flat gray */
  --shadow-sm: 0 2px 10px -2px rgba(36, 26, 22, 0.09);
  --shadow-md: 0 12px 32px -8px rgba(224, 27, 31, 0.14), 0 4px 12px -4px rgba(36, 26, 22, 0.08);
  --shadow-lg: 0 24px 60px -16px rgba(224, 27, 31, 0.18), 0 8px 24px -8px rgba(36, 26, 22, 0.1);
  --shadow-inset: inset 0 0 0 1px var(--hairline);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 180ms;
  --dur-base: 320ms;
  --dur-slow: 620ms;

  /* Layout */
  --container: min(1240px, 100% - 2.5rem);
  --nav-h: 96px;
}

/* ---------------------------------------------------------------------
   2. RESET & BASE
   --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--paper);
  overflow-x: hidden;
  min-height: 100vh;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 { font-size: var(--fs-3xl); font-weight: 500; }
h2 { font-size: var(--fs-2xl); font-weight: 500; }
h3 { font-size: var(--fs-lg); font-weight: 600; }
h4 { font-size: var(--fs-md); font-weight: 600; }

p { text-wrap: pretty; }

:focus-visible {
  outline: 2.5px solid var(--orange-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--gold-accent); color: var(--ink); }

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-sm);
  z-index: 999;
  background: var(--ink);
  color: var(--white);
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-sm);
  transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus { top: var(--sp-sm); }

/* ---------------------------------------------------------------------
   3. LAYOUT UTILITIES
   --------------------------------------------------------------------- */
.container { width: var(--container); margin-inline: auto; }

.section { padding-block: var(--sp-sm); position: relative; }
.section--tight { padding-block: var(--sp-xl); }
.section--surface { background: var(--surface); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-primary);
  margin-bottom: var(--sp-xs);
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--brand-gradient);
  border-radius: 2px;
}

.section-head {
  max-width: 62ch;
  margin-bottom: var(--sp-lg);
}
.section-head--center { margin-inline: auto; text-align: center; }

.text-gradient {
  background: var(--brand-gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede { font-size: var(--fs-md); color: var(--stone); max-width: 60ch; }

.grid { display: grid; gap: var(--sp-md); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------------
   4. BUTTONS
   --------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.95em 1.9em;
  font-weight: 700;
  font-size: var(--fs-sm);
  border-radius: var(--radius-md);
  border: none;
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--brand-gradient);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--hairline-strong);
}
.btn-outline:hover {
  box-shadow: inset 0 0 0 1.5px var(--red-primary);
  color: var(--red-primary);
}

.btn-ghost-light {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.4);
  backdrop-filter: blur(8px);
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); }

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-sm { padding: 0.7em 1.4em; font-size: var(--fs-xs); }
.btn-block { width: 100%; }

/* Ripple */
.ripple { position: absolute; border-radius: 50%; background: rgba(255,255,255,0.55); transform: scale(0); animation: ripple 650ms var(--ease-out); pointer-events: none; }
@keyframes ripple { to { transform: scale(3); opacity: 0; } }

/* ---------------------------------------------------------------------
   5. NAVIGATION
   --------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255, 252, 250, 0.72);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), height var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.site-header.is-scrolled {
  height: 68px;
  background: rgba(255, 252, 250, 0.92);
  border-bottom-color: var(--hairline);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  width: var(--container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.75rem, 2vw, 2rem);
}

.brand{
  display:flex;
  align-items:center;
  gap:8px;
  margin-right:30px;
  flex-shrink:0;
}.brand img{
  height: 60px;
  width: auto;
  display:block;
}
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-word strong {
  font-family: 'Fraunces', serif;
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  font-weight: 600;
  color: var(--red-primary);
  letter-spacing: 0.01em;
}
.brand-word span {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: clamp(0.62rem, 0.8vw, 0.72rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange-primary);
}

.nav-primary {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 1.6vw, 1.9rem);
  flex: 1;
  margin-right:190px;
  justify-content: center;
  min-width: 0;
}
.nav-primary a {
  position: relative;
  font-size: clamp(0.89rem, 0.95vw, 1rem);
  font-weight: 600;
  color: var(--ink-soft);
  padding-block: 0.4em;
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease-out);
}
.nav-primary a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--brand-gradient);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease-out);
}
.nav-primary a:hover { color: var(--red-primary); }
.nav-primary a:hover::after { transform: scaleX(1); }
.nav-primary a[aria-current="page"] { color: var(--red-primary); }
.nav-primary a[aria-current="page"]::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: var(--sp-2xs); flex-shrink: 0; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: none;
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--dur-base) var(--ease-in-out), opacity var(--dur-fast) var(--ease-out);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 0;
  top: 0;
  background: var(--paper);
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: calc(var(--nav-h) + var(--sp-md)) var(--sp-lg) var(--sp-lg);
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease-in-out);
  overflow-y: auto;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav a {
  font-family: 'Fraunces', serif;
  font-size: var(--fs-lg);
  font-weight: 500;
  color: var(--ink);
  padding-block: var(--sp-xs);
  border-bottom: 1px solid var(--hairline);
  display: block;
}
.mobile-nav a[aria-current="page"] { color: var(--red-primary); }
.mobile-nav .nav-actions { margin-top: var(--sp-lg); flex-direction: column; align-items: stretch; }

/* ---------------------------------------------------------------------
   6. HERO
   --------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 5px;
  /* var(--nav-h); */
  overflow: hidden;
  background: radial-gradient(120% 90% at 82% 8%, #FFF3E9 0%, var(--paper) 42%, var(--paper) 100%);
}

.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  will-change: transform;
}
.hero-blob.b1 { width: 480px; height: 480px; top: -140px; right: -100px; background: var(--brand-gradient); }
.hero-blob.b2 { width: 320px; height: 320px; bottom: -100px; left: -80px; background: radial-gradient(circle, var(--gold-accent), transparent 70%); opacity: 0.3; }

.hero-petals {
  position: absolute;
  top: 8%;
  right: 4%;
  width: min(46vw, 620px);
  opacity: 0.9;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--sp-xl);
  align-items: center;
  padding-block: var(--sp-xl);
}

/* .hero-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: var(--sp-sm);
}
.hero-mark img { height: 150px; width: auto; }
.hero-mark span {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
} */

.hero-mark{
  display:flex;
  flex-direction:column;
  gap:8px;
  overflow:visible;
  margin-bottom:24px;
  margin-top: 50px;
}

.hero-mark h3{
  margin:0;
  font-size:1.4rem;
  font-weight:400;
  color:#444;
  line-height:1.2;
}

.hero-mark h4{
  margin: 2px;
  font-size:4rem;
  font-weight:800;
  overflow:visible;
  line-height:1.20;
  background:linear-gradient(90deg,#ff5a1f,#ff9a3d,#ff3d00);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
  color:transparent;
}

.hero-mark span{
  font-size:1rem;
  font-weight:600;
  overflow:visible;
  
  letter-spacing:2px;
  text-transform:uppercase;
  color:#666;
}

.hero h1 { margin-bottom: var(--sp-sm); }
.hero h1 em {
  font-style: italic;
  background: var(--brand-gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-tagline {
  font-size: var(--fs-md);
  color: var(--stone);
  max-width: 46ch;
  margin-bottom: var(--sp-md);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2xs); margin-bottom: var(--sp-lg); }

.hero-stats {
  display: flex;
  gap: var(--sp-md);
  flex-wrap: wrap;
  padding-top: var(--sp-md);
  border-top: 1px solid var(--hairline);
}
.hero-stat strong {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: var(--fs-lg);
  color: var(--ink);
  line-height: 1;
}
.hero-stat span { font-size: var(--fs-xs); color: var(--stone); font-weight: 600; }

.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(224,27,31,0.18), transparent 45%);
  pointer-events: none;
}
.hero-visual-badge {
  position: absolute;
  bottom: var(--sp-sm);
  left: var(--sp-sm);
  right: var(--sp-sm);
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: var(--sp-xs) var(--sp-sm);
  display: flex;
  align-items: center;
  gap: 0.75em;
  box-shadow: var(--shadow-sm);
}
.hero-visual-badge strong { font-family: 'Fraunces', serif; color: var(--red-primary); font-size: var(--fs-md); }
.hero-visual-badge span { font-size: var(--fs-xs); color: var(--stone); }

.scroll-cue {
  position: absolute;

  bottom: var(--sp-md);
  left: 50%;
  transform: translateX(-50%);
  
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5em;
  color: var(--stone);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 1;
}
.scroll-cue .stem {
  top:20px;
  width: 1px; height: 40px;
  background: linear-gradient(var(--stone-light), transparent);
  position: absolute;
  overflow: hidden;
}
.scroll-cue .stem::after {
  content: '';
  position: absolute; left: -0.5px; top: 1px;
  width: 2px; height: 20px;
  background: var(--brand-gradient);
  animation: scrollDrop 1.8s var(--ease-in-out) infinite;
}
@keyframes scrollDrop { 0% { top: 10px; } 60%, 100% { top: 10px; } }

/* ---------------------------------------------------------------------
   7. BLOOM DIVIDER — signature element
   --------------------------------------------------------------------- */
.bloom-divider { display: flex; justify-content: center; padding-block: var(--sp-sm); }
.bloom-divider svg { width: 120px; height: 40px; overflow: visible; }
.bloom-divider path {
  fill: none;
  stroke: url(#bloomGradient);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  transition: stroke-dashoffset 1.1s var(--ease-out);
}
.bloom-divider.in-view path { stroke-dashoffset: 0; }

/* ---------------------------------------------------------------------
   8. COUNTERS
   --------------------------------------------------------------------- */
.counters {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--sp-md);
  text-align: center;
}
.counter-item strong {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: var(--fs-xl);
  background: var(--brand-gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.counter-item span { font-size: var(--fs-xs); color: var(--stone); font-weight: 600; letter-spacing: 0.03em; }

/* ---------------------------------------------------------------------
   9. CARDS — courses / why-us
   --------------------------------------------------------------------- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--sp-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--hairline);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--brand-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease-out);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }

.card-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #FFF0EC, #FFE8D9);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--sp-xs);
  color: var(--red-primary);
}
.card-icon svg { width: 26px; height: 26px; }

.card h3 { margin-bottom: 0.4em; }
.card p { color: var(--stone); font-size: var(--fs-sm); margin-bottom: var(--sp-xs); }
.card-link {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-weight: 700; font-size: var(--fs-sm); color: var(--red-primary);
}
.card-link svg { width: 16px; height: 16px; transition: transform var(--dur-fast) var(--ease-out); }
.card:hover .card-link svg { transform: translateX(4px); }

.course-tags { display: flex; flex-wrap: wrap; gap: 0.4em; margin-bottom: var(--sp-xs); }
.tag {
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 0.3em 0.75em;
  border-radius: var(--radius-pill);
  background: var(--surface-alt);
  color: var(--stone);
}

/* ---------------------------------------------------------------------
   10. WHY-US ICON GRID
   --------------------------------------------------------------------- */
.feature {
  display: flex;
  gap: var(--sp-xs);
  align-items: flex-start;
  padding: var(--sp-sm);
  border-radius: var(--radius-md);
  transition: background var(--dur-base) var(--ease-out);
}
.feature:hover { background: var(--surface); }
.feature-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--brand-gradient);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
}
.feature-icon svg { width: 20px; height: 20px; }
.feature h4 { font-size: var(--fs-base); margin-bottom: 0.2em; }
.feature p { font-size: var(--fs-sm); color: var(--stone); }

/* ---------------------------------------------------------------------
   11. ABOUT SPLIT
   --------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--sp-xl);
  align-items: center;
}
.split-media { position: relative; }
.split-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
  object-fit: cover;
  width: 100%;
}
.split-media-accent {
  position: absolute;
  inset: -14px -14px auto auto;
  width: 60%;
  aspect-ratio: 1;
  border: 3px solid var(--gold-accent);
  border-radius: var(--radius-lg);
  z-index: -1;
}
.pillar-list { display: grid; gap: var(--sp-xs); margin-top: var(--sp-sm); }
.pillar {
  display: flex; gap: 0.75em; align-items: flex-start;
  padding-block: var(--sp-2xs);
}
.pillar-check {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  background: var(--brand-gradient);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.pillar-check svg { width: 13px; height: 13px; }
.pillar strong { display: block; color: var(--ink); }
.pillar span { font-size: var(--fs-sm); color: var(--stone); }

/* ---------------------------------------------------------------------
   12. TESTIMONIAL / CTA BAND
   --------------------------------------------------------------------- */
.cta-band {
  position: relative;
  border-radius: var(--radius-lg);
  padding: var(--sp-xl) var(--sp-lg);
  background: var(--ink);
  background-image: radial-gradient(120% 140% at 15% 0%, #3A241C 0%, var(--ink) 55%);
  color: var(--white);
  overflow: hidden;
  text-align: center;
}
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--brand-gradient);
  opacity: 0.12;
  mix-blend-mode: screen;
}
.cta-band h2 { color: var(--white); margin-bottom: var(--sp-2xs); }
.cta-band p { color: rgba(255,255,255,0.72); max-width: 50ch; margin-inline: auto; margin-bottom: var(--sp-md); }
.cta-band-actions { display: flex; justify-content: center; gap: var(--sp-2xs); flex-wrap: wrap; position: relative; z-index: 1; }

/* ---------------------------------------------------------------------
   13. FOOTER
   --------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding-top: var(--sp-xl);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--sp-lg);
  padding-bottom: var(--sp-lg);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand { display: flex; align-items: center; gap: 0.6em; margin-bottom: var(--sp-xs); }
.footer-brand img { height: 38px; }
.footer-brand strong { font-family: 'Fraunces', serif; color: var(--white); font-size: var(--fs-md); }
.site-footer p { font-size: var(--fs-sm); max-width: 34ch; }
.site-footer h5 {
  font-family: 'Inter', sans-serif;
  color: var(--white);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--sp-xs);
}
.footer-links { display: grid; gap: 0.65em; }
.footer-links a { font-size: var(--fs-sm); transition: color var(--dur-fast); }
.footer-links a:hover { color: var(--orange-primary); }
.footer-contact { display: grid; gap: 0.65em; font-size: var(--fs-sm); }
.footer-contact li { display: flex; gap: 0.6em; align-items: flex-start; }
.footer-contact svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; color: var(--orange-primary); }

.social-row { display: flex; gap: 0.6em; margin-top: var(--sp-sm); }
.social-row a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur-fast), transform var(--dur-fast);
}
.social-row a:hover { background: var(--brand-gradient); transform: translateY(-3px); }
.social-row svg { width: 17px; height: 17px; }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-block: var(--sp-sm);
  font-size: var(--fs-xs);
  flex-wrap: wrap;
  gap: var(--sp-2xs);
}
.footer-bottom a:hover { color: var(--white); }
.footer-legal { display: flex; gap: var(--sp-xs); }

.back-to-top {
  position: fixed;
  right: var(--sp-sm);
  bottom: var(--sp-sm);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 80;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.back-to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top svg { width: 20px; height: 20px; }

/* Floating WhatsApp */
.float-whatsapp {
  position: fixed;
  left: var(--sp-sm);
  bottom: var(--sp-sm);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 80;
  animation: floatPulse 2.6s ease-in-out infinite;
}
.float-whatsapp svg { width: 26px; height: 26px; }
@keyframes floatPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0.4), var(--shadow-md); } 50% { box-shadow: 0 0 0 10px rgba(37,211,102,0), var(--shadow-md); } }

/* ---------------------------------------------------------------------
   14. SCROLL REVEAL
   --------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { transition-delay: calc(var(--i, 0) * 90ms); }

/* ---------------------------------------------------------------------
   15. PAGE HEADER (interior pages)
   --------------------------------------------------------------------- */
.page-hero {
  padding-top: calc(var(--nav-h) + var(--sp-lg));
  padding-bottom: var(--sp-lg);
  background: radial-gradient(120% 100% at 85% 0%, #FFF3E9 0%, var(--paper) 55%);
  text-align: center;
}
.breadcrumb {
  display: flex; justify-content: center; gap: 0.5em;
  font-size: var(--fs-xs); color: var(--stone); margin-bottom: var(--sp-xs);
  text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600;
}
.breadcrumb a:hover { color: var(--red-primary); }

/* ---------------------------------------------------------------------
   16. RESPONSIVE
   --------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-actions, .hero-stats { justify-content: center; }
  .hero-visual { max-width: 440px; margin-inline: auto; }
  .split { grid-template-columns: 1fr; }
  .split-media { max-width: 440px; margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .counters { grid-template-columns: repeat(3, 1fr); }
  .hero h4{
    font-size:clamp(2.3rem,8vw,3.5rem);
    line-height:1.05;
}
}

@media (max-width: 900px) {
  .nav-primary, .nav-actions .btn-outline { display: none; }
  .nav-toggle { display: inline-flex; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero h4{
    font-size:clamp(2.3rem,8vw,3.5rem);
    line-height:1.05;
}
}

@media (max-width: 640px) {
  :root { --nav-h: 72px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .counters { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-petals { width: 60vw; opacity: 0.5; top: 2%; }
  .cta-band { padding: var(--sp-lg) var(--sp-sm); }
  .float-whatsapp { width: 50px; height: 50px; }
  .float-whatsapp svg { width: 22px; height: 22px; }
  .back-to-top { width: 42px; height: 42px; }
}

@media (max-width: 380px) {
  .hero-actions .btn, .cta-band-actions .btn { width: 100%; }
}

/* ---------------------------------------------------------------------
   17. GALLERY
   --------------------------------------------------------------------- */
.gallery-filter { display: flex; flex-wrap: wrap; gap: var(--sp-2xs); justify-content: center; margin-bottom: var(--sp-md); }
.filter-btn {
  
  padding: 0.55em 1.3em;
  border-radius: var(--radius-pill);
  background: var(--surface-alt);
  color: var(--stone);
  font-weight: 700;
  font-size: var(--fs-xs);
  border: none;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.filter-btn:hover { background: var(--hairline-strong); }
.filter-btn.is-active { background: var(--brand-gradient); color: var(--white); }

.gallery-grid {
  columns: 4 220px;
  column-gap: var(--sp-xs);
}
.gallery-item {
  position: relative;
  break-inside: avoid;
  margin-bottom: var(--sp-xs);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: var(--shadow-sm);
  display: block;
}
.gallery-item img {
  width: 100%; display: block;
  transition: transform var(--dur-slow) var(--ease-out);
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(36,26,22,0.45), transparent 45%);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
}
.gallery-item:hover::after { opacity: 1; }
.gallery-item[hidden] { display: none; }

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: none;
  align-items: center; justify-content: center;
  background: rgba(24, 16, 13, 0.92);
  backdrop-filter: blur(6px);
  padding: var(--sp-md);
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(88vw, 900px); max-height: 82vh; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border: none;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur-fast);
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.25); }
.lightbox-close { top: var(--sp-sm); right: var(--sp-sm); }
.lightbox-prev { left: var(--sp-sm); top: 50%; transform: translateY(-50%); }
.lightbox-next { right: var(--sp-sm); top: 50%; transform: translateY(-50%); }
.lightbox-caption { position: absolute; bottom: var(--sp-sm); left: 0; right: 0; text-align: center; color: rgba(255,255,255,0.75); font-size: var(--fs-sm); }

/* ---------------------------------------------------------------------
   18. RESOURCE CARDS
   --------------------------------------------------------------------- */
.resource-card { padding: var(--sp-md); }
.resource-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-xs); gap: var(--sp-2xs); }
.resource-card-head h3 { margin: 0; }
.class-badge {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif; font-weight: 600; font-size: var(--fs-base);
}
.resource-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6em; margin-top: var(--sp-xs); }
.resource-link {
  display: flex; align-items: center; gap: 0.55em;
  padding: 0.7em 0.9em;
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--ink-soft);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.resource-link svg { width: 16px; height: 16px; color: var(--red-primary); flex-shrink: 0; }
.resource-link:hover { background: var(--surface-alt); color: var(--red-primary); }

/* ---------------------------------------------------------------------
   19. TABS & TIMETABLE PORTAL
   --------------------------------------------------------------------- */
.tabs {
  display: flex;
  gap: var(--sp-3xs);
  overflow-x: auto;
  padding-bottom: var(--sp-2xs);
  margin-bottom: var(--sp-md);
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.tabs::-webkit-scrollbar { height: 5px; }
.tabs::-webkit-scrollbar-thumb { background: var(--hairline-strong); border-radius: var(--radius-pill); }
.tab-btn {
  flex-shrink: 0;
  padding: 0.7em 1.4em;
  border-radius: var(--radius-pill);
  background: var(--white);
  box-shadow: var(--shadow-inset);
  color: var(--ink-soft);
  font-weight: 700;
  font-size: var(--fs-sm);
  border: none;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.tab-btn:hover { box-shadow: inset 0 0 0 1.5px var(--orange-primary); }
.tab-btn.is-active { background: var(--brand-gradient); color: var(--white); box-shadow: none; }

.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

.view-toggle { display: inline-flex; background: var(--surface-alt); border-radius: var(--radius-pill); padding: 4px; margin-bottom: var(--sp-sm); }
.view-btn {
  padding: 0.55em 1.3em;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  font-weight: 700;
  font-size: var(--fs-xs);
  color: var(--stone);
}
.view-btn.is-active { background: var(--white); color: var(--red-primary); box-shadow: var(--shadow-sm); }
.view-pane { display: none; }
.view-pane.is-active { display: block; }

.timetable-embed { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--hairline); }
.timetable-embed iframe { width: 100%; aspect-ratio: 16/10; border: none; display: block; }
.timetable-image img { width: 100%; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); border: 1px solid var(--hairline); }

/* ---------------------------------------------------------------------
   20. FORMS
   --------------------------------------------------------------------- */
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--sp-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--hairline);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-sm); }
.field { display: flex; flex-direction: column; gap: 0.45em; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: var(--fs-sm); color: var(--ink); }
.field label .req { color: var(--red-primary); }
.field input, .field select, .field textarea {
  padding: 0.85em 1em;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--hairline-strong);
  background: var(--paper);
  font-size: var(--fs-sm);
  transition: border-color var(--dur-fast) var(--ease-out);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--orange-primary); outline: none; }
.field textarea { resize: vertical; min-height: 110px; }
.field-invalid { border-color: var(--error) !important; }
.field-error { font-size: var(--fs-xs); color: var(--error); min-height: 1.2em; }
.form-note { font-size: var(--fs-xs); color: var(--stone); margin-top: var(--sp-xs); }
.form-success { text-align: center; padding: var(--sp-lg) var(--sp-sm); }
.form-success svg { width: 56px; height: 56px; color: var(--success); margin-bottom: var(--sp-xs); }
.form-success h3 { margin-bottom: 0.4em; }

/* ---------------------------------------------------------------------
   21. LEGAL / PROSE CONTENT
   --------------------------------------------------------------------- */
.prose { max-width: 72ch; margin-inline: auto; }
.prose h2 { margin-top: var(--sp-lg); margin-bottom: var(--sp-xs); font-size: var(--fs-lg); }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--stone); margin-bottom: var(--sp-xs); }
.prose ul { margin-bottom: var(--sp-xs); display: grid; gap: 0.5em; }
.prose ul li { color: var(--stone); padding-left: 1.4em; position: relative; }
.prose ul li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-gradient); }
.prose .updated { font-size: var(--fs-xs); color: var(--stone-light); margin-bottom: var(--sp-md); }

/* ---------------------------------------------------------------------
   22. ERROR / 404 PAGE
   --------------------------------------------------------------------- */
.error-page { min-height: 100svh; display: flex; align-items: center; justify-content: center; text-align: center; padding-top: var(--nav-h); }
.error-code {
  font-family: 'Fraunces', serif;
  font-size: clamp(5rem, 10vw + 2rem, 11rem);
  line-height: 1;
  background: var(--brand-gradient-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------------------------------------------------------------------
   23. TEAM / VALUES (about page)
   --------------------------------------------------------------------- */
.value-card { text-align: center; padding: var(--sp-md); }
.value-card .card-icon { margin-inline: auto; }
.timeline { display: grid; gap: var(--sp-md); position: relative; padding-left: var(--sp-md); border-left: 2px solid var(--hairline); }
.timeline-item { position: relative; }
.timeline-item::before {
  content: '';
  position: absolute; left: calc(-1 * var(--sp-md) - 6px); top: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--brand-gradient);
  box-shadow: 0 0 0 4px var(--paper);
}
.timeline-item strong { display: block; color: var(--red-primary); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.2em; }

/* ---------------------------------------------------------------------
   24. RESPONSIVE ADDITIONS FOR NEW COMPONENTS
   --------------------------------------------------------------------- */
@media (max-width: 900px) {
  .gallery-grid { columns: 3 160px; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .gallery-grid { columns: 2 140px; }
  .resource-links { grid-template-columns: 1fr; }
  .form-card { padding: var(--sp-md); }
  .lightbox-prev, .lightbox-next { width: 38px; height: 38px; }
}
