:root {
  /* Pre-K 4 SA-inspired palette: teal, sky blue, green, gold, white */
  --navy: #143f52;
  --teal: #038391;
  --teal-dark: #056b76;
  --sky: #a1cbc9;
  --sky-light: #e8f5f4;
  --green: #068460;
  --green-light: #dff1e8;
  --gold: #f7d002;
  --light-blue: #add8e6;
  --navy-blue: #000080;
  --logo-gold: #d4af37;
  --cream: #fffdf4;
  --white: #ffffff;
  --text: #2f454d;
  --muted: #61747b;
  --border: rgba(20, 63, 82, 0.14);
  --shadow: 0 12px 30px rgba(20, 63, 82, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background:
    linear-gradient(
      112deg,
      transparent 0 18%,
      rgba(212, 175, 55, 0.16) 18.1% 18.25%,
      transparent 18.4% 100%
    ),
    linear-gradient(
      68deg,
      transparent 0 72%,
      rgba(212, 175, 55, 0.12) 72.1% 72.25%,
      transparent 72.4% 100%
    ),
    linear-gradient(180deg, var(--light-blue) 0%, var(--navy-blue) 100%);
  background-attachment: fixed;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1100;
  padding: 0.75rem 1rem;
  color: var(--navy);
  background: var(--gold);
  border-radius: 6px;
  font-weight: 800;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
  outline: 3px solid var(--white);
  outline-offset: 3px;
}

.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.25rem 1rem 0.5rem;
}

.logo-container a {
  display: inline-flex;
}

.logo-image {
  width: auto;
  height: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 0.85rem clamp(1rem, 4vw, 3.5rem);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 18px rgba(20, 63, 82, 0.06);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.header-logo {
  width: clamp(145px, 18vw, 235px);
  height: 72px;
  object-fit: contain;
}

.nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 1.4rem;
}

.nav a {
  position: relative;
  padding: 0.55rem 0.15rem;
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.2rem;
  height: 3px;
  border-radius: 999px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s ease;
}

.nav a:hover::after,
.nav a.active::after {
  transform: scaleX(1);
}

/* General layout */
main {
  width: 100%;
}

.hero {
  min-height: auto;
  padding: clamp(3.5rem, 7vw, 6rem) 1rem;
  background: transparent;
  text-align: center;
}

.hero-content {
  width: min(100%, 900px);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero-eyebrow,
.section-label {
  margin-bottom: 0.55rem;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.hero h2,
.section h2,
.section-heading h2 {
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.15;
}

.hero h1,
.hero h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.3rem, 6vw, 4.25rem);
}

.hero p {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text);
  font-size: clamp(1rem, 2vw, 1.16rem);
}

.hero > h2,
.hero > p {
  color: var(--white);
  text-shadow:
    0 2px 3px rgba(0, 0, 0, 0.58),
    0 0 1px var(--navy-blue);
}

.hero > h2 {
  -webkit-text-stroke: 0.35px rgba(0, 0, 128, 0.65);
}

.hero p + p {
  margin-top: 1rem;
}

.construction-notice {
  padding: 1rem 1.2rem;
  background: var(--green-light);
  border-left: 5px solid var(--green);
  border-radius: 10px;
}

.hero-actions,
.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.7rem;
}

.section,
.services-section {
  width: min(calc(100% - 2rem), 1050px);
  margin: clamp(2.5rem, 6vw, 5rem) auto;
}

.section {
  padding: clamp(2rem, 5vw, 3.5rem);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.section h2,
.section-heading h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.section p + p {
  margin-top: 1rem;
}

.section ul {
  padding-left: 1.5rem;
}

.section li {
  margin-bottom: 0.65rem;
}

.about-list {
  margin-top: 1rem;
}

/* Home feature section */
.feature-section {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.75fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.feature-content {
  min-width: 0;
}

.feature-content p + p {
  margin-top: 1rem;
}

.feature-visual {
  display: flex;
  justify-content: center;
}

.decorative-note {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(100%, 220px);
  aspect-ratio: 0.82;
  padding: 2rem;
  text-align: center;
  color: var(--navy);
  background: linear-gradient(155deg, var(--sky-light) 0%, var(--sky) 42%, var(--teal) 100%);
  border: 8px solid var(--white);
  border-radius: 50% 50% 50% 0;
  box-shadow: var(--shadow);
  transform: rotate(-45deg);
  overflow: hidden;
}

.decorative-note span {
  position: relative;
  display: block;
  color: var(--teal);
  font-family: Georgia, serif;
  font-size: 4rem;
  line-height: 1;
  transform: rotate(45deg);
}

.decorative-note p {
  position: relative;
  font-weight: 700;
  transform: rotate(45deg);
}

@media (min-width: 781px) {
  .decorative-note span {
    position: absolute;
    top: 1.25rem;
    left: 2.6rem;
  }

  .decorative-note p {
    max-width: 11rem;
    margin: 3.5rem auto 0;
  }
}

/* Services */
.section-heading {
  max-width: 700px;
  margin: 0 auto 2.4rem;
  padding: 1.5rem;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  text-align: center;
}

.section-heading .section-label {
  color: var(--green);
}

.section-heading h2 {
  color: var(--navy);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
}

@media (min-width: 781px) {
  .service-card:last-child {
    grid-column: 1 / -1;
    width: calc((100% - 1.35rem) / 2);
    justify-self: center;
  }
}

.events-section {
  text-align: left;
}

.event-list {
  display: grid;
  gap: 1.25rem;
}

.event-card {
  display: grid;
  grid-template-columns: 110px minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 6px solid var(--teal);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

@media (min-width: 781px) {
  .event-card--stacked-image {
    grid-template-columns: 110px minmax(0, 1fr);
  }
}

.event-card:nth-child(even) {
  border-left-color: var(--green);
}

.event-date {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 110px;
  padding: 0.8rem 0.5rem;
  color: var(--navy);
  background: linear-gradient(180deg, var(--sky-light) 0%, var(--sky) 100%);
  border-radius: 14px;
  text-align: center;
}

.event-date span {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-date strong {
  font-size: clamp(2rem, 4vw, 2.5rem);
  line-height: 1;
}

.event-details {
  min-width: 0;
}

.event-details h3 {
  margin-bottom: 0.65rem;
  color: var(--navy);
  font-size: 1.4rem;
}

.event-details p {
  margin: 0;
}

.event-meta {
  margin: 0.9rem 0 1rem;
  padding-left: 1.1rem;
  color: var(--muted);
  font-weight: 700;
  list-style: disc;
}

.event-meta li + li {
  margin-top: 0.2rem;
}

.event-image {
  width: 100%;
  height: auto;
}

.service-card {
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 6px solid var(--teal);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.service-card:nth-child(even) {
  border-top-color: var(--green);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1.1rem;
  color: var(--navy);
  background: var(--gold);
  border-radius: 50%;
  font-size: 1.55rem;
}

.service-card h3 {
  margin-bottom: 0.7rem;
  color: var(--navy);
}

/* About page: always normal vertical reading orientation */
.about-hero {
  text-align: left;
}

.about-content {
  width: min(100%, 960px);
}

.about-content .hero-eyebrow,
.about-content h1 {
  text-align: center;
}

.about-page > .hero .hero-content,
.about-page > .section {
  width: min(calc(100% - 2rem), 1050px);
}

.about-page > .hero .hero-content > p {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

@media (min-width: 781px) {
  .hero h1.about-page-title {
    font-size: clamp(2rem, 4vw, 3.1rem);
    white-space: nowrap;
  }
}

.about-biography {
  max-width: 800px;
  margin: 2rem auto 0;
  column-count: 1;
  columns: auto;
}

.about-biography p {
  max-width: none;
  margin: 0;
  color: var(--text);
  font-size: 1.04rem;
  line-height: 1.85;
  text-align: left;
}

.about-biography p + p {
  margin-top: 1.2rem;
}

.publications-section {
  text-align: center;
}

.coming-soon {
  display: inline-block;
  margin-top: 1.3rem;
  padding: 0.75rem 1.15rem;
  color: var(--navy);
  background: #fff5ad;
  border-radius: 999px;
  font-weight: 800;
}

/* Buttons */
.cta-section {
  text-align: center;
}

.cta-intro {
  max-width: 620px;
  margin: 0 auto;
}

.cta-button {
  display: inline-block;
  margin: 0;
  padding: 0.85rem 1.45rem;
  color: var(--white);
  background: var(--teal);
  border: 2px solid var(--teal);
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.cta-button:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(3, 131, 145, 0.2);
}

.cta-button.secondary {
  color: var(--navy);
  background: var(--gold);
  border-color: var(--gold);
}

.cta-button.secondary:hover {
  background: #e5c300;
  border-color: #e5c300;
}

.message-board {
  max-width: 680px;
  margin: 1.5rem auto 0;
  padding: 1rem 1.25rem;
  color: var(--navy);
  background: var(--sky-light);
  border-left: 5px solid var(--teal);
  border-radius: 10px;
  font-weight: 700;
}

/* Footer */
.footer {
  margin-top: 5rem;
  padding: 2.8rem 1rem;
  color: var(--white);
  background: var(--navy);
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-icon {
  padding: 0.6rem 1rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.social-icon:hover {
  background: var(--teal);
}

/* Reveal animation: only elements with .reveal are initially hidden */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}

.reveal.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.clicked {
  transform: scale(0.97);
}

@media (max-width: 780px) {
  .site-header {
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.65rem 1rem 0.8rem;
  }

  .header-logo {
    height: 58px;
  }

  .nav {
    justify-content: center;
    gap: 0.2rem 1rem;
  }

  .hero {
    padding: 2.5rem 1rem;
  }

  .hero-content {
    padding: 2rem 1.25rem;
  }

  .feature-section,
  .services-grid,
  .event-card {
    grid-template-columns: 1fr;
  }

  .feature-visual {
    order: -1;
  }

  .event-card {
    padding: 1.25rem;
  }

  .event-date {
    min-height: 84px;
  }

  .event-image {
    width: min(100%, 260px);
    justify-self: center;
  }
}

@media (max-width: 500px) {
  .nav {
    font-size: 0.92rem;
  }

  .hero-actions,
  .cta-actions {
    flex-direction: column;
  }

  .cta-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
