/* ============ LGS Public Website — Lawrence Grammar School ============ */
:root {
  --brand: #226655;        /* logo deep green */
  --brand-dark: #1a4a3f;
  --brand-light: #e6f4ef;
  --accent: #ffbb11;       /* logo gold */
  --accent-dark: #c98f00;
  --ink: #22333b;
  --muted: #5b6b73;
  --bg: #ffffff;
  --bg-alt: #f3f8f5;
  --line: #dbe7e1;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(26, 74, 63, 0.10);
  --font: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  --font-ur: 'Segoe UI', 'Noto Naskh Arabic', 'Jameel Noori Nastaleeq', serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--accent-dark); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* RTL (Urdu) mode */
html[dir="rtl"] body { font-family: var(--font-ur); line-height: 1.9; }

/* ============ HEADER ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header.scrolled { box-shadow: 0 4px 18px rgba(26,74,63,0.12); }
.header-inner {
  display: flex; align-items: center; gap: 18px;
  padding-top: 12px; padding-bottom: 12px;
}
.site-logo { display: flex; align-items: center; gap: 12px; margin-inline-end: auto; }
.site-logo img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; }
.site-logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.site-logo-text strong { font-size: 17px; color: var(--brand-dark); letter-spacing: 0.3px; }
.site-logo-text small { color: var(--muted); font-size: 12.5px; }

.site-nav { display: flex; gap: 22px; align-items: center; }
.site-nav a { font-weight: 600; font-size: 14.5px; color: var(--ink); }
.site-nav a:hover { color: var(--brand); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  border: 1px solid var(--line); background: var(--bg-alt);
  color: var(--brand-dark); border-radius: 999px; padding: 7px 14px;
  font-size: 13.5px; font-weight: 700; cursor: pointer;
  font-family: var(--font-ur);
}
.lang-toggle:hover { border-color: var(--brand); }
.nav-burger { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--ink); }

.btn {
  display: inline-block; border: none; cursor: pointer;
  padding: 11px 20px; border-radius: 10px;
  font-size: 14.5px; font-weight: 700; text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.7); }
.btn-outline:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn-lg { padding: 14px 26px; font-size: 16px; border-radius: 12px; }
.btn-portal { background: var(--accent); color: #3a2c00; }
.btn-portal:hover { background: var(--accent-dark); color: #2a2000; }

/* ============ HERO ============ */
.hero {
  position: relative; color: #fff;
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 55%, #2e7d6a 100%);
  min-height: 78vh; display: flex; align-items: center;
}
.hero-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 80% 20%, rgba(255,187,17,0.20), transparent 45%),
    radial-gradient(circle at 15% 85%, rgba(255,255,255,0.10), transparent 40%);
}
.hero-inner { position: relative; padding-top: 70px; padding-bottom: 70px; max-width: 780px; margin-inline-start: max(20px, calc((100% - 1120px) / 2)); }
.hero-badge {
  display: inline-block; background: var(--accent); color: #3a2c00;
  font-weight: 800; font-size: 13px; letter-spacing: 0.5px;
  padding: 7px 16px; border-radius: 999px; margin-bottom: 22px;
}
.hero-title { font-size: clamp(34px, 6vw, 58px); line-height: 1.12; font-weight: 800; margin-bottom: 18px; }
.hero-title span { display: block; }
.hero-accent { color: var(--accent); }
.hero-sub { font-size: clamp(16px, 2.2vw, 19px); color: rgba(255,255,255,0.92); max-width: 620px; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============ STATS ============ */
.stats { background: #fff; border-bottom: 1px solid var(--line); }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  padding-top: 34px; padding-bottom: 34px; text-align: center;
}
.stat strong { display: block; font-size: 34px; color: var(--brand); font-weight: 800; }
.stat span { color: var(--muted); font-size: 14px; font-weight: 600; }

/* ============ SECTIONS ============ */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 44px; }
.section-kicker {
  display: inline-block; color: var(--accent-dark); font-weight: 800;
  font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 8px;
}
.section-head h2, .split-text h2, .cta-inner h2 {
  font-size: clamp(26px, 4vw, 38px); color: var(--brand-dark); line-height: 1.2; margin-bottom: 12px;
}
.section-head p, .split-text p { color: var(--muted); }

/* Split (about) */
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 52px; align-items: center; }
.media-frame {
  border-radius: var(--radius); overflow: hidden; background: var(--brand-light);
  box-shadow: var(--shadow); aspect-ratio: 4 / 3; display: grid; place-items: center;
}
.media-placeholder { font-size: 96px; opacity: 0.55; }
.split-text .check-list { margin-top: 18px; display: grid; gap: 10px; list-style: none; }
.check-list li { position: relative; padding-inline-start: 28px; color: var(--ink); font-weight: 500; }
.check-list li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--brand); font-weight: 900; }

/* Class cards */
.class-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.class-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: 0 4px 14px rgba(26,74,63,0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.class-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.class-emoji { font-size: 34px; display: block; margin-bottom: 12px; }
.class-card h3 { color: var(--brand-dark); margin-bottom: 6px; font-size: 18px; }
.class-card p { color: var(--muted); font-size: 14.5px; }

/* Feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { background: var(--bg-alt); border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); }
.feature-icon { font-size: 30px; display: block; margin-bottom: 12px; }
.feature h3 { color: var(--brand-dark); margin-bottom: 6px; font-size: 17px; }
.feature p { color: var(--muted); font-size: 14.5px; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--brand-dark), var(--brand)); color: #fff; }
.cta-inner { text-align: center; }
.cta-inner h2 { color: #fff; }
.cta-inner p { color: rgba(255,255,255,0.9); max-width: 560px; margin: 0 auto 28px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.contact-item {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; text-align: center;
}
.contact-icon { font-size: 30px; display: block; margin-bottom: 10px; }
.contact-item h4 { color: var(--brand-dark); margin-bottom: 6px; }
.contact-item p { color: var(--muted); font-size: 15px; }

/* ============ FOOTER ============ */
.site-footer { background: var(--brand-dark); color: rgba(255,255,255,0.85); padding: 46px 0 26px; }
.footer-inner { display: flex; flex-direction: column; gap: 22px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 46px; height: 46px; border-radius: 10px; }
.footer-brand strong { color: #fff; font-size: 17px; }
.footer-brand p { color: rgba(255,255,255,0.65); font-size: 13.5px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; }
.footer-links a { color: rgba(255,255,255,0.8); }
.footer-links a:hover { color: var(--accent); }
.footer-copy { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 20px; color: rgba(255,255,255,0.55); font-size: 13px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 920px) {
  .class-grid, .feature-grid, .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 720px) {
  .site-nav {
    display: none; position: absolute; top: 100%; inset-inline: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 14px 20px; gap: 14px; align-items: flex-start;
  }
  .site-nav.open { display: flex; }
  .nav-burger { display: block; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .class-grid, .feature-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-inner { margin-inline-start: 20px; }
  .btn-portal { display: none; }
}
