:root {
  --navy: #0f2140;
  --navy-deep: #09152b;
  --navy-mid: #1a3561;
  --gold: #b88d3a;
  --gold-bright: #d4aa55;
  --gold-soft: #faf5e8;
  --ivory: #f8f7f3;
  --bg: #ffffff;
  --text: #1c2434;
  --muted: #526074;
  --border: #e2e6ef;
  --radius: 14px;
  --shadow-sm: 0 2px 10px rgba(15, 33, 64, 0.05);
  --shadow-md: 0 12px 34px rgba(15, 33, 64, 0.08);
  --shadow-lg: 0 20px 50px rgba(9, 21, 43, 0.14);
}

* {
  box-sizing: border-box;
}

figure {
  margin: 0;
}

section[id] {
  scroll-margin-top: 84px;
}

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .serif {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

a {
  color: var(--navy-mid);
  text-decoration: none;
}

a:hover {
  color: var(--gold);
}

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.wrap-narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 33, 64, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--gold);
}

.header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #ffffff;
}

.brand:hover {
  color: #ffffff;
}

.brand-logo {
  height: 44px;
  width: auto;
  display: block;
}

.brand-divider {
  width: 1px;
  height: 32px;
  background: rgba(212, 170, 85, 0.45);
}

.brand-text-top {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: #ffffff;
}

.brand-text-sub {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d6c39a;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.nav-links a {
  color: #e2e8f0;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-bright);
}

.nav-cta {
  background: var(--gold);
  color: #09152b !important;
  font-weight: 700 !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.86rem !important;
  transition: background 0.15s ease, transform 0.15s ease;
}

.nav-cta:hover {
  background: var(--gold-bright);
  transform: translateY(-1px);
}

/* Hero */
.hero {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  background: var(--navy-deep);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  opacity: 0.46;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(9, 21, 43, 0.92) 0%,
    rgba(15, 33, 64, 0.78) 52%,
    rgba(15, 33, 64, 0.48) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
  padding: 84px 24px 92px;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 16px;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 2px;
  background: var(--gold-bright);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: 3.35rem;
  line-height: 1.08;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.hero p {
  margin: 0 0 30px;
  font-size: 1.08rem;
  line-height: 1.7;
  color: #dbe4f2;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 10px;
  font-size: 0.96rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.16s ease;
}

.btn-gold {
  background: var(--gold);
  color: #09152b;
}

.btn-gold:hover {
  background: var(--gold-bright);
  color: #09152b;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(184, 141, 58, 0.35);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border-color: #ffffff;
}

.btn-navy {
  background: var(--navy);
  color: #ffffff;
  width: 100%;
  padding: 15px 24px;
  font-size: 1rem;
}

.btn-navy:hover {
  background: var(--navy-mid);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15, 33, 64, 0.22);
}

.btn-navy:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Info strip under hero */
.quick-bar {
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid var(--border);
  color: #ffffff;
}

.quick-bar-grid {
  max-width: 1160px;
  margin: 0 auto;
  padding: 20px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.quick-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.quick-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(184, 141, 58, 0.18);
  color: var(--gold-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.quick-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #a9b9d4;
  font-weight: 600;
}

.quick-val {
  font-size: 0.92rem;
  font-weight: 600;
  color: #ffffff;
  margin-top: 1px;
}

.quick-val a {
  color: #ffffff;
}

.quick-val a:hover {
  color: var(--gold-bright);
}

/* Sections */
.section {
  padding: 78px 0;
}

.section-ivory {
  background: var(--ivory);
  border-top: 1px solid #eceae2;
  border-bottom: 1px solid #eceae2;
}

.section-navy {
  background: linear-gradient(155deg, var(--navy-deep) 0%, var(--navy) 65%, var(--navy-mid) 100%);
  color: #ffffff;
}

.section-header {
  max-width: 680px;
  margin-bottom: 44px;
}

.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.section-title {
  margin: 0 0 12px;
  font-size: 2.45rem;
  line-height: 1.14;
  font-weight: 700;
  color: var(--navy);
}

.section-navy .section-title {
  color: #ffffff;
}

.section-subtitle {
  margin: 0;
  font-size: 1.02rem;
  color: var(--muted);
}

.section-navy .section-subtitle {
  color: #cbd5e7;
}

/* About split */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.about-lead {
  font-size: 1.05rem;
  color: var(--text);
  margin: 0 0 16px;
}

.about-body {
  font-size: 0.96rem;
  color: var(--muted);
  margin: 0 0 26px;
}

.division-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.division-card {
  background: var(--ivory);
  border: 1px solid #e6e2d6;
  border-top: 3px solid var(--gold);
  border-radius: 12px;
  padding: 18px;
}

.division-card h3 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  color: var(--navy);
}

.division-card p {
  margin: 0;
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.55;
}

.about-photo-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.about-photo-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.photo-caption-bar {
  background: var(--navy);
  color: #e2e8f0;
  padding: 12px 18px;
  font-size: 0.84rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.photo-caption-bar strong {
  color: var(--gold-bright);
  font-weight: 600;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #d6c39a;
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #eef2f9;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.service-card h3 {
  margin: 0 0 10px;
  font-size: 1.42rem;
  line-height: 1.2;
  color: var(--navy);
}

.service-card p {
  margin: 0 0 14px;
  font-size: 0.92rem;
  color: var(--muted);
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.service-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--navy-mid);
  background: #f1f4fa;
  padding: 4px 10px;
  border-radius: 999px;
}

/* Photo Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.gallery-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.gallery-img-wrap {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--navy-deep);
}

.gallery-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.gallery-card:hover .gallery-img-wrap img {
  transform: scale(1.03);
}

.gallery-meta {
  padding: 14px 18px 16px;
}

.gallery-meta h3 {
  margin: 0 0 3px;
  font-size: 1.2rem;
  color: var(--navy);
}

.gallery-meta p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(9, 21, 43, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox-inner {
  max-width: 1000px;
  width: 100%;
  position: relative;
  text-align: center;
}

.lightbox-inner img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  color: #e2e8f0;
  margin-top: 14px;
  font-size: 0.98rem;
}

.lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  width: 38px;
  height: 38px;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

/* SMS Announcements Form Card */
.sms-card {
  background: #ffffff;
  color: var(--text);
  border-radius: 18px;
  padding: 36px 38px 40px;
  box-shadow: var(--shadow-lg);
  max-width: 780px;
  margin: 0 auto;
}

.sms-card-top {
  border-bottom: 1px solid var(--border);
  padding-bottom: 18px;
  margin-bottom: 24px;
}

.sms-card-top h3 {
  margin: 0 0 6px;
  font-size: 1.75rem;
  color: var(--navy);
}

.sms-card-top p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--muted);
}

/* Role toggle */
.role-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.role-option {
  position: relative;
}

.role-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.role-option label {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 12px;
  border: 2px solid var(--border);
  border-radius: 11px;
  cursor: pointer;
  background: #ffffff;
  transition: all 0.15s ease;
  text-align: center;
}

.role-name {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--navy);
}

.role-hint {
  font-size: 0.79rem;
  color: var(--muted);
  margin-top: 2px;
}

.role-option input:checked + label {
  border-color: var(--navy);
  background: #eef3fb;
  box-shadow: 0 0 0 3px rgba(15, 33, 64, 0.09);
}

/* Form controls */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.required {
  color: #b91c1c;
}

.form-hint {
  font-size: 0.79rem;
  color: var(--muted);
  margin-top: 5px;
}

input[type="text"],
input[type="tel"],
input[type="email"],
select {
  width: 100%;
  padding: 11px 13px;
  font-family: inherit;
  font-size: 0.95rem;
  border: 1.5px solid #cfd6e3;
  border-radius: 9px;
  background: #ffffff;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
select:focus {
  outline: none;
  border-color: var(--navy-mid);
  box-shadow: 0 0 0 3px rgba(26, 53, 97, 0.12);
}

.school-search {
  margin-bottom: 8px;
}

.hidden {
  display: none !important;
}

/* Grade chips */
.grade-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.grade-chip {
  position: relative;
}

.grade-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.grade-chip label {
  display: inline-block;
  padding: 7px 13px;
  font-size: 0.84rem;
  font-weight: 500;
  border: 1.5px solid #cfd6e3;
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
  user-select: none;
  transition: all 0.12s ease;
}

.grade-chip input:checked + label {
  background: var(--navy);
  border-color: var(--navy);
  color: #ffffff;
}

/* Consent box */
.consent-box {
  background: var(--gold-soft);
  border: 1.5px solid #e2cfa4;
  border-radius: 11px;
  padding: 16px 18px;
  margin: 22px 0;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 0.86rem;
  color: #2b261c;
  line-height: 1.58;
}

.consent-label a {
  text-decoration: underline;
  font-weight: 600;
}

.consent-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--navy);
  cursor: pointer;
}

/* Alerts */
.alert {
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 16px;
  font-size: 0.92rem;
}

.alert-success {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
}

.alert-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

/* Visit Us / Location */
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 32px;
  align-items: stretch;
}

.visit-card {
  background: var(--ivory);
  border: 1px solid #e5e1d5;
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.visit-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.visit-list li {
  padding: 14px 0;
  border-bottom: 1px solid #e5e1d5;
}

.visit-list li:last-child {
  border-bottom: none;
}

.visit-key {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 3px;
}

.visit-val {
  font-size: 0.98rem;
  color: var(--navy);
  font-weight: 600;
}

.visit-note {
  font-size: 0.87rem;
  color: var(--muted);
  margin-top: 3px;
  font-weight: 400;
}

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  min-height: 360px;
  background: #eef2f8;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  display: block;
}

/* Legal pages */
.legal-hero {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-mid) 100%);
  color: #ffffff;
  padding: 48px 24px;
  text-align: center;
}

.legal-hero h1 {
  margin: 0 0 8px;
  font-size: 2.5rem;
}

.legal-hero p {
  margin: 0;
  color: #cbd5e7;
  font-size: 0.96rem;
}

.legal-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 36px 40px;
  margin: 36px auto 64px;
}

.legal-card h2 {
  margin: 26px 0 8px;
  font-size: 1.45rem;
  color: var(--navy);
}

.legal-card p,
.legal-card li {
  font-size: 0.95rem;
  color: var(--text);
}

.legal-card a {
  text-decoration: underline;
}

.highlight-callout {
  background: #eef3fb;
  border-left: 4px solid var(--navy);
  padding: 16px 20px;
  border-radius: 0 10px 10px 0;
  margin: 18px 0;
  font-weight: 600;
  color: var(--navy);
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: #b7c4d9;
  border-top: 3px solid var(--gold);
  padding: 44px 24px 32px;
  font-size: 0.88rem;
}

.footer-grid {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.footer-brand img {
  height: 40px;
  width: auto;
}

.footer-heading {
  color: #ffffff;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 12px;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links-col a {
  color: #cbd5e7;
}

.footer-links-col a:hover {
  color: var(--gold-bright);
}

.footer-bottom {
  max-width: 1160px;
  margin: 20px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: #8b9bb6;
}

/* Responsive */
@media (max-width: 960px) {
  .quick-bar-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid,
  .visit-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .services-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-card.featured {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .site-header {
    position: static;
  }
  section[id] {
    scroll-margin-top: 16px;
  }
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 2.35rem;
  }
  .hero-content {
    padding: 58px 20px 66px;
  }
  .section {
    padding: 56px 0;
  }
  .section-title {
    font-size: 1.95rem;
  }
  .quick-bar-grid,
  .services-grid,
  .gallery-grid,
  .division-cards,
  .form-row {
    grid-template-columns: 1fr;
  }
  .gallery-card.featured {
    grid-column: span 1;
  }
  .sms-card,
  .legal-card {
    padding: 24px 18px;
  }
  .brand-divider {
    display: none;
  }
}
