/* =================================================================
   MAAC Delhi NCR — Landing Page
   Design system + components
   Palette: warm cream paper, near-black ink, crimson accent
   Type: Bricolage Grotesque (display) / Outfit (body) / Space Mono (labels)
   ================================================================= */

/* ---------- 1. TOKENS ---------- */
:root {
  /* color */
  --paper:      #faf7f2;
  --paper-2:    #f3eee5;
  --card:       #ffffff;
  --ink:        #1a1512;
  --ink-2:      #3a322c;
  --muted:      #877c70;
  --line:       rgba(26, 21, 18, 0.10);
  --line-2:     rgba(26, 21, 18, 0.18);
  --red:        #e11d2a;
  --red-deep:   #a60f19;
  --red-soft:   #fbe9e6;
  --red-tint:   rgba(225, 29, 42, 0.08);

  /* type */
  --display: "Bricolage Grotesque", "Outfit", sans-serif;
  --body:    "Outfit", system-ui, sans-serif;
  --mono:    "Space Mono", ui-monospace, monospace;

  /* spacing rhythm */
  --pad:    clamp(20px, 5vw, 96px);
  --gap:    clamp(40px, 8vw, 140px);
  --radius: 18px;
  --radius-lg: 28px;

  /* motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
::selection { background: var(--red); color: #fff; }

/* ---------- 3. TYPE ---------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--red);
  display: inline-block;
}
.eyebrow.center::before { display: none; }

.h-xl { font-size: clamp(44px, 8vw, 116px); }
.h-lg { font-size: clamp(34px, 5.4vw, 76px); }
.h-md { font-size: clamp(27px, 3.4vw, 46px); }
.lead {
  font-size: clamp(17px, 1.5vw, 21px);
  color: var(--ink-2);
  max-width: 56ch;
  text-wrap: pretty;
}
.muted { color: var(--muted); }
.accent { color: var(--red); }
em.serif { font-family: var(--display); font-style: italic; font-weight: 500; }

/* ---------- 4. LAYOUT ---------- */
.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(64px, 10vw, 150px); position: relative; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head .lead { margin-top: 22px; }
.section-head h2 { margin-top: 18px; }

/* utility */
.row { display: flex; }
.between { justify-content: space-between; }
.center { align-items: center; }
.col { display: flex; flex-direction: column; }

/* ---------- 5. BUTTONS ---------- */
.btn {
  --bg: var(--ink);
  --fg: var(--paper);
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 26px;
  background: var(--bg); color: var(--fg);
  border-radius: 100px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  position: relative; overflow: hidden;
  transition: transform .5s var(--ease), background .35s var(--ease), color .35s var(--ease);
  white-space: nowrap;
}
.btn .btn-ico {
  width: 18px; height: 18px;
  transition: transform .5s var(--ease);
}
.btn:hover { transform: translateY(-3px); }
.btn:hover .btn-ico { transform: translateX(4px); }
.btn--red { --bg: var(--red); --fg: #fff; box-shadow: 0 12px 30px -12px rgba(225,29,42,.6); }
.btn--red:hover { --bg: var(--red-deep); }
.btn--ghost {
  --bg: transparent; --fg: var(--ink);
  border: 1.5px solid var(--line-2);
}
.btn--ghost:hover { --bg: var(--ink); --fg: var(--paper); border-color: var(--ink); }
.btn--lg { padding: 19px 32px; font-size: 17px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--ink);
  position: relative; width: fit-content;
}
.link-arrow::after {
  content: ""; position: absolute; left: 0; bottom: -3px;
  width: 100%; height: 1.5px; background: var(--red);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.link-arrow:hover::after { transform: scaleX(1); }
.link-arrow svg { width: 15px; transition: transform .4s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- 6. NAV ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 16px var(--pad);
  display: flex; align-items: center; justify-content: space-between;
  transition: padding .4s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease);
}
.nav::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(250, 247, 242, 0.82);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  opacity: 0; transition: opacity .4s var(--ease);
  border-bottom: 1px solid var(--line);
  z-index: -1;
}
.nav.scrolled { padding-block: 11px; }
.nav.scrolled::before { opacity: 1; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: -0.03em; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--red); color: #fff;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 18px;
  box-shadow: 0 8px 20px -8px rgba(225,29,42,.7);
}
.brand small { display: block; font-family: var(--mono); font-weight: 400; font-size: 10px; letter-spacing: .22em; color: var(--muted); text-transform: uppercase; margin-top: 1px;}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 15px; border-radius: 100px; font-size: 15px; font-weight: 500;
  color: var(--ink-2); transition: background .3s, color .3s;
}
.nav-links a:hover { background: var(--red-tint); color: var(--red); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-burger { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line-2); flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav-burger span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: .35s var(--ease); }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 99;
  background: var(--paper);
  padding: 110px var(--pad) 40px;
  display: flex; flex-direction: column; gap: 6px;
  transform: translateX(100%); transition: transform .5s var(--ease);
  visibility: hidden;
}
.drawer.open { transform: translateX(0); visibility: visible; }
.drawer a { font-family: var(--display); font-size: 30px; font-weight: 600; padding: 12px 0; border-bottom: 1px solid var(--line); }
.drawer .btn { margin-top: 22px; justify-content: center; }

/* ---------- 7. HERO ---------- */
.hero { padding-top: clamp(130px, 17vw, 200px); padding-bottom: clamp(40px, 6vw, 80px); position: relative; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(30px, 5vw, 80px); align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 8px 8px 16px; border-radius: 100px;
  background: var(--card); border: 1px solid var(--line);
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  box-shadow: 0 6px 24px -16px rgba(26,21,18,.4);
}
.hero-badge b { color: var(--red); }
.hero-badge .pill { background: var(--red); color: #fff; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; padding: 5px 10px; border-radius: 100px; }
.hero h1 { margin: 26px 0 24px; }
.hero h1 .stroke { color: transparent; -webkit-text-stroke: 1.6px var(--ink); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-stats { display: flex; gap: 34px; margin-top: 46px; flex-wrap: wrap; }
.hero-stat .n { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 3vw, 38px); line-height: 1; }
.hero-stat .l { font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.hero-stat { position: relative; padding-right: 34px; }
.hero-stat:not(:last-child)::after { content: ""; position: absolute; right: 0; top: 4px; bottom: 4px; width: 1px; background: var(--line); }

/* hero rotating showcase */
.showcase { position: relative; height: clamp(420px, 52vw, 560px); }
.showcase-stack { position: absolute; inset: 0; }
.sc-card {
  position: absolute; inset: 0;
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--ink); color: var(--paper);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 40px 80px -40px rgba(26,21,18,.6);
  opacity: 0; transform: scale(.94) translateY(20px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(22px, 3vw, 34px);
}
.sc-card.active { opacity: 1; transform: none; }
.sc-card .ph-stripes { position: absolute; inset: 0; z-index: 0; }
.sc-card-grad { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10,8,7,0) 30%, rgba(10,8,7,.55) 70%, rgba(10,8,7,.92) 100%); }
.sc-card-body { position: relative; z-index: 2; }
.sc-tag { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #fff; opacity: .85; }
.sc-card h3 { color: #fff; font-size: clamp(28px, 3.4vw, 44px); margin: 12px 0 14px; }
.sc-meta { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; color: rgba(255,255,255,.78); }
.sc-meta b { color: #fff; font-weight: 600; display: block; font-family: var(--mono); font-size: 12px; letter-spacing: .06em;}
.sc-soft { margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.sc-soft span { font-size: 12px; padding: 5px 11px; border-radius: 100px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); color: #fff; }
/* progress dots */
.sc-dots { position: absolute; right: -8px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 10px; z-index: 5; }
.sc-dot { width: 8px; height: 8px; border-radius: 100px; background: var(--line-2); transition: .4s var(--ease); cursor: pointer; }
.sc-dot.on { background: var(--red); height: 26px; }
.showcase-float {
  position: absolute; left: -26px; bottom: 30px; z-index: 6;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 14px 18px;
  box-shadow: 0 20px 50px -24px rgba(26,21,18,.5);
  display: flex; align-items: center; gap: 12px;
}
.showcase-float .av { display: flex; }
.showcase-float .av i { width: 30px; height: 30px; border-radius: 100px; border: 2px solid var(--card); margin-left: -10px; background: var(--paper-2); display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 700; color: var(--red); }
.showcase-float .av i:first-child { margin-left: 0; }
.showcase-float small { display: block; font-size: 12px; color: var(--muted); }
.showcase-float b { font-size: 14px; }

/* ---------- 8. PLACEHOLDER (image slots) ---------- */
.ph {
  position: relative; overflow: hidden;
  background:
    repeating-linear-gradient(135deg, var(--paper-2) 0 11px, transparent 11px 22px),
    var(--card);
  display: grid; place-items: center;
}
.ph::after {
  content: attr(data-label);
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em;
  color: var(--muted); text-transform: lowercase;
  background: rgba(250,247,242,.7); padding: 5px 12px; border-radius: 100px;
  backdrop-filter: blur(2px);
}
.ph--dark {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 11px, transparent 11px 22px),
    #221c18;
}
.ph--dark::after { color: rgba(255,255,255,.6); background: rgba(0,0,0,.3); }
.ph-stripes {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 12px, transparent 12px 24px),
    linear-gradient(135deg, #2a221d, #181311);
}

/* ---------- 9. MARQUEE ---------- */
.marquee { overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 18px; width: max-content; will-change: transform; }
.marquee--reverse .marquee-track { animation-direction: reverse; }

/* ---------- 10. ADMISSIONS STRIP ---------- */
.admit {
  background: var(--ink); color: var(--paper);
  border-radius: var(--radius-lg); padding: clamp(34px, 5vw, 64px);
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center;
  position: relative; overflow: hidden;
}
.admit::before { content: ""; position: absolute; right: -10%; top: -40%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(225,29,42,.4), transparent 60%); filter: blur(10px); }
.admit h2 { color: #fff; }
.admit .lead { color: rgba(255,255,255,.72); }
.admit-actions { display: flex; flex-direction: column; gap: 14px; position: relative; }
.admit-actions .btn { justify-content: center; }
.countdown { display: flex; gap: 14px; margin-top: 8px; }
.cd { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 12px 6px; text-align: center; flex: 1; }
.cd b { font-family: var(--display); font-size: clamp(22px, 3vw, 32px); display: block; color: #fff; }
.cd span { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.6); }

/* ---------- 11. COURSE CARDS ---------- */
.courses-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.course {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
  display: flex; flex-direction: column; min-height: 340px;
}
.course::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.course:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(26,21,18,.3); border-color: transparent; }
.course:hover::after { transform: scaleX(1); }
.course-ico {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: var(--red-soft); color: var(--red); margin-bottom: 20px;
  transition: background .5s var(--ease), color .5s var(--ease), transform .5s var(--ease);
}
.course-ico svg { width: 26px; height: 26px; }
.course:hover .course-ico { background: var(--red); color: #fff; transform: rotate(-6deg) scale(1.05); }
.course .num { position: absolute; top: 22px; right: 24px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.course h3 { font-size: 24px; margin-bottom: 10px; }
.course p { font-size: 15px; color: var(--muted); flex: 1; }
.course-soft { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 18px; }
.course-soft span { font-family: var(--mono); font-size: 11px; color: var(--ink-2); background: var(--paper-2); padding: 4px 9px; border-radius: 7px; }
.course-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--line); }
.course-foot .dur { font-size: 13px; color: var(--muted); }
.course-foot .dur b { color: var(--ink); font-weight: 600; }

/* ---------- 12. STATS / COUNTERS ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { padding: 30px 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); text-align: center; position: relative; overflow: hidden; }
.stat .n { font-family: var(--display); font-weight: 700; font-size: clamp(40px, 5vw, 64px); line-height: 1; color: var(--ink); letter-spacing: -.03em; }
.stat .n .suf { color: var(--red); }
.stat .l { font-size: 14.5px; color: var(--muted); margin-top: 10px; }

/* ---------- 13. TESTIMONIALS ---------- */
.testi-track { display: flex; gap: 22px; }
.testi {
  flex: 0 0 clamp(300px, 38vw, 440px);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; display: flex; flex-direction: column; gap: 20px;
}
.testi .quote { font-family: var(--display); font-weight: 500; font-size: clamp(19px, 2vw, 23px); line-height: 1.32; letter-spacing: -.01em; }
.testi .quote::before { content: "“"; color: var(--red); font-size: 1.4em; line-height: 0; vertical-align: -0.3em; margin-right: 2px; }
.testi-person { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.testi-person .pic { width: 52px; height: 52px; border-radius: 100px; overflow: hidden; flex-shrink: 0; }
.testi-person b { display: block; font-size: 16px; }
.testi-person small { font-size: 13px; color: var(--muted); }
.testi-role { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--red); text-transform: uppercase; }

/* ---------- 14. PORTFOLIO ---------- */
.portfolio { columns: 3; column-gap: 18px; }
.pf-item { break-inside: avoid; margin-bottom: 18px; border-radius: var(--radius); overflow: hidden; position: relative; cursor: pointer; }
.pf-item .ph { width: 100%; }
.pf-item .pf-meta { position: absolute; inset: auto 0 0 0; padding: 22px 18px 16px; background: linear-gradient(transparent, rgba(10,8,7,.85)); color: #fff; transform: translateY(8px); opacity: 0; transition: .45s var(--ease); }
.pf-item:hover .pf-meta { transform: none; opacity: 1; }
.pf-item .pf-meta b { font-family: var(--display); font-size: 18px; }
.pf-item .pf-meta small { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; opacity: .8; text-transform: uppercase; }
.pf-item::after { content: ""; position: absolute; inset: 0; border: 2px solid var(--red); border-radius: var(--radius); opacity: 0; transition: .45s var(--ease); pointer-events: none; }
.pf-item:hover::after { opacity: 1; }

/* ---------- 15. WHY US ---------- */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.why {
  display: flex; gap: 20px; padding: 28px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line);
  transition: transform .5s var(--ease), border-color .5s var(--ease);
}
.why:hover { transform: translateX(6px); border-color: var(--red); }
.why-ico { flex-shrink: 0; width: 50px; height: 50px; border-radius: 13px; background: var(--ink); color: var(--paper); display: grid; place-items: center; }
.why-ico svg { width: 24px; }
.why h3 { font-size: 21px; margin-bottom: 8px; }
.why p { font-size: 15px; color: var(--muted); }

/* ---------- 16. GALLERY ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 150px; gap: 16px; }
.gallery .ph { border-radius: 16px; }
.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }

/* ---------- 17. BRANCHES ---------- */
.branches { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.branch {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.branch:hover { transform: translateY(-5px); box-shadow: 0 36px 70px -36px rgba(26,21,18,.3); }
.branch-map { height: 180px; position: relative; }
.branch-map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.3) contrast(1.05); }
.branch-tag { position: absolute; top: 16px; left: 16px; z-index: 2; background: var(--red); color: #fff; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; border-radius: 100px; }
.branch-body { padding: 26px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.branch h3 { font-size: 26px; }
.branch-line { display: flex; gap: 13px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.branch-line svg { width: 18px; flex-shrink: 0; color: var(--red); margin-top: 3px; }
.branch-line a:hover { color: var(--red); }
.branch-actions { display: flex; gap: 10px; margin-top: auto; padding-top: 6px; }
.branch-actions .btn { flex: 1; justify-content: center; padding-block: 13px; font-size: 15px; }

/* ---------- 18. FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 0; font-family: var(--display); font-weight: 600; font-size: clamp(18px, 2vw, 23px); letter-spacing: -.01em; }
.faq-sign { flex-shrink: 0; width: 34px; height: 34px; border-radius: 100px; border: 1.5px solid var(--line-2); display: grid; place-items: center; position: relative; transition: .4s var(--ease); }
.faq-sign::before, .faq-sign::after { content: ""; position: absolute; background: var(--ink); border-radius: 2px; transition: .4s var(--ease); }
.faq-sign::before { width: 13px; height: 2px; }
.faq-sign::after { width: 2px; height: 13px; }
.faq-item.open .faq-sign { background: var(--red); border-color: var(--red); }
.faq-item.open .faq-sign::before, .faq-item.open .faq-sign::after { background: #fff; }
.faq-item.open .faq-sign::after { transform: rotate(90deg); opacity: 0; }
.faq-a { overflow: hidden; height: 0; }
.faq-a-inner { padding-bottom: 26px; color: var(--muted); font-size: 16px; max-width: 60ch; }

/* ---------- 19. CONTACT FORM ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(34px, 5vw, 70px); align-items: center; }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(26px, 3.4vw, 44px); box-shadow: 0 40px 90px -50px rgba(26,21,18,.4); }
.field { margin-bottom: 18px; position: relative; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; font-family: var(--body); font-size: 16px;
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 12px; color: var(--ink);
  transition: border-color .3s, box-shadow .3s; appearance: none;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px var(--red-tint); }
.field-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field.err input, .field.err select { border-color: var(--red); }
.field .msg { font-size: 12px; color: var(--red); margin-top: 6px; height: 0; overflow: hidden; transition: height .3s; }
.field.err .msg { height: 16px; }
.form-card .btn { width: 100%; justify-content: center; margin-top: 6px; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 14px; text-align: center; }
.form-success { display: none; text-align: center; padding: 30px 10px; }
.form-success.show { display: block; }
.form-success .ok { width: 64px; height: 64px; border-radius: 100px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; margin: 0 auto 18px; }
.contact-aside ul { display: flex; flex-direction: column; gap: 20px; margin-top: 30px; }
.contact-aside li { display: flex; gap: 16px; align-items: center; }
.contact-aside .ci { width: 48px; height: 48px; border-radius: 13px; background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; color: var(--red); flex-shrink: 0; }
.contact-aside .ci svg { width: 21px; }
.contact-aside b { display: block; font-size: 16px; }
.contact-aside small { font-size: 14px; color: var(--muted); }

/* ---------- 20. FOOTER ---------- */
.footer { background: var(--ink); color: var(--paper); padding-top: clamp(60px, 8vw, 100px); }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 60px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer .brand { color: #fff; }
.footer .brand small { color: rgba(255,255,255,.5); }
.footer p { color: rgba(255,255,255,.6); font-size: 15px; margin-top: 18px; max-width: 34ch; }
.footer h4 { color: #fff; font-size: 14px; font-family: var(--mono); font-weight: 400; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 20px; }
.footer-col a, .footer-col span { display: block; color: rgba(255,255,255,.62); font-size: 15px; padding: 7px 0; transition: color .3s, padding-left .3s; }
.footer-col a:hover { color: var(--red); padding-left: 5px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-block: 28px; flex-wrap: wrap; gap: 14px; }
.footer-bottom small { color: rgba(255,255,255,.45); font-size: 13.5px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 40px; height: 40px; border-radius: 100px; border: 1px solid rgba(255,255,255,.16); display: grid; place-items: center; color: #fff; transition: .35s var(--ease); }
.socials a:hover { background: var(--red); border-color: var(--red); transform: translateY(-3px); }
.socials svg { width: 17px; }

/* ---------- 21. FLOATING WHATSAPP ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  display: flex; align-items: center; gap: 0;
  background: #25d366; color: #fff; border-radius: 100px;
  padding: 14px; box-shadow: 0 16px 40px -12px rgba(37,211,102,.7);
  overflow: hidden; transition: gap .4s var(--ease), padding .4s var(--ease), transform .3s var(--ease);
}
.wa-float svg { width: 28px; height: 28px; flex-shrink: 0; }
.wa-float span { max-width: 0; opacity: 0; white-space: nowrap; font-weight: 600; transition: max-width .4s var(--ease), opacity .3s var(--ease); }
.wa-float:hover { gap: 12px; padding-right: 22px; transform: scale(1.03); }
.wa-float:hover span { max-width: 200px; opacity: 1; }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 100px; border: 2px solid #25d366; animation: waPulse 2.4s ease-out infinite; }
@keyframes waPulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.55); opacity: 0; } }

/* ---------- 22. SCROLL REVEAL (base states; JS adds .in) ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
[data-stagger] > * { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-stagger].in > * { opacity: 1; transform: none; }
.scroll-cue { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.scroll-cue i { width: 1px; height: 40px; background: var(--line-2); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; top: -40px; left: 0; width: 100%; height: 40px; background: var(--red); animation: cueDrop 2s var(--ease) infinite; }
@keyframes cueDrop { 0% { top: -40px; } 60%,100% { top: 40px; } }

/* ---------- 23. SECTION INDEX MARKER ---------- */
.sec-index { display: inline-block; font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .1em; }

/* ---------- 24. RESPONSIVE ---------- */
@media (max-width: 1080px) {
  .courses-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .portfolio { columns: 2; }
}
@media (max-width: 920px) {
  .nav-links, .nav-cta .btn--ghost { display: none; }
  .nav-burger { display: flex; }
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .showcase { height: clamp(400px, 80vw, 520px); }
  .admit { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .branches { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .courses-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .portfolio { columns: 1; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .field-2 { grid-template-columns: 1fr; }
  .hero-stat { padding-right: 20px; }
  .wa-float span { display: none; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal, [data-stagger] > * { opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none !important; }
  .wa-float::after { animation: none; }
  .scroll-cue i::after { animation: none; }
  .about-video { display: none; }
  * { scroll-behavior: auto !important; }
}

/* =================================================================
   25. ADDITIONS — logo, video, course media+modal, testi grid, gallery
   ================================================================= */

/* ---- brand logo ---- */
.brand-logo { height: 100px; width: auto; }
.brand-txt { font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: -0.03em; line-height: 1; }
.brand-txt small { display: block; font-family: var(--mono); font-weight: 400; font-size: 10px; letter-spacing: .22em; color: var(--muted); text-transform: uppercase; margin-top: 2px; }
.footer-brand img { height: 76px; width: auto; }

/* ---- play button ---- */
.btn--play { gap: 12px; }
.play-dot { width: 30px; height: 30px; border-radius: 100px; background: var(--red); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.play-dot svg { width: 13px; height: 13px; margin-left: 1px; }
.btn--play:hover .play-dot { background: var(--red-deep); }

/* ---- about video ---- */
.about-media { position: relative; aspect-ratio: 4/5; border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; background: var(--ink); box-shadow: 0 40px 80px -50px rgba(26,21,18,.5); }
.about-video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 6s var(--ease); }
.about-media:hover .about-video { transform: scale(1.06); }
.about-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(10,8,7,.5)); }
.about-reel-tag { position: absolute; left: 18px; bottom: 18px; z-index: 2; display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; font-size: 15px; background: rgba(0,0,0,.35); backdrop-filter: blur(6px); padding: 8px 14px 8px 8px; border-radius: 100px; border: 1px solid rgba(255,255,255,.2); }

/* ---- hero showcase image ---- */
.sc-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.sc-card.active .sc-img { animation: scZoom 6s var(--ease) forwards; }
@keyframes scZoom { from { transform: scale(1.08); } to { transform: scale(1); } }

/* ---- partner chips ---- */
.partner-chip { min-width: 180px; height: 76px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; transition: border-color .35s var(--ease), transform .35s var(--ease); }
.partner-chip:hover { border-color: var(--red); transform: translateY(-3px); }
.partner-chip span { font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--ink-2); letter-spacing: -.02em; }

/* ---- course cards (image header) ---- */
.course { padding: 0; min-height: 0; }
.course-media { position: relative; height: 180px; overflow: hidden; cursor: pointer; }
.course-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s var(--ease); }
.course:hover .course-media img { transform: scale(1.07); }
.course-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,8,7,.05), rgba(10,8,7,.35)); }
.course .num { top: 14px; right: 16px; color: #fff; background: rgba(0,0,0,.35); padding: 3px 9px; border-radius: 100px; z-index: 2; backdrop-filter: blur(4px); }
.course .course-ico { position: absolute; left: 18px; bottom: -22px; margin: 0; z-index: 2; box-shadow: 0 12px 28px -12px rgba(0,0,0,.5); }
.course-pad { padding: 34px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.course-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.course-top h3 { font-size: 23px; margin: 0; }
.lvl { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--red); background: var(--red-soft); padding: 4px 9px; border-radius: 100px; white-space: nowrap; }
.course-soft .more { background: transparent; color: var(--muted); }
.course-foot .dur { display: inline-flex; align-items: center; gap: 7px; }
.course-foot .dur svg { width: 15px; color: var(--red); }
.course-foot .link-arrow { font-size: 14px; }

/* ---- course modal ---- */
.course-modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(20,15,12,.6); backdrop-filter: blur(8px); }
.course-modal.open { display: flex; animation: fade .3s var(--ease); }
@keyframes fade { from { opacity: 0; } }
.cm-panel { background: var(--paper); border-radius: var(--radius-lg); width: min(840px, 100%); max-height: 92vh; overflow-y: auto; box-shadow: 0 50px 120px -30px rgba(0,0,0,.6); animation: pop .4s var(--ease); }
@keyframes pop { from { transform: translateY(24px) scale(.98); opacity: 0; } }
.cm-hero { position: relative; height: 240px; }
.cm-hero img { width: 100%; height: 100%; object-fit: cover; }
.cm-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,8,7,.1), rgba(10,8,7,.85)); }
.cm-hero-body { position: absolute; left: 0; bottom: 0; padding: 28px; z-index: 2; }
.cm-hero-body h3 { color: #fff; font-size: clamp(30px,4vw,44px); margin-top: 8px; }
.cm-tag { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: var(--red); padding: 5px 11px; border-radius: 100px; }
.cm-close { position: absolute; top: 16px; right: 16px; z-index: 3; width: 42px; height: 42px; border-radius: 100px; background: rgba(0,0,0,.4); color: #fff; font-size: 26px; line-height: 1; display: grid; place-items: center; backdrop-filter: blur(6px); transition: background .3s; }
.cm-close:hover { background: var(--red); }
.cm-content { padding: clamp(24px, 3.4vw, 40px); }
.cm-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 26px; }
.cm-stats > div { display: flex; gap: 12px; align-items: flex-start; padding: 16px; background: var(--paper-2); border-radius: 14px; }
.cm-stats span { color: var(--red); flex-shrink: 0; } .cm-stats svg { width: 22px; }
.cm-stats small { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 3px; }
.cm-stats b { font-size: 14px; line-height: 1.3; font-weight: 600; }
.cm-overview { font-size: 18px; color: var(--ink-2); margin-bottom: 30px; text-wrap: pretty; }
.cm-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.cm-content h4 { font-size: 13px; font-family: var(--mono); font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 16px; }
.cm-list { display: flex; flex-direction: column; gap: 12px; }
.cm-list li { display: flex; gap: 11px; align-items: flex-start; font-size: 15.5px; color: var(--ink-2); }
.cm-list svg { width: 17px; color: var(--red); flex-shrink: 0; margin-top: 3px; }
.cm-soft { display: flex; flex-wrap: wrap; gap: 8px; }
.cm-soft span { font-family: var(--mono); font-size: 12px; color: var(--ink); background: var(--paper-2); padding: 6px 12px; border-radius: 8px; }
.cm-actions { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.cm-actions .btn { flex: 1; justify-content: center; min-width: 200px; }

/* ---- testimonials grid (fully visible) ---- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testi { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; gap: 18px; flex: initial; transition: transform .5s var(--ease), border-color .5s var(--ease), background .5s var(--ease); }
.testi:hover { transform: translateY(-5px); border-color: var(--red); background: rgba(255,255,255,.06); }
.testi .quote { color: #fff; }
.testi .testi-person b { color: #fff; }
.testi .testi-person small { color: rgba(255,255,255,.6); }
.testi-person img.pic { width: 52px; height: 52px; border-radius: 100px; object-fit: cover; flex-shrink: 0; border: 2px solid rgba(255,255,255,.15); }

/* ---- gallery images ---- */
.g-item { position: relative; border-radius: 16px; overflow: hidden; margin: 0; }
.g-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease); }
.g-item:hover img { transform: scale(1.08); }
.g-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px; background: linear-gradient(transparent, rgba(10,8,7,.8)); color: #fff; font-size: 13px; font-weight: 500; opacity: 0; transform: translateY(8px); transition: .4s var(--ease); }
.g-item:hover figcaption { opacity: 1; transform: none; }

/* ---- showreel lightbox ---- */
.showreel-lb { position: fixed; inset: 0; z-index: 210; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(8,6,5,.92); backdrop-filter: blur(10px); }
.showreel-lb.open { display: flex; animation: fade .3s var(--ease); }
.showreel-frame { width: min(1100px, 100%); aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; box-shadow: 0 40px 120px -20px rgba(0,0,0,.8); animation: pop .4s var(--ease); }
.showreel-frame video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.showreel-close { position: absolute; top: 22px; right: 26px; width: 50px; height: 50px; border-radius: 100px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #fff; font-size: 30px; line-height: 1; display: grid; place-items: center; transition: background .3s; }
.showreel-close:hover { background: var(--red); border-color: var(--red); }

@media (max-width: 1080px) {
  .testi-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  .cm-cols { grid-template-columns: 1fr; gap: 24px; }
  .cm-stats { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .testi-grid { grid-template-columns: 1fr; }
  .footer-brand img { height: 60px; }
}
