:root {
  --pearl: #f4f7fb;
  --pearl-deep: #e7eef6;
  --moon-silver: #c5d0e0;
  --navy: #13233f;
  --navy-soft: #1c3358;
  --cyan: #7ec8d8;
  --cyan-soft: #b7e3ec;
  --lavender: #c9c2e0;
  --ink: #1a2740;
  --muted: #5a6a82;
  --surface: rgba(255, 255, 255, 0.62);
  --surface-strong: rgba(255, 255, 255, 0.82);
  --line: rgba(19, 35, 63, 0.1);
  --shadow: 0 18px 50px rgba(19, 35, 63, 0.08);
  --radius: 1.25rem;
  --font-display: "Comfortaa", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --space: clamp(1rem, 2vw, 1.75rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background:
    radial-gradient(ellipse 90% 60% at 80% -10%, rgba(126, 200, 216, 0.35), transparent 55%),
    radial-gradient(ellipse 70% 50% at 10% 20%, rgba(201, 194, 224, 0.28), transparent 50%),
    linear-gradient(180deg, #eef3f8 0%, var(--pearl) 40%, #e3ebf4 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.2em;
}

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

.shell {
  width: min(1120px, calc(100% - 2.5rem));
  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.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(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  color: var(--navy);
  text-decoration: none;
}

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

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

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

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  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: 1rem;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

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

.btn-primary,
.btn-moon {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 55%, #2a4a72 100%);
  color: var(--pearl);
  box-shadow: 0 10px 28px rgba(19, 35, 63, 0.22);
}

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

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--moon-silver);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.5);
  color: var(--navy);
}

.moon-ring {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(183, 227, 236, 0.55) 0%, rgba(201, 194, 224, 0.2) 40%, transparent 70%);
  pointer-events: none;
  animation: tide-ring 0.7s ease-out forwards;
}

@keyframes tide-ring {
  from { transform: scale(0.2); opacity: 0.9; }
  to { transform: scale(1); opacity: 0; }
}

/* Hero tide */
.hero-tide {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

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

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

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

.hero-tide__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(19, 35, 63, 0.15) 0%, rgba(19, 35, 63, 0.35) 35%, rgba(19, 35, 63, 0.78) 100%),
    radial-gradient(circle at 70% 20%, rgba(126, 200, 216, 0.35), transparent 45%);
}

.hero-tide__content {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto 4.5rem;
  color: var(--pearl);
  animation: rise 1s ease both;
}

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

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.4rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.05;
  margin: 0 0 1rem;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
}

.hero-line {
  max-width: 34rem;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  font-weight: 300;
  margin: 0 0 1.75rem;
  color: rgba(244, 247, 251, 0.92);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-actions .btn-ghost {
  color: var(--pearl);
  border-color: rgba(244, 247, 251, 0.45);
}

.hero-actions .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.tide-sheen {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28%;
  background: linear-gradient(180deg, transparent, rgba(126, 200, 216, 0.22));
  animation: sheen 9s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes sheen {
  from { opacity: 0.35; transform: translateY(8px); }
  to { opacity: 0.75; transform: translateY(0); }
}

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

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

.section-head h2,
.page-title,
.legal-wrap h1,
.article-title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

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

.stone {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.split-media {
  border-radius: calc(var(--radius) + 0.25rem);
  overflow: hidden;
  min-height: 280px;
}

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

.offer-list {
  display: grid;
  gap: 1rem;
}

.offer-row {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.1rem 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, background 0.25s ease;
}

.offer-row:hover {
  transform: translateX(4px);
  background: var(--surface-strong);
}

.offer-row img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 0.75rem;
}

.offer-row h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 0.25rem;
  color: var(--navy);
}

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

.offer-meta {
  font-size: 0.85rem;
  color: var(--cyan);
  font-weight: 700;
  white-space: nowrap;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.program-tile {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.program-tile a.tile-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.program-tile .body {
  padding: 1.25rem 1.35rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.program-tile h3 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
  color: var(--navy);
  font-size: 1.15rem;
}

.program-tile p {
  margin: 0;
  color: var(--muted);
  flex: 1;
}

.quote-band {
  background:
    linear-gradient(135deg, rgba(28, 51, 88, 0.94), rgba(19, 35, 63, 0.9)),
    radial-gradient(circle at 20% 0%, rgba(126, 200, 216, 0.35), transparent 50%);
  color: var(--pearl);
  border-radius: calc(var(--radius) + 0.4rem);
  padding: clamp(1.75rem, 4vw, 2.75rem);
}

.quote-band blockquote {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.7;
}

.quote-band cite {
  font-style: normal;
  color: var(--cyan-soft);
  font-size: 0.95rem;
}

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

.curriculum-track {
  display: grid;
  gap: 0;
  counter-reset: mod;
}

.curriculum-step {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  counter-increment: mod;
}

.curriculum-step:last-child {
  border-bottom: 0;
}

.curriculum-step::before {
  content: counter(mod, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--cyan);
  font-weight: 700;
}

.curriculum-step h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  color: var(--navy);
}

.curriculum-step .mod {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--lavender);
  font-weight: 700;
}

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

.fee-table {
  display: grid;
  gap: 1rem;
}

.fee-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 1.25rem 1.4rem;
}

.fee-row h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--navy);
}

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

.fee-amt {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy-soft);
  white-space: nowrap;
}

.page-hero {
  padding: clamp(3rem, 7vw, 5rem) 0 1rem;
}

.page-hero.with-media {
  display: grid;
  gap: 1.5rem;
}

.page-hero.with-media .hero-shot {
  border-radius: var(--radius);
  overflow: hidden;
  max-height: 360px;
}

.page-hero.with-media .hero-shot img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.page-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
}

.prose {
  max-width: 42rem;
}

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

.prose ul {
  color: var(--muted);
  padding-left: 1.2rem;
}

.prose li + li {
  margin-top: 0.35rem;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.detail-aside {
  padding: 1.35rem;
  position: sticky;
  top: 5.5rem;
}

.detail-aside p {
  margin: 0.35rem 0;
  color: var(--muted);
}

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

.blog-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.25rem;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

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

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

.blog-item h3 {
  margin: 0.25rem 0 0.4rem;
  font-family: var(--font-display);
  color: var(--navy);
}

.blog-item time,
.meta {
  font-size: 0.85rem;
  color: var(--cyan);
  font-weight: 700;
}

.article-hero img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 1.25rem 0 1.75rem;
}

.form-panel {
  padding: 1.5rem;
  max-width: 36rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--navy);
}

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

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

.form-error {
  color: #8b2e3c;
  font-size: 0.9rem;
  margin: 0.35rem 0 0;
}

.form-success {
  color: #1f6a5a;
  font-size: 0.95rem;
  margin: 0.75rem 0 0;
}

.contact-facts {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.legal-wrap {
  padding-bottom: 4rem;
}

.legal-wrap h2 {
  font-family: var(--font-display);
  color: var(--navy);
  margin: 2rem 0 0.75rem;
  font-size: 1.25rem;
}

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

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

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

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

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

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

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

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

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

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 1rem;
}

.cookie-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.cookie-inner p {
  margin: 0;
  flex: 1 1 240px;
  color: var(--muted);
}

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

.contact-layout {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: start;
}

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

  .offer-meta {
    justify-self: start;
  }

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

  .detail-aside {
    position: static;
  }

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

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

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

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

  .header-inner {
    position: relative;
  }
}
