/* ============================================================
   YAGAI ACADEMY — Main Stylesheet
   Website: www.yagaiacademy.sch.ng
   ============================================================ */

/* ── CSS VARIABLES (Brand Colours) ── */
:root {
  --navy:   #1A1464;
  --gold:   #C8A52B;
  --crimson:#A01020;
  --green:  #1A5C2A;
  --cream:  #F8F4EC;
  --white:  #FFFFFF;
  --text:   #1A1A1A;
  --muted:  #555555;
  --radius: 6px;
  
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--text); background: var(--cream); }

/* ── ANNOUNCEMENT BAR ── */
.announce {
  background: var(--crimson);
  color: var(--white);
  text-align: center;
  padding: .5rem 1rem;
  font-size: .8rem;
  font-weight: 500;
}
.announce a { color: var(--gold); text-decoration: none; font-weight: 700; }

/* ── TOP BAR ── */
.topbar {
  background: var(--navy);
  color: #ccc;
  font-size: .78rem;
  padding: .5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem;
}
.topbar a { color: var(--gold); text-decoration: none; }
.topbar .socials a {
  margin-left: .7rem;
  font-size: .9rem;
  color: #ccc;
  transition: color .2s;
}
.topbar .socials a:hover { color: var(--gold); }

/* ── HEADER ── */
header {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner {
  max-width: 1200px;
  margin: auto;
  padding: .8rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo-wrap { display: flex; align-items: center; gap: .9rem; text-decoration: none; }
.logo-wrap img { height: 64px; }
.logo-text h1 {
  font-family: 'Cinzel', serif;
  font-size: 1.35rem;
  color: var(--navy);
  line-height: 1.1;
}
.logo-text span {
  font-size: .7rem;
  color: var(--crimson);
  letter-spacing: .06em;
  font-style: italic;
}

/* ── NAVIGATION ── */
nav ul { list-style: none; display: flex; gap: .2rem; align-items: center; }
nav ul li { position: relative; }
nav ul li > a {
  display: block;
  padding: .55rem .85rem;
  font-size: .84rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  border-radius: var(--radius);
  transition: background .2s, color .2s;
  white-space: nowrap;
}
nav ul li > a:hover,
nav ul li > a.active { background: var(--navy); color: var(--white); }
.has-drop:hover .dropdown { display: block; }
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 200px;
  border: 1px solid #e0ddd5;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  z-index: 200;
}
.dropdown li a { color: var(--text); padding: .6rem 1.1rem; font-size: .82rem; }
.dropdown li a:hover { background: var(--cream); color: var(--navy); }
.btn-apply {
  background: var(--crimson) !important;
  color: var(--white) !important;
  padding: .5rem 1.2rem !important;
  border-radius: 30px !important;
  font-weight: 600 !important;
  transition: background .2s !important;
}
.btn-apply:hover { background: #7a0018 !important; }
.hamburger { display: none; font-size: 1.4rem; cursor: pointer; color: var(--navy); }

/* ── HERO ── */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(26,20,100,.92) 0%, rgba(160,16,32,.75) 60%, rgba(26,92,42,.6) 100%),
    url('https://images.unsplash.com/photo-1580582932707-520aed937b7b?w=1600&q=80') center/cover no-repeat;
}
.hero-content {
  position: relative;
  max-width: 1200px;
  margin: auto;
  padding: 5rem 2rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .3rem .8rem;
  border-radius: 30px;
  margin-bottom: 1.2rem;
}
.hero h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}
.hero h2 span { color: var(--gold); }
.hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.82);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 500px;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-right { display: flex; flex-direction: column; gap: 1rem; }
.stat-card {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 1.2rem 1.6rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.stat-icon {
  font-size: 1.8rem;
  width: 52px; height: 52px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.stat-card h3 { font-size: 1.5rem; font-family: 'Playfair Display', serif; color: var(--gold); }
.stat-card p { font-size: .8rem; color: rgba(255,255,255,.75); }
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.5);
  font-size: .75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  text-decoration: none;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}

/* ── SHARED SECTION STYLES ── */
section { padding: 5rem 2rem; }
.section-inner { max-width: 1200px; margin: auto; }
.section-label {
  font-size: .72rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: .6rem;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--navy);
  margin-bottom: 1rem;
  line-height: 1.15;
}
.section-sub {
  color: var(--muted);
  max-width: 600px;
  line-height: 1.7;
  font-size: .95rem;
}
.divider {
  width: 56px; height: 4px;
  background: var(--gold);
  border-radius: 2px;
  margin: 1.2rem 0 2.5rem;
}
.divider.center { margin-left: auto; margin-right: auto; }

/* ── BUTTONS ── */
.btn-primary {
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  padding: .85rem 2rem;
  border-radius: 40px;
  text-decoration: none;
  font-size: .95rem;
  transition: transform .2s, box-shadow .2s;
  display: inline-block;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(200,165,43,.4); }
.btn-outline {
  border: 2px solid rgba(255,255,255,.6);
  color: var(--white);
  font-weight: 600;
  padding: .83rem 2rem;
  border-radius: 40px;
  text-decoration: none;
  font-size: .95rem;
  transition: border-color .2s, background .2s;
  display: inline-block;
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.1); }

/* ── ABOUT ── */
#about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-img-wrap { position: relative; }
.about-img-wrap img { width: 100%; border-radius: 12px; box-shadow: 0 16px 48px rgba(0,0,0,.15); }
.about-badge {
  position: absolute;
  bottom: -20px; right: -20px;
  background: var(--navy);
  color: var(--white);
  border-radius: 12px;
  padding: 1.2rem 1.6rem;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.about-badge .big { font-size: 2rem; font-family: 'Playfair Display',serif; color: var(--gold); display:block; }
.about-badge small { font-size: .72rem; opacity: .8; }
.about-list { list-style: none; display: flex; flex-direction: column; gap: .7rem; margin-top: 1.5rem; }
.about-list li { display: flex; align-items: flex-start; gap: .7rem; font-size: .9rem; color: var(--muted); }
.about-list li i { color: var(--green); margin-top: .15rem; flex-shrink: 0; }

/* ── SCHOOLS ── */
#schools { background: var(--cream); }
.schools-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.8rem; margin-top: 3rem; }
.school-card {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.07);
  transition: transform .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.school-card:hover { transform: translateY(-6px); box-shadow: 0 12px 36px rgba(0,0,0,.14); }
.school-card-img { height: 160px; display: flex; align-items: center; justify-content: center; font-size: 3.5rem; }
.school-card-img.nursery   { background: linear-gradient(135deg,#ffecd2,#fcb69f); }
.school-card-img.primary   { background: linear-gradient(135deg,#a1c4fd,#c2e9fb); }
.school-card-img.secondary { background: linear-gradient(135deg,#d4fc79,#96e6a1); }
.school-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.school-card-body h3 { font-family: 'Playfair Display',serif; color: var(--navy); margin-bottom: .5rem; font-size: 1.15rem; }
.school-card-body p  { font-size: .85rem; color: var(--muted); line-height: 1.6; flex: 1; }
.school-card-body a  { display: inline-block; margin-top: 1.2rem; color: var(--crimson); font-weight: 600; font-size: .83rem; text-decoration: none; }
.school-card-body a:hover { text-decoration: underline; }

/* ── BOARDING ── */
#boarding { background: var(--navy); color: var(--white); }
.boarding-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.boarding-features { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 2rem; }
.bf-item {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  padding: 1.1rem;
  display: flex; align-items: flex-start; gap: .8rem;
}
.bf-item i { color: var(--gold); font-size: 1.1rem; margin-top: .1rem; }
.bf-item strong { display: block; color: var(--white); margin-bottom: .2rem; font-size: .88rem; }
.bf-item p { font-size: .82rem; color: rgba(255,255,255,.78); line-height: 1.5; }
.boarding-visual {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
}
.boarding-visual i { font-size: 5rem; color: var(--gold); }
.boarding-visual h4 { font-family: 'Playfair Display',serif; font-size: 1.3rem; margin-top: 1rem; color: var(--gold); }
.boarding-visual p { color: rgba(255,255,255,.7); font-size: .9rem; margin-top: .5rem; line-height: 1.6; }

/* ── ACADEMICS ── */
#academics { background: var(--white); }
.subjects-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; margin-top: 2.5rem; }
.subj-chip {
  background: var(--cream);
  border-radius: 10px;
  padding: .9rem 1rem;
  display: flex; align-items: center; gap: .7rem;
  font-size: .83rem; font-weight: 500; color: var(--navy);
  border: 1px solid #e0ddd5;
  transition: background .2s, border-color .2s, color .2s;
}
.subj-chip:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.subj-chip i { color: var(--gold); font-size: 1rem; }

/* ── ADMISSIONS ── */
#admissions { background: var(--cream); }
.admission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.steps { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2rem; }
.step { display: flex; gap: 1.2rem; }
.step-num {
  width: 40px; height: 40px;
  background: var(--navy);
  color: var(--gold);
  border-radius: 50%;
  font-family: 'Playfair Display',serif;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.step-body h4 { color: var(--navy); margin-bottom: .3rem; font-size: .95rem; }
.step-body p  { color: var(--muted); font-size: .83rem; line-height: 1.6; }

/* ── FORMS ── */
.form-card {
  background: var(--white);
  border-radius: 14px;
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
}
.form-card h3 { font-family: 'Playfair Display',serif; color: var(--navy); margin-bottom: 1.5rem; font-size: 1.2rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: .8rem; font-weight: 600; color: var(--navy); margin-bottom: .4rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .7rem .9rem;
  border: 1.5px solid #d8d4ca;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: .88rem;
  color: var(--text);
  background: var(--cream);
  transition: border-color .2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--navy); background: var(--white); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.btn-submit {
  width: 100%;
  padding: .85rem;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: .95rem;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  margin-top: .5rem;
  transition: background .2s;
  font-family: 'Inter', sans-serif;
}
.btn-submit:hover { background: var(--crimson); }
.success-msg {
  display: none;
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  color: #2e7d32;
  padding: .9rem 1.2rem;
  border-radius: 8px;
  font-size: .88rem;
  margin-top: 1rem;
}
.error-msg {
  display: none;
  background: #fdecea;
  border: 1px solid #f5c6cb;
  color: #c0392b;
  padding: .9rem 1.2rem;
  border-radius: 8px;
  font-size: .88rem;
  margin-top: 1rem;
}

/* ── NEWS ── */
#news { background: var(--white); }
.news-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.8rem; margin-top: 2.5rem; }
.news-card { border-radius: 12px; overflow: hidden; border: 1px solid #e8e4da; transition: box-shadow .25s; }
.news-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,.1); }
.news-img { height: 130px; display: flex; align-items: center; justify-content: center; font-size: 2.8rem; }
.nc-1 { background: linear-gradient(135deg,#f5d0a9,#e8a87c); }
.nc-2 { background: linear-gradient(135deg,#b5c7f0,#8fa8e0); }
.nc-3 { background: linear-gradient(135deg,#b5e8c8,#7cd8a0); }
.news-body { padding: 1.2rem; }
.news-date { font-size: .72rem; color: var(--gold); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.news-body h4 { font-family: 'Playfair Display',serif; color: var(--navy); margin: .5rem 0; font-size: 1rem; }
.news-body p  { font-size: .82rem; color: var(--muted); line-height: 1.6; }
.news-link { font-size: .8rem; color: var(--crimson); font-weight: 600; text-decoration: none; margin-top: .7rem; display: inline-block; }

/* ── GALLERY ── */
#gallery { background: var(--cream); }
.gallery-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; margin-top: 2.5rem; }
.gallery-item {
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform .2s;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item:hover { transform: scale(1.04); }
.gi-1 { background: linear-gradient(135deg,#667eea,#764ba2); }
.gi-2 { background: linear-gradient(135deg,#f093fb,#f5576c); }
.gi-3 { background: linear-gradient(135deg,#4facfe,#00f2fe); }
.gi-4 { background: linear-gradient(135deg,#43e97b,#38f9d7); }
.gi-5 { background: linear-gradient(135deg,#fa709a,#fee140); }
.gi-6 { background: linear-gradient(135deg,#a18cd1,#fbc2eb); }
.gi-7 { background: linear-gradient(135deg,#ffecd2,#fcb69f); }
.gi-8 { background: linear-gradient(135deg,#96fbc4,#f9f586); }

/* ── TESTIMONIALS ── */
#testimonials { background: var(--navy); color: var(--white); }
.testi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin-top: 2.5rem; }
.testi-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  padding: 1.8rem;
}
.testi-stars { color: var(--gold); margin-bottom: .8rem; font-size: .9rem; }
.testi-card p { font-size: .88rem; color: rgba(255,255,255,.8); line-height: 1.7; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: .8rem; margin-top: 1.2rem; }
.testi-avatar {
  width: 42px; height: 42px;
  background: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
  font-weight: 700;
  font-size: .9rem;
  flex-shrink: 0;
}
.testi-info strong { display: block; font-size: .88rem; color: var(--white); }
.testi-info span   { font-size: .75rem; color: rgba(255,255,255,.55); }

/* ── CONTACT ── */
#contact { background: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.contact-info-items { display: flex; flex-direction: column; gap: 1.4rem; margin-top: 2rem; }
.ci-item { display: flex; gap: 1rem; align-items: flex-start; }
.ci-icon {
  width: 44px; height: 44px;
  background: var(--navy);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: 1rem;
  flex-shrink: 0;
}
.ci-item h4  { font-size: .85rem; color: var(--navy); font-weight: 600; margin-bottom: .2rem; }
.ci-item p, .ci-item a { font-size: .84rem; color: var(--muted); text-decoration: none; }
.ci-item a:hover { color: var(--crimson); }
.map-placeholder {
  height: 220px;
  background: linear-gradient(135deg,#e0eaf5,#c8d8ec);
  border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--navy);
  gap: .5rem;
  margin-top: 1.5rem;
  text-decoration: none;
  border: 2px dashed #b0c0d8;
  transition: border-color .2s;
}
.map-placeholder:hover { border-color: var(--navy); }
.map-placeholder i { font-size: 2.5rem; }
.map-placeholder p { font-size: .82rem; font-weight: 600; }

/* ── FOOTER ── */
footer { background: #0e0c3a; color: rgba(255,255,255,.75); padding: 4rem 2rem 0; }
.footer-grid {
  max-width: 1200px; margin: auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
}
.footer-brand img { height: 60px; margin-bottom: 1rem; }
.footer-brand p { font-size: .83rem; line-height: 1.7; color: rgba(255,255,255,.6); max-width: 280px; }
.footer-socials { display: flex; gap: .7rem; margin-top: 1.2rem; }
.footer-socials a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.08);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6);
  font-size: .9rem;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.footer-socials a:hover { background: var(--gold); color: var(--navy); }
.footer-col h4 { font-family: 'Playfair Display',serif; color: var(--white); margin-bottom: 1.2rem; font-size: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.footer-col ul li a { color: rgba(255,255,255,.6); font-size: .83rem; text-decoration: none; transition: color .2s; }
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom {
  max-width: 1200px; margin: 3rem auto 0;
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.2rem 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: .5rem;
  font-size: .76rem; color: rgba(255,255,255,.4);
}
.footer-bottom a { color: var(--gold); text-decoration: none; }

/* ── MODAL ── */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 2000;
  align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white);
  border-radius: 16px;
  max-width: 500px; width: 90%;
  padding: 2.5rem;
  position: relative;
  max-height: 90vh; overflow-y: auto;
}
.modal h3 { font-family: 'Playfair Display',serif; color: var(--navy); margin-bottom: 1.5rem; }
.modal-close {
  position: absolute; top: 1rem; right: 1.2rem;
  font-size: 1.4rem; cursor: pointer;
  color: var(--muted); background: none; border: none;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-right { display: none; }
  .about-grid, .boarding-grid, .contact-grid, .admission-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-badge { position: static; margin-top: 1rem; display: inline-block; }
  .schools-grid, .news-grid, .testi-grid { grid-template-columns: 1fr; }
  .subjects-grid { grid-template-columns: repeat(2,1fr); }
  .gallery-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  nav { display: none; }
  nav.open { display: block; }
  nav ul { flex-direction: column; padding: 1rem; }
  nav ul li .dropdown { position: static; box-shadow: none; border: none; background: #f0eee8; margin-top: .3rem; }
  .hamburger { display: block; }
  header { position: relative; }
  .boarding-features { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .subjects-grid { grid-template-columns: 1fr 1fr; }
}
