/* ── Tokens ───────────────────────────────────────────────── */
:root {
  --depth:   #0C2733;
  --water:   #1B6589;
  --surface: #3FA7C9;
  --light:   #8DD8E8;
  --foam:    #EEF7FA;
  --otter:   #C17B3A;
  --text:    #0E1F27;
  --muted:   #4A7282;
  --rule:    rgba(12,39,51,0.12);
  --white:   #ffffff;

  --ff-display: 'Gill Sans', 'Gill Sans MT', Optima, Candara, sans-serif;
  --ff-body:    system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ff-data:    'Courier New', 'Lucida Console', monospace;

  --s1: 0.5rem;
  --s2: 1rem;
  --s3: 2rem;
  --s4: 3.5rem;
  --s5: 6rem;

  --radius: 2px;
  --header-h: 72px;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, video, svg { max-width: 100%; display: block; }
a { color: inherit; }
button { cursor: pointer; background: none; border: none; font: inherit; }
ul, ol { list-style: none; }

/* ── Base ─────────────────────────────────────────────────── */
body {
  font-family: var(--ff-body);
  background: var(--foam);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
}
body.admin-bar { padding-top: 32px; }

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

/* ── Layout ───────────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--s3);
}

.section { padding: var(--s5) 0; }
.section--sm { padding: var(--s4) 0; }

.bg-depth { background: var(--depth); }
.bg-water { background: var(--water); }
.bg-foam  { background: var(--foam);  }
.bg-white { background: var(--white); }

/* ── Typography ───────────────────────────────────────────── */
.label {
  font-family: var(--ff-data);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--otter);
  display: block;
  margin-bottom: var(--s2);
}
.label--light { color: rgba(238,247,250,0.5); }

.h-display {
  font-family: var(--ff-display);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.h-section {
  font-family: var(--ff-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.15;
  text-wrap: balance;
}
.h-card {
  font-family: var(--ff-display);
  font-size: 1.15rem;
  font-weight: 600;
}

.body-copy {
  font-size: 1.05rem;
  max-width: 60ch;
  color: var(--muted);
  line-height: 1.75;
}
.body-copy a { color: var(--water); text-decoration: underline; }
.body-copy a:hover { color: var(--surface); }

/* ── Site Header ──────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(12,39,51,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(141,216,232,0.08);
  transition: background 0.3s ease;
}
.site-header.is-scrolled { background: rgba(12,39,51,0.98); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--s3);
}

/* Nav takes center space, logo left, actions right */
.site-header__inner .nav { flex: 1; justify-content: center; }

.site-header__logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  flex-shrink: 0;
}
.logo__first {
  font-family: var(--ff-display);
  font-weight: 200;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--light);
  text-transform: uppercase;
}
.logo__last {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--white);
}

/* ── Primary nav ──────────────────────────────────────────── */
.nav { display: flex; }
.nav__list { display: flex; gap: var(--s3); }
.nav__item  { position: relative; }
.nav__link {
  font-family: var(--ff-display);
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(238,247,250,0.75);
  text-decoration: none;
  letter-spacing: 0.04em;
  padding: 4px 0;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav__link:hover,
.nav__item.current-menu-item .nav__link { color: var(--white); }
.nav__item.current-menu-item .nav__link::after {
  content: '';
  display: block;
  height: 2px;
  background: var(--otter);
  margin-top: 2px;
}

/* ── Header actions ───────────────────────────────────────── */
.site-header__actions { display: flex; align-items: center; gap: var(--s2); }

/* ── Otter toggle button ──────────────────────────────────── */
.otter-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(238,247,250,0.35);
  transition: color 0.25s, background 0.25s;
  position: relative;
}
.otter-toggle:hover { color: rgba(238,247,250,0.7); }
.otter-toggle[aria-pressed="true"] { color: var(--otter); }
.otter-toggle__icon { width: 26px; height: 26px; }

/* ── Mobile hamburger ─────────────────────────────────────── */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  width: 32px;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--foam);
  border-radius: 1px;
  transition: transform 0.25s, opacity 0.25s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile nav ───────────────────────────────────────────── */
.mobile-nav {
  display: none;
  background: var(--depth);
  border-top: 1px solid rgba(141,216,232,0.1);
  padding: var(--s2) 0;
}
.mobile-nav[aria-hidden="false"] { display: block; }
.mobile-nav__list { padding: 0 var(--s3); }
.mobile-nav .nav__item { border-bottom: 1px solid rgba(141,216,232,0.07); }
.mobile-nav .nav__link {
  display: block;
  padding: var(--s2) 0;
  font-size: 1.1rem;
  color: var(--foam);
}

/* ── Page offset for fixed header ─────────────────────────── */
.site-main { padding-top: var(--header-h); }
.has-hero   { padding-top: 0; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100svh;
  min-height: 580px;
  background: #07171F;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--s4) var(--s3);
  overflow: hidden;
}

/* top + bottom vignette — header legible, text readable */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(7,23,31,0.60) 0%,
    rgba(7,23,31,0.00) 30%,
    rgba(7,23,31,0.00) 58%,
    rgba(7,23,31,0.65) 100%
  );
  pointer-events: none;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.hero__eyebrow {
  font-family: var(--ff-data);
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--otter);
  margin-bottom: var(--s2);
}

.hero__title {
  font-family: var(--ff-display);
  font-size: clamp(4rem, 12vw, 10.5rem);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.03em;
  color: var(--white);
  text-wrap: balance;
  text-shadow:
    0 0 90px rgba(63,167,201,0.20),
    0 2px 6px rgba(0,0,0,0.45);
}
.hero__title .sub {
  display: block;
  font-weight: 200;
  font-size: clamp(2.2rem, 7vw, 7.2rem);
  color: var(--light);
  text-shadow:
    0 0 70px rgba(141,216,232,0.25),
    0 2px 4px rgba(0,0,0,0.35);
}

.hero__tagline {
  font-size: 1rem;
  color: rgba(238,247,250,0.48);
  margin-top: var(--s3);
  max-width: 44ch;
  line-height: 1.65;
}

.hero__scroll {
  position: absolute;
  bottom: var(--s3);
  right: var(--s3);
  z-index: 2;
  font-family: var(--ff-data);
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(238,247,250,0.25);
  text-decoration: none;
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero__scroll::before {
  content: '';
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(238,247,250,0), rgba(238,247,250,0.3));
  animation: scroll-pulse 2.4s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scroll-pulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1.0); }
  50%       { opacity: 1.0; transform: scaleY(0.55); }
}

/* ── Wave divider ─────────────────────────────────────────── */
.wave-divider { line-height: 0; overflow: hidden; }
.wave-divider--footer { margin-bottom: -1px; }

/* ── Otter element (hidden by default) ───────────────────────
   Revealed when <html class="otter-on"> is set by JS.        */
.otter-element { opacity: 0; transition: opacity 0.4s ease; pointer-events: none; }
html.otter-on .otter-element { opacity: 1; pointer-events: auto; }

/* Otter mode: accent emphasis ──────────────────────────────── */
html.otter-on .hero__eyebrow  { color: var(--otter); }
html.otter-on .label          { color: var(--otter); }

/* ── Section intro two-col ────────────────────────────────── */
.section-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s4);
  align-items: start;
}
.section-intro .body-copy { max-width: none; }

/* ── Pull quote ───────────────────────────────────────────── */
.pull-quote {
  border-left: 3px solid var(--otter);
  padding: var(--s2) var(--s3);
  margin: var(--s4) 0;
}
.pull-quote p {
  font-family: var(--ff-display);
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  font-weight: 300;
  color: var(--water);
  line-height: 1.35;
  text-wrap: balance;
}

/* ── Stats row ────────────────────────────────────────────── */
.stats-row {
  display: flex;
  gap: var(--s4);
  flex-wrap: wrap;
  padding: var(--s4) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin: var(--s4) 0;
}
.stat__value {
  font-family: var(--ff-data);
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--depth);
  font-variant-numeric: tabular-nums;
  display: block;
  line-height: 1;
}
.stat__label {
  font-family: var(--ff-data);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: var(--s1);
  display: block;
}

/* ── Results table ────────────────────────────────────────── */
.results-season { margin-bottom: var(--s4); }
.results-season__year {
  font-family: var(--ff-data);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--otter);
  margin-bottom: var(--s2);
  padding-bottom: var(--s1);
  border-bottom: 1px solid var(--rule);
}

.results-table {
  width: 100%;
  border-collapse: collapse;
}
.results-table th {
  font-family: var(--ff-data);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  padding: var(--s1) var(--s2) var(--s1) 0;
  border-bottom: 1px solid var(--rule);
  font-weight: 400;
}
.results-table td {
  padding: var(--s2) var(--s2) var(--s2) 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  font-size: 0.95rem;
}
.results-table td.time {
  font-family: var(--ff-data);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  color: var(--depth);
}
.results-table td.placement {
  font-family: var(--ff-display);
  font-weight: 700;
  color: var(--water);
}
.results-table td.placement.first  { color: var(--otter); }
.results-table tr:hover td { background: rgba(63,167,201,0.04); }

/* ── Photo strip (homepage intro) ────────────────────────── */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s2);
  margin-top: var(--s4);
}
.photo-strip__item {
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  background: var(--depth);
}
.photo-strip__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.4s ease;
}
.photo-strip__item:hover img { transform: scale(1.04); opacity: 0.88; }
@media (max-width: 600px) { .photo-strip { grid-template-columns: 1fr; } }

/* ── Gallery grid ─────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--s2);
}
.gallery-item {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--depth);
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.3s;
}
.gallery-item:hover img { transform: scale(1.04); opacity: 0.85; }

/* ── Lightbox ─────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(12,39,51,0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox__img { max-height: 90svh; max-width: 90vw; object-fit: contain; }
.lightbox__close {
  position: absolute;
  top: var(--s3);
  right: var(--s3);
  color: var(--foam);
  font-size: 1.5rem;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.lightbox__close:hover { opacity: 1; }

/* ── Contact form (Gravity Forms override) ────────────────── */
.gform_wrapper { max-width: 640px; }
.gform_title { display: none; }

.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="tel"],
.gform_wrapper textarea,
.gform_wrapper select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--white);
  font-family: var(--ff-body);
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
.gform_wrapper input:focus,
.gform_wrapper textarea:focus { border-color: var(--surface); outline: none; }
.gform_wrapper textarea { resize: vertical; min-height: 140px; }
.gform_wrapper label { font-size: 0.85rem; color: var(--muted); margin-bottom: 4px; display: block; }

.gform_wrapper .gform_button {
  display: inline-block;
  padding: 14px 32px;
  background: var(--depth);
  color: var(--white);
  font-family: var(--ff-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: var(--radius);
  transition: background 0.2s;
  border: none;
  cursor: pointer;
}
.gform_wrapper .gform_button:hover { background: var(--water); }

/* ── Partners ─────────────────────────────────────────────── */
.partners { padding: var(--s4) 0; border-top: 1px solid var(--rule); }
.partners__grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  align-items: center;
  margin-top: var(--s2);
}
.partners__item img {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.5;
  transition: filter 0.3s, opacity 0.3s;
}
.partners__item img:hover { filter: grayscale(0); opacity: 1; }
.partners__name {
  font-family: var(--ff-display);
  font-size: 0.9rem;
  color: var(--muted);
}

/* ── Blue Reach section ───────────────────────────────────── */
.blue-reach-block {
  background: var(--depth);
  color: var(--foam);
  padding: var(--s5) 0;
}
.blue-reach-block .h-section { color: var(--foam); }
.blue-reach-block .body-copy { color: rgba(238,247,250,0.65); }
.blue-reach-block .label { color: var(--surface); }
.blue-reach-link {
  display: inline-block;
  margin-top: var(--s3);
  padding: 12px 28px;
  border: 1px solid rgba(141,216,232,0.4);
  color: var(--light);
  font-family: var(--ff-display);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.2s, border-color 0.2s;
}
.blue-reach-link:hover { background: rgba(141,216,232,0.08); border-color: var(--light); }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer { background: var(--depth); }
.site-footer__inner { padding: var(--s4) 0 var(--s3); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--s4);
  padding-bottom: var(--s4);
  border-bottom: 1px solid rgba(141,216,232,0.08);
}

.footer-brand__name {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}
.footer-brand__sub {
  font-size: 0.8rem;
  color: rgba(238,247,250,0.35);
  margin-top: 2px;
}
.footer-brand__reach {
  display: inline-block;
  margin-top: var(--s2);
  font-family: var(--ff-data);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--surface);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.footer-brand__reach:hover { opacity: 1; }

.footer-nav .nav__list { flex-direction: column; gap: var(--s1); }
.footer-nav .nav__link {
  font-size: 0.85rem;
  color: rgba(238,247,250,0.5);
}
.footer-nav .nav__link:hover { color: var(--foam); }
.footer-nav .nav__item.current-menu-item .nav__link::after { display: none; }

.footer-social {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}
.footer-social__link {
  display: flex;
  align-items: center;
  gap: var(--s1);
  font-size: 0.85rem;
  color: rgba(238,247,250,0.5);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-social__link:hover { color: var(--foam); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--s2);
  margin-top: var(--s2);
}
.footer-bottom__copy {
  font-family: var(--ff-data);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(238,247,250,0.2);
}
.footer-bottom__otter { font-size: 1.2rem; }

/* ── Page title (non-hero pages) ──────────────────────────── */
.page-title-block {
  padding: var(--s5) 0 var(--s4);
  background: var(--depth);
}
.page-title-block .label { color: var(--surface); opacity: 0.7; }
.page-title-block .h-display {
  font-size: clamp(3rem, 8vw, 7rem);
  color: var(--white);
}

/* ── Generic page content ─────────────────────────────────── */
.page-content {
  padding: var(--s5) 0;
}
.page-content h2 { font-family: var(--ff-display); font-weight: 300; font-size: clamp(1.5rem,3vw,2.2rem); color: var(--water); margin-bottom: var(--s2); margin-top: var(--s4); }
.page-content p  { max-width: 65ch; color: var(--muted); line-height: 1.75; margin-bottom: var(--s2); }

/* ── Contact form ─────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s5);
  align-items: start;
}
.contact-form { display: flex; flex-direction: column; gap: var(--s2); }
.cf-field { display: flex; flex-direction: column; gap: 6px; }
.cf-field label {
  font-family: var(--ff-data);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.cf-field input,
.cf-field textarea {
  font-family: var(--ff-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  border: 1px solid rgba(12,39,51,0.18);
  border-radius: var(--radius);
  padding: 10px 14px;
  transition: border-color 0.2s;
  width: 100%;
}
.cf-field input:focus,
.cf-field textarea:focus {
  outline: none;
  border-color: var(--water);
  box-shadow: 0 0 0 3px rgba(27,101,137,0.12);
}
.cf-field textarea { resize: vertical; min-height: 120px; }
.cf-submit {
  align-self: flex-start;
  padding: 12px 32px;
  background: var(--depth);
  color: var(--foam);
  font-family: var(--ff-display);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
  border: none;
}
.cf-submit:hover { background: var(--water); transform: translateY(-1px); }
.contact-notice {
  padding: 14px 20px;
  border-radius: var(--radius);
  margin-bottom: var(--s4);
  font-size: 0.9rem;
}
.contact-notice--ok  { background: #e8f8f2; color: #1a5c3e; border: 1px solid #a8dfc5; }
.contact-notice--err { background: #fdf1f1; color: #8b1a1a; border: 1px solid #f5c0c0; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav { display: none; }
  .menu-toggle { display: flex; }
  .section-intro { grid-template-columns: 1fr; gap: var(--s3); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  :root { --s5: 4rem; --s4: 2.5rem; }
  .container { padding: 0 var(--s2); }
  .hero { padding: var(--s3) var(--s2); }
  .footer-grid { grid-template-columns: 1fr; gap: var(--s3); }
  .results-table th:nth-child(4),
  .results-table td:nth-child(4) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
