/* ═══════════════════════════════════════════
   GEMS INTERNATIONAL SCHOOL — SHARED STYLES
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --navy:        #0B1F45;
  --navy-deep:   #060F22;
  --gold:        #C8963E;
  --gold-light:  #F5E6C8;
  --gold-pale:   #FBF5E8;
  --white:       #FFFFFF;
  --text-dark:   #1A1A2E;
  --text-mid:    #4A4A6A;
  --text-light:  #8A8AAA;
  --border:      #E8E4D9;
  --alt-bg:      #F7F4EE;
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   20px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { max-width: 100%; display: block; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

/* ── CONTAINER ── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ── NOTICE STRIP ── */
.notice-strip {
  background: var(--gold);
  color: var(--navy);
  text-align: center;
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 500;
}
.notice-strip strong { font-weight: 700; }
.notice-strip a { color: var(--navy); font-weight: 700; text-decoration: underline; }

/* ── TOPBAR ── */
.topbar {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.72);
  font-size: 13px;
  padding: 8px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { color: var(--gold); text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar-left, .topbar-right { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.topbar-item { display: flex; align-items: center; gap: 6px; }

/* ── HEADER / NAV ── */
header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 16px rgba(11,31,69,0.07);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 16px;
}

/* Logo */
.logo-link {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-emblem {
  width: 52px;
  height: 52px;
  background: var(--navy);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-emblem svg { width: 30px; height: 30px; }
.logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}
.logo-sub {
  font-size: 11px;
  color: var(--text-light);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Desktop Nav */
.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a {
  padding: 8px 11px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-mid);
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
}
.main-nav a:hover { background: var(--alt-bg); color: var(--navy); }
.main-nav a.active { color: var(--navy); background: var(--gold-light); font-weight: 600; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: ' ▾'; font-size: 10px; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px;
  min-width: 200px;
  box-shadow: 0 8px 32px rgba(11,31,69,0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.18s, transform 0.18s;
  z-index: 300;
}
.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-mid);
  text-decoration: none;
  font-weight: 400;
  transition: background 0.15s, color 0.15s;
}
.dropdown-menu a:hover { background: var(--alt-bg); color: var(--navy); }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  transition: background 0.18s;
}
.nav-hamburger:hover { background: var(--alt-bg); }
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 199;
  background: rgba(6,15,34,0.5);
  backdrop-filter: blur(2px);
}
.mobile-nav.open { display: block; }
.mobile-nav-inner {
  position: absolute;
  top: 0; right: 0;
  width: min(320px, 85vw);
  height: 100%;
  background: var(--white);
  padding: 24px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: -4px 0 32px rgba(11,31,69,0.18);
}
.mobile-nav-inner a {
  display: block;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.mobile-nav-inner a:hover { background: var(--alt-bg); color: var(--navy); }
.mobile-nav-inner a.active { background: var(--gold-light); color: var(--navy); font-weight: 600; }
.mobile-nav-sub { padding-left: 8px; }
.mobile-nav-sub a { font-size: 13.5px; color: var(--text-mid); padding: 9px 14px; }
.mobile-nav-apply {
  margin-top: 12px;
  background: var(--gold) !important;
  color: var(--white) !important;
  font-weight: 700 !important;
  text-align: center;
  border-radius: var(--radius-sm) !important;
  padding: 13px 16px !important;
}
.mobile-nav-apply:hover { background: #b07e2a !important; }
.nav-apply-btn { white-space: nowrap; }

/* ── BUTTONS ── */
.btn-primary {
  background: var(--navy);
  color: var(--white);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s, transform 0.15s;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary:hover { background: #1a3568; transform: translateY(-1px); }

.btn-gold {
  background: var(--gold);
  color: var(--white);
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, transform 0.15s;
  border: none;
  cursor: pointer;
}
.btn-gold:hover { background: #b07e2a; transform: translateY(-1px); }

.btn-gold-sm {
  background: var(--gold);
  color: var(--white);
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
}
.btn-gold-sm:hover { background: #b07e2a; }

.btn-outline-white {
  border: 1.5px solid rgba(255,255,255,0.5);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, border-color 0.2s;
  background: transparent;
}
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.8); }

/* ── PAGE HERO BANNER ── */
.page-hero {
  background: linear-gradient(135deg, #0B1F45 0%, #1a3568 100%);
  color: var(--white);
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M0 0h20v20H0V0zm20 20h20v20H20V20z'/%3E%3C/g%3E%3C/svg%3E");
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.page-hero-label::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--gold);
}
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 14px;
}
.page-hero p {
  font-size: 16px;
  color: rgba(255,255,255,0.72);
  max-width: 520px;
  line-height: 1.75;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-top: 20px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--gold); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ── SECTIONS ── */
section { padding: 80px 0; }
section.alt { background: var(--alt-bg); }
section.dark { background: var(--navy); color: var(--white); }

/* ── TYPOGRAPHY ── */
.section-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}
.section-eyebrow::before, .section-eyebrow::after {
  content: '';
  height: 1px;
  width: 30px;
  background: var(--gold);
  display: inline-block;
}
.section-eyebrow.left::after { display: none; }
.section-eyebrow.left::before { display: none; }

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 34px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 14px;
}
.section-title.white { color: var(--white); }
.section-desc {
  font-size: 16px;
  color: var(--text-mid);
  max-width: 560px;
  line-height: 1.75;
}
.section-desc.white { color: rgba(255,255,255,0.7); }
.section-header { margin-bottom: 48px; }
.section-header.center { text-align: center; }
.section-header.center .section-desc { margin: 0 auto; }
.section-header.center .section-eyebrow { justify-content: center; }

/* ── CARDS ── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: 0 8px 32px rgba(11,31,69,0.1); transform: translateY(-3px); }
.card-icon {
  width: 50px; height: 50px;
  background: var(--gold-pale);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.card h3 { font-size: 17px; font-weight: 600; color: var(--navy); margin-bottom: 8px; line-height: 1.3; }
.card p  { font-size: 14px; color: var(--text-mid); line-height: 1.7; }
.card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

/* ── STAT STRIP ── */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat-cell { background: var(--white); padding: 34px 20px; text-align: center; }
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 38px; font-weight: 700;
  color: var(--navy); line-height: 1; margin-bottom: 6px;
}
.stat-num sup { font-size: 20px; }
.stat-label { font-size: 13px; color: var(--text-mid); font-weight: 500; }

/* ── FORMS ── */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--text-mid); margin-bottom: 6px;
}
.form-group label.white { color: rgba(255,255,255,0.55); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-dark);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,150,62,0.1); }
.form-group.dark-input input,
.form-group.dark-input select,
.form-group.dark-input textarea {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.15);
  color: var(--white);
}
.form-group.dark-input input::placeholder { color: rgba(255,255,255,0.3); }
.form-group.dark-input input:focus,
.form-group.dark-input select:focus { border-color: var(--gold); }
.form-group.dark-input select option { background: var(--navy); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ── TESTIMONIALS ── */
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.testimonial-stars { color: var(--gold); font-size: 14px; margin-bottom: 14px; letter-spacing: 2px; }
.testimonial-card blockquote {
  font-size: 15px; color: var(--text-dark);
  line-height: 1.75; margin-bottom: 20px; font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; flex-shrink: 0;
}
.author-name { font-size: 14px; font-weight: 600; color: var(--navy); }
.author-role { font-size: 12px; color: var(--text-light); margin-top: 2px; }

/* ── FAQ ── */
.faq-wrap { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  font-size: 16px; font-weight: 600; color: var(--navy);
  cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; gap: 16px; padding: 20px 0; user-select: none;
}
.faq-q .icon { font-size: 22px; color: var(--gold); transition: transform 0.22s; flex-shrink: 0; }
.faq-a { font-size: 15px; color: var(--text-mid); line-height: 1.75; padding-bottom: 20px; display: none; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-q .icon { transform: rotate(45deg); }

/* ── FOOTER ── */
footer { background: var(--navy-deep); color: rgba(255,255,255,0.6); }
.footer-top { padding: 60px 0 48px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand p { font-size: 14px; line-height: 1.8; margin: 14px 0 20px; max-width: 280px; }
.footer-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-badge {
  background: rgba(200,150,62,0.18); color: #F5C878;
  font-size: 11px; font-weight: 600; padding: 4px 12px; border-radius: 100px;
}
.footer-col h4 {
  font-size: 12px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--white); margin-bottom: 18px;
}
.footer-col a {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: rgba(255,255,255,0.55);
  text-decoration: none; margin-bottom: 11px; transition: color 0.18s;
}
.footer-col a:hover { color: var(--gold); }
.footer-social { display: flex; gap: 10px; margin-top: 8px; }
.social-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
  color: rgba(255,255,255,0.6);
}
.social-btn:hover { border-color: var(--gold); background: rgba(200,150,62,0.15); color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12.5px; flex-wrap: wrap; gap: 8px;
  color: rgba(255,255,255,0.35);
}
.footer-logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 16px; font-weight: 700; color: var(--white);
  line-height: 1.2; text-decoration: none;
}
.footer-logo-sub {
  font-size: 10px; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--gold); margin-top: 3px;
}

/* ── UTILITIES ── */
.text-gold { color: var(--gold); }
.text-navy { color: var(--navy); }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.flex { display: flex; } .flex-center { display: flex; align-items: center; }
.gap-2 { gap: 16px; } .gap-3 { gap: 24px; }
.w-full { width: 100%; }
.text-center { text-align: center; }

/* ══════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ══════════════════════════════════════ */

/* ── Tablet landscape (≤1100px) ── */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .main-nav a { padding: 8px 9px; font-size: 13px; }
}

/* ── Tablet portrait (≤900px) ── */
@media (max-width: 900px) {
  .section-title { font-size: 28px; }
  .card-grid-3 { grid-template-columns: 1fr 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  /* hide desktop nav, show hamburger */
  .main-nav { display: none; }
  .nav-apply-btn { display: none; }
  .nav-hamburger { display: flex; }
}

/* ── Mobile (≤768px) ── */
@media (max-width: 768px) {
  section { padding: 52px 0; }
  .container { padding: 0 18px; }
  .section-title { font-size: 26px; }
  .section-desc { font-size: 15px; }
  .page-hero { padding: 48px 0 40px; }
  .page-hero h1 { font-size: 30px; }
  .page-hero p { font-size: 15px; }

  /* topbar – hide less important items on mobile */
  .topbar-right { display: none; }
  .topbar-left { gap: 12px; }
  .topbar-item:first-child { display: none; } /* hide address */

  .card-grid-3, .card-grid-2 { grid-template-columns: 1fr; }
  .card-grid-4 { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }

  /* index page inline grids */
  .hero-layout { grid-template-columns: 1fr !important; }
  .inquiry-card { display: none !important; }
  .hero-btns { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero-stats { gap: 20px; }

  /* why-us section */
  .why-us-grid-outer { grid-template-columns: 1fr !important; gap: 32px !important; }
  .why-grid { grid-template-columns: 1fr !important; }
  .why-cell { border-right: none !important; }

  /* about page */
  .about-story { grid-template-columns: 1fr !important; gap: 32px !important; }
  .journey-grid { grid-template-columns: 1fr !important; gap: 32px !important; }

  /* academics page */
  .prog-section { grid-template-columns: 1fr !important; gap: 32px !important; direction: ltr !important; }
  .stream-grid { grid-template-columns: 1fr !important; }
  .pedagogy-grid { grid-template-columns: 1fr 1fr !important; }

  /* contact page */
  .contact-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  .contact-hours-grid { grid-template-columns: 1fr !important; gap: 16px !important; }

  /* admission page */
  .admission-layout { grid-template-columns: 1fr !important; gap: 32px !important; }

  /* CTA flex rows */
  .cta-btn-row { flex-direction: column; align-items: center; gap: 10px !important; }
}

/* ── Small mobile (≤480px) ── */
@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .page-hero { padding: 36px 0 30px; }
  .page-hero h1 { font-size: 26px; }
  .section-title { font-size: 23px; }

  .card-grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .pedagogy-grid { grid-template-columns: 1fr !important; }

  .btn-gold, .btn-outline-white { padding: 11px 20px; font-size: 14px; }
  .logo-name { font-size: 14px; }
  .logo-sub { display: none; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 6px; }
  .footer-bottom span:last-child { display: none; }
}

/* ── Extra small (≤360px) ── */
@media (max-width: 360px) {
  .page-hero h1 { font-size: 22px; }
  .section-title { font-size: 21px; }
  .logo-emblem { width: 40px; height: 40px; }
  .hero-stats { grid-template-columns: 1fr 1fr; display: grid !important; gap: 16px !important; }
}
