:root {
  --pearl: #f4f7fb;
  --pearl-deep: #e8eef6;
  --moon-silver: #c5d0de;
  --navy: #152238;
  --navy-soft: #243552;
  --cyan: #7eb8c9;
  --cyan-bright: #9fd0dc;
  --lavender: #b8a8c9;
  --lavender-soft: #d4cae0;
  --ink: #1a2740;
  --muted: #5a6a82;
  --surface: rgba(255, 255, 255, 0.55);
  --surface-strong: rgba(255, 255, 255, 0.78);
  --line: rgba(21, 34, 56, 0.12);
  --shadow: 0 18px 50px rgba(21, 34, 56, 0.08);
  --radius: 1.25rem;
  --font: "Outfit", "Manrope", sans-serif;
  --display: "Manrope", "Outfit", sans-serif;
  --space: clamp(1rem, 2vw, 1.75rem);
  --shell: min(1120px, calc(100% - 2.5rem));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(159, 208, 220, 0.45), transparent 55%),
    radial-gradient(900px 500px at 0% 20%, rgba(184, 168, 201, 0.28), transparent 50%),
    linear-gradient(180deg, var(--pearl) 0%, var(--pearl-deep) 45%, #dfe8f2 100%);
  min-height: 100vh;
  line-height: 1.65;
  letter-spacing: 0.01em;
}

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

a {
  color: var(--navy-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(244, 247, 251, 0.72);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--navy);
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--navy-soft);
  font-size: 0.95rem;
  font-weight: 450;
}

.site-nav a:hover {
  color: var(--cyan);
}

.nav-cta {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  color: var(--pearl) !important;
  box-shadow: 0 8px 24px rgba(21, 34, 56, 0.18);
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: var(--surface-strong);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.35rem;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--navy);
}

/* Buttons with moonlight ring */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55), transparent 70%);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}

.btn:hover::after,
.btn:focus-visible::after {
  animation: moonlight-ring 0.9s ease-out forwards;
}

@keyframes moonlight-ring {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0.9;
  }
  100% {
    transform: translate(-50%, -50%) scale(18);
    opacity: 0;
  }
}

.btn-primary {
  background: linear-gradient(135deg, var(--navy) 0%, #2a4468 55%, var(--cyan) 160%);
  color: var(--pearl);
  box-shadow: 0 12px 30px rgba(21, 34, 56, 0.22);
}

.btn-primary:hover {
  color: var(--pearl);
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--surface-strong);
  border-color: var(--moon-silver);
  color: var(--navy);
}

.btn-ghost:hover {
  color: var(--navy);
  border-color: var(--cyan);
}

/* Surfaces */
.moon-panel {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(232, 238, 246, 0.45)),
    linear-gradient(180deg, rgba(126, 184, 201, 0.12), transparent 40%);
  border: 1px solid rgba(197, 208, 222, 0.65);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.section {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2rem;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  color: var(--cyan);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 0.85rem;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 300;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}

h3 {
  font-size: 1.2rem;
}

.lede,
.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
}

/* Home hero — split tide composition (not standard H1+two buttons center) */
.hero-tide {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 1rem;
  overflow: hidden;
}

.hero-tide::before {
  content: "";
  position: absolute;
  inset: 8% -10% auto auto;
  width: min(48vw, 420px);
  height: min(48vw, 420px);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(247, 249, 252, 0.95), rgba(159, 208, 220, 0.35) 45%, transparent 70%);
  animation: moon-drift 12s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes moon-drift {
  from { transform: translateY(0); }
  to { transform: translateY(18px); }
}

.hero-tide-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: end;
}

.hero-copy {
  padding-bottom: 1rem;
}

.hero-copy h1 {
  max-width: 11ch;
}

.hero-copy .lede {
  max-width: 34ch;
  margin-top: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.hero-visual {
  position: relative;
  min-height: 420px;
  border-radius: calc(var(--radius) + 0.35rem);
  overflow: hidden;
  border: 1px solid rgba(197, 208, 222, 0.7);
  box-shadow: var(--shadow);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 420px;
  animation: soft-rise 1.2s ease both;
}

@keyframes soft-rise {
  from { transform: scale(1.04); opacity: 0.4; }
  to { transform: scale(1); opacity: 1; }
}

.hero-caption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(244, 247, 251, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 1rem;
  backdrop-filter: blur(8px);
  color: var(--navy-soft);
  font-size: 0.92rem;
}

/* Offer strip */
.offer-primary {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: stretch;
}

.offer-primary .moon-panel {
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.offer-visual {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 280px;
}

.offer-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 1rem 0 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Cards for interactive collections only */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(21, 34, 56, 0.12);
  color: inherit;
}

.service-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.service-card .card-body {
  padding: 1.25rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.price-tag {
  margin-top: auto;
  color: var(--navy);
  font-weight: 560;
  font-size: 0.92rem;
}

/* Testimonials — not card-heavy */
.quote-list {
  display: grid;
  gap: 1.5rem;
}

.quote-item {
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}

.quote-item:last-child {
  border-bottom: 1px solid var(--line);
}

.quote-item blockquote {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--navy);
}

.quote-item cite {
  font-style: normal;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Page heroes (inner) */
.page-hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0 1rem;
}

.page-hero h1 {
  max-width: 16ch;
}

.page-hero .lede {
  max-width: 42ch;
  margin-top: 0.75rem;
}

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

.content-block p + p {
  margin-top: 1rem;
}

.content-block ul {
  padding-left: 1.15rem;
  color: var(--muted);
}

.wide-media {
  margin: 2rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.wide-media img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

/* Curriculum timeline */
.timeline {
  display: grid;
  gap: 0;
}

.timeline-step {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.timeline-step:last-child {
  border-bottom: 1px solid var(--line);
}

.step-day {
  font-family: var(--display);
  color: var(--cyan);
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Pricing */
.price-list {
  display: grid;
  gap: 1rem;
}

.price-row {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.7fr;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem 1.5rem;
}

.price-row p {
  margin: 0;
  color: var(--muted);
}

.price-row strong {
  color: var(--navy);
  font-weight: 560;
}

/* Forms */
.form-panel {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  max-width: 40rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.92rem;
  color: var(--navy-soft);
}

input,
textarea,
select {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid var(--moon-silver);
  background: rgba(255, 255, 255, 0.7);
  font: inherit;
  color: var(--ink);
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(126, 184, 201, 0.55);
  outline-offset: 1px;
  border-color: var(--cyan);
}

.field-error {
  color: #8a3b4a;
  font-size: 0.85rem;
  min-height: 1.1em;
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  font-size: 0.95rem;
}

.form-status[data-state="success"] {
  background: rgba(126, 184, 201, 0.2);
  color: var(--navy);
}

.form-status[data-state="error"] {
  background: rgba(184, 80, 100, 0.12);
  color: #7a3040;
}

.form-status[hidden],
.cookie-banner[hidden] {
  display: none !important;
}

/* Blog */
.blog-grid {
  display: grid;
  gap: 1.5rem;
}

.blog-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.25rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 1rem;
}

.blog-item:hover {
  color: inherit;
}

.blog-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 1rem;
}

.blog-item time {
  color: var(--muted);
  font-size: 0.85rem;
}

.prose {
  max-width: 42rem;
}

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

/* Legal */
.legal h2 {
  margin-top: 2rem;
}

.legal p,
.legal li {
  color: var(--muted);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 1rem 0 1.25rem;
  background: rgba(244, 247, 251, 0.92);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(14px);
  animation: slide-up 0.45s ease both;
}

@keyframes slide-up {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

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

.cookie-inner p {
  margin: 0;
  color: var(--navy-soft);
  max-width: 48rem;
}

.cookie-actions {
  display: flex;
  gap: 0.65rem;
  flex-shrink: 0;
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  padding: 3rem 0 1.5rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(21, 34, 56, 0.04));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 0.8fr;
  gap: 1.5rem;
}

.footer-brand {
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--navy);
  margin: 0 0 0.4rem;
}

.footer-tag,
.site-footer p {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-label {
  color: var(--navy) !important;
  font-weight: 560;
  margin-bottom: 0.55rem !important;
}

.site-footer a {
  text-decoration: none;
}

.footer-base {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

/* 404 */
.not-found {
  min-height: 55vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 0;
}

.not-found h1 {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 300;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-tide-grid,
  .offer-primary,
  .blog-item,
  .price-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1.25rem;
    background: rgba(244, 247, 251, 0.96);
    border-bottom: 1px solid var(--line);
  }

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

  .site-nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-cta {
    margin-top: 0.5rem;
    text-align: center;
  }

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

  .hero-visual,
  .hero-visual img {
    min-height: 280px;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
