/* =========================================================
   Focus Grammar School — Sahiwal Campus
   Design tokens live here. Change a value once, it updates
   everywhere the variable is used.

   Palette: "Heritage Crest" — deep navy blue, antique
   brass gold, and a brick-wine accent. A classic grammar-
   school crest trio, set on a warm parchment ground.
   ========================================================= */

:root {
  /* Colors */
  --navy: #12304A;            /* primary navy blue */
  --navy-deep: #071A2B;       /* darkest navy, footer/header base */
  --navy-mid: #1D4E70;        /* mid navy, hovers/gradients */
  --gold: #B98A34;            /* antique brass gold */
  --gold-light: #E4C077;      /* light gold, text on dark navy */
  --wine: #7B2E33;            /* brick-wine accent, secondary highlight */
  --wine-light: #A6474D;
  --cream: #F7F1E3;           /* parchment background */
  --cream-dim: #E2D9BE;       /* muted parchment, text on dark */
  --ink: #1B2620;             /* primary text */
  --ink-soft: #57645A;        /* secondary/muted text */
  --white: #FFFFFF;
  --line: #E1D6B8;            /* hairline border on cream */

  /* Type */
  --font-display: 'Bernard MT Condensed', 'Oswald', 'Anton', sans-serif;
  --font-heading: 'Oswald', 'Anton', sans-serif;
  --font-body: 'Lora', Georgia, serif;
  --font-ui: 'Inter', -apple-system, sans-serif;

  /* Layout */
  --max-width: 1200px;
  --radius: 6px;
  --radius-sm: 3px;

  /* Shadow / motion */
  --shadow-sm: 0 1px 2px rgba(10,36,25,0.06), 0 4px 14px -8px rgba(10,36,25,0.18);
  --shadow-lg: 0 20px 44px -18px rgba(10,36,25,0.38);
  --ease: cubic-bezier(.4,.08,.2,1);
}

/* ---------- Reset & Base Styles ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(900px 360px at 100% 0%, rgba(185,138,52,0.07), transparent 60%),
    var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.015em;
  color: var(--navy);
  margin: 0 0 0.5em;
  line-height: 1.15;
  font-weight: 600;
}
h1 { font-weight: 700; }
h2 { font-size: clamp(1.65rem, 3vw, 2.3rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1.2em; }

::selection { background: var(--gold-light); color: var(--navy-deep); }

/* Accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--gold);
  color: var(--navy-deep);
  padding: 10px 16px;
  font-family: var(--font-ui);
  font-weight: 700;
  z-index: 1001;
  transition: top 0.2s var(--ease);
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 16px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---------- Layout Helpers ---------- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; }
section.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section.dark {
  background:
    radial-gradient(1000px 380px at 12% 0%, rgba(228,192,119,0.09), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--cream-dim);
}
section.dark h2, section.dark h3 { color: var(--white); }

section:not(.alt):not(.dark):not(.hero) {
  background-image: repeating-linear-gradient(
    to bottom, rgba(27,38,32,0.016) 0px, rgba(27,38,32,0.016) 1px,
    transparent 1px, transparent 32px
  );
}

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--wine);
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--gold);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  flex: none;
}
section.dark .eyebrow { color: var(--gold-light); }
section.dark .eyebrow::before { background: var(--gold-light); }

.divider {
  width: 52px;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold) 70%, transparent 70%);
  margin: 12px 0 22px;
  position: relative;
}
.divider.center { margin-left: auto; margin-right: auto; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head p { color: var(--ink-soft); }
.section-head .divider { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: var(--gold-light); box-shadow: var(--shadow-lg); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-mid); box-shadow: var(--shadow-lg); }
.btn-outline { background: transparent; border-color: rgba(247,241,227,0.55); color: inherit; }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--cream); }
.btn-outline-light { background: transparent; border: 1.5px solid var(--gold-light); color: var(--gold-light); }
.btn-outline-light:hover { background: var(--gold-light); color: var(--navy-deep); }
.btn-whatsapp { background: #25D366; color: #ffffff; border-color: #25D366; }
.btn-whatsapp:hover { background: #20ba5a; border-color: #20ba5a; }

/* ---------- Header (Fixed Layout & Prevent Overlap) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 2px 10px rgba(7,26,43,0.06);
}
.header-bar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex-shrink: 0; /* Ensures brand text & logo never get squished */
  text-decoration: none;
}
.logo {
  height: 58px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}
.brand-text .school-name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--navy-deep);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
  margin: 0;
}
.brand-text .campus-name {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--wine);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: nowrap;
  min-width: 0;
}
.main-nav a {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.01em;
  color: var(--navy);
  padding: 6px 2px;
  white-space: nowrap;
  position: relative;
  transition: color 0.2s var(--ease);
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--navy-deep);
}
.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--gold);
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  background: var(--navy);
  border: none;
  color: var(--white);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s var(--ease);
}
.nav-toggle:hover { background: var(--navy-mid); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse at top right, rgba(185,138,52,0.20), transparent 55%),
    linear-gradient(120deg, var(--navy-deep), var(--navy));
  color: var(--cream);
  padding: 100px 24px 80px;
  border-bottom: 1px solid var(--gold);
  overflow: hidden;
  isolation: isolate;
}
.home-page .hero {
  background:
    linear-gradient(90deg, rgba(7,26,43,0.92) 0%, rgba(7,26,43,0.78) 50%, rgba(7,26,43,0.48) 100%),
    url('../images/gallery/Background.JPG') center / cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute; right: -70px; bottom: -110px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(228,192,119,0.10), transparent 68%);
  clip-path: polygon(50% 0%, 100% 18%, 100% 70%, 50% 100%, 0% 70%, 0% 18%);
  z-index: -1;
}
.hero-inner { max-width: 780px; margin: 0 auto; text-align: left; }
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--white);
  margin-top: 0.4em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
.hero h1 .highlight { color: var(--gold-light); }
.hero-sub {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--cream-dim);
  max-width: 520px;
  font-size: 1.05rem;
}
.hero-actions { display: flex; gap: 16px; margin-top: 28px; flex-wrap: wrap; }

.admission-brochure-section { padding-top: 48px; padding-bottom: 48px; }
.admission-brochure {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  padding: 10px;
  background: linear-gradient(135deg, var(--gold), var(--cream-dim) 35%, var(--navy) 100%);
  border: 1px solid var(--gold);
  box-shadow: 0 18px 40px rgba(7,26,43,0.22), 0 0 0 5px rgba(255,255,255,0.7);
  overflow: hidden;
}
.admission-brochure img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid rgba(7,26,43,0.22);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.5);
}
.admission-brochure figcaption {
  padding: 14px 18px;
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

.contact-layout { gap: 56px; align-items: start; }

.map-embed {
  display: block;
  width: 100%;
  min-height: 420px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  filter: grayscale(0.15) contrast(1.05);
}
.map-description {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  line-height: 1.55;
}
.map-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--wine);
  font-family: var(--font-ui);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 4px;
}
.map-link:hover { color: var(--navy); }

/* ---------- Photo Blocks & Media Frame ---------- */
.photo-block {
  aspect-ratio: 4 / 3;
  background:
    repeating-linear-gradient(135deg, rgba(228,192,119,0.05) 0 2px, transparent 2px 14px),
    linear-gradient(150deg, var(--navy-mid), var(--navy-deep));
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.photo-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.portrait-photo { background: var(--cream-dim); }
.portrait-photo img { object-fit: contain; object-position: center top; }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
section.alt .card { background: var(--cream); }

.facility-card { text-align: center; }
.facility-visual {
  width: 180px;
  height: 180px;
  margin: 0 auto 18px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 25px rgba(14, 28, 45, 0.12);
}
.facility-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.facility-card h3 { font-size: 1.05rem; }
.facility-card p { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 0; }

.message-card { border-top: 4px solid var(--gold); }
.message-card .divider { margin-bottom: 16px; }
.message-card h3 { font-size: 1.05rem; }
.message-card p { font-size: 0.94rem; font-style: italic; color: var(--ink-soft); }
.message-card .message-signoff { color: var(--wine); font-family: var(--font-ui); font-weight: 600; font-size: 0.8rem; margin-bottom: 0; }

/* ---------- Staff Cards ---------- */
.staff-card {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  border-top: 4px solid var(--gold);
  padding: 28px 26px 26px;
}
.staff-card::after {
  content: "";
  position: absolute;
  right: -34px;
  top: -34px;
  width: 110px;
  height: 110px;
  border: 1px solid rgba(185,138,52,0.24);
  transform: rotate(45deg);
  pointer-events: none;
}
.staff-feature { min-height: 280px; }
.staff-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 22px;
  background: var(--navy-deep);
  color: var(--gold-light);
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.04em;
  border: 2px solid var(--gold);
  border-radius: 50%;
}
.staff-card .eyebrow { display: flex; }
.staff-card h3 {
  margin-top: 10px;
  margin-bottom: 8px;
  font-size: 1.4rem;
}
.staff-role {
  color: var(--wine);
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 12px;
}
.staff-card > p:last-child {
  color: var(--ink-soft);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  margin-bottom: 0;
}
.staff-grid .staff-card { min-height: 230px; }

.admissions-details { gap: 56px; align-items: start; }
.admissions-details > div {
  min-width: 0;
}
.admission-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.admission-list li {
  position: relative;
  margin-bottom: 14px;
  padding: 0 0 14px 28px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  line-height: 1.5;
}
.admission-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 9px;
  height: 9px;
  background: var(--wine);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(123,46,51,0.12);
}
.fee-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.fee-table {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  background: var(--white);
  font-family: var(--font-ui);
  font-size: 0.82rem;
}
.fee-table caption {
  padding: 14px 16px;
  background: var(--navy-deep);
  color: var(--gold-light);
  font-weight: 700;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.fee-table th,
.fee-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}
.fee-table thead th {
  color: var(--navy);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.fee-table th:first-child,
.fee-table td:first-child { text-align: left; }
.fee-table tbody th { color: var(--ink); font-weight: 600; }
.fee-table tbody td { color: var(--ink-soft); }
.fee-table tr:nth-child(even) { background: var(--cream); }
.fee-table .fee-total th,
.fee-table .fee-total td {
  border-bottom: 0;
  color: var(--wine);
  font-weight: 700;
}
.fee-note {
  margin: 14px 0 0;
  color: var(--wine);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
}

.staff-roster {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  counter-reset: staff-member;
}
.staff-list-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 86px;
  padding: 16px 18px 16px 58px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  counter-increment: staff-member;
}
.staff-list-card::before {
  content: counter(staff-member, decimal-leading-zero);
  position: absolute;
  left: 16px;
  top: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  background: var(--navy-deep);
  color: var(--gold-light);
  border-radius: 50%;
  font-family: var(--font-ui);
  font-size: 0.66rem;
  font-weight: 700;
}
.staff-list-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: var(--shadow-lg);
}
.staff-list-card strong {
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 1.02rem;
  line-height: 1.2;
  text-transform: uppercase;
}
.staff-list-card span {
  margin-top: 5px;
  color: var(--ink-soft);
  font-family: var(--font-ui);
  font-size: 0.76rem;
  line-height: 1.4;
}
.admin-roster .staff-list-card { min-height: 96px; }

.gallery-item {
  margin: 0;
  overflow: hidden;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Forms ---------- */
form { display: flex; flex-direction: column; gap: 16px; }
form > div { display: flex; flex-direction: column; gap: 6px; }
label {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
input, textarea {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
input:focus, textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(185,138,52,0.18);
  outline: none;
}
textarea { min-height: 120px; resize: vertical; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: var(--cream-dim);
  padding: 60px 0 24px;
  font-family: var(--font-ui);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(228,192,119,0.16);
}
.footer-grid h4 {
  color: var(--gold-light);
  font-family: var(--font-ui);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-col .campus-title {
  color: var(--gold-light);
  font-weight: 600;
  margin-bottom: 6px;
}
.footer-col address {
  font-style: normal;
  color: var(--cream-dim);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 12px;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 8px;
}
.footer-links a, .footer-grid p a {
  color: var(--cream-dim);
  font-size: 0.9rem;
  transition: color 0.2s var(--ease);
}
.footer-links a:hover, .footer-grid p a:hover {
  color: var(--gold-light);
}
.footer-bottom {
  padding-top: 20px;
  font-size: 0.8rem;
  color: rgba(226,217,190,0.55);
}

/* ---------- Floating WhatsApp Button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: transform 0.22s var(--ease), background-color 0.22s var(--ease);
}
.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.05);
  background: #20ba5a;
}

/* =========================================================
   Responsive Breakpoints & Mobile Nav Drawer
   ========================================================= */

/* Desktop Scaling between 961px and 1180px */
@media (max-width: 1180px) and (min-width: 961px) {
  .header-bar { gap: 14px; padding: 12px 18px; }
  .logo { height: 48px; }
  .brand-text .school-name { font-size: 1.3rem; }
  .brand-text .campus-name { font-size: 0.65rem; }
  .main-nav { gap: 10px; }
  .main-nav a { font-size: 0.8rem; }
}

/* Mobile & Tablet View (Collapses 8 Navigation Links cleanly) */
@media (max-width: 960px) {
  .header-bar {
    padding: 12px 20px;
  }
  .brand-text .school-name {
    font-size: 1.25rem;
  }
  .brand-text .campus-name {
    font-size: 0.65rem;
  }
  .logo {
    height: 46px;
  }
  
  /* Hide standard navbar, show menu toggle button */
  .main-nav {
    display: none;
  }
  .nav-toggle {
    display: block;
  }

  /* When JS toggles class .open on nav */
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    padding: 12px 20px 20px;
    gap: 0;
    border-bottom: 3px solid var(--gold);
    box-shadow: 0 12px 28px rgba(7,26,43,0.18);
    z-index: 100;
  }
  .main-nav.open a {
    width: 100%;
    padding: 12px 8px;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--line);
  }
  .main-nav.open a.active::after {
    display: none;
  }
  .main-nav.open a:last-child {
    border-bottom: none;
  }

  /* Grid Layout Fallbacks for Mobile */
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .staff-roster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 600px) {
  section { padding: 56px 0; }
  .hero { padding: 68px 18px 54px; }
  .hero h1 { font-size: 2rem; }
  .grid-4 { grid-template-columns: 1fr; }
  .staff-roster { grid-template-columns: 1fr; }
  .brand-text .school-name { font-size: 1.05rem; }
  .brand-text .campus-name { font-size: 0.6rem; }
  .logo { height: 38px; }
}