/* ============ Priesthood Children School ============ */
:root {
  --navy: #1f2463;
  --navy-deep: #151946;
  --pink: #d6338a;
  --pink-soft: #fde7f2;
  --green: #4caf2e;
  --green-soft: #e8f6e1;
  --red: #e2242b;
  --gold: #f5c518;
  --cream: #fffaf3;
  --ink: #1d1f2e;
  --muted: #5b5f73;
  --line: #ece6dc;
  --radius: 18px;
  --shadow: 0 12px 32px rgba(31, 36, 99, 0.12);
  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 0.5em; color: var(--navy); }
h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  border: 2px solid var(--pink);
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); background: #bf2478; border-color: #bf2478; }
.btn-small { padding: 0.55em 1.2em; font-size: 0.95rem; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); border-color: #fff; }

.badge {
  display: inline-block;
  padding: 0.35em 0.9em;
  border-radius: 999px;
  background: var(--green-soft);
  color: #2c7a14;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}
.badge-light { background: rgba(255,255,255,0.15); color: #fff; }

.eyebrow {
  display: block;
  color: var(--pink);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  margin-bottom: 0.6rem;
}

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-deep); color: #dfe1f5; font-size: 0.88rem; }
.topbar-inner { display: flex; justify-content: space-between; gap: 1rem; padding: 0.45rem 0; flex-wrap: wrap; }
.topbar a { text-decoration: none; margin-left: 1.2rem; }
.topbar a:hover { color: var(--gold); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 250, 243, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.7rem 0; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand-logo { width: 56px; height: 56px; border-radius: 12px; object-fit: contain; background: #fff; padding: 3px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-head); color: var(--navy); font-size: 1.3rem; }
.brand-text small { color: var(--pink); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { text-decoration: none; font-weight: 700; color: var(--navy); }
.nav a:not(.btn):hover { color: var(--pink); }
.nav .btn { color: #fff; }

.nav-toggle { display: none; }
.nav-toggle-label { display: none; }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(3rem, 7vw, 6rem) 0;
  background:
    radial-gradient(circle at 85% 20%, var(--pink-soft) 0, transparent 40%),
    radial-gradient(circle at 10% 90%, var(--green-soft) 0, transparent 35%);
}
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3.5rem; align-items: center; }
.hero h1 em { font-style: italic; color: var(--pink); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.6rem 0 1rem; }
.hero-note { color: var(--muted); font-size: 0.95rem; }
.hero-note strong { color: #2c7a14; }

.hero-media { position: relative; }
.hero-img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow);
  border: 6px solid #fff;
}
.hero-card {
  position: absolute; left: -28px; bottom: 32px;
  background: #fff; border-radius: var(--radius);
  padding: 1rem 1.3rem; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  border-left: 5px solid var(--green);
}
.hero-card-num { font-family: var(--font-head); font-size: 2rem; color: var(--navy); line-height: 1; }
.hero-card-label { font-size: 0.85rem; color: var(--muted); margin-top: 0.3rem; }

/* ---------- Values strip ---------- */
.values { background: var(--navy); color: #fff; padding: 1.4rem 0; }
.values-inner { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; justify-content: center; }
.values-title { font-family: var(--font-head); font-size: 1.2rem; color: var(--gold); }
.values ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem 1.8rem; justify-content: center; }
.values li { font-weight: 800; letter-spacing: 0.04em; }
.values li::before { content: "★"; color: var(--pink); margin-right: 0.45rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-tint { background: #fff; border-block: 1px solid var(--line); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: center; }
.about-media { position: relative; padding-bottom: 3rem; }
.about-img-main { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow); }
.about-img-small {
  position: absolute; right: -20px; bottom: 0;
  width: 45%; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: 20px; border: 6px solid var(--cream); box-shadow: var(--shadow);
}
.about-text > p { color: var(--muted); }
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.8rem; }
.vm-card { background: #fff; border-radius: var(--radius); padding: 1.3rem; border-top: 5px solid var(--pink); box-shadow: 0 4px 14px rgba(0,0,0,0.04); }
.vm-card:nth-child(2) { border-top-color: var(--green); }
.vm-card p { margin: 0; font-size: 0.97rem; color: var(--muted); }

/* Why */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }
.why-card {
  background: var(--cream); border-radius: var(--radius); padding: 1.7rem 1.5rem;
  border: 1px solid var(--line); transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.why-icon { font-size: 2rem; margin-bottom: 0.6rem; }
.why-card p { color: var(--muted); font-size: 0.97rem; margin: 0; }
.why-closing { text-align: center; font-size: 1.2rem; margin: 2.8rem auto 0; max-width: 640px; }
.why-closing strong { color: var(--pink); }

/* Classes */
.classes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.class-card { border-radius: 22px; padding: 2rem 1.7rem; color: #fff; }
.class-card h3 { color: #fff; font-size: 1.7rem; }
.class-card p { margin: 0; opacity: 0.92; }
.class-tag { display: inline-block; font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; background: rgba(255,255,255,0.2); padding: 0.25em 0.75em; border-radius: 999px; margin-bottom: 1rem; }
.class-pink { background: var(--pink); }
.class-green { background: #3b9a20; }
.class-navy { background: var(--navy); }

.facilities {
  display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 3rem; align-items: center;
  margin-top: 3.5rem; background: #fff; border-radius: 26px; padding: 2rem;
  border: 1px solid var(--line);
}
.facilities-media img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 20px; }
.check-list { list-style: none; padding: 0; margin: 0 0 1.8rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem 1.2rem; }
.check-list li { font-weight: 700; }
.check-list li::before { content: "✓"; color: #fff; background: var(--green); border-radius: 50%; display: inline-grid; place-items: center; width: 1.4em; height: 1.4em; font-size: 0.8em; margin-right: 0.6rem; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips li { background: var(--pink-soft); color: #a51c64; font-weight: 700; padding: 0.35em 0.95em; border-radius: 999px; font-size: 0.92rem; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; gap: 1rem; }
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: 20px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute; left: 12px; bottom: 12px;
  background: rgba(255,255,255,0.92); color: var(--navy);
  font-weight: 800; font-size: 0.85rem; padding: 0.3em 0.85em; border-radius: 999px;
}
.g-wide { grid-column: span 2; }
.g-tall { grid-row: span 2; }

/* Leadership */
.leader-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.5rem; }
.leader-card {
  margin: 0; background: #fff; border-radius: 24px; padding: 2.2rem;
  border: 1px solid var(--line); position: relative;
}
.leader-card p { color: var(--muted); }
.leader-card footer { font-weight: 800; color: var(--pink); margin-top: 1rem; }
.leader-accent { background: var(--navy); border-color: var(--navy); display: flex; flex-direction: column; justify-content: center; }
.leader-accent h3 { color: var(--gold); }
.leader-accent .big-quote { font-family: var(--font-head); font-size: 1.5rem; line-height: 1.4; color: #fff; }
.leader-accent footer { color: var(--gold); }

/* CTA / contact */
.cta {
  background: linear-gradient(135deg, var(--navy) 0%, #2f2a7a 60%, #8e2a78 100%);
  color: #fff; padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}
.cta h2 { color: #fff; }
.cta-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; }
.cta-text p { color: #dfe1f5; font-size: 1.1rem; }
.contact-card { background: #fff; color: var(--ink); border-radius: 24px; padding: 2rem; box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
.contact-card h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.contact-card p { color: var(--muted); }
.contact-card a { color: var(--navy); font-weight: 700; text-decoration: none; }
.contact-card a:hover { color: var(--pink); }
.map-link { display: inline-block; color: var(--pink) !important; }

/* Footer */
.footer { background: var(--navy-deep); color: #b9bcd8; padding: 2rem 0; font-size: 0.9rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.footer .brand-text strong { color: #fff; font-size: 1.1rem; }
.footer .brand-text small { color: #e889bd; text-transform: none; letter-spacing: 0; }
.footer p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner, .about-grid, .cta-inner, .leader-grid, .facilities { grid-template-columns: 1fr; }
  .hero-media { max-width: 460px; margin-inline: auto; }
  .about-media { max-width: 520px; margin-inline: auto; }
}

@media (max-width: 820px) {
  .nav-toggle-label {
    display: grid; place-items: center; width: 44px; height: 44px; cursor: pointer;
  }
  .nav-toggle-label span,
  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    display: block; width: 24px; height: 3px; background: var(--navy); border-radius: 3px; position: relative;
  }
  .nav-toggle-label span::before,
  .nav-toggle-label span::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-label span::before { top: -8px; }
  .nav-toggle-label span::after { top: 8px; }

  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 0 16px; max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }
  .nav a { padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
  .nav .btn { text-align: center; margin: 0.8rem 0; border-bottom: 2px solid var(--pink); }
  .nav-toggle:checked ~ .nav { max-height: 420px; padding-bottom: 0.5rem; }

  .classes-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
  .g-tall { grid-row: span 1; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .topbar-inner { justify-content: center; }
  .topbar a { margin: 0 0.6rem; }
  .why-grid, .vm-grid, .check-list { grid-template-columns: 1fr; }
  .hero-card { left: 12px; bottom: 12px; }
  .about-img-small { right: 0; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .g-wide { grid-column: span 1; }
  .facilities { padding: 1.2rem; }
  .leader-card { padding: 1.6rem; }
}
