/* Ubuntu Nation School — Global Styles */
:root {
  --red: #7A1C1C;
  --blue: #1E3A7A;
  --blue-light: #2D4FA0;
  --red-light: #9E2424;
  --teal: #3BBFBF;
  --white: #FFFFFF;
  --gray-50: #F8F9FA;
  --gray-100: #EEF0F3;
  --gray-300: #CDD1D8;
  --gray-600: #6B7280;
  --gray-800: #1F2937;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
}

/* ── NAVIGATION ─────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  text-decoration: none;
}

.nav-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.3));
}

.nav-links {
  display: flex;
  gap: 0;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 22px 16px;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 500;
  transition: color .2s, background .2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,.1);
}

.nav-cta {
  background: var(--red) !important;
  color: var(--white) !important;
  border-radius: 4px;
  margin-left: 8px;
  padding: 10px 20px !important;
  margin-top: 6px;
  margin-bottom: 6px;
  font-weight: 600 !important;
}

.nav-cta:hover { background: var(--red-light) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: .3s; }

/* ── HERO ────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: var(--blue);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1497633762265-9d179a990aa6?w=1600&q=80');
  background-size: cover;
  background-position: center;
  opacity: .15;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 5%;
  color: var(--white);
}

.hero-badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  max-width: 700px;
}

.hero h1 span { color: var(--red); }

.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 560px;
  color: rgba(255,255,255,.82);
  margin-bottom: 40px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 6px;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s, background .2s;
  cursor: pointer;
  border: none;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.25); }

.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-light); }

.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.6); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.1); }

.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-light); }

/* ── STATS BAR ──────────────────────────────────────── */
.stats-bar {
  background: var(--red);
  padding: 28px 5%;
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
  color: var(--white);
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  display: block;
  line-height: 1;
}

.stat-label {
  font-size: .8rem;
  opacity: .85;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ── SECTIONS ───────────────────────────────────────── */
section { padding: 80px 5%; }

.section-inner { max-width: 1100px; margin: 0 auto; }

.section-tag {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-sub {
  font-size: 1rem;
  color: var(--gray-600);
  max-width: 600px;
  margin-bottom: 48px;
}

/* ── CARDS ──────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: box-shadow .2s, transform .2s;
}

.card:hover { box-shadow: 0 8px 28px rgba(0,0,0,.12); transform: translateY(-3px); }

.card-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.icon-red { background: #FEE2E2; }
.icon-blue { background: #DBEAFE; }
.icon-green { background: #D1FAE5; }
.icon-yellow { background: #FEF3C7; }
.icon-purple { background: #EDE9FE; }

.card h3 { font-size: 1.05rem; font-weight: 700; color: var(--blue); margin-bottom: 8px; }
.card p { font-size: .9rem; color: var(--gray-600); line-height: 1.6; }

/* ── TWO-COL ────────────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

.two-col img {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0,0,0,.15);
  object-fit: cover;
  max-height: 420px;
}

/* ── PHOTO GRID ─────────────────────────────────────── */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 200px);
  gap: 12px;
  border-radius: 12px;
  overflow: hidden;
}

.photo-grid img { width: 100%; height: 100%; object-fit: cover; }
.photo-grid img:first-child { grid-column: span 2; }

/* ── QUOTE / TESTIMONIAL ────────────────────────────── */
.quote-block {
  background: var(--blue);
  color: var(--white);
  border-radius: 14px;
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
}

.quote-block::before {
  content: '"';
  position: absolute;
  top: -20px; left: 24px;
  font-size: 10rem;
  font-weight: 900;
  color: rgba(255,255,255,.08);
  line-height: 1;
}

.quote-text {
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.quote-author {
  font-size: .85rem;
  font-weight: 600;
  opacity: .75;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ── CTA BAND ───────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, var(--blue) 0%, #162E60 100%);
  color: var(--white);
  text-align: center;
  padding: 80px 5%;
}

.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: 16px; }
.cta-band p { font-size: 1rem; opacity: .82; max-width: 520px; margin: 0 auto 36px; }
.cta-band .btn { margin: 0 8px; }

/* ── PAGE HERO (inner pages) ────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--blue) 0%, #162E60 100%);
  color: var(--white);
  padding: 80px 5% 70px;
  text-align: center;
}

.page-hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; margin-bottom: 14px; }
.page-hero p { font-size: 1.05rem; opacity: .82; max-width: 560px; margin: 0 auto; }

/* ── ACCORDION ──────────────────────────────────────── */
.accordion { border: 1px solid var(--gray-100); border-radius: 10px; overflow: hidden; }
.accordion-item { border-bottom: 1px solid var(--gray-100); }
.accordion-item:last-child { border-bottom: none; }

.accordion-btn {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 22px;
  text-align: left;
  font-size: .95rem;
  font-weight: 600;
  color: var(--blue);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background .2s;
}

.accordion-btn:hover { background: var(--gray-50); }
.accordion-btn .chevron { transition: transform .3s; font-size: .8rem; color: var(--gray-600); }
.accordion-btn.open .chevron { transform: rotate(180deg); }

.accordion-body {
  display: none;
  padding: 0 22px 18px;
  font-size: .9rem;
  color: var(--gray-600);
  line-height: 1.7;
}

.accordion-body.open { display: block; }

/* ── FORM ───────────────────────────────────────────── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: span 2; }

label { font-size: .85rem; font-weight: 600; color: var(--gray-800); }

input, textarea, select {
  padding: 11px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: 6px;
  font-size: .9rem;
  font-family: var(--font);
  color: var(--gray-800);
  transition: border-color .2s;
  background: var(--white);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30,58,122,.1);
}

textarea { resize: vertical; min-height: 120px; }

/* ── FOOTER ─────────────────────────────────────────── */
footer {
  background: var(--gray-800);
  color: rgba(255,255,255,.7);
  padding: 60px 5% 30px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-brand p { font-size: .875rem; line-height: 1.7; margin-top: 16px; max-width: 280px; color: rgba(255,255,255,.75); }
.footer-col h4 { color: var(--white); font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,.65); text-decoration: none; font-size: .875rem; transition: color .2s; }
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  max-width: 1100px;
  margin: 24px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-logo-img { height: 64px; width: auto; object-fit: contain; }

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--blue); flex-direction: column; box-shadow: 0 4px 12px rgba(0,0,0,.3); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 24px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-cta { margin: 10px 16px; border-radius: 6px; }
  .hamburger { display: flex; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .two-col.reverse { direction: ltr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: span 1; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .photo-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .photo-grid img:first-child { grid-column: span 2; }
  .stats-bar { gap: 32px; }
}

@media (max-width: 480px) {
  section { padding: 56px 5%; }
  .footer-inner { grid-template-columns: 1fr; }
}
