/* =========================================================
   DOMINANT LEADERS SCHOOLS — MAIN STYLESHEET
   Design tokens: navy / gold / cream, serif display + sans body
   ========================================================= */

:root {
  /* Color — matched to the Dominant Leaders Schools crest (gold shield, black crown) */
  --navy:        #1E1A14;   /* deep charcoal-black, used as the primary dark tone */
  --navy-light:  #322A1E;
  --navy-pale:   #EDE6D6;
  --gold:        #C9861E;   /* crest gold/amber */
  --gold-light:  #E8B04D;
  --gold-pale:   #FBEFD6;
  --cream:       #FBF6EC;
  --ink:         #211C14;
  --slate:       #5B5347;
  --slate-light: #93897A;
  --white:       #FFFFFF;
  --line:        #E7DFCB;
  --success:     #2E7D4F;
  --error:       #B3413B;

  /* Type */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --max-width: 1180px;
  --radius: 6px;
  --shadow-sm: 0 1px 3px rgba(11, 37, 69, 0.08);
  --shadow-md: 0 8px 24px rgba(11, 37, 69, 0.12);
  --shadow-lg: 0 20px 48px rgba(11, 37, 69, 0.18);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  font-weight: 600;
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { color: var(--slate); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--gold);
  display: inline-block;
}

/* ---------- Kente-inspired divider ---------- */
.pattern-divider {
  height: 10px;
  background: repeating-linear-gradient(
    135deg,
    var(--navy) 0 10px,
    var(--gold) 10px 20px
  );
}
.pattern-divider.thin { height: 5px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover { background: var(--navy-light); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.header-top {
  background: var(--navy);
  color: var(--gold-pale);
  font-size: 0.82rem;
}
.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}
.header-top-links { display: flex; gap: 20px; flex-wrap: wrap; }
.header-top-links a:hover { color: var(--gold); }
.header-main .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { width: 52px; height: auto; }
.brand-text .school-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--navy);
  font-weight: 700;
  line-height: 1.1;
}
.brand-text .school-tag {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}

.main-nav ul {
  display: flex;
  gap: 30px;
  align-items: center;
}
.main-nav a {
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.2s ease;
}
.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--navy); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--navy);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 900px) {
  .header-top { display: none; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    top: 0; right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    background: var(--navy);
    padding: 90px 30px 30px;
    transition: right 0.28s ease;
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open { right: 0; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 22px; }
  .main-nav a { color: var(--white); font-size: 1.05rem; }
  .main-nav a.active { color: var(--gold); }
  .nav-backdrop {
    display: none;
    position: fixed; inset: 0;
    background: rgba(11,37,69,0.5);
    z-index: 90;
  }
  .nav-backdrop.open { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 60%, #0d2a52 100%);
  color: var(--white);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 85% 20%, rgba(201,152,46,0.18), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(228,199,124,0.12), transparent 40%);
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
  padding: 90px 24px 70px;
}
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 em {
  font-style: normal;
  color: var(--gold-light);
}
.hero p.lead {
  color: var(--navy-pale);
  font-size: 1.12rem;
  max-width: 46ch;
  margin-bottom: 30px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats {
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
}
.hero-stat .num {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--gold-light);
  font-weight: 700;
}
.hero-stat .label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy-pale);
}
.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 14px;
  border: 1px solid rgba(228,199,124,0.35);
  background: linear-gradient(145deg, rgba(228,199,124,0.14), rgba(255,255,255,0.03));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-visual .crest-mark { width: 46%; opacity: 0.92; }
.hero-visual .frame-note {
  position: absolute;
  bottom: 18px; left: 18px; right: 18px;
  font-size: 0.75rem;
  color: var(--navy-pale);
  background: rgba(11,37,69,0.55);
  border: 1px dashed rgba(228,199,124,0.5);
  border-radius: 6px;
  padding: 10px 12px;
  text-align: center;
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 50px; }
  .hero-visual { max-width: 340px; margin: 0 auto; }
}

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-cream { background: var(--cream); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy p { color: var(--navy-pale); }
.section-head {
  max-width: 640px;
  margin-bottom: 46px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px; }
@media (max-width: 1000px) {
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card .icon-mark {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--navy-pale);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
}
.card h3 { margin-bottom: 10px; }

/* Level cards (Nursery / Primary / Secondary) */
.level-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.level-card .level-banner {
  padding: 26px 26px 20px;
  color: var(--white);
}
.level-card.nursery .level-banner { background: linear-gradient(135deg, #0B2545, #1C4A7A); }
.level-card.primary .level-banner { background: linear-gradient(135deg, #0B2545, #123A66); }
.level-card.secondary .level-banner { background: linear-gradient(135deg, #0B2545, #0B2545); }
.level-card .level-banner .age { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold-light); font-weight: 700;}
.level-card .level-banner h3 { color: var(--white); margin-top: 4px; }
.level-card .level-body { padding: 22px 26px 26px; flex: 1; display: flex; flex-direction: column; }
.level-card .level-body ul { margin: 14px 0 20px; }
.level-card .level-body li {
  padding-left: 22px;
  position: relative;
  margin-bottom: 8px;
  font-size: 0.92rem;
  color: var(--slate);
}
.level-card .level-body li::before {
  content: '✓';
  position: absolute; left: 0; top: 0;
  color: var(--gold);
  font-weight: 700;
}
.level-card .level-body a.btn { margin-top: auto; }

/* Stat strip */
.stat-strip {
  background: var(--navy);
  color: var(--white);
}
.stat-strip .grid-4 { padding: 40px 0; }
.stat-item { text-align: center; }
.stat-item .num { font-family: var(--font-display); font-size: 2.4rem; color: var(--gold-light); font-weight: 700; }
.stat-item .label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--navy-pale); margin-top: 6px; }

/* Values */
.value-item { display: flex; gap: 16px; align-items: flex-start; }
.value-item .num-mark {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold);
  font-weight: 700;
  min-width: 46px;
}

/* Testimonial */
.testimonial-card {
  background: var(--white);
  border-left: 4px solid var(--gold);
  border-radius: 6px;
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.testimonial-card p.quote { font-style: italic; color: var(--ink); margin-bottom: 16px; font-size: 1.02rem; }
.testimonial-card .who { font-weight: 700; color: var(--navy); font-size: 0.92rem; }
.testimonial-card .who span { display: block; font-weight: 400; color: var(--slate-light); font-size: 0.82rem; }

/* News cards */
.news-card { background: var(--white); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-sm); }
.news-card .news-thumb {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--navy-pale), var(--gold-pale));
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 0.85rem;
}
.news-card .news-body { padding: 20px 22px 24px; }
.news-card .news-date { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold); font-weight: 700; margin-bottom: 8px; }
.news-card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.news-card p { font-size: 0.92rem; }
.news-card a.read-more { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--navy); font-size: 0.88rem; }
.news-card a.read-more:hover { color: var(--gold); }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-item {
  aspect-ratio: 1/1;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-light);
  font-size: 0.78rem;
  text-align: center;
  padding: 10px;
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}
.gallery-item.photo { padding: 0; background: var(--cream); }
.gallery-item.photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.gallery-item.photo:hover img { transform: scale(1.06); }
.gallery-item.photo .caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(30,26,20,0.82), transparent);
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 20px 10px 10px;
  text-align: center;
}
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* Timeline (About/History) */
.timeline { border-left: 2px solid var(--line); margin-left: 12px; }
.timeline-item { position: relative; padding: 0 0 34px 30px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute; left: -7px; top: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--gold);
}
.timeline-item .year { font-family: var(--font-display); font-weight: 700; color: var(--navy); font-size: 1.05rem; }

/* Steps (Admissions process) */
.steps { display: flex; flex-direction: column; gap: 0; }
.step-row { display: flex; gap: 22px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.step-row:last-child { border-bottom: none; }
.step-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--gold);
  font-weight: 700;
  min-width: 56px;
}

/* Table (fees / requirements) */
.table-wrap { overflow-x: auto; }
table.info-table { width: 100%; border-collapse: collapse; background: var(--white); }
table.info-table th, table.info-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
}
table.info-table th {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
}
table.info-table tr:nth-child(even) { background: var(--cream); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,152,46,0.18);
}
.field textarea { min-height: 130px; resize: vertical; }
.field .required { color: var(--error); }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }

.form-note {
  padding: 14px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  margin-bottom: 24px;
}
.form-note.success { background: #E7F4EC; color: var(--success); border: 1px solid #BFE3CC; }
.form-note.error { background: #FBEAE8; color: var(--error); border: 1px solid #F0C4BF; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy), var(--navy-light));
  color: var(--white);
  border-radius: 14px;
  padding: 54px 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: '';
  position: absolute; right: -60px; top: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(228,199,124,0.25), transparent 70%);
}
.cta-band h2 { color: var(--white); margin-bottom: 8px; }
.cta-band p { color: var(--navy-pale); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--navy-pale); }
.footer-top { padding: 64px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand { display: flex; gap: 12px; margin-bottom: 16px; }
.footer-brand img { width: 44px; }
.footer-brand .school-name { font-family: var(--font-display); color: var(--white); font-size: 1.15rem; font-weight: 700; }
.footer-brand .school-tag { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold-light); }
.site-footer h4 { color: var(--gold-light); font-family: var(--font-body); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 18px; }
.site-footer ul li { margin-bottom: 10px; font-size: 0.92rem; }
.site-footer a:hover { color: var(--gold); }
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(228,199,124,0.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
}
.footer-social a:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(228,199,124,0.18);
  padding: 20px 0;
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a:hover { color: var(--gold); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
}

/* ---------- Page header (interior pages) ---------- */
.page-header {
  background: linear-gradient(160deg, var(--navy), var(--navy-light));
  color: var(--white);
  padding: 60px 0 46px;
}
.page-header .breadcrumb { font-size: 0.85rem; color: var(--gold-light); margin-bottom: 10px; }
.page-header .breadcrumb a { color: var(--navy-pale); }
.page-header .breadcrumb a:hover { color: var(--gold); }
.page-header h1 { color: var(--white); margin-bottom: 10px; }
.page-header p { color: var(--navy-pale); max-width: 60ch; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Reveal-on-scroll (progressive enhancement; JS adds .is-visible) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
