@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;1,500;1,600&display=swap');

:root {
  --blue: #469DED;
  --blue-dark: #2478C7;
  --ink: #17304A;
  --muted: #5F7182;
  --line: #DCEAF6;
  --soft: #F5FAFE;
  --white: #FFFFFF;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "DM Sans", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; }
a:focus { outline: 2px solid var(--blue); outline-offset: 4px; }

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(220,234,246,.75);
}

.header-inner {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img {
  width: min(235px, 60vw);
  height: auto;
  display: block;
}

.book-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--blue);
  color: white;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .01em;
  box-shadow: 0 10px 28px rgba(70,157,237,.24);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.book-button:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(70,157,237,.3);
}

.book-button.secondary {
  background: var(--white);
  color: var(--blue);
  border: 2px solid var(--blue);
  box-shadow: none;
}

.book-button.secondary:hover {
  background: var(--soft);
  color: var(--blue-dark);
  border-color: var(--blue-dark);
  box-shadow: 0 4px 12px rgba(70,157,237,.1);
}

.book-button span {
  font-size: 1.2rem;
  line-height: 1;
}

.book-button-small {
  min-height: 44px;
  padding: 0 20px;
  font-size: .9rem;
}

.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  background:
    radial-gradient(circle at 84% 35%, rgba(70,157,237,.15), transparent 30%),
    linear-gradient(135deg, #fff 0%, #fff 55%, #F5FAFE 100%);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  width: min(620px, 100vw);
  height: min(620px, 100vw);
  right: -250px;
  bottom: -310px;
  border: 1px solid rgba(70,157,237,.18);
  border-radius: 50%;
  box-shadow:
    0 0 0 55px rgba(70,157,237,.035),
    0 0 0 110px rgba(70,157,237,.025);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 120px;
  padding-bottom: 120px;
  max-width: 790px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--blue-dark);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
}

h1, h2, h3, p { margin-top: 0; }

h1, h2 {
  letter-spacing: -.045em;
  line-height: 1.03;
}

h1 {
  max-width: 780px;
  margin-bottom: 28px;
  font-size: clamp(3.5rem, 8vw, 6.6rem);
  font-weight: 600;
}

h1 span, h2 span {
  color: var(--blue);
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 500;
}

.hero-copy {
  max-width: 640px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.hero-waves {
  position: absolute;
  bottom: -2px; /* Slight overlap to seal the gap with the next section */
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 5;
}

.waves {
  display: block;
  position: relative;
  width: 100%;
  height: 12vh;
  margin-bottom: 0;
  min-height: 100px;
  max-height: 150px;
  vertical-align: bottom;
}

/* Animation */
.parallax > use {
  animation: move-forever 25s cubic-bezier(.55, .5, .45, .5) infinite;
}
.parallax > use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 7s;
}
.parallax > use:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 10s;
}
.parallax > use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 13s;
}
.parallax > use:nth-child(4) {
  animation-delay: -5s;
  animation-duration: 20s;
}

@keyframes move-forever {
  0% {
   transform: translate3d(-90px, 0, 0);
  }
  100% { 
    transform: translate3d(85px, 0, 0);
  }
}

.text-link {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--blue);
  padding-bottom: 3px;
}

.experience {
  padding: 120px 0;
  background: var(--soft);
  position: relative;
  z-index: 1;
  margin-top: -2px; /* Slight overlap to ensure no gap with waves above */
}

.section-heading {
  max-width: 600px;
  margin-bottom: 62px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 600;
}

.experience-grid {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.experience-copy {
  max-width: 800px;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.85;
}

.experience-copy p + p {
  margin-top: 24px;
}

.class-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  border-top: 1px solid var(--line);
  padding-top: 40px;
}

.class-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0;
  border-bottom: none;
}


.class-card h3 {
  margin-bottom: 6px;
  font-size: 1.35rem;
}

.class-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.class-card .class-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color .2s ease;
}

.class-card .class-link:hover {
  color: var(--blue-dark);
}

.cta {
  padding: 120px 0;
  background: var(--white);
  text-align: center;
}

.cta-inner {
  max-width: 760px;
}

.cta h2 {
  margin-bottom: 22px;
}

.cta p:not(.eyebrow) {
  margin: 0 auto 32px;
  color: var(--muted);
  font-size: 1.1rem;
}

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

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-inner img {
  width: 180px;
  height: auto;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
  font-size: .85rem;
}

@media (max-width: 800px) {
  .header-inner { min-height: 82px; }
  .brand img { width: min(190px, 50vw); }
  .book-button-small { display: none; }

  .waves {
    height: 70px;
    min-height: 70px;
  }

  .hero {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 0;
    display: flex;
    flex-direction: column;
  }

  .hero-content {
    padding-top: 100px;
    padding-bottom: 80px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  h1 {
    font-size: clamp(2.8rem, 10vw, 4rem);
    margin-bottom: 20px;
  }

  .hero-copy {
    font-size: 1.1rem;
    margin-bottom: 30px;
  }

  .experience, .cta {
    padding: 80px 0;
  }

  .section-heading h2 {
    font-size: clamp(2.5rem, 8vw, 3.5rem);
  }

  .class-list {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-inner {
    align-items: center;
    text-align: center;
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 520px) {
  .container { width: min(100% - 28px, 1120px); }
  .brand img { width: min(175px, 50vw); }

  h1 {
    font-size: 2.75rem;
    line-height: 1.1;
  }

  h2 {
    font-size: 2.5rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-actions {
    gap: 16px;
    align-items: stretch;
    flex-direction: column;
    width: 100%;
    max-width: 400px;
  }

  .book-button {
    width: 100%;
    min-height: 52px;
  }

  .experience, .cta {
    padding: 60px 0;
  }

  .experience-copy {
    font-size: 1.05rem;
  }

  .class-card h3 {
    font-size: 1.25rem;
  }
}
