/* Al-Alamiya Modern School International — site styles
   Crimson + ivory + the soft gold of the crest. */
:root {
  --crimson: #9b1c24;
  --crimson-deep: #6e1118;
  --crimson-ink: #3b0a0e;
  --gold: #e7d59b;
  --gold-deep: #b89a4e;
  --ivory: #faf6ee;
  --ivory-2: #f3ecdf;
  --ink: #241a17;
  --ink-soft: #5d504a;
  --line: rgba(59, 10, 14, .14);
  --white: #fffdf9;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gut: clamp(16px, 5vw, 72px);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ivory); color: var(--ink);
  font: 400 clamp(15px, 1.05vw, 17px)/1.7 var(--sans);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.05; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
::selection { background: var(--crimson); color: var(--gold); }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Eyebrow / headings ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .8em;
  font: 700 .72rem/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--crimson);
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.on-dark .eyebrow, .eyebrow.light { color: var(--gold); }
.display { font-size: clamp(2.6rem, 6.4vw, 5.6rem); }
.h2 { font-size: clamp(2.1rem, 4.4vw, 3.7rem); }
.h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); }
.h2 em, .display em { font-style: italic; font-weight: 500; color: var(--crimson); }
.on-dark .h2 em, .on-dark .display em { color: var(--gold); }
.lead { font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: var(--ink-soft); max-width: 60ch; }
.on-dark .lead { color: rgba(250, 246, 238, .82); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--crimson); --fg: var(--ivory);
  display: inline-flex; align-items: center; gap: .7em; padding: 1em 1.8em;
  background: var(--bg); color: var(--fg); text-decoration: none; border: 1px solid var(--bg);
  font: 700 .78rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
  cursor: pointer;
}
.btn:hover { --bg: var(--crimson-deep); transform: translateY(-2px); }
.btn svg { width: 1.1em; height: 1.1em; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn.gold { --bg: var(--gold); --fg: var(--crimson-ink); }
.btn.gold:hover { --bg: #f1e3b5; }
.btn.ghost { background: transparent; color: var(--fg); border-color: currentColor; }
.btn.ghost.light { --fg: var(--ivory); }
.btn.ghost.light:hover { background: var(--ivory); color: var(--crimson-ink); border-color: var(--ivory); }
.btn.ghost.dark { --fg: var(--crimson); }
.btn.ghost.dark:hover { background: var(--crimson); color: var(--ivory); border-color: var(--crimson); }
.link-arrow { font-weight: 700; color: var(--crimson); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* ---------- Header ---------- */
.notice {
  background: var(--crimson-ink); color: var(--gold); text-align: center;
  font: 600 .74rem/34px var(--sans); letter-spacing: .14em; height: 34px; padding: 0 var(--gut);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.notice a { color: var(--ivory); }
.site-head {
  position: sticky; top: 0; z-index: 50; transition: background .5s var(--ease), box-shadow .5s var(--ease), top .4s var(--ease);
  background: rgba(250, 246, 238, .92); backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-head.over { position: fixed; left: 0; right: 0; top: 34px; background: transparent; border-color: transparent; backdrop-filter: none; color: var(--ivory); }
.site-head.over.scrolled { top: 0; background: rgba(59, 10, 14, .9); backdrop-filter: blur(12px); }
.head-in { display: flex; align-items: center; gap: 24px; height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 54px; height: 54px; }
.brand b { display: block; font: 600 1.28rem/1 var(--serif); letter-spacing: .01em; }
.brand small { display: block; font: 700 .58rem/1.4 var(--sans); letter-spacing: .26em; text-transform: uppercase; opacity: .7; }
.nav { margin-inline-start: auto; display: flex; align-items: center; gap: clamp(14px, 1.8vw, 30px); }
.nav > a, .nav .drop > button {
  font: 600 .74rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  background: none; border: 0; color: inherit; cursor: pointer; padding: 10px 0; position: relative;
}
.nav > a::after, .nav .drop > button::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.nav > a:hover::after, .nav > a[aria-current]::after, .nav .drop:hover > button::after, .nav .drop.active > button::after { transform: scaleX(1); }
.drop { position: relative; }
.drop-menu {
  position: absolute; top: 100%; left: -22px; min-width: 230px; padding: 12px 0; background: var(--white); color: var(--ink);
  box-shadow: 0 24px 60px -20px rgba(59, 10, 14, .35); border-top: 2px solid var(--crimson);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .35s var(--ease);
}
.drop:hover .drop-menu, .drop:focus-within .drop-menu { opacity: 1; visibility: visible; transform: none; }
.drop-menu a { display: block; padding: 10px 22px; text-decoration: none; font-size: .92rem; }
.drop-menu a:hover { background: var(--ivory-2); color: var(--crimson); }
.nav > a.btn { padding: .95em 1.4em; background: var(--bg); color: var(--fg); }
.nav > a.btn::after { display: none; }
.menu-btn { display: none; margin-inline-start: auto; background: none; border: 0; color: inherit; width: 44px; height: 44px; cursor: pointer; }
.menu-btn span { display: block; width: 26px; height: 1.5px; background: currentColor; margin: 7px auto; transition: transform .4s var(--ease), opacity .3s; }

@media (max-width: 1080px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 6px; padding: 100px var(--gut) 40px; background: var(--crimson-ink); color: var(--ivory);
    opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s; overflow-y: auto;
  }
  .nav > a, .nav .drop > button { font: 500 1.9rem/1.2 var(--serif); letter-spacing: 0; text-transform: none; padding: 4px 0; }
  .drop-menu { position: static; opacity: 1; visibility: visible; transform: none; background: none; color: rgba(250,246,238,.75); box-shadow: none; border: 0; padding: 0 0 8px 4px; min-width: 0; }
  .drop-menu a { padding: 4px 0; }
  .drop-menu a:hover { background: none; color: var(--gold); }
  .nav .btn { margin-top: 18px; }
  body.menu-open { overflow: hidden; }
  body.menu-open .nav { opacity: 1; visibility: visible; }
  body.menu-open .site-head { color: var(--ivory); background: transparent; border-color: transparent; top: 0; }
  body.menu-open .menu-btn span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
  body.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
  body.menu-open .menu-btn span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }
}
@media (max-width: 420px) { .brand small { display: none; } .brand b { font-size: 1.1rem; } .brand img { width: 46px; height: 46px; } }

/* ---------- Hero (video) ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; color: var(--ivory); overflow: hidden; background: var(--crimson-ink); }
.hero video, .hero .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(36, 6, 9, .55) 0%, rgba(36, 6, 9, 0) 28%),
    linear-gradient(0deg, rgba(36, 6, 9, .92) 0%, rgba(59, 10, 14, .45) 45%, rgba(59, 10, 14, .05) 75%);
}
.hero-in { position: relative; z-index: 2; padding-bottom: clamp(48px, 9vh, 110px); padding-top: 140px; }
.hero h1 { max-width: 13ch; margin: 22px 0 22px; text-wrap: balance; }
.hero .lead { margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.play {
  display: inline-flex; align-items: center; gap: 14px; background: none; border: 0; color: var(--ivory); cursor: pointer;
  font: 700 .78rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; padding: 0 0 0 10px;
}
.play i {
  width: 56px; height: 56px; border-radius: 50%; border: 1px solid rgba(231, 213, 155, .7); display: grid; place-items: center;
  transition: background .4s var(--ease), transform .4s var(--ease);
}
.play i svg { width: 16px; height: 16px; fill: var(--gold); margin-left: 3px; }
.play:hover i { background: var(--gold); transform: scale(1.06); }
.play:hover i svg { fill: var(--crimson-ink); }
.hero-foot {
  position: relative; z-index: 2; border-top: 1px solid rgba(231, 213, 155, .25);
  display: flex; justify-content: space-between; gap: 20px; padding: 18px 0 22px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(250,246,238,.7);
}
.scroll-cue { display: inline-flex; align-items: center; gap: 10px; }
.scroll-cue::after { content: ""; width: 1px; height: 26px; background: var(--gold); animation: cue 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Page hero (inner pages) */
.page-hero { position: relative; color: var(--ivory); background: var(--crimson-ink); overflow: hidden; min-height: clamp(420px, 66vh, 640px); display: grid; align-items: end; }
.page-hero img, .page-hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .62; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(36,6,9,.92), rgba(59,10,14,.2) 70%); }
.page-hero .wrap { position: relative; z-index: 2; padding-top: 150px; padding-bottom: clamp(40px, 7vh, 80px); }
.page-hero h1 { font-size: clamp(2.8rem, 7vw, 6rem); margin-top: 16px; max-width: 16ch; }
.page-hero p { color: rgba(250,246,238,.82); max-width: 56ch; margin-top: 18px; font-size: 1.1rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 12vw, 160px) 0; position: relative; }
.section.tight { padding: clamp(60px, 8vw, 110px) 0; }
.section.alt { background: var(--ivory-2); }
.section.dark { background: var(--crimson-ink); color: var(--ivory); }
.section.crimson { background: var(--crimson); color: var(--ivory); }

/* Split intro */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 7vw, 110px); align-items: center; }
.split.rev > :first-child { order: 2; }
.split h2 { margin: 18px 0 26px; }
.frame { position: relative; }
.frame img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.frame::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 1px solid var(--gold-deep); z-index: -1; }
.frame .tag {
  position: absolute; left: -1px; bottom: 28px; background: var(--crimson); color: var(--ivory); padding: 16px 22px;
  font: 500 1.15rem/1.2 var(--serif); font-style: italic; max-width: 70%;
}
.frame-duo { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; align-items: end; }
.frame-duo img:first-child { aspect-ratio: 3/4; object-fit: cover; }
.frame-duo img:last-child { aspect-ratio: 3/4; object-fit: cover; margin-bottom: 18%; }
.facts { display: flex; flex-wrap: wrap; gap: 0; margin-top: 34px; border-top: 1px solid var(--line); }
.facts div { flex: 1 1 140px; padding: 18px 18px 0 0; }
.facts b { display: block; font: 600 1.25rem/1.1 var(--serif); color: var(--crimson); }
.facts span { font-size: .85rem; color: var(--ink-soft); }

/* Vision / mission */
.vm { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(36px, 7vw, 110px); }
.vision-quote { font: 500 clamp(1.7rem, 3vw, 2.6rem)/1.25 var(--serif); margin: 22px 0 0; color: var(--ivory); }
.vision-quote::before { content: "“"; display: block; font-size: 5rem; line-height: .6; color: var(--gold); margin-bottom: 8px; }
.mission-list { list-style: none; margin: 26px 0 0; padding: 0; counter-reset: m; }
.mission-list li { counter-increment: m; display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 22px 0; border-top: 1px solid rgba(231,213,155,.22); font-size: 1.05rem; color: rgba(250,246,238,.9); }
.mission-list li::before { content: "0" counter(m); font: 500 1.6rem/1 var(--serif); color: var(--gold); }
.mission-list li:last-child { border-bottom: 1px solid rgba(231,213,155,.22); }

/* Video band */
.band { position: relative; min-height: clamp(520px, 86vh, 820px); display: grid; align-items: center; color: var(--ivory); overflow: hidden; background: var(--crimson-ink); }
.band video, .band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(36,6,9,.93) 0%, rgba(59,10,14,.65) 50%, rgba(59,10,14,.15) 100%); }
.band .wrap { position: relative; z-index: 2; }
.band h2 { margin: 18px 0 22px; max-width: 17ch; }
.band .lead { margin-bottom: 30px; }
.seal { display: inline-flex; align-items: center; gap: 16px; margin-top: 8px; padding: 14px 20px 14px 14px; border: 1px solid rgba(231,213,155,.4); }
.seal i { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--crimson-ink); font: 700 1.1rem var(--serif); font-style: normal; }
.seal span { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; }

/* Stages */
.stages { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); margin-top: 56px; }
.stage { padding: 30px 26px 10px 0; border-right: 1px solid var(--line); margin-right: 26px; }
.stage:last-child { border-right: 0; margin-right: 0; }
.stage small { font: 700 .7rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep); }
.stage h3 { font-size: 1.9rem; margin: 14px 0 12px; }
.stage p { color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 900px) { .stages { grid-template-columns: 1fr 1fr; } .stage:nth-child(2) { border-right: 0; margin-right: 0; } }
@media (max-width: 560px) { .stages { grid-template-columns: 1fr; } .stage { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 20px; } }

/* Mosaic */
.mosaic { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(90px, 11vw, 150px); gap: 12px; margin-top: 50px; }
.mosaic figure { margin: 0; position: relative; overflow: hidden; background: var(--ivory-2); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.mosaic figure:hover img { transform: scale(1.05); }
.mosaic figcaption { position: absolute; left: 0; bottom: 0; padding: 12px 16px; color: var(--ivory); font: 500 1.05rem var(--serif); font-style: italic; background: linear-gradient(0deg, rgba(36,6,9,.7), transparent); width: 100%; }
.m1 { grid-column: span 5; grid-row: span 4; } .m2 { grid-column: span 4; grid-row: span 2; } .m3 { grid-column: span 3; grid-row: span 3; }
.m4 { grid-column: span 4; grid-row: span 2; } .m5 { grid-column: span 3; grid-row: span 1; }
@media (max-width: 760px) {
  .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .mosaic figure { grid-column: span 1 !important; grid-row: span 1 !important; }
  .mosaic .m1 { grid-column: span 2 !important; grid-row: span 2 !important; }
}

/* Films */
.films { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 16px; margin-top: 50px; }
.film { position: relative; overflow: hidden; background: #1a0507; cursor: pointer; border: 0; padding: 0; color: var(--ivory); text-align: left; aspect-ratio: 4/5; }
.film:first-child { grid-row: span 2; aspect-ratio: auto; }
.film img, .film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .6s; opacity: .85; }
.film:hover img { transform: scale(1.05); opacity: 1; }
.film::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(36,6,9,.85), transparent 55%); }
.film .meta { position: absolute; z-index: 2; left: 22px; right: 22px; bottom: 20px; }
.film .meta small { font: 700 .66rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.film .meta b { display: block; font: 500 1.5rem/1.15 var(--serif); margin-top: 8px; }
.film:first-child .meta b { font-size: clamp(1.6rem, 2.6vw, 2.4rem); }
.film .pbtn { position: absolute; z-index: 2; top: 20px; right: 20px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(231,213,155,.7); display: grid; place-items: center; transition: background .4s var(--ease); }
.film .pbtn svg { width: 14px; height: 14px; fill: var(--gold); margin-left: 3px; }
.film:hover .pbtn { background: var(--gold); } .film:hover .pbtn svg { fill: var(--crimson-ink); }
@media (max-width: 860px) { .films { grid-template-columns: 1fr 1fr; } .film:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 16/10; } }
@media (max-width: 520px) { .films { grid-template-columns: 1fr; } .film:first-child { grid-column: auto; } .film { aspect-ratio: 16/11; } }

/* CTA */
.cta { text-align: center; }
.cta h2 { max-width: 18ch; margin: 18px auto 22px; }
.cta .lead { margin: 0 auto 34px; }
.cta .row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Prose pages */
.prose { max-width: 70ch; }
.prose p { color: var(--ink-soft); }
.prose h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); margin: 0 0 18px; }
.chapters { display: grid; gap: 0; border-top: 1px solid var(--line); }
.chapter { display: grid; grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(20px, 4vw, 60px); padding: clamp(36px, 5vw, 64px) 0; border-bottom: 1px solid var(--line); align-items: start; }
.chapter .num { font: 500 2.4rem/1 var(--serif); color: var(--gold-deep); }
.chapter h3 { font-size: clamp(1.9rem, 3vw, 2.7rem); }
.chapter h3 small { display: block; font: 700 .7rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--crimson); margin-bottom: 14px; }
.chapter p { color: var(--ink-soft); }
.chapter img { width: 100%; aspect-ratio: 16/10; object-fit: cover; margin-top: 22px; }
@media (max-width: 860px) { .chapter { grid-template-columns: 1fr; gap: 10px; } }

.list-check { list-style: none; padding: 0; margin: 22px 0; }
.list-check li { position: relative; padding: 14px 0 14px 40px; border-bottom: 1px solid var(--line); }
.list-check li::before { content: ""; position: absolute; left: 2px; top: 22px; width: 18px; height: 9px; border-left: 2px solid var(--crimson); border-bottom: 2px solid var(--crimson); transform: rotate(-45deg); }
.on-dark .list-check li { border-color: rgba(231,213,155,.22); }
.on-dark .list-check li::before { border-color: var(--gold); }

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 46px; }
.step { counter-increment: s; padding: 0 24px 0 0; position: relative; }
.step::before { content: counter(s); display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--crimson); color: var(--crimson); font: 600 1.4rem/1 var(--serif); background: var(--ivory); position: relative; z-index: 1; }
.step::after { content: ""; position: absolute; top: 26px; left: 52px; right: 0; height: 1px; background: var(--line); }
.step:last-child::after { display: none; }
.step h3 { font-size: 1.45rem; margin: 22px 0 10px; }
.step p, .step li { color: var(--ink-soft); font-size: .95rem; }
.step ul { padding-left: 18px; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; } .step::after { display: none; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Fees */
.fees { width: 100%; border-collapse: collapse; margin-top: 40px; }
.fees th, .fees td { text-align: left; padding: 22px 8px; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.fees thead th { font: 700 .7rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); padding-bottom: 14px; }
.fees td:first-child { font: 600 1.45rem/1.2 var(--serif); }
.fees td:nth-child(2) { color: var(--ink-soft); font-size: .92rem; }
.fees td:last-child { text-align: right; font: 600 1.7rem/1 var(--serif); color: var(--crimson); white-space: nowrap; }
.fees td:last-child small { font: 600 .7rem var(--sans); letter-spacing: .14em; color: var(--ink-soft); margin-left: 6px; }
.fees tbody tr { transition: background .3s; } .fees tbody tr:hover { background: var(--ivory-2); }
.note-ar { direction: rtl; font-family: "Noto Naskh Arabic", serif; font-size: 1.05rem; color: var(--ink-soft); margin-top: 26px; text-align: right; }
@media (max-width: 600px) { .fees td:nth-child(2), .fees th:nth-child(2) { display: none; } .fees td:last-child { font-size: 1.3rem; } }

/* Standards (accreditation) */
.standards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: rgba(231,213,155,.22); margin-top: 50px; border: 1px solid rgba(231,213,155,.22); }
.standards div { background: var(--crimson-ink); padding: 30px 22px 34px; }
.standards b { display: block; font: 500 2.6rem/1 var(--serif); color: var(--gold); margin-bottom: 18px; }
.standards p { margin: 0; color: rgba(250,246,238,.85); font-size: .98rem; }
@media (max-width: 980px) { .standards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .standards { grid-template-columns: 1fr; } }

/* Gallery */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.filters button { background: none; border: 1px solid var(--line); padding: .7em 1.2em; font: 600 .74rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; color: var(--ink); transition: all .3s var(--ease); }
.filters button[aria-pressed="true"], .filters button:hover { background: var(--crimson); border-color: var(--crimson); color: var(--ivory); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; margin-top: 34px; }
.gallery a { display: block; overflow: hidden; position: relative; aspect-ratio: 3/2; background: var(--ivory); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.gallery a:hover img { transform: scale(1.04); }
.gallery a.hide { display: none; }

/* Lightbox / video player */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(20, 4, 6, .96); display: grid; place-items: center; padding: 60px 16px; opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s; }
.lb.open { opacity: 1; visibility: visible; }
.lb-stage { width: min(1200px, 100%); max-height: 100%; display: grid; place-items: center; }
.lb-stage img, .lb-stage video { max-width: 100%; max-height: calc(100svh - 120px); width: auto; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lb-stage video { width: 100%; background: #000; }
.lb-close, .lb-nav { position: absolute; background: none; border: 1px solid rgba(231,213,155,.5); color: var(--gold); width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: 22px; line-height: 1; display: grid; place-items: center; }
.lb-close { top: 16px; right: 16px; }
.lb-nav.prev { left: 16px; top: 50%; } .lb-nav.next { right: 16px; top: 50%; }
.lb-nav:hover, .lb-close:hover { background: var(--gold); color: var(--crimson-ink); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: 0; background: var(--white); box-shadow: 0 40px 90px -40px rgba(59, 10, 14, .35); }
.contact-info { padding: clamp(34px, 5vw, 64px); }
.contact-info h2 { margin: 16px 0 18px; }
.c-rows { margin-top: 30px; display: grid; gap: 0; }
.c-row { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); font-size: .98rem; }
.c-row span { font: 700 .68rem/1.9 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.c-row a { text-decoration: none; } .c-row a:hover { color: var(--crimson); }
.contact iframe { width: 100%; height: 100%; min-height: 420px; border: 0; filter: saturate(.8) contrast(1.02); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } .c-row { grid-template-columns: 1fr; gap: 2px; } }

/* Calculator embed */
.calc-frame { width: 100%; border: 0; min-height: 1600px; background: var(--white); box-shadow: 0 40px 90px -40px rgba(59, 10, 14, .3); }

/* ---------- Footer ---------- */
.site-foot { background: var(--crimson-ink); color: rgba(250,246,238,.75); padding: clamp(70px, 9vw, 110px) 0 30px; font-size: .94rem; }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot-brand img { width: 84px; height: 84px; margin-bottom: 20px; }
.foot-brand p { font: 500 1.5rem/1.3 var(--serif); color: var(--ivory); font-style: italic; max-width: 18ch; }
.site-foot h4 { font: 700 .7rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-foot a { text-decoration: none; transition: color .3s; } .site-foot a:hover { color: var(--gold); }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a { width: 42px; height: 42px; border: 1px solid rgba(231,213,155,.35); border-radius: 50%; display: grid; place-items: center; }
.socials a:hover { background: var(--gold); color: var(--crimson-ink); }
.socials svg { width: 17px; height: 17px; fill: currentColor; }
.foot-bottom { margin-top: 70px; padding-top: 24px; border-top: 1px solid rgba(231,213,155,.18); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: .8rem; letter-spacing: .04em; }
@media (max-width: 900px) { .foot-top { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: span 2; } }
@media (max-width: 520px) { .foot-top { grid-template-columns: 1fr; } .foot-brand { grid-column: auto; } }

/* WhatsApp float */
.wa { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: var(--crimson); color: var(--ivory); display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(59,10,14,.6); transition: transform .4s var(--ease), background .4s; }
.wa:hover { transform: scale(1.07); background: var(--crimson-deep); }
.wa svg { width: 28px; height: 28px; fill: currentColor; }

/* ---------- Layout helpers / responsive ---------- */
.head-row { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; }
.head-row .h2 { margin-top: 16px; max-width: 16ch; }
@media (max-width: 900px) {
  .split, .vm { grid-template-columns: 1fr; }
  .split.rev > :first-child { order: 0; }
  .frame::before { inset: 14px -10px -14px 14px; }
}

/* ---------- Reveal motion ---------- */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .1s; } .rv.d2 { transition-delay: .2s; } .rv.d3 { transition-delay: .3s; }
.hero .rise { opacity: 0; transform: translateY(30px); animation: rise 1.4s var(--ease) forwards; }
.hero .rise:nth-child(2) { animation-delay: .15s; } .hero .rise:nth-child(3) { animation-delay: .3s; } .hero .rise:nth-child(4) { animation-delay: .45s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv, .hero .rise { opacity: 1; transform: none; }
}
