:root {
  --sea-mist:#F5F9FB;
  --foam:#E7F1F4;
  --deep-navy:#0A2E42;
  --ocean-blue:#0B5D7A;
  --reef-teal:#1B8FA6;
  --coral-red:#C93832;
  --sun-gold:#E8A93B;
  --turtle-green:#3E9A72;
  --coral-purple:#7C4F91;
  --charcoal:#1E2B33;
  --slate:#5B7280;
  --white:#FFFFFF;
  --hairline: rgba(10,46,66,0.12);
  --header-h: 80px;
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--sea-mist);
  color: var(--charcoal);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--deep-navy);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }
a { color: var(--ocean-blue); }

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

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--ocean-blue), color-mix(in srgb, var(--reef-teal) 75%, black));
  color: var(--white);
  box-shadow: 0 6px 16px rgba(11,93,122,0.32);
}
.btn-primary:hover { box-shadow: 0 8px 20px rgba(11,93,122,0.42); }
.btn-primary svg { width: 18px; height: 18px; color: var(--white); }
.btn-ghost {
  background: transparent;
  color: var(--deep-navy);
  border: 1.5px solid var(--hairline);
  padding: 10px 20px;
}
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.btn-link:hover { color: var(--white); border-color: rgba(255,255,255,0.7); }
.btn-link span { transition: transform 0.15s ease; }
.btn-link:hover span { transform: translateY(2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(245,249,251,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--deep-navy);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
}
.brand img { width: 52px; height: 52px; }

.nav-links {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 28px;
}
.nav-links a {
  color: var(--charcoal);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--ocean-blue); }

.header-cta { display: none; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--hairline);
  background: var(--white);
  cursor: pointer;
}
.nav-toggle::before,
.nav-toggle::after,
.nav-toggle .bar {
  content: "";
  display: block;
  width: 18px; height: 2px;
  background: var(--deep-navy);
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--sea-mist);
  z-index: 40;
  padding: 24px 20px;
}
.mobile-nav.open { display: block; }
.mobile-nav ul {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.mobile-nav a {
  color: var(--deep-navy);
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 600;
}

/* ---------- Section base ---------- */
section {
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}
.section-alt { background: var(--foam); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--reef-teal);
  margin: 0 0 10px;
}
.section-head { max-width: 640px; margin: 0 0 40px; }

/* ---------- Hero ---------- */
.hero {
  background: var(--deep-navy);
  color: var(--white);
  padding: 64px 0 88px;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,46,66,0.55), rgba(10,46,66,0.8));
}
.hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column-reverse;
  gap: 36px;
  align-items: center;
}
.hero-copy { text-align: center; }
.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 6vw, 3.2rem);
}
.hero .tagline {
  color: rgba(255,255,255,0.82);
  font-size: clamp(0.95rem, 2.4vw, 1.1rem);
  max-width: 620px;
  margin: 0 auto 18px;
}
.hero .location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--sun-gold);
  font-weight: 600;
  margin-bottom: 24px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-badge {
  width: clamp(220px, 64vw, 320px);
  position: relative;
  z-index: 2;
  padding: clamp(14px, 3vw, 20px);
  border-radius: 50%;
  background: #fff; /* white disc keeps the navy lettering readable on the dark hero */
  transform: rotate(-5deg);
  filter: drop-shadow(0 18px 30px rgba(0,0,0,0.35));
}
.hero-wave {
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  width: 100%;
  line-height: 0;
  z-index: 0;
}
.hero-wave svg { width: 100%; height: 60px; display: block; }

/* ---------- About ---------- */
#about .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
  position: relative;
  z-index: 1;
}
.about-watermark {
  position: absolute;
  top: -10px;
  right: -30px;
  width: auto;
  height: 380px;
  opacity: 0.06;
  transform: rotate(8deg);
  z-index: 0;
  pointer-events: none;
}
.about-visual {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
}
.about-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 20px 40px -20px rgba(10,46,66,0.4);
}
.about-badge {
  width: 100px;
  height: 100px;
  position: absolute;
  left: -18px;
  bottom: -18px;
  border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%;
  background: linear-gradient(160deg, var(--foam), var(--white));
  border: 1px solid var(--hairline);
  box-shadow: 0 12px 24px -12px rgba(10,46,66,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transform: rotate(-4deg);
}
.about-badge img { width: 78%; height: 78%; object-fit: contain; }
.about-text .lede {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  color: var(--deep-navy);
  line-height: 1.4;
}
.about-text p { font-size: 1.02rem; color: var(--charcoal); }

/* ---------- Why cards ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.why-card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 26px 26px 26px 6px;
  padding: 30px 28px;
  box-shadow: 0 12px 24px -18px rgba(10,46,66,0.35);
}
.why-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-bottom: 18px;
  overflow: hidden;
}
.why-icon img { width: 68%; height: 68%; object-fit: contain; }
.why-card--gold .why-icon { background: rgba(232,169,59,0.16); }
.why-card--purple .why-icon { background: rgba(124,79,145,0.14); }
.why-card--green .why-icon { background: rgba(62,154,114,0.14); }
.why-card--teal .why-icon { background: rgba(27,143,166,0.14); }
.why-card--red .why-icon { background: rgba(201,56,50,0.12); }
.why-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.why-card p { color: var(--slate); font-size: 0.95rem; margin: 0; }

/* ---------- Courses ---------- */
.courses-path {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  position: relative;
}
.course-step {
  border-radius: 6px 26px 26px 26px;
  position: relative;
  z-index: 1;
  overflow: hidden;
  min-height: 340px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  box-shadow: 0 16px 32px -20px rgba(10,46,66,0.45);
}
.course-step-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,46,66,0) 35%, rgba(10,46,66,0.92) 100%);
}
.course-step-content { position: relative; z-index: 1; padding: 26px; }
.course-num {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--sun-gold);
  margin-bottom: 10px;
}
.course-step h3 { color: var(--white); font-size: 1.15rem; margin-bottom: 6px; }
.course-step p { color: rgba(255,255,255,0.85); margin: 0; font-size: 0.92rem; }
.courses-note {
  margin-top: 28px;
  font-size: 0.85rem;
  color: var(--slate);
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.gallery-item {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
  background: var(--sea-mist);
}
.gallery-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-item:hover img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) {
  .gallery-item img { transition: none; }
  .gallery-item:hover img { transform: none; }
}

/* ---------- Contact ---------- */
.contact {
  background: var(--deep-navy);
  color: var(--white);
  text-align: center;
}
.contact h2 { color: var(--white); }
.contact .location {
  color: var(--sun-gold);
  font-weight: 600;
  margin-bottom: 24px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.contact-lead {
  max-width: 520px;
  margin: 0 auto 28px;
  color: rgba(255,255,255,0.82);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--sea-mist);
  padding: 40px 0 32px;
  border-top: 1px solid var(--hairline);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--deep-navy);
}
.footer-brand img { width: 56px; height: 56px; }
.footer-nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 0; padding: 0;
}
.footer-nav a {
  color: var(--charcoal);
  text-decoration: none;
  font-size: 0.9rem;
}
.footer-meta {
  font-size: 0.85rem;
  color: var(--slate);
}
.footer-meta .location { color: var(--slate); }

/* ---------- Decorative background wave (hidden on small screens) ---------- */
.bg-motif { display: none; }

/* ---------- Breakpoints ---------- */
@media (min-width: 640px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item--wide { grid-column: span 2; aspect-ratio: 16 / 9; }
}

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .header-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }

  .hero .container {
    flex-direction: row;
    text-align: left;
    align-items: center;
  }
  .hero-copy { text-align: left; flex: 1; }
  .hero .tagline { margin-left: 0; }
  .hero-actions { justify-content: flex-start; }
  .hero-badge { flex: 0 0 320px; }

  #about .container {
    grid-template-columns: 380px 1fr;
    text-align: left;
  }
  .about-visual { margin: 0; }

  .why-grid { grid-template-columns: repeat(3, 1fr); }

  .courses-path { grid-template-columns: repeat(3, 1fr); }

  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-item--wide { aspect-ratio: auto; }

  .bg-motif { display: block; position: absolute; opacity: 0.08; z-index: 0; }
}

@media (min-width: 1200px) {
  .container { padding: 0 32px; }
}
