/* ==========================================================================
   Ocean Groove — Electric Shoreline design system
   Shared stylesheet, loaded by every page. No build step / no preprocessor.
   ========================================================================== */

/* ---- Font: Palm Club (hero wordmark only) ----
   License not yet secured — file intentionally absent until Colin sources it.
   Falls back to Fraunces so the site renders correctly either way; once
   brand_assets/fonts/PalmClub.woff2 exists, it activates automatically. */
@font-face {
  font-family: 'Palm Club';
  src: url('/brand_assets/fonts/PalmClub.woff2') format('woff2');
  font-display: swap;
}

:root {
  /* Backgrounds — Atlantic ocean blue base */
  --color-bg: #0A3B54;
  --color-surface: #114D6C;
  --color-surface-alt: #082C40;
  --color-border: rgba(255, 255, 255, 0.14);

  /* Primary — ocean blue (solid fills, self-contained components) */
  --color-ocean: #0B4F6C;
  --color-ocean-hover: #083B52;
  --color-ocean-light: #4FA8D8;

  /* Neon — glow accessory only */
  --color-neon: #39FF14;

  /* Text */
  --color-text: #EAF6F8;
  --color-text-muted: #9FC3D6;
  --color-ink: #0B2E4A;

  /* Dark vignette (nav / footer bookends) */
  --nav-dark-1: #0A2A38;
  --nav-dark-2: #020608;

  /* Shadows & glow */
  --shadow-card: 0 4px 22px rgba(0, 0, 0, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --shadow-card-hover: 0 12px 34px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --glow-neon: 0 0 20px rgba(57, 255, 20, 0.35);
  --glow-neon-strong: 0 0 16px rgba(57, 255, 20, 0.55), 0 0 40px rgba(57, 255, 20, 0.3);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --container: 1180px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
ul { margin: 0; padding: 0; }
button { font: inherit; }

/* ---- Typography ---- */
h1, h2, h3, .font-display {
  font-family: 'Fraunces', serif;
  font-optical-sizing: auto;
  color: #FFFFFF;
  margin: 0;
  letter-spacing: -0.01em;
}
h1 { font-weight: 900; font-size: clamp(2.4rem, 5.4vw, 4.2rem); line-height: 1.04; }
h2 { font-weight: 800; font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.1; }
h3 { font-weight: 700; font-size: 1.4rem; color: var(--color-text); }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
.text-muted { color: var(--color-text-muted); }
.eyebrow {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-ocean-light);
  margin-bottom: 0.75rem;
}

/* ---- Layout helpers ---- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5.5rem 0; }
.section--alt { background: var(--color-surface-alt); }
.section--tight { padding: 3.5rem 0; }
.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
@media (max-width: 767px) {
  .section { padding: 3.25rem 0; }
  .section-head { margin-bottom: 2rem; }
}

/* ---- Skip link ---- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--color-ocean); color: #fff; padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---- Focus states ---- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--color-ocean-light);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ==========================================================================
   Nav
   ========================================================================== */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: linear-gradient(90deg, var(--nav-dark-2) 0%, var(--nav-dark-1) 50%, var(--nav-dark-2) 100%);
  box-shadow: 0 1px 0 rgba(57, 255, 20, 0.12), 0 6px 28px rgba(0, 0, 0, 0.35);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; height: 76px;
}
.nav-brand { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.og-badge {
  width: 46px; height: 46px; border-radius: 50%;
  display: block; object-fit: cover; flex-shrink: 0;
  border: 2px solid var(--color-neon);
  background: rgba(57, 255, 20, 0.07);
  box-shadow: 0 0 12px rgba(57, 255, 20, 0.3), inset 0 0 8px rgba(57, 255, 20, 0.12);
  transition: box-shadow 0.25s var(--ease-spring), transform 0.25s var(--ease-spring);
}
.nav-brand:hover .og-badge, .nav-brand:focus-visible .og-badge {
  box-shadow: var(--glow-neon-strong), inset 0 0 10px rgba(57, 255, 20, 0.2);
  transform: scale(1.06);
}
.nav-brand:focus-visible { outline: none; }

.nav-menu { display: flex; }
.nav-menu ul { display: flex; align-items: center; gap: 2.1rem; list-style: none; }
.nav-menu a {
  display: inline-block;
  position: relative;
  padding: 6px 0 10px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500; font-size: 0.78rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav-menu a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px;
  background: var(--color-neon); border-radius: 2px; box-shadow: var(--glow-neon);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.28s var(--ease-spring);
}
.nav-menu a:hover, .nav-menu a:focus-visible { color: #fff; }
.nav-menu a:hover::after, .nav-menu a:focus-visible::after,
.nav-menu a[aria-current="page"]::after { transform: scaleX(1); }
.nav-menu a[aria-current="page"] { color: #fff; }
.nav-menu a:focus-visible { outline: 2px solid var(--color-neon); outline-offset: 4px; border-radius: 3px; }

.nav-social { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.social-badge {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid rgba(255, 255, 255, 0.32);
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition: border-color 0.25s var(--ease-spring), color 0.25s var(--ease-spring), transform 0.25s var(--ease-spring), box-shadow 0.25s var(--ease-spring);
}
.social-badge svg { width: 18px; height: 18px; }
.social-badge:hover, .social-badge:focus-visible {
  border-color: var(--color-neon); color: #fff; transform: translateY(-2px);
  box-shadow: var(--glow-neon);
}

.nav-toggle {
  display: none;
  width: 42px; height: 42px; border-radius: 50%;
  align-items: center; justify-content: center;
  background: transparent; border: 1.5px solid rgba(255, 255, 255, 0.32);
  color: #fff; cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s var(--ease-spring);
}
.nav-toggle:hover { border-color: var(--color-neon); }
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: 76px; left: 0; right: 0;
    background: linear-gradient(180deg, var(--nav-dark-1) 0%, var(--nav-dark-2) 100%);
    max-height: 0; overflow: hidden;
    transition: max-height 0.32s var(--ease-spring);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
  }
  .nav-menu.is-open { max-height: 520px; }
  .nav-menu ul { flex-direction: column; align-items: flex-start; gap: 0; padding: 1rem 1.5rem 1.5rem; width: 100%; }
  .nav-menu li { width: 100%; }
  .nav-menu a { display: block; padding: 0.85rem 0; width: 100%; }
  .nav-menu a::after { bottom: 2px; }
}

/* ==========================================================================
   Hero (Home)
   ========================================================================== */
.hero {
  position: relative; height: 92vh; min-height: 580px; max-height: 900px;
  overflow: hidden; background: #020608;
}
@supports (height: 92dvh) {
  .hero { height: 92dvh; }
}
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* iOS/WebKit shows a native "tap to play" overlay on <video> in some
   autoplay-blocked cases, even without the controls attribute — this is
   purely cosmetic UI on WebKit's part and doesn't affect our own JS retry
   logic, so it's safe to hide outright. */
.hero-media::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
  pointer-events: none;
}
.hero-media::-webkit-media-controls {
  display: none !important;
}
/* Touch devices without hover (phones/tablets — see the matching JS check in
   index.html that swaps in the dedicated native-vertical source) whose
   aspect ratio already closely matches phone screens. .hero's height is
   driven by dvh, which tracks Safari's collapsing/expanding address bar —
   that value genuinely shifts depending on browser-chrome state (Low Power
   Mode changes this), and object-fit:cover scales based on container height
   when height-driven, which reads as the video "zooming" as that value
   moves. Sizing the video off width instead (which never jitters) and
   letting vertical overflow clip silently makes the on-screen framing fully
   independent of container height — stable regardless of Low Power Mode,
   address-bar state, or whether autoplay has actually started yet. Keyed to
   the same (pointer:coarse)+(hover:none) signal as the JS source swap, so
   the two can never disagree with each other. */
@media (pointer: coarse) and (hover: none) {
  .hero-media {
    inset: auto;
    top: 50%;
    left: 0;
    width: 100%;
    height: auto;
    transform: translateY(-50%);
  }
}
.hero-content {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 1.5rem;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; transform: translateY(16vh); }
.hero-scroll-cue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 2; color: rgba(255, 255, 255, 0.6);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  animation: bobCue 2.4s ease-in-out infinite;
}
.hero-scroll-cue svg { width: 22px; height: 22px; }
@keyframes bobCue { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.95rem 1.9rem; border-radius: 999px;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s var(--ease-spring), background-color 0.2s var(--ease-spring), color 0.2s var(--ease-spring);
}
.btn svg { width: 18px; height: 18px; }

/* Primary CTA: neon-sign treatment */
.btn--neon {
  background: rgba(2, 6, 8, 0.88);
  border-color: var(--color-neon);
  color: var(--color-neon);
  box-shadow: var(--glow-neon), inset 0 0 14px rgba(57, 255, 20, 0.08);
}
.btn--neon:hover, .btn--neon:focus-visible {
  background: rgba(57, 255, 20, 0.12);
  box-shadow: var(--glow-neon-strong), inset 0 0 18px rgba(57, 255, 20, 0.16);
  transform: translateY(-2px);
  color: #EAFBE0;
}
.btn--neon:active { transform: translateY(0); box-shadow: var(--glow-neon); }
.btn--neon:focus-visible { outline: 2px solid var(--color-neon); outline-offset: 3px; }

/* Secondary: solid ocean */
.btn--ocean {
  background: var(--color-ocean); border-color: var(--color-ocean); color: #fff;
  box-shadow: var(--shadow-card);
}
.btn--ocean:hover, .btn--ocean:focus-visible {
  background: var(--color-ocean-hover); border-color: var(--color-ocean-hover);
  transform: translateY(-2px); box-shadow: var(--shadow-card-hover);
}
.btn--ocean:active { transform: translateY(0); }

/* Tertiary: outline, fills solid ocean on hover */
.btn--outline {
  background: transparent; border-color: rgba(255, 255, 255, 0.5); color: #fff;
}
.btn--outline:hover, .btn--outline:focus-visible {
  background: var(--color-ocean); border-color: var(--color-ocean); color: #fff; transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

/* Ghost on dark bg / over video (own backdrop so it stays legible regardless of what's behind it) */
.btn--ghost-dark {
  background: rgba(2, 6, 8, 0.4); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border-color: rgba(255, 255, 255, 0.45); color: #fff;
}
.btn--ghost-dark:hover, .btn--ghost-dark:focus-visible {
  border-color: var(--color-neon); box-shadow: var(--glow-neon); transform: translateY(-2px);
  background: rgba(2, 6, 8, 0.55);
}

/* ==========================================================================
   Cards
   ========================================================================== */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 1.9rem;
  transition: transform 0.28s var(--ease-spring), box-shadow 0.28s var(--ease-spring), border-color 0.28s var(--ease-spring);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card-hover); border-color: var(--color-ocean-light); }

.badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(79, 168, 216, 0.2); color: #fff;
  border: 1px solid rgba(79, 168, 216, 0.5);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.35rem 0.8rem; border-radius: 999px;
}
.badge--next {
  background: rgba(57, 255, 20, 0.14); color: var(--color-neon); border-color: rgba(57, 255, 20, 0.55);
}

/* ---- Icon color roles ---- */
.icon-ocean { color: #fff; }
.icon-light { color: var(--color-ocean-light); }

/* ---- Wave divider ---- */
.wave-divider { line-height: 0; }
.wave-divider svg { width: 100%; height: 34px; display: block; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: linear-gradient(90deg, var(--nav-dark-2) 0%, var(--nav-dark-1) 50%, var(--nav-dark-2) 100%);
  color: rgba(255, 255, 255, 0.72);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem;
  padding-bottom: 2.75rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 0.9rem; }
.footer-brand-name { font-family: 'Fraunces', serif; font-weight: 800; font-size: 1.35rem; color: #fff; }
.footer-tagline { font-family: 'Fraunces', serif; font-style: italic; font-weight: 600; color: rgba(255, 255, 255, 0.6); max-width: 32ch; }
.footer-heading { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); margin-bottom: 1rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.footer-links a { text-decoration: none; color: rgba(255, 255, 255, 0.78); font-size: 0.92rem; transition: color 0.2s ease; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--color-neon); }
.footer-social { display: flex; gap: 0.6rem; margin-top: 1.1rem; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem;
  padding-top: 1.75rem; font-size: 0.82rem; color: rgba(255, 255, 255, 0.45);
}
@media (max-width: 767px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ==========================================================================
   Forms
   ========================================================================== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-field { display: flex; flex-direction: column; gap: 0.45rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; color: #fff; text-transform: uppercase; }
.form-field input, .form-field select, .form-field textarea {
  font-family: 'Space Grotesk', sans-serif; font-size: 0.98rem; color: var(--color-ink);
  background: #fff; border: 1.5px solid var(--color-border); border-radius: var(--radius-sm);
  padding: 0.85rem 1rem; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-field textarea { resize: vertical; min-height: 120px; font-family: inherit; }
.form-field input:hover, .form-field select:hover, .form-field textarea:hover { border-color: var(--color-ocean-light); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--color-ocean); box-shadow: 0 0 0 3px rgba(79, 168, 216, 0.25);
}
.form-note { font-size: 0.85rem; color: var(--color-text-muted); }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.form-success {
  display: none; align-items: flex-start; gap: 0.9rem;
  background: rgba(57, 255, 20, 0.14); border: 1px solid rgba(57, 255, 20, 0.45);
  border-radius: var(--radius-md); padding: 1.25rem 1.5rem; color: var(--color-text);
}
.form-success.is-visible { display: flex; }
.form-success svg { flex-shrink: 0; width: 24px; height: 24px; margin-top: 2px; color: var(--color-neon); }
.form-success h3 { color: var(--color-neon); }
.form-error {
  display: none; background: rgba(255, 120, 120, 0.14); border: 1px solid rgba(255, 120, 120, 0.4);
  border-radius: var(--radius-md); padding: 1rem 1.25rem; color: #FFB3B3; font-size: 0.92rem;
}
.form-error.is-visible { display: block; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }

/* ==========================================================================
   Page hero banners (non-home pages)
   ========================================================================== */
.page-banner {
  background: linear-gradient(180deg, var(--color-surface-alt) 0%, var(--color-bg) 100%);
  padding: 4.5rem 0 3rem;
}
.page-banner h1 { margin-bottom: 0.85rem; }
.page-banner .lede { max-width: 62ch; font-size: 1.08rem; color: var(--color-text-muted); }

/* ==========================================================================
   Utility grids
   ========================================================================== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* Placeholder tiles (Merch / Gallery) */
.placeholder-tile {
  position: relative; border-radius: var(--radius-md); overflow: hidden;
  border: 1.5px dashed var(--color-border);
  background: repeating-linear-gradient(45deg, var(--color-surface) 0px, var(--color-surface) 14px, var(--color-surface-alt) 14px, var(--color-surface-alt) 28px);
}
.placeholder-tile img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.placeholder-tile .tile-flag {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.5rem; text-align: center; padding: 1rem;
  background: linear-gradient(180deg, rgba(8,44,64,0.1) 0%, rgba(4,22,32,0.82) 100%);
}
.placeholder-tile .tile-flag svg { width: 30px; height: 30px; color: var(--color-ocean-light); }
.placeholder-tile .tile-flag span { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-text-muted); }

.photo-tile { position: relative; border-radius: var(--radius-md); overflow: hidden; display: block; }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s ease; }
.photo-tile:hover img { transform: scale(1.05); }
