/* ==========================================================================
   Shining Stars Academy — Stylesheet
   ========================================================================== */

:root {
  --maroon: #a52020;
  --maroon-dark: #7d1717;
  --maroon-light: #c53737;
  --gold: #d9a441;
  --gold-light: #f3e0b3;
  --cream: #fdf8ef;
  --cream-dark: #f7ecd9;
  --ink: #2b1c14;
  --muted: #6d5b4f;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(165, 32, 32, 0.12);
  --radius: 14px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', 'Georgia', serif;
  color: var(--maroon-dark);
  margin: 0 0 0.4em;
  line-height: 1.15;
  font-weight: 600;
}

p { margin: 0 0 1em; color: var(--muted); }

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

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

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  background: rgba(165, 32, 32, 0.06);
  border: 1px solid var(--gold-light);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

section { padding: 72px 0; }
section.tight { padding: 48px 0; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  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(--maroon);
  color: var(--white);
  box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--maroon-dark); }

.btn-gold {
  background: var(--gold);
  color: var(--maroon-dark);
}
.btn-gold:hover { background: #c8933a; }

.btn-outline {
  background: transparent;
  border-color: var(--maroon);
  color: var(--maroon);
}
.btn-outline:hover { background: var(--maroon); color: var(--white); }

.btn-outline-light {
  background: transparent;
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.15); }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--maroon-dark);
  color: #f4ded0;
  font-size: 0.82rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { color: #f4ded0; }
.topbar a:hover { color: var(--gold-light); }
.topbar-contact { display: flex; gap: 18px; }

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}
.brand-text { display: flex; flex-direction: column; }
.brand-text .name {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--maroon-dark);
}
.brand-text .tagline {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--maroon);
  border-color: var(--gold);
}
.nav-cta { display: flex; align-items: center; gap: 16px; }
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--maroon-dark);
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px;
    gap: 14px;
    box-shadow: 0 12px 20px rgba(0,0,0,0.08);
    display: none;
  }
  .nav-links.open { display: flex; }
  .menu-toggle { display: block; }
  .topbar-contact { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(160deg, var(--maroon-dark), var(--maroon) 60%);
}
.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(125,23,23,0.92), rgba(165,32,32,0.85) 60%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: 90px 0 60px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.hero-badge img {
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--gold);
}
.hero-badge .est { font-size: 0.82rem; color: var(--gold-light); letter-spacing: 0.04em; }
.hero-tag {
  display: inline-block;
  background: rgba(217, 164, 65, 0.18);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
  letter-spacing: 0.03em;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 4.2vw, 3.2rem);
  margin-bottom: 16px;
}
.hero p.lead {
  color: #f4e3d6;
  font-size: 1.08rem;
  max-width: 520px;
}
.hero-ctas { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 48px;
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: 28px;
}
.hero-stats .stat-num {
  font-family: 'Fraunces', serif;
  font-size: 1.6rem;
  color: var(--gold-light);
  font-weight: 700;
}
.hero-stats .stat-label {
  font-size: 0.78rem;
  color: #eccdb7;
  letter-spacing: 0.02em;
}
.hero-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.35);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-media { order: -1; max-height: 260px; }
}

/* ---------- Banner strip ---------- */
.banner-strip {
  background: var(--gold-light);
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
}
.banner-strip .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  flex-wrap: wrap;
}
.banner-strip strong { color: var(--maroon-dark); font-size: 1.05rem; }
.banner-strip .pill {
  background: var(--maroon);
  color: var(--white);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
}

/* ---------- Two column / About preview ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.motto-card {
  background: var(--maroon);
  color: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  box-shadow: var(--shadow);
}
.motto-card .tag {
  position: absolute;
  top: -14px;
  right: 24px;
  background: var(--gold);
  color: var(--maroon-dark);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 6px 16px;
  border-radius: 999px;
}
.motto-card blockquote {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  font-style: italic;
  margin: 10px 0 0;
  line-height: 1.5;
}

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
@media (max-width: 900px) { .cards-3 { grid-template-columns: 1fr; } }
.info-card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.info-card .eyebrow { margin-bottom: 10px; }
.info-card ul { padding-left: 18px; margin: 0; color: var(--muted); }
.info-card li { margin-bottom: 6px; }

/* ---------- Facilities grid ---------- */
.facilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 900px) { .facilities-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .facilities-grid { grid-template-columns: 1fr; } }

.facility-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px;
  border: 1px solid var(--cream-dark);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.facility-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.facility-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--cream-dark);
  color: var(--maroon);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 14px;
}
.facility-card h4 { font-size: 1.05rem; margin-bottom: 6px; color: var(--ink); font-family: inherit; font-weight: 700; }
.facility-card p { font-size: 0.9rem; margin: 0; }

/* ---------- Management ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
@media (max-width: 700px) { .team-grid { grid-template-columns: 1fr; } }
.team-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--cream-dark);
}
.team-card img { width: 100%; height: 280px; object-fit: cover; object-position: top; }
.team-card .body { padding: 24px; }
.team-card .role {
  color: var(--gold);
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.team-card blockquote {
  font-style: italic;
  color: var(--muted);
  margin: 10px 0 0;
  border-left: 3px solid var(--gold);
  padding-left: 14px;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--cream-dark);
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(43,28,20,0.85), transparent);
  color: var(--white);
  font-size: 0.78rem;
  padding: 22px 10px 8px;
}

/* ---------- Visit / Contact section ---------- */
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}
@media (max-width: 900px) { .visit-grid { grid-template-columns: 1fr; } }
.visit-info dt {
  color: var(--gold);
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-top: 20px;
}
.visit-info dt:first-child { margin-top: 0; }
.visit-info dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-weight: 500;
}
.visit-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 320px;
  box-shadow: var(--shadow);
  border: 1px solid var(--cream-dark);
}
.map-frame iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
@media (max-width: 800px) { .contact-cards { grid-template-columns: 1fr; } }
.contact-card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
  box-shadow: var(--shadow);
}
.contact-card .icon {
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--maroon); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  font-size: 1.2rem;
}
.contact-card h4 { margin-bottom: 6px; font-family: inherit; font-size: 1.05rem; }
.contact-card a.action { color: var(--maroon); font-weight: 700; font-size: 0.9rem; }

/* ---------- Form ---------- */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  border: 1px solid var(--cream-dark);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid #e4d7c4;
  background: var(--cream);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
.form-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 10px;
}
.office-box {
  background: var(--cream-dark);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}
.office-box .eyebrow { margin-bottom: 8px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--maroon);
  color: var(--white);
  text-align: center;
  border-radius: var(--radius);
  padding: 48px 32px;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: #f4ded0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--maroon-dark);
  color: #e9d3c2;
  padding-top: 56px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h3 { color: var(--gold-light); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.footer-brand img { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--gold); }
.footer-brand .name { font-family: 'Fraunces', serif; font-weight: 700; color: var(--white); font-size: 1.1rem; }
.footer-brand .est { font-size: 0.78rem; color: var(--gold-light); }
.site-footer p { color: #d9bba5; font-size: 0.9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer ul a { color: #e9d3c2; font-size: 0.9rem; }
.site-footer ul a:hover { color: var(--gold-light); }
.footer-reach { display: flex; flex-direction: column; gap: 12px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  font-size: 0.82rem;
  color: #c8a68d;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
