:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f5f7fb;
  --ink: #1e2a44;
  --muted: #5a667f;
  --primary: #2d75ff;
  --primary-dark: #1f5ed9;
  --accent: #ffcc66;
  --accent-2: #8fd3ff;
  --line: #e2e8f3;
  --shadow: 0 20px 40px rgba(30, 42, 68, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --max-width: 1120px;
  --header-offset: 88px;
  --font-display: "Fredoka", "Trebuchet MS", "Arial Rounded MT Bold", sans-serif;
  --font-body: "Nunito", "Verdana", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

:focus-visible {
  outline: 3px solid rgba(45, 117, 255, 0.35);
  outline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
textarea:focus-visible {
  border-radius: 6px;
}

button {
  font-family: inherit;
  color: inherit;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 16px;
  background: var(--primary);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 999;
}

.skip-link:focus {
  left: 16px;
}

.page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 0;
}

.page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #f7f9fc 0%, #ffffff 35%, #ffffff 100%);
  z-index: -2;
}

.page::after {
  display: none;
}

.container {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
}

main {
  flex: 1;
}

.section {
  padding: 88px 0;
}

section[id] {
  scroll-margin-top: var(--header-offset);
}

.section--muted {
  background: transparent;
}

.section--accent {
  background: transparent;
  border-top: none;
  border-bottom: none;
}

.section--cta {
  background: linear-gradient(110deg, #2d75ff, #66a0ff);
  color: #fff;
}

.section__header {
  max-width: 640px;
  margin-bottom: 36px;
}

.section__lead {
  color: var(--muted);
  margin-top: 12px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--primary);
  margin-bottom: 12px;
  font-weight: 600;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(2.8rem, 4vw, 3.7rem);
  line-height: 1.15;
}

h2 {
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 1.2;
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0 0 16px;
}

.muted {
  color: var(--muted);
  font-size: 0.95rem;
}

.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(215, 224, 243, 0.8);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand__logo {
  height: 64px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
}

.brand__mark {
  width: 40px;
  height: 40px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.brand__text {
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 8px 14px;
  gap: 8px;
  align-items: center;
  cursor: pointer;
}

.nav-toggle__text {
  font-weight: 600;
}

.nav-toggle__icon {
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
  display: inline-block;
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 2px;
  background: var(--ink);
  left: 0;
}

.nav-toggle__icon::before {
  top: -6px;
}

.nav-toggle__icon::after {
  top: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-weight: 600;
}

.nav-backdrop {
  display: none;
}


.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 16px 30px rgba(45, 117, 255, 0.2);
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: none;
}

.btn--ghost:hover {
  background: rgba(45, 117, 255, 0.1);
}

.btn--small {
  padding: 9px 18px;
  font-size: 0.95rem;
}

.btn--light {
  background: var(--surface);
  color: var(--primary-dark);
  box-shadow: none;
}

.hero {
  padding-top: 100px;
}

.hero__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  align-items: center;
}

.hero__content .lead {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 24px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 26px;
}

.hero__note {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.hero__visual {
  position: relative;
  min-height: 420px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
}

.hero__media {
  margin: 0;
  width: 100%;
  height: 100%;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--line);
  box-shadow: 0 16px 28px rgba(30, 42, 68, 0.08);
}

.card p {
  color: var(--muted);
}

.card--program ul {
  padding-left: 18px;
  color: var(--muted);
}

.curriculum-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.curriculum-grid ul {
  padding-left: 18px;
  color: var(--muted);
  margin: 0;
}

.curriculum-grid li {
  margin-bottom: 6px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.gallery-item {
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 14px 24px rgba(30, 42, 68, 0.08);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.section--split {
  background: var(--bg);
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
}

.split__panel {
  display: grid;
  gap: 24px;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pill-list span {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  font-weight: 600;
}

.quote-card {
  background: var(--surface-soft);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--line);
}

.quote-card__title {
  font-weight: 700;
  margin-top: 0;
}

.quote-card__name {
  margin-top: 16px;
  font-weight: 600;
  color: var(--primary);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.stat {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  padding: 18px;
  text-align: center;
}

.stat__value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}

.stat__label {
  margin: 0;
  color: var(--muted);
}

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

.timeline {
  display: grid;
  gap: 20px;
}

.timeline__item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  padding: 16px 20px;
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
}

.timeline__time {
  font-weight: 700;
  color: var(--primary);
}

.testimonial-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.testimonial-card {
  background: var(--surface);
  border-radius: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
  min-height: 220px;
}

.testimonial-card__quote {
  color: var(--ink);
  font-weight: 600;
  line-height: 1.6;
  position: relative;
  padding-left: 24px;
}

.testimonial-card__quote span {
  position: absolute;
  left: 0;
  top: -6px;
  font-size: 2rem;
  color: var(--primary);
}

.testimonial-card__author {
  display: grid;
  gap: 4px;
}

.testimonial-card__name {
  margin: 0;
  font-weight: 700;
  color: var(--ink);
}

.testimonial-card__role {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 40px;
  align-items: stretch;
}

.contact__intro {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  max-width: 680px;
}

.contact__intro>* {
  margin: 0;
}

.contact__cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 0;
  height: 100%;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: grid;
  gap: 8px;
  box-shadow: var(--shadow);
  flex: 1;
}

.contact-card h3 {
  margin: 0;
  font-size: 0.8rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.contact-card__body {
  display: grid;
  gap: 6px;
}

.contact-card__body p {
  margin: 0;
  color: var(--ink);
  line-height: 1.5;
}

.contact-card__body p:first-child {
  font-weight: 700;
}

.contact-card__body .muted {
  font-size: 0.88rem;
  color: var(--muted);
}

.contact-card__body a {
  color: var(--primary-dark);
  font-weight: 700;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.contact-card a {
  color: inherit;
  font-weight: inherit;
}

.contact__form {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: 28px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

.contact__form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.contact__form input,
.contact__form textarea {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
}

.contact__form input:focus,
.contact__form textarea:focus {
  outline: 2px solid rgba(45, 117, 255, 0.2);
  border-color: var(--primary);
}

.contact__form input::placeholder,
.contact__form textarea::placeholder {
  color: color-mix(in srgb, var(--muted) 85%, transparent);
}

.form-note {
  color: var(--muted);
  margin: 0;
  font-size: 0.9rem;
}

.hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}

.footer__links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer p {
  margin: 0 0 10px;
}

.footer p:last-child {
  margin-bottom: 0;
}

.footer__logo {
  height: 56px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  margin-bottom: 12px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1050px) {

  .hero__grid,
  .split,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    min-height: 360px;
  }

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

  .card-grid--programs,
  .testimonial-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

@media (max-width: 800px) {
  body.nav-open {
    overflow: hidden;
  }

  .nav {
    position: relative;
    flex-wrap: nowrap;
    padding: 12px 0;
    gap: 16px;
  }

  .nav-toggle {
    display: inline-flex;
    padding: 6px 12px;
  }

  .nav-toggle__text {
    font-size: 0.95rem;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(30, 42, 68, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 19;
  }

  body.nav-open .nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: var(--shadow);
    max-height: calc(100vh - var(--header-offset) - 24px);
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links a:not(.btn) {
    display: block;
    width: 100%;
    padding: 12px 10px;
    border-radius: 12px;
  }

  .nav-links a:not(.btn):hover {
    background: var(--surface-soft);
  }

  .nav-links .btn {
    width: 100%;
    justify-content: center;
  }

  .nav.is-open .nav-links {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .brand__logo {
    height: 50px;
  }

  .section {
    padding: 72px 0;
  }

  h1 {
    font-size: clamp(2.2rem, 7vw, 2.8rem);
  }

  h2 {
    font-size: clamp(1.7rem, 6vw, 2.2rem);
  }

  .hero__content .lead {
    font-size: 1rem;
  }

  .footer__logo {
    height: 52px;
  }

  .hero__visual {
    min-height: 320px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .card-grid,
  .card-grid--programs,
  .testimonial-stack,
  .curriculum-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    gap: 14px;
  }

  .timeline__item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .contact-card {
    flex-direction: column;
  }

  .contact__form {
    padding: 24px;
  }

  .contact__form input,
  .contact__form textarea {
    font-size: 16px;
  }
}

@media (max-width: 600px) {
  .brand__logo {
    height: 48px;
  }

  .section {
    padding: 64px 0;
  }

  .hero {
    padding-top: 80px;
  }

  .card,
  .testimonial-card,
  .contact-card {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
