:root {
  --pearl: #f4f7fb;
  --moon-silver: #d5deea;
  --deep-navy: #0b1f3a;
  --navy-mid: #163556;
  --soft-cyan: #7ec8c8;
  --cyan-glow: #a8e0de;
  --lavender: #c5b8e0;
  --lavender-soft: #e4ddf2;
  --text: #14263c;
  --muted: #4a5d74;
  --surface: rgba(255, 255, 255, 0.62);
  --surface-strong: rgba(255, 255, 255, 0.82);
  --line: rgba(11, 31, 58, 0.12);
  --shadow: 0 18px 50px rgba(11, 31, 58, 0.08);
  --radius: 1.25rem;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "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-body);
  font-weight: 300;
  color: var(--text);
  line-height: 1.65;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(126, 200, 200, 0.28), transparent 55%),
    radial-gradient(ellipse 70% 45% at 95% 5%, rgba(197, 184, 224, 0.22), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(168, 224, 222, 0.18), transparent 55%),
    linear-gradient(180deg, #eef3f8 0%, var(--pearl) 40%, #e8eef6 100%);
  min-height: 100vh;
}

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

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

a:hover {
  color: var(--deep-navy);
}

.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(14px);
  background: rgba(244, 247, 251, 0.78);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.4vw, 1.95rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--deep-navy);
  text-decoration: none;
}

.site-nav ul {
  display: flex;
  gap: 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.site-nav a[aria-current="page"],
.site-nav a:hover {
  color: var(--deep-navy);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--surface);
  cursor: pointer;
  padding: 0.55rem;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 0.28rem 0;
  background: var(--deep-navy);
  border-radius: 2px;
}

/* Buttons — liquid moonlight rings */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.45rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

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

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

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

.btn-primary {
  background: linear-gradient(135deg, var(--deep-navy), var(--navy-mid));
  color: var(--pearl);
}

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

.btn-ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--deep-navy);
}

.btn-ghost:hover {
  background: var(--surface-strong);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

/* Hero — full-bleed moonstone tide */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--pearl);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: tide-drift 18s ease-in-out infinite alternate;
}

@keyframes tide-drift {
  from {
    transform: scale(1.04) translateY(0);
  }
  to {
    transform: scale(1.1) translateY(-1.5%);
  }
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 31, 58, 0.35) 0%, rgba(11, 31, 58, 0.72) 70%, rgba(11, 31, 58, 0.88) 100%),
    radial-gradient(ellipse at 70% 20%, rgba(126, 200, 200, 0.25), transparent 45%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: clamp(4rem, 12vh, 7rem) 0 clamp(3rem, 8vh, 4.5rem);
  max-width: 34rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 4.6rem);
  font-weight: 500;
  line-height: 1.05;
  margin: 0 0 0.85rem;
  letter-spacing: 0.01em;
  animation: rise-in 0.9s ease both;
}

.hero h1 {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  line-height: 1.45;
  margin: 0;
  color: var(--moon-silver);
  animation: rise-in 1s ease 0.12s both;
}

.hero .lede {
  margin: 1rem 0 0;
  color: rgba(244, 247, 251, 0.82);
  font-size: 1rem;
  max-width: 28rem;
  animation: rise-in 1s ease 0.22s both;
}

.hero .cta-row {
  animation: rise-in 1s ease 0.32s both;
}

.hero .btn-primary {
  background: linear-gradient(135deg, var(--soft-cyan), var(--cyan-glow));
  color: var(--deep-navy);
}

.hero .btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--pearl);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sections */
.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2.25rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 0.65rem;
  color: var(--deep-navy);
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.moon-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

/* Service listings — interaction containers, not decorative cards piled in hero */
.offer-list {
  display: grid;
  gap: 1.25rem;
}

.offer-item {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 0;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.offer-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 55px rgba(11, 31, 58, 0.12);
}

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

.offer-body {
  padding: 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.offer-body h3 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 500;
  margin: 0 0 0.5rem;
  color: var(--deep-navy);
}

.offer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 0.85rem;
  font-size: 0.9rem;
  color: var(--navy-mid);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.quote-block {
  padding: 1.5rem;
}

.quote-block blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.4;
  color: var(--deep-navy);
}

.quote-block cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Page heroes (inner) */
.page-hero {
  padding: clamp(3rem, 7vw, 4.5rem) 0 2rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 500;
  margin: 0 0 0.75rem;
  color: var(--deep-navy);
  line-height: 1.1;
}

.page-hero p {
  margin: 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.prose {
  max-width: 42rem;
}

.prose h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.85rem;
  color: var(--deep-navy);
  margin: 2rem 0 0.75rem;
}

.prose h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.35rem;
  color: var(--navy-mid);
  margin: 1.5rem 0 0.5rem;
}

.prose p,
.prose li {
  color: var(--text);
}

.prose ul {
  padding-left: 1.2rem;
}

.feature-media {
  border-radius: var(--radius);
  overflow: hidden;
  margin: 1.5rem 0;
}

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

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.person {
  overflow: hidden;
}

.person img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.person-body {
  padding: 1.15rem 1.25rem 1.4rem;
}

.person-body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--deep-navy);
}

.person-body .role {
  margin: 0.25rem 0 0.65rem;
  color: var(--soft-cyan);
  font-size: 0.9rem;
  font-weight: 500;
}

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

.curriculum-track {
  display: grid;
  gap: 1rem;
  counter-reset: module;
}

.module {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding: 1.35rem 1.5rem;
  align-items: start;
}

.module-num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--soft-cyan);
  line-height: 1;
}

.module h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--deep-navy);
}

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

.blog-list {
  display: grid;
  gap: 1.5rem;
}

.blog-item {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 1.25rem;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.blog-item:hover {
  transform: translateY(-2px);
}

.blog-item img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
}

.blog-item-body {
  padding: 1.25rem 1.25rem 1.25rem 0;
}

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

.blog-item h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  margin: 0.35rem 0 0.5rem;
  color: var(--deep-navy);
}

.price-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* Forms */
.form {
  display: grid;
  gap: 1rem;
  padding: 1.75rem;
  max-width: 34rem;
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
  color: var(--navy-mid);
}

.form input,
.form textarea,
.form select {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border-radius: 0.85rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
  font: inherit;
  color: var(--text);
}

.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: 2px solid rgba(126, 200, 200, 0.55);
  outline-offset: 1px;
}

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

.form-status {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
}

.form-status.is-success {
  color: #1d5c4f;
}

.form-status.is-error {
  color: #8a3048;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(11, 31, 58, 0.92);
  color: var(--pearl);
  border-top: 1px solid rgba(168, 224, 222, 0.25);
  padding: 1rem 0;
  backdrop-filter: blur(12px);
}

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

.cookie-banner a {
  color: var(--cyan-glow);
}

.cookie-banner p {
  margin: 0;
  max-width: 42rem;
}

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

.cookie-banner .btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--pearl);
}

.cookie-banner .btn-primary {
  background: linear-gradient(135deg, var(--soft-cyan), var(--cyan-glow));
  color: var(--deep-navy);
}

.cookie-banner .form-status {
  width: var(--shell);
  margin: 0.5rem auto 0;
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  padding: 3rem 0 1.5rem;
  background: linear-gradient(180deg, transparent, rgba(11, 31, 58, 0.06));
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 0.8fr 0.8fr;
  gap: 1.75rem;
}

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

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

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

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--deep-navy);
}

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

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

.not-found h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin: 0 0 0.75rem;
  color: var(--deep-navy);
}

.highlight-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.45rem;
}

.highlight-list li {
  padding-left: 1.1rem;
  position: relative;
  color: var(--muted);
}

.highlight-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--soft-cyan);
}

@media (max-width: 900px) {
  .offer-item,
  .blog-item,
  .split,
  .footer-grid,
  .grid-3,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .blog-item-body {
    padding: 0 1.25rem 1.25rem;
  }

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

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

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

  .site-nav ul {
    flex-direction: column;
    gap: 0.85rem;
  }

  .header-inner {
    position: relative;
  }
}

@media (max-width: 600px) {
  .hero-content {
    max-width: none;
  }

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

  .cookie-actions {
    width: 100%;
  }

  .cookie-actions .btn {
    flex: 1;
  }
}
