:root {
  --pearl: #f4f7fb;
  --pearl-2: #e8eef6;
  --moon-silver: #c5cdd8;
  --navy: #1a2744;
  --navy-soft: #2a3b5c;
  --cyan: #7ec8c8;
  --cyan-deep: #5aafb0;
  --lavender: #c9b8d9;
  --ink: #1a2744;
  --muted: #5a6a82;
  --line: rgba(26, 39, 68, 0.14);
  --glow: rgba(126, 200, 200, 0.35);
  --lavender-glow: rgba(201, 184, 217, 0.28);
  --surface: rgba(255, 255, 255, 0.55);
  --surface-strong: rgba(255, 255, 255, 0.78);
  --display: "Outfit", "Segoe UI", sans-serif;
  --text: "Nunito", "Segoe UI", sans-serif;
  --radius: 18px;
  --radius-sm: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.01em;
  background:
    radial-gradient(900px 480px at 88% -8%, var(--lavender-glow), transparent 58%),
    radial-gradient(800px 520px at -10% 20%, var(--glow), transparent 55%),
    radial-gradient(700px 400px at 50% 100%, rgba(197, 205, 216, 0.4), transparent 50%),
    linear-gradient(168deg, var(--pearl) 0%, var(--pearl-2) 46%, #d9e4ef 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
  background-image:
    linear-gradient(120deg, transparent 42%, rgba(255, 255, 255, 0.45) 50%, transparent 58%),
    radial-gradient(circle at 20% 80%, rgba(126, 200, 200, 0.12), transparent 40%);
  animation: tide-shift 18s ease-in-out infinite alternate;
}

@keyframes tide-shift {
  from { transform: translateY(0); }
  to { transform: translateY(-12px); }
}

main,
.site-header,
.site-footer,
.cookie {
  position: relative;
  z-index: 1;
}

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

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

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

h1,
h2,
h3,
.brand,
.brand-hero {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--navy);
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  font-weight: 400;
  margin: 0.15em 0 0.45em;
}

h2 {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 500;
}

h3 {
  font-size: 1.2rem;
  margin: 0 0 0.4rem;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--navy);
  color: var(--pearl);
  padding: 0.5rem 0.8rem;
  z-index: 40;
  border-radius: var(--radius-sm);
}

.skip:focus {
  top: 0.6rem;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.kicker,
.meta,
.footer-label {
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.lede {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 38rem;
}

.meta--pad {
  margin: 0 1.1rem 1.2rem;
}

/* Header */
.site-header {
  padding: 1rem 0;
  backdrop-filter: blur(14px);
  background: rgba(244, 247, 251, 0.72);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  font-size: 1.35rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--navy);
}

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

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

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

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

.nav-toggle span {
  display: block;
  width: 1.05rem;
  height: 2px;
  background: var(--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: none;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: var(--pearl);
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 10px 28px rgba(26, 39, 68, 0.22);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.45) 0%, rgba(126, 200, 200, 0.25) 40%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: width 0.55s ease, height 0.55s ease, opacity 0.55s ease;
  opacity: 0;
  z-index: -1;
}

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

.btn:hover::before {
  width: 280%;
  height: 280%;
  opacity: 1;
}

.btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

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

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

.btn--ghost::before {
  background: radial-gradient(circle, rgba(126, 200, 200, 0.35) 0%, transparent 70%);
}

/* Hero — full-bleed Moonstone Tide */
.hero-tide {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex;
  align-items: flex-end;
  padding: 4rem 0 3.5rem;
  overflow: hidden;
}

.hero-tide__bg {
  position: absolute;
  inset: 0;
}

.hero-tide__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: hero-drift 22s ease-in-out infinite alternate;
}

@keyframes hero-drift {
  from { transform: scale(1.04) translate(0, 0); }
  to { transform: scale(1.08) translate(-1.5%, -1%); }
}

.hero-tide__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(26, 39, 68, 0.35) 0%, rgba(26, 39, 68, 0.72) 100%),
    radial-gradient(600px 320px at 70% 20%, rgba(126, 200, 200, 0.25), transparent 60%),
    radial-gradient(500px 280px at 15% 70%, rgba(201, 184, 217, 0.22), transparent 55%);
}

.hero-tide__content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.brand-hero {
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  font-weight: 300;
  color: #f7fafc;
  margin: 0 0 0.35rem;
  text-shadow: 0 8px 40px rgba(26, 39, 68, 0.45);
  animation: fade-rise 1s ease both;
}

.hero-tide h1 {
  color: #eef3f8;
  font-weight: 400;
  max-width: 18ch;
  animation: fade-rise 1s ease 0.12s both;
}

.hero-tide .lede {
  color: rgba(232, 238, 246, 0.88);
  animation: fade-rise 1s ease 0.22s both;
}

.hero-tide .btn {
  margin-top: 0.5rem;
  animation: fade-rise 1s ease 0.32s both;
}

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

.hero-curriculum {
  padding: 3rem 0 0;
}

.hero-curriculum__img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  margin-top: 1.75rem;
  border-radius: 0;
  mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
}

.page-hero {
  padding: 3rem 0 1rem;
}

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

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section--glow {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(126, 200, 200, 0.08));
  border-block: 1px solid var(--line);
}

.feature-primary {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.feature-primary img,
.place-panel img,
.split img,
.media-tile img,
.offer-row img {
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(26, 39, 68, 0.12);
}

.offer-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.offer-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}

.offer-row img {
  width: 140px;
  height: 100px;
  object-fit: cover;
  box-shadow: none;
}

.quote-stack {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.quote {
  margin: 0;
  padding: 1.4rem 1.6rem;
  background: var(--surface-strong);
  border-left: 3px solid var(--cyan);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.quote p {
  margin: 0 0 0.75rem;
  font-size: 1.08rem;
}

.quote footer {
  font-family: var(--display);
  font-size: 0.85rem;
  color: var(--muted);
}

.place-panel,
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.25rem;
  align-items: center;
}

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

.service-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.media-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(8px);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.media-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(26, 39, 68, 0.12);
}

.media-tile img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}

.media-tile .meta,
.media-tile h3,
.media-tile p {
  padding-left: 1.1rem;
  padding-right: 1.1rem;
}

.media-tile h3 {
  padding-top: 0.2rem;
}

.media-tile p:last-child {
  padding-bottom: 1.2rem;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.25rem 1.4rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.step-num {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--cyan-deep);
  line-height: 1;
  padding-top: 0.2rem;
}

.step h2 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
}

.cta-row {
  margin-top: 2rem;
}

.prose p {
  max-width: 40rem;
}

.legal {
  max-width: 46rem;
  padding-bottom: 3.5rem;
}

.legal h2 {
  margin-top: 2rem;
  font-size: 1.25rem;
}

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

.legal code {
  font-size: 0.9em;
  background: var(--surface-strong);
  padding: 0.1em 0.35em;
  border-radius: 6px;
}

.not-found {
  min-height: 60vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 3rem 1.25rem;
}

/* Form */
.form {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.95rem;
}

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

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

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid var(--cyan);
  outline-offset: 1px;
}

.field-error {
  margin: 0;
  color: #8a3a4a;
  font-size: 0.88rem;
  font-weight: 500;
}

.form-status {
  margin: 0.25rem 0 0;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  background: rgba(138, 58, 74, 0.1);
  color: #6e2e3b;
}

.form-status.is-ok {
  background: rgba(126, 200, 200, 0.22);
  color: var(--navy);
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  padding: 3rem 0 2rem;
  background:
    linear-gradient(180deg, transparent, rgba(26, 39, 68, 0.06)),
    rgba(255, 255, 255, 0.4);
  border-top: 1px solid var(--line);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

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

.site-footer li {
  margin: 0.35rem 0;
}

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

.site-footer__base {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

/* Cookie banner */
.cookie {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem 0;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(26, 39, 68, 0.18);
  backdrop-filter: blur(16px);
}

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

.cookie__inner p {
  margin: 0;
  flex: 1 1 240px;
  font-size: 0.95rem;
}

.cookie__actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.cookie .form-status {
  margin: 0.5rem 1.25rem 0;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

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

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

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

  .site-header {
    position: relative;
  }

  .feature-primary,
  .place-panel,
  .split,
  .offer-row,
  .site-footer__grid,
  .post-grid {
    grid-template-columns: 1fr;
  }

  .offer-row img {
    width: 100%;
    height: 160px;
  }

  .hero-tide {
    min-height: 78vh;
    align-items: flex-end;
  }
}
