/* ==========================================================================
   Dabira International School — public site styles
   Self-contained: no Bootstrap dependency. Icons: Bootstrap Icons (local).
   ========================================================================== */

:root {
  --blue: #063f97;
  --blue-700: #052f73;
  --blue-900: #041f4d;
  --blue-50: #eef4ff;
  --red: #d40022;
  --red-700: #a9001c;
  --red-50: #fff0f2;
  --cream: #fff4dc;
  --cream-50: #fffaf0;
  --ink: #0f172a;
  --body: #334155;
  --muted: #64748b;
  --line: rgba(15, 23, 42, .09);
  --line-strong: rgba(6, 63, 151, .16);
  --white: #fff;

  --font-sans: "Plus Jakarta Sans", Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Fraunces", "Playfair Display", Georgia, "Times New Roman", serif;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 12px rgba(15, 23, 42, .05);
  --shadow-md: 0 10px 30px rgba(6, 63, 151, .10);
  --shadow-lg: 0 30px 80px rgba(6, 63, 151, .18);
  --wrap: 1200px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: var(--cream-50);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--red); }
h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.15; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
:focus-visible { outline: 3px solid rgba(212, 0, 34, .45); outline-offset: 3px; border-radius: 6px; }

[id] { scroll-margin-top: calc(var(--header-h) + 20px); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 46px; padding: .7rem 1.25rem;
  border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: .95rem; line-height: 1; white-space: nowrap;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn i { font-size: 1.05em; }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 10px 24px rgba(212, 0, 34, .25); }
.btn-red:hover { background: var(--red-700); color: #fff; box-shadow: 0 14px 30px rgba(212, 0, 34, .32); }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 10px 24px rgba(6, 63, 151, .22); }
.btn-blue:hover { background: var(--blue-700); color: #fff; }
.btn-ghost { background: #fff; color: var(--blue); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); box-shadow: var(--shadow-sm); }
.btn-light { background: #fff; color: var(--blue); }
.btn-light:hover { color: var(--red); }
.btn-outline-light { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .1); color: #fff; border-color: #fff; }
.btn-sm { min-height: 38px; padding: .5rem .95rem; font-size: .86rem; }
.btn-block { width: 100%; }

/* ---------- Top bar ---------- */
.topbar { background: var(--blue-900); color: rgba(255, 255, 255, .82); font-size: .82rem; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; }
.topbar-info { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.topbar-info span { display: inline-flex; align-items: center; gap: .4rem; }
.topbar-info i { color: #ffb4bf; }
.topbar a { color: #fff; font-weight: 600; }
.topbar a:hover { color: var(--cream); }
.topbar-links { display: flex; gap: 1.1rem; align-items: center; }
.topbar-links a { display: inline-flex; align-items: center; gap: .35rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255, 250, 240, .9);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease, background-color .25s ease;
}
.site-header.is-scrolled { background: rgba(255, 255, 255, .94); border-color: var(--line); box-shadow: 0 8px 30px rgba(15, 23, 42, .07); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: .75rem; color: var(--ink); min-width: 0; }
.brand:hover { color: var(--ink); }
.brand img { width: 48px; height: 48px; object-fit: contain; flex: 0 0 auto; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-weight: 800; font-size: 1rem; color: var(--blue); letter-spacing: -.01em; line-height: 1.15; }
.brand-motto { font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: .25rem; }
.nav a.nav-link {
  position: relative; padding: .55rem .8rem; border-radius: 999px;
  color: var(--body); font-weight: 600; font-size: .92rem;
}
.nav a.nav-link:hover, .nav a.nav-link.active { color: var(--blue); background: var(--blue-50); }
.nav-actions { display: flex; align-items: center; gap: .5rem; margin-left: .75rem; }

.menu-btn {
  display: none; width: 46px; height: 46px; border-radius: 14px;
  border: 1px solid var(--line-strong); background: #fff; color: var(--blue);
  font-size: 1.5rem; align-items: center; justify-content: center; cursor: pointer;
}

/* ---------- Mobile drawer ---------- */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 1990; background: rgba(4, 31, 77, .45);
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease;
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 2000;
  width: min(88vw, 360px); background: #fff; box-shadow: none; visibility: hidden;
  transform: translateX(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1), visibility .3s;
  display: flex; flex-direction: column; overflow-y: auto;
}
body.drawer-open { overflow: hidden; }
body.drawer-open .drawer { transform: none; visibility: visible; box-shadow: -20px 0 60px rgba(4, 31, 77, .25); }
body.drawer-open .drawer-backdrop { opacity: 1; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); }
.drawer-close { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-size: 1.1rem; cursor: pointer; color: var(--ink); }
.drawer-nav { padding: .75rem 1.1rem; display: flex; flex-direction: column; }
.drawer-nav a { display: flex; align-items: center; justify-content: space-between; padding: .95rem .25rem; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 700; }
.drawer-nav a i { color: var(--muted); }
.drawer-cta { padding: 1rem 1.1rem 1.5rem; display: grid; gap: .6rem; margin-top: auto; }
.drawer-contact { padding: 0 1.1rem 1.5rem; font-size: .85rem; color: var(--muted); display: grid; gap: .35rem; }

/* ---------- Notice ticker ---------- */
.ticker { background: var(--red); color: #fff; font-size: .88rem; }
.ticker .wrap { display: flex; align-items: center; gap: 1rem; min-height: 44px; }
.ticker-label { display: inline-flex; align-items: center; gap: .45rem; font-weight: 800; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; background: rgba(255, 255, 255, .16); padding: .35rem .7rem; border-radius: 999px; flex: 0 0 auto; }
.ticker-track { flex: 1; overflow: hidden; white-space: nowrap; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-line { display: inline-flex; gap: 2.5rem; padding-left: 100%; animation: ticker 30s linear infinite; }
.ticker:hover .ticker-line { animation-play-state: paused; }
.ticker-line a { color: #fff; font-weight: 600; display: inline-flex; align-items: center; gap: .45rem; }
.ticker-line a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cream); }
.ticker-line a:hover { text-decoration: underline; }
.ticker-close { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .16); color: #fff; cursor: pointer; display: grid; place-items: center; }
.ticker-close:hover { background: rgba(255, 255, 255, .28); }
@keyframes ticker { to { transform: translateX(-100%); } }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--red);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow.on-dark { color: #ffc2cb; }
.display { font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em; color: var(--blue-900); }
.h-section { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 3.6vw, 3rem); letter-spacing: -.02em; color: var(--blue-900); margin: .6rem 0 1rem; }
.lead { font-size: 1.08rem; color: var(--body); max-width: 640px; }
.text-red { color: var(--red); }
.text-blue { color: var(--blue); }

.section { padding: clamp(4rem, 8vw, 6.5rem) 0; position: relative; }
.section-head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: end; margin-bottom: 3rem; }
.section-head.center { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.section-head.center .eyebrow::after { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.section-alt { background: #fff; border-block: 1px solid var(--line); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(4rem, 7vw, 6rem); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(6, 63, 151, .10), transparent 60%),
    radial-gradient(700px 420px at 0% 100%, rgba(212, 0, 34, .07), transparent 60%),
    linear-gradient(180deg, var(--cream-50), var(--cream));
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .9rem .4rem .45rem;
  background: #fff; border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: .82rem; font-weight: 700; color: var(--blue); box-shadow: var(--shadow-sm);
}
.pill .dot { width: 24px; height: 24px; border-radius: 50%; background: var(--red-50); color: var(--red); display: grid; place-items: center; font-size: .8rem; }
.pill .dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(212, 0, 34, .5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(212, 0, 34, 0); } 100% { box-shadow: 0 0 0 0 rgba(212, 0, 34, 0); } }
.hero h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.6rem, 5.6vw, 4.6rem); line-height: 1.04; letter-spacing: -.03em; color: var(--blue-900); margin: 1.25rem 0 1.25rem; }
.hero h1 em { font-style: italic; color: var(--red); }
.hero .school { display: block; font-family: var(--font-sans); font-size: .95rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: .9rem; }
.hero-copy { font-size: 1.12rem; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2rem 0 2.25rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 1.5rem 2rem; padding-top: 1.75rem; border-top: 1px solid var(--line-strong); }
.hero-meta div { display: flex; gap: .7rem; align-items: flex-start; max-width: 280px; font-size: .9rem; }
.hero-meta i { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; background: #fff; color: var(--red); box-shadow: var(--shadow-sm); }
.hero-meta strong { display: block; color: var(--ink); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.hero-meta a { color: var(--body); }

.crest-stage { position: relative; aspect-ratio: 1 / 1.08; max-width: 470px; margin-inline: auto; width: 100%; }
.crest-stage .blob {
  position: absolute; inset: 6% 4% 10% 8%; border-radius: 40% 60% 52% 48% / 46% 42% 58% 54%;
  background: linear-gradient(145deg, var(--blue), var(--blue-900));
  box-shadow: var(--shadow-lg);
}
.crest-stage .blob::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .22), transparent 55%);
}
.crest-stage .ring { position: absolute; inset: 0 0 4% 2%; border: 2px dashed rgba(212, 0, 34, .35); border-radius: 50%; animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.crest-stage .crest {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%);
  width: 64%; background: #fff; border-radius: 50%; padding: 9%;
  box-shadow: 0 24px 60px rgba(4, 31, 77, .35);
}
.float-card {
  position: absolute; display: flex; align-items: center; gap: .7rem;
  background: #fff; border-radius: var(--r-md); padding: .8rem 1rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .14); border: 1px solid var(--line);
  font-size: .85rem; line-height: 1.3; color: var(--ink);
  animation: bob 6s ease-in-out infinite;
}
.float-card i { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; font-size: 1.1rem; flex: 0 0 auto; }
.float-card small { display: block; color: var(--muted); font-size: .74rem; }
.float-card.motto { left: -4%; bottom: 8%; }
.float-card.motto i { background: var(--red-50); color: var(--red); }
.float-card.app { right: -2%; top: 6%; animation-delay: -3s; }
.float-card.app i { background: #e8f8ee; color: #15803d; }
.float-card.app:hover { color: var(--ink); }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* ---------- Values marquee strip ---------- */
.values-strip { background: var(--blue-900); color: #fff; overflow: hidden; }
.values-strip .row { display: flex; gap: 3rem; padding: 1.1rem 0; white-space: nowrap; width: max-content; animation: ticker 40s linear infinite; }
.values-strip span { display: inline-flex; align-items: center; gap: 3rem; font-family: var(--font-display); font-size: 1.35rem; font-style: italic; opacity: .92; }
.values-strip span::after { content: "✦"; font-style: normal; color: #ff6b81; font-size: .9rem; }

/* ---------- Cards / grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(1.5rem, 2.5vw, 2.2rem); box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.icon-tile { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 1.45rem; background: var(--blue-50); color: var(--blue); margin-bottom: 1.25rem; }
.icon-tile.red { background: var(--red-50); color: var(--red); }
.card h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: .6rem; }
.card p { color: var(--body); }

.statement { position: relative; overflow: hidden; }
.statement .tag { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.statement h3 { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--blue-900); margin: .25rem 0 1rem; }
.statement p { font-size: 1.06rem; line-height: 1.75; }
.statement::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: var(--blue-50); z-index: 0; }
.statement.red::after { background: var(--red-50); }
.statement > * { position: relative; z-index: 1; }

.pillar { text-align: left; }
.pillar .num { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; color: rgba(6, 63, 151, .14); line-height: 1; margin-bottom: .75rem; }
.pillar h3 { font-size: 1.08rem; }
.pillar p { font-size: .94rem; }

/* ---------- Events ---------- */
.events-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 1fr); gap: 1.25rem; overflow-x: auto; padding-bottom: .75rem; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.event-card { scroll-snap-align: start; display: flex; gap: 1rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.15rem; box-shadow: var(--shadow-sm); color: var(--body); transition: transform .2s ease, box-shadow .2s ease; }
a.event-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); color: var(--body); }
.event-date { flex: 0 0 auto; width: 62px; text-align: center; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-strong); background: #fff; }
.event-date .m { display: block; background: var(--red); color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .12em; padding: .25rem 0; text-transform: uppercase; }
.event-date .d { display: block; font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--blue-900); padding: .25rem 0 .3rem; line-height: 1.1; }
.event-card h4 { font-size: 1rem; font-weight: 800; margin-bottom: .25rem; }
.event-card p { font-size: .88rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.event-type { display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); background: var(--blue-50); border-radius: 999px; padding: .15rem .55rem; margin-bottom: .45rem; }
.empty-state { display: flex; gap: 1rem; align-items: center; padding: 1.5rem; border: 1.5px dashed var(--line-strong); border-radius: var(--r-md); color: var(--muted); background: rgba(255, 255, 255, .6); }
.empty-state i { font-size: 1.6rem; color: var(--blue); }

/* ---------- Creed ---------- */
.creed { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-900) 100%); color: rgba(255, 255, 255, .88); overflow: hidden; }
.creed::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 90% 0%, rgba(212, 0, 34, .35), transparent 60%); pointer-events: none; }
.creed .wrap { position: relative; }
.creed-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.creed h2 { color: #fff; font-family: var(--font-display); font-size: clamp(2.2rem, 4.2vw, 3.4rem); font-weight: 700; letter-spacing: -.02em; margin-top: .6rem; }
.creed h2 em { color: #ffb4bf; }
.creed blockquote { margin: 0; position: relative; padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: var(--r-lg); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); font-size: clamp(1.08rem, 1.6vw, 1.3rem); line-height: 1.8; color: #fff; }
.creed blockquote .bi-quote { position: absolute; top: -22px; left: 24px; width: 46px; height: 46px; border-radius: 14px; background: var(--red); color: #fff; display: grid; place-items: center; font-size: 1.5rem; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.chip { padding: .5rem 1rem; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); color: #fff; font-weight: 700; font-size: .88rem; }
.chip i { color: #ffb4bf; margin-right: .3rem; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 3.25rem; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; top: 1.4rem; left: clamp(1.5rem, 2.5vw, 2.2rem); font-weight: 800; font-size: .8rem; letter-spacing: .1em; color: var(--red); }
.cta-band { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; padding: 1.4rem 1.6rem; border-radius: var(--r-lg); background: var(--cream); border: 1px solid rgba(212, 0, 34, .14); }
.cta-band p { font-weight: 700; color: var(--ink); }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: .6rem; }

/* ---------- App band ---------- */
.app-panel { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(1.75rem, 4vw, 3.5rem); box-shadow: var(--shadow-md); position: relative; overflow: hidden; }
.app-panel::before { content: ""; position: absolute; right: -120px; bottom: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(6, 63, 151, .10), transparent 70%); }
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem 1.25rem; margin: 1.5rem 0 2rem; }
.feature-list li { display: flex; gap: .6rem; align-items: center; font-weight: 600; color: var(--ink); }
.feature-list i { color: #16a34a; font-size: 1.15rem; }
.install-card { position: relative; background: linear-gradient(160deg, var(--blue-900), var(--blue)); color: rgba(255, 255, 255, .85); border-radius: var(--r-lg); padding: 1.75rem; }
.install-card h3 { color: #fff; font-size: 1.15rem; margin-bottom: 1.1rem; display: flex; gap: .55rem; align-items: center; }
.install-card ol { margin: 0 0 1.5rem; padding: 0; list-style: none; counter-reset: s; display: grid; gap: .9rem; }
.install-card li { counter-increment: s; display: flex; gap: .8rem; align-items: flex-start; font-size: .93rem; }
.install-card li::before { content: counter(s); flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .8rem; }
.install-card .btns { display: grid; gap: .6rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 1.5rem; align-items: stretch; }
.info-list { display: grid; gap: 1rem; }
.info-item { display: flex; gap: 1rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.15rem 1.25rem; box-shadow: var(--shadow-sm); }
.info-item i { width: 46px; height: 46px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 14px; background: var(--blue-50); color: var(--blue); font-size: 1.2rem; }
.info-item strong { display: block; color: var(--ink); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .15rem; }
.info-item a { color: var(--body); font-weight: 600; }
.info-item a:hover { color: var(--red); }
.map-card { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); min-height: 340px; background: var(--blue-50); position: relative; }
.map-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding: clamp(3rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(800px 400px at 90% 0%, rgba(6, 63, 151, .12), transparent 60%), linear-gradient(180deg, var(--cream-50), var(--cream)); }
.page-hero h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.3rem, 4.8vw, 3.8rem); letter-spacing: -.025em; color: var(--blue-900); margin: .8rem 0 1rem; max-width: 820px; }
.page-hero .lead { max-width: 640px; }
.crumbs { display: flex; gap: .45rem; align-items: center; font-size: .85rem; color: var(--muted); font-weight: 600; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--red); }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.4rem, 3vw, 2.4rem); box-shadow: var(--shadow-md); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.1rem; }
.form-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid .span-all { grid-column: 1 / -1; }
.field label { display: block; font-size: .84rem; font-weight: 700; color: var(--ink); margin-bottom: .4rem; }
.field label .req { color: var(--red); }
.input, .field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .75rem .95rem; font: inherit; font-size: .95rem; color: var(--ink);
  background: #fbfcfe; border: 1.5px solid #e2e8f0; border-radius: 12px; transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input[type=file] { padding: .55rem; background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(6, 63, 151, .12); }
.field .hint { font-size: .78rem; color: var(--muted); margin-top: .35rem; }
.field .error { display: none; font-size: .8rem; color: var(--red); margin-top: .35rem; font-weight: 600; }
.was-validated .field input:invalid, .was-validated .field select:invalid, .was-validated .field textarea:invalid { border-color: var(--red); background: #fffafb; }
.was-validated .field input:invalid ~ .error, .was-validated .field select:invalid ~ .error, .was-validated .field textarea:invalid ~ .error { display: block; }
.check { display: flex; gap: .65rem; align-items: flex-start; font-size: .9rem; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blue); flex: 0 0 auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-900); color: rgba(255, 255, 255, .72); padding-top: clamp(3.5rem, 6vw, 5rem); position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--red) 0 33%, #fff 33% 66%, var(--blue) 66%); }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr 1.1fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-brand { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.1rem; }
.footer-brand img { width: 54px; height: 54px; background: #fff; border-radius: 50%; padding: 4px; }
.footer-brand strong { color: #fff; font-size: 1.05rem; display: block; line-height: 1.2; }
.footer-brand small { color: #ffb4bf; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .68rem; }
.site-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer-links { display: grid; gap: .6rem; }
.site-footer a { color: rgba(255, 255, 255, .78); }
.site-footer a:hover { color: #fff; }
.footer-contact { display: grid; gap: .75rem; font-size: .93rem; }
.footer-contact div { display: flex; gap: .6rem; }
.footer-contact i { color: #ffb4bf; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 1.3rem 0; font-size: .85rem; }
.footer-bottom .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ---------- Scroll top ---------- */
.to-top { position: fixed; left: 18px; bottom: 18px; z-index: 900; width: 46px; height: 46px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-size: 1.4rem; box-shadow: 0 12px 28px rgba(212, 0, 34, .35); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s ease; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: #fff; background: var(--red-700); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .08s; }
.js .reveal[data-delay="2"] { transition-delay: .16s; }
.js .reveal[data-delay="3"] { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Detail / admission layout ---------- */
.detail-grid { grid-template-columns: 1.4fr .9fr; }
.apply-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.75rem; align-items: start; }
.apply-aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 1rem; }
.form-section { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow-sm); margin-bottom: 1.25rem; }
.form-section-head { display: flex; gap: .9rem; align-items: center; margin-bottom: 1.4rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.form-section-head .n { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--blue); color: #fff; font-weight: 800; flex: 0 0 auto; }
.form-section-head h2 { font-size: 1.15rem; font-weight: 800; }
.form-section-head p { font-size: .86rem; color: var(--muted); }
.passport-drop { display: flex; gap: 1rem; align-items: center; padding: 1rem; border: 1.5px dashed var(--line-strong); border-radius: var(--r-md); background: var(--blue-50); }
.passport-preview { width: 84px; height: 104px; border-radius: 10px; background: #fff; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--blue); font-size: 1.8rem; overflow: hidden; flex: 0 0 auto; }
.passport-preview img { width: 100%; height: 100%; object-fit: cover; }
details.optional { border: 1px solid var(--line); border-radius: var(--r-md); padding: 0 1.1rem; background: #fbfcfe; }
details.optional summary { cursor: pointer; padding: 1rem 0; font-weight: 700; color: var(--blue); list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.optional summary::-webkit-details-marker { display: none; }
details.optional summary::after { content: "\F282"; font-family: bootstrap-icons; transition: transform .2s ease; }
details.optional[open] summary::after { transform: rotate(180deg); }
details.optional[open] { padding-bottom: 1.1rem; }
.fee-card { background: linear-gradient(160deg, var(--blue-900), var(--blue)); color: rgba(255, 255, 255, .85); border-radius: var(--r-lg); padding: 1.5rem; }
.fee-card .amt { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: #fff; line-height: 1.1; margin: .3rem 0 .6rem; }
.fee-card small { text-transform: uppercase; letter-spacing: .14em; font-weight: 800; font-size: .7rem; color: #ffc2cb; }
.mini-steps { display: grid; gap: .75rem; }
.mini-steps li { display: flex; gap: .7rem; font-size: .9rem; align-items: flex-start; }
.mini-steps i { color: var(--red); margin-top: .15rem; }
.alert-warn { border: 1px solid #fed7aa; background: #fff7ed; color: #9a3412; border-radius: var(--r-md); padding: .9rem 1rem; font-size: .9rem; font-weight: 600; display: flex; gap: .6rem; }
.submit-bar { position: sticky; bottom: 12px; z-index: 5; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1rem 1.25rem; display: flex; gap: 1rem; align-items: center; justify-content: space-between; box-shadow: var(--shadow-md); }
.submit-bar .btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav a.nav-link { padding: .5rem .6rem; font-size: .88rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 991px) {
  :root { --header-h: 68px; }
  .nav, .nav-actions { display: none; }
  .menu-btn { display: inline-flex; }
  .topbar { display: none; }
  .hero-grid, .creed-grid, .app-panel, .contact-grid, .detail-grid, .section-head, .apply-layout { grid-template-columns: minmax(0, 1fr); }
  .apply-aside { position: static; }
  .crest-stage { max-width: 400px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head { gap: 1rem; margin-bottom: 2rem; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .wrap { padding-inline: 16px; }
  .brand img { width: 42px; height: 42px; }
  .brand-name { font-size: .9rem; }
  .brand-motto { font-size: .6rem; letter-spacing: .1em; }
  .grid-2, .grid-3, .grid-4, .feature-list, .form-grid, .form-grid.cols-3 { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-meta { gap: 1rem; }
  .float-card { font-size: .78rem; padding: .6rem .75rem; }
  .float-card i { width: 32px; height: 32px; }
  .float-card.motto { left: 0; bottom: 4%; }
  .float-card.app { right: 0; top: 2%; }
  .ticker-label span { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .cta-band .actions, .cta-band .actions .btn { width: 100%; }
  .values-strip span { font-size: 1.1rem; }
  .submit-bar { flex-direction: column; align-items: stretch; text-align: center; }
}
.was-validated .field:has(input:invalid) > .error { display: block; }
.form-grid .span-2 { grid-column: span 2; }
@media (max-width: 640px) { .form-grid .span-2 { grid-column: auto; } }
