/* Immersion Freediving — static build
   Tokens first. Text colors are AA-checked against the dark surfaces they sit on. */

@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lato"; src: url("../fonts/lato-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Lato"; src: url("../fonts/lato-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --bg: #150b0f;            /* page surface (from live site) */
  --bg-alt: #241a1e;        /* banded sections */
  --bg-header: #150b0f;
  --line: rgba(255, 255, 255, .22);
  --text: #ffffff;
  --text-muted: #cfc6c9;    /* 11.6:1 on --bg */
  --red: #dd183b;           /* brand red: button fills (white text 4.9:1) */
  --red-hover: #b9122f;
  --red-text: #ff6b81;      /* red for text links on dark (7.1:1 on --bg) */
  --focus: #ffd166;

  --font-head: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-btn: "Space Grotesk", system-ui, sans-serif;

  --container: 732px;       /* matches the live site's content column */
  --container-wide: 1100px;
  --gutter: 20px;
  --radius: 0;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
}
img, svg, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--red-text); text-underline-offset: 2px; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.875rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; font-family: var(--font-body); }
p { margin: 0 0 1.1em; }
ul { margin: 0 0 1.1em; padding-left: 1.3em; }
li { margin-bottom: .35em; }
strong { font-weight: 700; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: #fff; color: #000; padding: 10px 16px; font-weight: 700; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.container--wide { max-width: calc(var(--container-wide) + var(--gutter) * 2); }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-family: var(--font-btn);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.2;
  padding: 16px 32px;
  border: 2px solid var(--red);
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.btn:hover { background: var(--red-hover); border-color: var(--red-hover); color: #fff; }
.btn--sm { font-size: .875rem; padding: 10px 20px; }
.btn--ghost { background: transparent; border-color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--bg); border-color: #fff; }

/* ---------- Header ---------- */
.topbar { background: var(--bg-header); border-bottom: 1px solid rgba(255,255,255,.08); }
.topbar .container { display: flex; justify-content: flex-end; gap: 6px; padding-top: 4px; padding-bottom: 4px; }
.social { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.social li { margin: 0; }
.social a { display: grid; place-items: center; width: 32px; height: 32px; color: #fff; border-radius: 50%; }
.social a:hover { color: var(--red-text); }
.social svg { width: 16px; height: 16px; fill: currentColor; }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg-header); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }
.brand img { width: 70px; height: auto; }
.nav { display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-list > li { position: relative; margin: 0; }
.nav-link, .nav-toggle-sub {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-body); font-size: .9rem; color: #fff; text-decoration: none;
  padding: 10px 12px; background: none; border: 0; cursor: pointer;
}
.nav-link:hover, .nav-toggle-sub:hover, .nav-toggle-sub.is-active, .nav-link[aria-current="page"] { color: var(--red-text); }
.nav-toggle-sub svg { width: 10px; height: 10px; fill: currentColor; transition: transform .2s; }
.nav-toggle-sub[aria-expanded="true"] svg { transform: rotate(180deg); }
.submenu {
  list-style: none; margin: 0; padding: 8px 0; min-width: 240px;
  position: absolute; top: 100%; left: 0; background: var(--bg-alt); border-top: 2px solid var(--red);
  box-shadow: 0 10px 30px rgba(0,0,0,.4); display: none;
}
.submenu li { margin: 0; }
.submenu a { display: block; padding: 8px 18px; color: #fff; text-decoration: none; font-size: .9rem; }
.submenu a:hover, .submenu a[aria-current="page"] { color: var(--red-text); background: rgba(255,255,255,.04); }
.has-sub.is-open .submenu { display: block; }
@media (hover: hover) and (min-width: 901px) {
  .has-sub:hover .submenu, .has-sub:focus-within .submenu { display: block; }
}
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: #fff; padding: 8px 10px; cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; fill: currentColor; }

@media (max-width: 900px) {
  .js .menu-btn { display: inline-flex; }
  .js .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg-header); border-top: 1px solid var(--line); display: none; padding: 10px var(--gutter) 20px; }
  .js .nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .no-js .nav-list { flex-wrap: wrap; flex-direction: row; justify-content: center; }
  .nav-link, .nav-toggle-sub { width: 100%; padding: 12px 4px; font-size: 1rem; }
  .submenu { position: static; box-shadow: none; border-top: 0; border-left: 2px solid var(--red); min-width: 0; }
  .header-cta { display: none; }
  .nav .header-cta-mobile { display: block; margin-top: 10px; text-align: center; }
  .site-header .header-inner { position: relative; }
}
@media (min-width: 901px) { .header-cta-mobile { display: none; } }

/* ---------- Heroes ---------- */
.hero {
  position: relative; text-align: center; color: #fff;
  background: var(--bg) center / cover no-repeat;
  isolation: isolate;
}
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(21, 11, 15, .45); z-index: -1; }
.hero--home { background-image: url("../img/hero-home.jpg"); padding: 70px 0 80px; }
.hero--home h1 { margin-bottom: .35em; }
.hero--home p { font-size: .95rem; max-width: 640px; margin: 0 auto 1.6em; }
.hero--page { background-image: url("../img/bg-water.jpg"); background-position: center top; padding: 64px 0 70px; }
.hero--page::before { background: linear-gradient(rgba(21,11,15,.55), rgba(21,11,15,.6)); }
.hero--page h1 { font-size: clamp(2rem, 3.6vw, 2.6rem); margin-bottom: .4em; }
.hero--page p { font-size: .9rem; margin: 0 auto 1.4em; max-width: 620px; }
.hero--page p:last-child { margin-bottom: 0; }

/* ---------- Sections ---------- */
.section { padding: 70px 0; }
.section--tight { padding: 40px 0; }
.section--alt { background: var(--bg-alt); }
.section--water { background: url("../img/bg-water.jpg") center / cover no-repeat; position: relative; isolation: isolate; }
.section--water::before { content: ""; position: absolute; inset: 0; background: rgba(10, 30, 60, .45); z-index: -1; }
.section--water.is-bright { background-position: center bottom; }
.section--boat { background: url("../img/bg-boat.jpg") center / cover no-repeat; position: relative; isolation: isolate; padding: 90px 0; }
.section--boat::before { content: ""; position: absolute; inset: 0; background: rgba(21, 11, 15, .55); z-index: -1; }
.text-sm { font-size: .875rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.stack > * + * { margin-top: 1.2em; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split--40-60 { grid-template-columns: 2fr 3fr; }
.split--60-40 { grid-template-columns: 3fr 2fr; }
.split--top { align-items: start; }
.split img { width: 100%; }
@media (max-width: 760px) {
  .split, .split--40-60, .split--60-40 { grid-template-columns: 1fr; gap: 28px; }
  .split .order-first-mobile { order: -1; }
}

.course-row { padding: 40px 0; border-bottom: 1px solid var(--line); }
.course-row:last-child { border-bottom: 0; }
.course-row h3 { font-size: 1.25rem; }
.course-row p { font-size: .8rem; }

.checklist { padding-left: 1.2em; font-size: .875rem; }
.checklist li::marker { color: var(--red-text); }

.cols-2 { columns: 2; column-gap: 40px; }
.cols-2 li { break-inside: avoid; }
@media (max-width: 760px) { .cols-2 { columns: 1; } }

.schedule { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; font-size: .875rem; }
.schedule h3 { font-size: 1rem; margin-bottom: .4em; font-family: var(--font-body); }
@media (max-width: 760px) { .schedule { grid-template-columns: 1fr 1fr; } }

/* Video: click-to-load (no third-party requests until the visitor asks) */
.video { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-btn {
  position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer;
  background: #000 center / cover no-repeat; color: #fff;
}
.video-btn::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; transform: translate(-50%, -50%);
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 28px no-repeat;
  border-radius: 12px; transition: transform .15s;
}
.video-btn:hover::after, .video-btn:focus-visible::after { transform: translate(-50%, -50%) scale(1.08); }
.video-btn .video-title {
  position: absolute; left: 0; right: 0; top: 0; padding: 12px 14px; text-align: left;
  font: 700 .9rem/1.3 var(--font-body); background: linear-gradient(rgba(0,0,0,.75), transparent);
}

.testimonial { padding: 50px 0; }
.testimonial blockquote { margin: 0; font-size: .9rem; }
.testimonial blockquote p:last-child { margin-bottom: 0; }

.timeline { list-style: none; padding: 0; font-size: .85rem; }
.timeline li { padding-left: 14px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 0; top: .7em; width: 5px; height: 5px; background: var(--red-text); border-radius: 50%; }

/* ---------- Contact form ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.field .req { color: var(--red-text); font-weight: 400; font-size: .8rem; margin-left: 4px; }
.field .hint { display: block; font-size: .8rem; color: var(--text-muted); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 10px 12px; font: inherit; font-size: 1rem; color: #111; background: #fff;
  border: 1px solid #fff; border-radius: 0;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.counter { font-size: .8rem; color: var(--text-muted); margin-top: 4px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form .btn { width: 100%; font-size: 1.1rem; }
.form-status { padding: 12px 16px; border-left: 4px solid var(--red); background: var(--bg-alt); }
.form-status:empty { display: none; }

/* ---------- Footer ---------- */
.cta-band { background: url("../img/bg-water.jpg") center / cover no-repeat; position: relative; isolation: isolate; padding: 60px 0; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: rgba(21, 11, 15, .5); z-index: -1; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { font-size: 1.9rem; margin-bottom: .2em; }
.cta-band .cta-link { color: #fff; font-size: 1.4rem; font-family: var(--font-body); text-decoration: underline; }
.cta-band .cta-link:hover { color: var(--red-text); }
.site-footer { background: var(--bg); border-top: 1px solid rgba(255,255,255,.08); padding: 16px 0; text-align: center; font-size: .75rem; color: var(--text-muted); }
.site-footer p { margin: 0; }
.to-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: var(--red); color: #fff; text-decoration: none;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; }
.to-top svg { width: 16px; height: 16px; fill: currentColor; }

/* 404 */
.notfound { min-height: 50vh; display: grid; place-items: center; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .topbar, .site-header, .cta-band, .to-top, .video-btn::after { display: none !important; }
  body { background: #fff; color: #000; }
  .hero, .section--water, .section--boat { background: none !important; color: #000; }
  a { color: #000; }
}
