/* Trompsburg Prim�re Skool � warm modern parent-first styles */
:root {
  --color-maroon: #6b1e2a;
  --color-green: #1b5e3b;
  --color-gold: #c9a227;
  --color-cream: #fafaf8;
  --color-green-tint: #f0f5f2;
  --color-text: #1a1a1a;
  --color-text-inv: #ffffff;
  --color-muted: #4a4a4a;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --font: "Nunito Sans", system-ui, sans-serif;
  --font-display: "Fredoka", "Nunito Sans", system-ui, sans-serif;
  --max: 72rem;
  --header-h: 0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-cream);
  text-align: center;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

a {
  color: var(--color-green);
}

a:hover {
  color: var(--color-maroon);
}

:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-gold);
  color: var(--color-text);
  padding: 0.75rem 1rem;
  z-index: 1000;
  font-weight: 700;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand-bar {
  background:
    linear-gradient(
      125deg,
      #5a1822 0%,
      var(--color-maroon) 42%,
      #7a2a38 72%,
      #1b5e3b 160%
    );
  color: var(--color-text-inv);
  border-bottom: 3px solid var(--color-gold);
}

.brand-bar__inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
}

.brand-bar__logo-wrap {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  padding: 0.35rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #fff8dc 0%, #f0e2a0 35%, var(--color-gold) 100%);
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.22),
    0 8px 20px rgba(0, 0, 0, 0.28);
}

.brand-bar__logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.brand-bar__text {
  min-width: 0;
}

.brand-bar__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 4.2vw, 1.85rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: #ffe082;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .brand-bar__name {
    background: linear-gradient(
      100deg,
      #fffef5 0%,
      #ffe082 38%,
      #ffffff 62%,
      var(--color-gold) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}

.brand-bar__motto {
  margin: 0.3rem 0 0;
  font-family: var(--font-display);
  color: #ffe9a0;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-toggle {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  background: transparent;
  color: var(--color-text-inv);
  cursor: pointer;
}

.nav-toggle__icon {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  position: relative;
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: currentColor;
}

.nav-toggle__icon::before {
  top: -6px;
}

.nav-toggle__icon::after {
  top: 6px;
}

.nav-bar {
  background: var(--color-green);
}

.nav-bar__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1rem;
}

.site-nav {
  display: none;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0.5rem 0 0.75rem;
  gap: 0.25rem;
}

.site-nav.is-open {
  display: flex;
}

.site-nav a {
  display: block;
  min-height: 44px;
  padding: 0.65rem 0.75rem;
  color: var(--color-text-inv);
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  text-align: center;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.12);
}

.site-nav a[aria-current="page"] {
  box-shadow: inset 0 -3px 0 var(--color-gold);
}

.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--color-green-tint);
  padding: 2rem 1rem 2.25rem;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: -20% 40% -40% -10%;
  background: linear-gradient(
    135deg,
    rgba(27, 94, 59, 0.12),
    rgba(107, 30, 42, 0.08)
  );
  transform: rotate(-8deg);
  pointer-events: none;
}

.page-hero__inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-maroon);
}

.page-hero p {
  margin: 0 auto;
  max-width: 40rem;
  color: var(--color-muted);
  font-size: 1.05rem;
}

/* Image-only banners — full photo visible, no text overlay */
.page-banner {
  margin: 0;
  padding: 0;
  background: #1a2e24;
  line-height: 0;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-banner__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  object-fit: cover;
  object-position: center;
}

.page-intro {
  background: var(--color-green-tint);
  padding: 1.75rem 1rem 2rem;
  text-align: center;
}

.page-intro__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.page-intro h1 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-maroon);
}

.home .page-intro {
  background:
    linear-gradient(
      180deg,
      #fff9e8 0%,
      var(--color-green-tint) 55%,
      #e8f2ec 100%
    );
  padding: 2.25rem 1rem 2.5rem;
}

.home .page-intro h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 5.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-maroon);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .home .page-intro h1 {
    background: linear-gradient(
      105deg,
      var(--color-maroon) 0%,
      #8b2e3c 28%,
      var(--color-green) 62%,
      #c9a227 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}

.home .page-intro__lead {
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  max-width: 36rem;
  color: var(--color-muted);
}

.page-intro p {
  margin: 0 auto;
  max-width: 40rem;
  color: var(--color-muted);
  font-size: 1.05rem;
}

.page-intro .page-intro__lead {
  font-size: 1.1rem;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1rem;
}

.section {
  padding: 2rem 1rem;
}

.section--tint {
  background: var(--color-green-tint);
}

.section__inner {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
}

.section h2 {
  margin: 0 0 0.75rem;
  font-size: 1.4rem;
  color: var(--color-maroon);
}

.section h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.15rem;
  color: var(--color-green);
}

.section p {
  margin: 0 0 1rem;
  color: var(--color-muted);
}

.section p:last-child {
  margin-bottom: 0;
}

.list-clean {
  margin: 0 auto 1rem;
  padding: 0;
  color: var(--color-muted);
  display: inline-block;
  text-align: center;
  list-style-position: inside;
  max-width: 36rem;
}

.list-clean li {
  margin-bottom: 0.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn--gold {
  background: var(--color-gold);
  color: var(--color-text);
}

.btn--gold:hover {
  background: #b58f1d;
  color: var(--color-text);
}

.btn--outline {
  background: transparent;
  border: 2px solid var(--color-gold);
  color: var(--color-text-inv);
}

.btn--outline:hover {
  background: var(--color-gold);
  color: var(--color-text);
}

.hero-actions {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.card-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.35rem;
  border-top: 4px solid var(--color-gold);
  text-decoration: none;
  color: inherit;
  display: block;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

a.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  color: inherit;
}

.card h3 {
  margin: 0 0 0.4rem;
  color: var(--color-green);
  font-size: 1.15rem;
}

.card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.98rem;
}

.staff-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.staff-member {
  text-align: center;
}

.staff-member__photo {
  aspect-ratio: 1;
  width: 100%;
  max-width: 220px;
  margin: 0 auto 0.85rem;
  border-radius: var(--radius);
  background: linear-gradient(
    145deg,
    rgba(107, 30, 42, 0.12),
    rgba(27, 94, 59, 0.1)
  );
  overflow: hidden;
}

.staff-member__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.staff-member__name {
  margin: 0 0 0.25rem;
  color: var(--color-green);
  font-size: 1.1rem;
}

.staff-member__role {
  margin: 0 0 0.4rem;
  color: var(--color-maroon);
  font-weight: 600;
  font-size: 0.95rem;
}

.staff-member__bio {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.values-strip {
  background: var(--color-green);
  color: var(--color-text-inv);
  padding: 2rem 1rem;
  text-align: center;
}

.values-strip__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.values-strip h2 {
  margin: 0 0 0.5rem;
  color: var(--color-text-inv);
}

.values-strip .motto {
  color: var(--color-gold);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.values-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.75rem;
}

.values-list li {
  background: rgba(255, 255, 255, 0.12);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
}

.cta-band {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--color-maroon);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

.cta-band h2 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--color-maroon);
}

.cta-band p {
  margin: 0.35rem 0 0;
  color: var(--color-muted);
}

.contact-grid {
  display: grid;
  gap: 1.5rem;
}

.contact-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.35rem;
  border-top: 4px solid var(--color-gold);
  text-align: center;
}

.contact-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
  color: var(--color-maroon);
}

.contact-card dl {
  margin: 0 auto;
  max-width: 24rem;
  text-align: center;
}

.contact-card dt {
  font-weight: 700;
  color: var(--color-green);
  margin-top: 0.75rem;
}

.contact-card dd {
  margin: 0.2rem 0 0;
  color: var(--color-muted);
}

.contact-card a {
  font-weight: 600;
}

.map-embed {
  border: 0;
  width: 100%;
  min-height: 280px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form {
  display: grid;
  gap: 1rem;
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--color-text);
  text-align: center;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.6rem 0.75rem;
  border: 1px solid #cfd5d1;
  border-radius: 8px;
  font: inherit;
  background: #fff;
  color: var(--color-text);
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.form-note {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin: 0;
}

.site-footer {
  background: var(--color-maroon);
  color: rgba(255, 255, 255, 0.92);
  padding: 2rem 1rem 1.5rem;
  margin-top: 1rem;
}

.site-footer a {
  color: var(--color-gold);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
  text-align: center;
}

.site-footer h2 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--color-text-inv);
}

.site-footer p,
.site-footer li {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}

.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav li {
  margin-bottom: 0.35rem;
}

.site-footer__bottom {
  max-width: var(--max);
  margin: 1.5rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  font-size: 0.9rem;
}

.site-footer__bottom .motto {
  color: var(--color-gold);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.visit-counter {
  margin: 0.65rem 0 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.78);
}

.visit-counter strong {
  color: var(--color-gold);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.visit-counter--map {
  margin-top: 0.85rem;
}

.visit-counter--map a {
  display: inline-block;
  line-height: 0;
}

.visit-counter--map img {
  margin: 0 auto;
  border: 1px solid rgba(201, 162, 39, 0.45);
  border-radius: 8px;
  background: #fff;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(201, 162, 39, 0.55);
  border-radius: 8px;
  font-weight: 600;
}

.download-box {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--color-green);
  padding: 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: center;
  text-align: center;
}

.download-box h2 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--color-maroon);
}

.download-box p {
  margin: 0;
  color: var(--color-muted);
}

.bank-details {
  background: var(--color-green-tint);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin-top: 1rem;
  text-align: center;
}

.bank-details p {
  margin: 0 0 0.4rem;
}

.bank-details strong {
  color: var(--color-green);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .card,
  .btn {
    transition: none;
  }

  a.card:hover {
    transform: none;
  }
}

@media (min-width: 640px) {
  .brand-bar__logo-wrap {
    width: 112px;
    height: 112px;
    padding: 0.4rem;
  }

  .brand-bar__inner {
    padding: 1rem 1.25rem;
    gap: 1.25rem;
  }

  .brand-bar__motto {
    font-size: 1.05rem;
    letter-spacing: 0.18em;
  }

  .page-intro h1,
  .page-hero h1 {
    font-size: 2.1rem;
  }

  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .staff-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__inner {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

@media (min-width: 880px) {
  .nav-toggle {
    display: none;
  }

  .brand-bar__inner {
    padding: 1.1rem 2rem;
  }

  .nav-bar__inner {
    padding: 0 2rem;
  }

  .site-nav {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: 0.15rem;
    padding: 0;
  }

  .site-nav a {
    padding: 0.85rem 0.9rem;
  }

  .page-intro,
  .section,
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .page-intro h1,
  .page-hero h1 {
    font-size: 2.25rem;
  }

  .cta-band {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
}
