/* ============================================================
   Angels of Mercy Education Centre — Design System
   Palette: navy (anchor) / gold (warmth, CTA) / sky (trust, care) / paper (bg)
   Swap --navy/--gold/--sky below once real brand colors arrive.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Work+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@500&display=swap');

:root {
  /* Sourced directly from the school crest */
  --navy: #001E40;
  --navy-deep: #001330;
  --gold: #E3A518;
  --gold-deep: #B98510;
  --red: #D81E1E;
  --red-deep: #A81616;
  --sky: #8B9096;       /* wing gray from the crest, used for muted accents/borders */
  --sky-pale: #ECEDEE;  /* pale neutral tint, replaces the old blue tint */
  --paper: #F7F6F1;
  --paper-warm: #F1EEE4;
  --ink: #26261F;
  --ink-soft: #5B5A4F;
  --line: #DFDACB;
  --white: #FFFFFF;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Work Sans', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --max: 1180px;
  --radius: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 4.6vw, 4rem); font-weight: 500; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-block;
  margin-bottom: 14px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 246, 241, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px; max-width: var(--max); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.15rem; color: var(--navy); font-weight: 600; }
.brand-mark { width: 40px; height: 40px; flex-shrink: 0; object-fit: contain; border-radius: 3px; }
.motto { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); }
.brand small { display: block; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.08em; color: var(--ink-soft); font-weight: 500; text-transform: uppercase; }

.nav-links { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-size: 0.95rem; font-weight: 500; color: var(--ink);
  padding-bottom: 4px; border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--navy); border-color: var(--gold); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; }

@media (max-width: 820px) {
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px 28px 20px; gap: 4px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  padding: 13px 26px; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-deep); }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: var(--gold-deep); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--white); }

/* ---------- Section arc divider (signature element) ---------- */
.arc-divider { width: 100%; height: 64px; display: block; margin-top: -1px; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--paper-warm), var(--paper));
  padding: 72px 0 40px;
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.photo-slot {
  background: linear-gradient(135deg, var(--sky-pale), var(--paper-warm));
  border: 1px dashed var(--sky);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft); font-family: var(--font-mono); font-size: 0.78rem;
  text-align: center; padding: 20px;
  aspect-ratio: 4 / 3;
}
.photo-slot.tall { aspect-ratio: 3 / 4; }
.photo-slot.wide { aspect-ratio: 16 / 7; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 820px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery-grid { grid-template-columns: 1fr; } }
.gallery-item { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.gallery-item:hover img { transform: scale(1.05); }

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
@media (max-width: 820px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
}
.card .icon { width: 40px; height: 40px; margin-bottom: 16px; color: var(--gold-deep); }

section { padding: 76px 0; }
.section-alt { background: var(--white); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy p { color: #C7D2DA; }

.section-head { max-width: 640px; margin-bottom: 44px; }

/* ---------- Stat strip ---------- */
.stat-strip { display: flex; flex-wrap: wrap; gap: 40px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 32px 0; }
.stat { font-family: var(--font-mono); }
.stat .num { font-size: 1.6rem; color: var(--navy); display: block; }
.stat .label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); }

/* ---------- Steps (real sequence: admissions) ---------- */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; }
.step { counter-increment: step; display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 24px 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono); font-size: 0.9rem; color: var(--gold-deep);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #B9C4CC; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--white); font-size: 0.95rem; font-family: var(--font-body); font-weight: 600; margin-bottom: 14px; }
.site-footer a { color: #B9C4CC; }
.site-footer a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid #2A3F4E; padding-top: 20px; font-size: 0.8rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- Form ---------- */
form.contact-form { display: grid; gap: 18px; max-width: 560px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--navy); }
.field input, .field textarea, .field select {
  font-family: var(--font-body); font-size: 1rem; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
  color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--sky); outline-offset: 1px; border-color: var(--sky);
}

/* ---------- Utility ---------- */
.center { text-align: center; margin-left: auto; margin-right: auto; }
.mt-40 { margin-top: 40px; }
.small-note { font-size: 0.85rem; color: var(--ink-soft); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}

/* ---------- Floating WhatsApp button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 100;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.whatsapp-float:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}
.whatsapp-float svg { width: 30px; height: 30px; }

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float:hover { transform: none; }
}

:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
