:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-strong: #0f172a;
  --text: #0f172a;
  --muted: #475569;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --border: rgba(15, 23, 42, 0.08);
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}

img {
  max-width: 100%;
  display: block;
}

button,
a {
  font: inherit;
}

.container {
  width: min(1140px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  background: rgba(255,255,255,0.96);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--surface-strong);
  font-size: 1.15rem;
}

.site-logo {
  width: 2.3rem;
  height: 2.3rem;
  display: block;
  border-radius: 50%;
}

.site-logo + span {
  display: inline-block;
}

.site-motto {
  display: block;
  font-size: 0.75rem;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.site-nav a.active,
.site-nav a:hover {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  background: white;
  color: var(--surface-strong);
  padding: 0.65rem 1rem;
  border-radius: 999px;
}

.hero {
  padding: 5rem 0 3rem;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.hero h1,
.page-banner h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
}

.hero p,
.page-banner p,
.content-block p,
.stats-section p,
.feature-panel p,
.event-card p,
.staff-card p,
.class-card p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 18px 35px rgba(37, 99, 235, 0.16);
}

.button-secondary {
  border: 1px solid var(--primary);
  color: var(--primary);
  background: white;
}

.hero-card {
  background: linear-gradient(180deg, rgba(37,99,235,.12), rgba(255,255,255,0.95));
  border: 1px solid var(--border);
  border-radius: 2rem;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.hero-card h2 {
  margin-top: 0;
}

.hero-card ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.85rem;
}

.hero-card li {
  background: rgba(255,255,255,0.9);
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(37,99,235,0.12);
}

.overview,
.feature-grid,
.stats-section,
.calendar-section,
.content-section {
  padding: 3rem 0;
}

.overview {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.overview-card,
.feature-panel,
.stat-card,
.event-card,
.staff-card,
.class-card,
.calendar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.06);
}

.overview-icon {
  font-size: 1.8rem;
  display: inline-flex;
  margin-bottom: 1rem;
}

.feature-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cta-panel {
  padding: 3rem 0;
  background: linear-gradient(180deg, rgba(37,99,235,.12), rgba(255,255,255,0.95));
}

.cta-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 2rem 0;
}

.page-banner {
  padding: 4rem 0;
  background: linear-gradient(180deg, #ffffff, #f1f5f9);
}

.page-banner-about { background-image: radial-gradient(circle at top right, rgba(37, 99, 235,0.16), transparent 28%); }
.page-banner-events { background-image: radial-gradient(circle at top left, rgba(59, 130, 246,0.14), transparent 26%); }
.page-banner-calendar { background-image: radial-gradient(circle at top right, rgba(16, 185, 129,0.14), transparent 24%); }
.page-banner-classes { background-image: radial-gradient(circle at top left, rgba(234, 88, 12,0.14), transparent 22%); }
.page-banner-staff { background-image: radial-gradient(circle at top right, rgba(168, 85, 247,0.14), transparent 20%); }
.page-banner-contact { background-image: radial-gradient(circle at top right, rgba(56, 189, 248,0.14), transparent 24%); }
.page-banner-leave { background-image: radial-gradient(circle at top left, rgba(236, 72, 153,0.14), transparent 24%); }
.page-banner-kindergarten { background-image: radial-gradient(circle at top left, rgba(253, 224, 71,0.12), transparent 26%); }

.kindergarten-section .content-block {
  max-width: 48rem;
}


.content-section {
  display: grid;
  gap: 1.5rem;
}

.content-block {
  max-width: 56rem;
}

.feature-list,
.footer-nav,
.event-list,
.staff-grid,
.grid-classes,
.subject-table {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  margin-bottom: 0.75rem;
}

.stats-grid,
.staff-grid,
.grid-classes {
  display: grid;
  gap: 1.5rem;
}

.stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.staff-grid,
.grid-classes {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.event-list {
  display: grid;
  gap: 1.25rem;
}

.event-card {
  position: relative;
}

.event-gallery {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 2rem;
}

.event-image,
.gallery-image {
  width: 100%;
  height: 308px; /* increased by 40% from 220px */
  border-radius: 1.5rem;
  display: block;
  object-fit: cover;
  /* fixed height ensures uniform display across the gallery */
}

img.staff-photo {
  width: 100%;
  height: 364px; /* increased by 40% from 260px */
  border-radius: 1.5rem;
  object-fit: cover;
  display: block;
}

.event-video,
.video-facade {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
}

.video-facade {
  overflow: hidden;
  background: #0f172a;
}

.video-play {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.video-play img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play::after {
  content: '';
  position: absolute;
  inset: 50% auto auto 50%;
  width: 4.25rem;
  height: 3rem;
  transform: translate(-50%, -50%);
  border-radius: 0.9rem;
  background: rgba(220, 38, 38, 0.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 1.6rem no-repeat;
  transition: transform 0.2s ease;
}

.video-play:hover::after,
.video-play:focus-visible::after {
  transform: translate(-50%, -50%) scale(1.08);
}

.image-placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
  color: var(--muted);
  font-weight: 600;
}

.gallery-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.5rem;
}

.event-date {
  display: inline-flex;
  background: var(--primary);
  color: white;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.staff-card {
  display: grid;
  gap: 0.5rem;
  align-content: start;
}

.staff-card h3,
.staff-card p {
  margin: 0;
}

.staff-card h3 {
  margin-top: 0.75rem;
}

.staff-photo {
  min-height: 308px; /* increased by 40% from 220px */
  border-radius: 1.5rem;
  background: linear-gradient(135deg, #2563eb 0%, #60a5fa 100%);
  display: grid;
  place-items: center;
  color: white;
  font-weight: 800;
  font-size: 1.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background-size: cover;
  background-position: center;
  position: relative;
}

.staff-photo.has-image {
  color: transparent;
}

.upload-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 1px dashed var(--border);
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.03);
  color: var(--muted);
  cursor: pointer;
}

.upload-label input {
  display: none;
}

.staff-avatar {
  width: 3.5rem;
  height: 3.5rem;
  display: grid;
  place-items: center;
  border-radius: 1rem;
  background: var(--primary);
  color: white;
  font-weight: 800;
}

.subject-table {
  margin-top: 2rem;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--border);
}

.subject-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--border);
  background: white;
}

.subject-row.header-row {
  background: rgba(37, 99, 235, 0.05);
  font-weight: 700;
}

.subject-row:last-child {
  border-bottom: none;
}

.calendar-card {
  max-width: 760px;
  margin: 0 auto;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.calendar-header button {
  border: 1px solid var(--border);
  background: white;
  color: var(--surface-strong);
  padding: 0.85rem 1rem;
  border-radius: 0.95rem;
  font-size: 1.2rem;
}

.calendar-header span {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
}

.calendar-header p {
  margin: 0.15rem 0 0;
  color: var(--muted);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 1rem;
}

.calendar-grid span {
  display: grid;
  place-items: center;
  min-height: 3rem;
  border-radius: 1rem;
  font-weight: 600;
}

.calendar-grid .day-label {
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
}

.calendar-day {
  background: white;
  border: 1px solid var(--border);
}

.calendar-day.today {
  background: rgba(37, 99, 235, 0.15);
  border-color: var(--primary);
}

.calendar-day.empty {
  background: transparent;
  border-color: transparent;
}

.calendar-day.event {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10b981;
  min-height: 3rem;
  border-radius: 1rem;
  font: inherit;
  font-weight: 600;
  color: inherit;
  cursor: pointer;
}

.calendar-day.event:hover {
  transform: translateY(-1px);
  transition: transform 0.2s ease;
}

.event-detail-panel {
  margin-top: 1.5rem;
  padding: 1.6rem;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  background: white;
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.05);
}

.event-detail-panel h3 {
  margin-top: 0;
}

.calendar-key {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.4rem;
  color: var(--muted);
}

.key-dot {
  width: 0.85rem;
  height: 0.85rem;
  display: inline-block;
  border-radius: 50%;
  margin-right: 0.55rem;
}

.key-event { background: #10b981; }
.key-today { background: var(--primary); }

.form-section {
  padding: 3rem 0;
}

.form-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-field {
  display: grid;
  gap: 0.75rem;
}

.form-field label {
  font-weight: 600;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem;
  font: inherit;
  background: white;
  color: var(--surface-strong);
}

.form-field textarea {
  min-height: 140px;
}

.form-span-2 {
  grid-column: span 2;
}

.message-note {
  grid-column: span 2;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.form-response {
  grid-column: span 2;
  min-height: 2rem;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  font-weight: 600;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-response.is-error { color: #b91c1c; }
.form-response.is-success { color: #047857; }

button[type="submit"] {
  border: 0;
  cursor: pointer;
}

button[type="submit"]:disabled {
  opacity: 0.65;
  cursor: progress;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.45);
  outline-offset: 2px;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr auto;
  align-items: start;
  padding: 2rem 0;
}

.footer-nav a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 0.65rem;
}

.footer-nav a:hover {
  color: var(--primary);
}

@media (max-width: 900px) {
  .overview,
  .feature-grid,
  .stats-grid,
  .staff-grid,
  .grid-classes,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-span-2,
  .message-note,
  .form-response {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    width: 100%;
    flex-direction: column;
    display: none;
    margin-top: 1rem;
  }

  .site-nav.open {
    display: flex;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .calendar-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .subject-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .hero,
  .page-banner {
    padding: 3rem 0 2rem;
  }

  .calendar-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
