/* ============================================================
   Garret Elementary - Lenexa, KS
   Small private K-5 school website
   Design system stylesheet
   ============================================================ */

:root {
  --navy: #1f3a5f;
  --navy-dark: #152a47;
  --gold: #eaa83c;
  --gold-light: #f6d28a;
  --cream: #fbf7ef;
  --paper: #ffffff;
  --ink: #2c2c2c;
  --muted: #5d6570;
  --sage: #5c7f66;
  --sage-light: #eef3ec;
  --line: #e5ddcc;
  --shadow-sm: 0 2px 8px rgba(31, 58, 95, 0.08);
  --shadow-md: 0 8px 24px rgba(31, 58, 95, 0.12);
  --radius: 14px;
  --font-head: Georgia, "Times New Roman", Times, serif;
  --font-body: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
}

img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: min(1120px, 92%); margin-inline: auto; }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--navy-dark);
  color: #dbe4ef;
  font-size: 0.82rem;
  padding: 0.45rem 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}
.topbar a { color: #dbe4ef; }
.topbar .topbar-phone { font-weight: 600; }

/* ---------- Header / Navigation ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-light);
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-style: italic;
}
.brand-name {
  font-family: var(--font-head);
  color: var(--navy);
  font-size: 1.25rem;
  line-height: 1.1;
}
.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.5rem 0.7rem;
  font-size: 1.3rem;
  color: var(--navy);
  cursor: pointer;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.35rem;
}
.main-nav a {
  display: block;
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: var(--navy);
  color: #fff;
  text-decoration: none;
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(234, 168, 60, 0.35), transparent 60%),
    var(--navy);
  color: #fff;
  padding: 4.5rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero .eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.2rem;
}
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.15;
  margin: 0 0 1.1rem;
  max-width: 18ch;
}
.hero p.lede {
  font-size: 1.12rem;
  color: #dbe4ef;
  max-width: 60ch;
  margin: 0 0 2rem;
}
.hero-ctas { display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--navy-dark); }
.btn-outline { border: 2px solid rgba(255, 255, 255, 0.55); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-ghost { border: 2px solid var(--navy); color: var(--navy); }

/* ---------- Sections ---------- */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--paper); }
.section-sage { background: var(--sage-light); }
.section-tight { padding: 2.5rem 0; }

.section-head { max-width: 52rem; margin-bottom: 2.2rem; }
.section-head .kicker {
  color: var(--sage);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}
.section-head h2 {
  font-family: var(--font-head);
  color: var(--navy);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 0.6rem;
  line-height: 1.2;
}
.section-head p { color: var(--muted); margin: 0; }

/* ---------- Card grids ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
}
.card .card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--gold-light);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
.card h3 { font-family: var(--font-head); color: var(--navy); margin: 0 0 0.5rem; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- Stats band ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: -3rem;
  position: relative;
  z-index: 5;
}
.stat {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  text-align: center;
  padding: 1.4rem 1rem;
  border-top: 4px solid var(--gold);
}
.stat .num { font-family: var(--font-head); font-size: 2rem; color: var(--navy); line-height: 1; }
.stat .lbl { font-size: 0.85rem; color: var(--muted); margin-top: 0.35rem; }

/* ---------- Feature rows ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.feature-row + .feature-row { margin-top: 3.5rem; }
.feature-row .art {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--gold-light);
  border-radius: var(--radius);
  min-height: 260px;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  font-family: var(--font-head);
  font-size: 1.15rem;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.feature-row h3 { font-family: var(--font-head); color: var(--navy); font-size: 1.45rem; margin: 0 0 0.75rem; }
.feature-row p { color: var(--muted); margin: 0 0 1rem; }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { padding: 0.3rem 0 0.3rem 1.6rem; position: relative; color: var(--ink); }
.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--sage);
  font-weight: 800;
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  padding: 3rem 0 3.2rem;
}
.page-hero .kicker {
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin: 0.4rem 0 0.6rem;
  line-height: 1.15;
}
.page-hero p { color: #dbe4ef; max-width: 60ch; margin: 0; }

/* ---------- Tables ---------- */
.glance-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.glance-table tr { border-bottom: 1px solid var(--line); }
.glance-table tr:last-child { border-bottom: none; }
.glance-table th {
  text-align: left;
  background: var(--navy);
  color: #fff;
  padding: 0.85rem 1.2rem;
  font-size: 0.9rem;
  width: 34%;
}
.glance-table td { padding: 0.85rem 1.2rem; color: var(--ink); }

/* ---------- Accordion (FAQ) ---------- */
.accordion { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: var(--navy);
  padding: 1.1rem 1.5rem 1.1rem 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-q::after { content: "+"; font-size: 1.4rem; color: var(--gold); transition: transform 0.2s ease; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 1.5rem 1.2rem 0; color: var(--muted); }
.faq-item.open .faq-a { display: block; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 1.4rem; }
.step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.step .step-num {
  counter-increment: step;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-dark);
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 0.9rem;
}
.step .step-num::before { content: counter(step); }
.step h3 { font-family: var(--font-head); color: var(--navy); margin: 0 0 0.5rem; font-size: 1.1rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 0.88rem; font-weight: 600; color: var(--navy); }
.form-group input,
.form-group textarea,
.form-group select {
  font: inherit;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}
.form-note { font-size: 0.8rem; color: var(--muted); }

.form-status { display: none; margin-top: 1rem; padding: 0.9rem 1.1rem; border-radius: 10px; font-weight: 600; }
.form-status.ok { display: block; background: var(--sage-light); color: var(--sage); border: 1px solid var(--sage); }
.form-status.err { display: block; background: #fdecea; color: #a03a32; border: 1px solid #e2a6a0; }

/* ---------- Contact info ---------- */
.contact-card { display: flex; gap: 1rem; align-items: flex-start; padding: 1.2rem 1.4rem; }
.contact-card .cc-icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--sage-light);
  color: var(--sage);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
}
.contact-card h3 { margin: 0 0 0.2rem; font-family: var(--font-head); color: var(--navy); font-size: 1rem; }
.contact-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.contact-card a { font-weight: 600; }

/* ---------- Notice banner ---------- */
.notice {
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  background: var(--paper);
  border-radius: 10px;
  padding: 1.1rem 1.4rem;
  margin: 1.5rem 0;
  font-size: 0.92rem;
  color: var(--muted);
}
.notice strong { color: var(--navy); }

/* ---------- Call to action band ---------- */
.cta-band {
  background: var(--navy);
  color: #fff;
  padding: 3rem 0;
  text-align: center;
}
.cta-band h2 { font-family: var(--font-head); font-size: 1.9rem; margin: 0 0 0.6rem; }
.cta-band p { color: #dbe4ef; margin: 0 auto 1.6rem; max-width: 46ch; }
.cta-band .btn-gold { color: var(--navy-dark); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #c9d4e0; padding: 3rem 0 0; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2rem; }
.site-footer h4 {
  font-family: var(--font-head);
  color: var(--gold-light);
  margin: 0 0 0.9rem;
  font-size: 1rem;
}
.site-footer a { color: #c9d4e0; }
.site-footer a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.8rem; }
.footer-addr { list-style: none; margin: 0; padding: 0; }
.footer-addr li { padding: 0.15rem 0; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.1rem 0;
  font-size: 0.8rem;
  color: #8fa0b3;
}
.footer-bottom .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .feature-row { grid-template-columns: 1fr; gap: 1.6rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-top: 1px solid var(--line);
    border-bottom: 3px solid var(--gold);
    box-shadow: var(--shadow-md);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 0.8rem; gap: 0.2rem; }
  .main-nav a { padding: 0.8rem 1rem; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-bottom .container { flex-direction: column; }
}

/* ---------- Staff directory ---------- */
.staff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.staff-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.6rem;
  text-align: center;
}
.staff-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--gold-light);
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-size: 1.6rem;
}
.staff-card h3 { font-family: var(--font-head); color: var(--navy); margin: 0 0 0.2rem; font-size: 1.15rem; }
.staff-card .role { color: var(--sage); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 0.6rem; }
.staff-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.staff-card .focus {
  margin-top: 0.9rem;
  font-size: 0.8rem;
  color: var(--navy);
  background: var(--sage-light);
  border-radius: 999px;
  display: inline-block;
  padding: 0.3rem 0.9rem;
}

/* ---------- Staff ID badge (website graphic) ---------- */
.id-badge-wrap { display: flex; justify-content: center; padding: 1rem 0; }
.id-badge {
  width: min(480px, 100%);
  aspect-ratio: 1.586; /* credit-card proportions */
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(234, 168, 60, 0.28), transparent 60%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  border-radius: 18px;
  color: #fff;
  padding: 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.id-badge::after {
  content: "GARRET ELEMENTARY K-5";
  position: absolute;
  right: -28px;
  bottom: 34px;
  transform: rotate(-90deg);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.25);
}
.id-badge-top { display: flex; justify-content: space-between; align-items: center; }
.id-badge-brand { display: flex; align-items: center; gap: 0.6rem; }
.id-badge-brand .brand-mark { width: 34px; height: 34px; font-size: 0.9rem; }
.id-badge-brand strong { font-family: var(--font-head); color: var(--gold-light); font-size: 0.98rem; display: block; line-height: 1.05; }
.id-badge-brand small { font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; color: #aebfd2; }
.id-badge-type {
  background: var(--gold);
  color: var(--navy-dark);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.28rem 0.8rem;
}
.id-badge-main { display: flex; gap: 1.2rem; align-items: center; margin: 1rem 0 0.8rem; }
.id-photo {
  flex: 0 0 auto;
  width: 84px;
  height: 84px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--gold-light);
}
.id-name { font-family: var(--font-head); font-size: 1.35rem; color: #fff; line-height: 1.1; }
.id-role { color: var(--gold-light); font-weight: 600; font-size: 0.85rem; }
.id-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 0.7rem;
}
.id-meta .m { font-size: 0.66rem; color: #aebfd2; line-height: 1.3; }
.id-meta .m strong { display: block; color: #fff; font-size: 0.8rem; }
.id-barcode {
  width: 110px;
  height: 30px;
  background: repeating-linear-gradient(90deg, #fff 0 2px, transparent 2px 4px, #fff 4px 5px, transparent 5px 8px, #fff 8px 11px, transparent 11px 13px);
  opacity: 0.85;
}
.id-caption { text-align: center; font-size: 0.78rem; color: var(--muted); margin-top: 0.6rem; }

@media (max-width: 920px) {
  .staff-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .staff-grid { grid-template-columns: 1fr; }
}