/* Freedom City Int'l Christian School — admissions landing page
   Brand colors pulled from the school crest: navy + gold + cream. */

:root {
  --navy-900: #0f2440;
  --navy-800: #16345c;
  --navy-700: #1e4677;
  --gold: #d4af37;
  --gold-dark: #b8952a;
  --cream: #fdf6e3;
  --white: #ffffff;
  --ink: #1a1a1a;
  --gray-600: #5a6472;
  --gray-100: #f4f6f9;
  --whatsapp: #25d366;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 36, 64, 0.12);
  --shadow-lg: 0 20px 50px rgba(15, 36, 64, 0.22);
  --max: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

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

h1, h2, h3, h4 { font-family: Georgia, "Times New Roman", serif; line-height: 1.2; color: var(--navy-900); }

a { color: inherit; text-decoration: none; }

.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }
.section--navy { background: var(--navy-900); color: var(--cream); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--cream { background: var(--cream); }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 10px;
}
.section--navy .eyebrow { color: var(--gold); }

h2.headline { font-size: clamp(28px, 4vw, 40px); margin-bottom: 14px; }
.lede { font-size: 18px; color: var(--gray-600); max-width: 640px; }
.section--navy .lede { color: #c9d4e3; }

.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold); color: var(--navy-900); box-shadow: 0 10px 25px rgba(212, 175, 55, 0.35); }
.btn-primary:hover { background: var(--gold-dark); }
.btn-whatsapp { background: var(--whatsapp); color: var(--white); box-shadow: 0 10px 25px rgba(37, 211, 102, 0.35); }
.btn-whatsapp:hover { background: #1eb85a; }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.55); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-outline-dark { background: transparent; border-color: var(--navy-800); color: var(--navy-800); }
.btn-outline-dark:hover { background: var(--navy-900); color: var(--white); }
.btn-block { width: 100%; justify-content: center; }

/* Top admission ticker ------------------------------------------------ */
.ticker {
  background: var(--gold);
  color: var(--navy-900);
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  padding: 9px 16px;
  letter-spacing: 0.02em;
}

/* Header --------------------------------------------------------------*/
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 14px rgba(15, 36, 64, 0.08);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 52px; width: auto; }
.brand-name { font-family: Georgia, serif; font-weight: 700; color: var(--navy-900); font-size: 16px; line-height: 1.25; }
.brand-name span { display: block; font-size: 11px; color: var(--gold-dark); font-weight: 700; letter-spacing: 0.08em; }

nav.main-nav { display: flex; align-items: center; gap: 28px; }
nav.main-nav a { font-weight: 600; font-size: 15px; color: var(--navy-800); }
nav.main-nav a:hover { color: var(--gold-dark); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: none; font-size: 26px; cursor: pointer; color: var(--navy-900); }

@media (max-width: 480px) {
  .brand-name { font-size: 14px; }
  .brand-name span { font-size: 9.5px; }
  .brand img { height: 42px; }
}

@media (max-width: 900px) {
  nav.main-nav {
    position: fixed; top: 78px; left: 0; right: 0; bottom: 0;
    background: var(--white);
    flex-direction: column; align-items: flex-start;
    padding: 28px 24px; gap: 22px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
  }
  nav.main-nav.open { transform: translateX(0); }
  .nav-toggle { display: block; }
  .nav-cta .btn span.btn-text-full { display: none; }
}

/* Hero ------------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(15,36,64,0.72), rgba(15,36,64,0.86)), url("../assets/img/exam-hall.jpg") center/cover no-repeat;
  color: var(--white);
}
.hero-content { max-width: 720px; padding: 90px 0; }
.hero h1 { color: var(--white); font-size: clamp(34px, 5.5vw, 58px); margin-bottom: 18px; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero p.lede { color: #dde5f0; font-size: 19px; margin-bottom: 32px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-trust { display: flex; gap: 26px; flex-wrap: wrap; font-size: 14px; color: #c9d4e3; }
.hero-trust strong { color: var(--gold); display: block; font-size: 22px; font-family: Georgia, serif; }

/* Trust / stats strip --------------------------------------------------- */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: -58px;
  position: relative;
  z-index: 5;
}
.trust-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 24px 18px;
  text-align: center;
}
.trust-card .icon { font-size: 30px; margin-bottom: 8px; }
.trust-card strong { display: block; font-size: 15px; color: var(--navy-900); }
.trust-card p { font-size: 13px; color: var(--gray-600); margin-top: 4px; }

@media (max-width: 800px) {
  .trust-strip { grid-template-columns: repeat(2, 1fr); margin-top: 24px; }
}

/* Feature grid ------------------------------------------------------------ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 44px;
}
.feature-card {
  background: var(--white);
  border: 1px solid #e9edf3;
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
}
.feature-card .icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--navy-900); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 16px;
}
.feature-card h3 { font-size: 19px; margin-bottom: 8px; }
.feature-card p { color: var(--gray-600); font-size: 15px; }

@media (max-width: 860px) {
  .feature-grid { grid-template-columns: 1fr; }
}

/* Director welcome ---------------------------------------------------- */
.welcome-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.welcome-grid img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.welcome-quote { font-family: Georgia, serif; font-size: 20px; color: var(--navy-900); line-height: 1.6; margin: 18px 0 20px; }
.welcome-signature { font-weight: 700; color: var(--navy-900); }
.welcome-signature span { display: block; font-weight: 400; font-size: 14px; color: var(--gray-600); }

@media (max-width: 900px) {
  .welcome-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* Academics / gallery ---------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  gap: 14px;
  margin-top: 40px;
}
.gallery-grid .g1 { grid-column: span 2; grid-row: span 2; }
.gallery-grid figure { position: relative; overflow: hidden; border-radius: var(--radius); margin: 0; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-grid figure:hover img { transform: scale(1.06); }
.gallery-grid figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(15,36,64,0.85), transparent);
  color: var(--white); font-size: 13px; font-weight: 600;
  padding: 30px 14px 12px;
}

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .gallery-grid .g1 { grid-column: span 2; grid-row: span 1; }
}

/* Boarding split -------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.check-list { list-style: none; margin-top: 22px; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; }
.check-list li::before { content: "✓"; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: var(--navy-900); font-weight: 900; display: flex; align-items: center; justify-content: center; font-size: 13px; margin-top: 2px; }
.section--navy .check-list li::before { background: var(--gold); }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split.reverse .img-col { order: -1; }
}

/* Admission steps --------------------------------------------------------*/
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 40px; }
.step { text-align: center; padding: 0 10px; }
.step .num {
  width: 56px; height: 56px; border-radius: 50%; background: var(--gold);
  color: var(--navy-900); font-weight: 800; font-size: 22px;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
  font-family: Georgia, serif;
}
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--gray-600); }

@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* Admission form ---------------------------------------------------------*/
.form-wrap {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 40px;
  color: var(--ink);
  max-width: 640px;
  margin: 0 auto;
}
.form-wrap h3 { margin-bottom: 6px; }
.form-wrap p.lede { margin-bottom: 24px; font-size: 15px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--navy-800); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: 10px;
  border: 1.5px solid #dde3ec; font-size: 15px; font-family: inherit;
  background: var(--gray-100);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: var(--white); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: 12.5px; color: var(--gray-600); margin-top: 14px; text-align: center; }

/* Contact strip ------------------------------------------------------------*/
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.contact-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); border-radius: var(--radius); padding: 26px; }
.contact-card .icon { font-size: 26px; margin-bottom: 10px; }
.contact-card h3 { color: var(--white); font-size: 16px; margin-bottom: 6px; }
.contact-card p, .contact-card a { color: #c9d4e3; font-size: 14.5px; }
.contact-card a:hover { color: var(--gold); }

@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

/* Floating WhatsApp button ------------------------------------------------*/
.whatsapp-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 200;
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--whatsapp); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.55); }
  70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* Footer -------------------------------------------------------------------*/
footer { background: var(--navy-900); color: #93a3ba; padding: 46px 0 24px; }
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { height: 46px; }
.footer-brand strong { color: var(--white); display: block; }
.footer-links { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-links h4 { color: var(--white); font-size: 14px; margin-bottom: 12px; }
.footer-links a { display: block; font-size: 14px; margin-bottom: 8px; color: #93a3ba; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { padding-top: 20px; font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* Full admission form (admission.html) -------------------------------------
   The homepage's .form-wrap (640px) is sized for the quick 5-field lead form;
   the full formal application has ~20 fields across several sections, so it
   gets its own wider variant plus section dividers, a Day/Boarding radio-card
   choice, conditionally-shown boarding fields, and a declaration checkbox. */
.form-wrap--wide { max-width: 880px; }

.form-section-title {
  font-family: Georgia, serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy-800);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 34px 0 4px;
  padding-top: 26px;
  border-top: 1px solid #e9edf3;
}
.form-section-title:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.form-section-note { font-size: 13.5px; color: var(--gray-600); margin-bottom: 18px; }

.field-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
@media (max-width: 700px) { .field-row-3 { grid-template-columns: 1fr; } }

.radio-group { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.radio-option {
  display: flex; align-items: center; gap: 10px;
  border: 1.5px solid #dde3ec; border-radius: 10px;
  padding: 14px 18px; cursor: pointer; font-size: 15px; font-weight: 600;
  background: var(--gray-100); flex: 1; min-width: 180px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.radio-option:has(input:checked) { border-color: var(--gold); background: #fdf8e9; }
.radio-option input { accent-color: var(--gold-dark); width: 17px; height: 17px; flex: none; }

/* Boarding-only fields -- shown/hidden via JS based on the radio choice
   above (see main.js). Fields inside get `required` toggled at the same
   time, not just visibility -- a required field hidden with display:none
   still blocks native form submission otherwise. */
.boarding-only { display: none; }
.boarding-only.is-visible { display: block; }

.declaration {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13.5px; color: var(--gray-600); line-height: 1.5;
  margin: 26px 0 6px;
  background: var(--gray-100); border-radius: 10px; padding: 16px 18px;
}
.declaration input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--gold-dark); flex: none; }

/* Reveal-on-scroll utility --------------------------------------------------
   Safety-first: content must NEVER depend on JS to become visible -- a paid-
   traffic landing page can't afford a blank section for a slow connection, a
   crawler, a screenshot tool, or any other edge case where the
   IntersectionObserver doesn't fire in time. Elements are fully visible by
   default; JS only ever ADDS a starting (pre-.js-loaded) class to animate
   FROM, never a class that hides content by default. See main.js. */
.reveal { opacity: 1; transform: none; transition: opacity 0.6s ease, transform 0.6s ease; }
.js-ready .reveal:not(.in) { opacity: 0; transform: translateY(24px); }
.reveal.in { opacity: 1; transform: translateY(0); }
