/* styles.css — Oceanic/adventure vibe with depth and motion */
:root{
  --deep:   #001a2d;  /* deep Pacific */
  --mid:    #014e74;  /* mid ocean */
  --aqua:   #00b3c6;  /* tropical teal */
  --sun:    #ffb36b;  /* sun-kissed accent */
  --foam:   #e6fafc;  /* light foam */
  --text:   #f2fbfd;
  --muted:  #b8d6df;
  --card:   rgba(255,255,255,.06);
  --stroke: rgba(255,255,255,.20);
  --radius: 16px;
  --shadow: 0 12px 40px rgba(0,0,0,.35);
}

*{box-sizing:border-box}
html,body{
  margin:0; min-height:100%;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: #02121f;
  overflow-x: hidden;
}

/* Layered ocean background with subtle parallax gradient & noise */
.ocean-bg{
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(1200px 700px at 70% 10%, rgba(0,179,198,.25), transparent 65%),
    radial-gradient(1000px 600px at 10% 90%, rgba(255,179,107,.15), transparent 60%),
    linear-gradient(to bottom, var(--deep) 0%, #01304f 40%, var(--mid) 70%, #02283f 100%);
}
.ocean-noise{
  position: fixed; inset:0; z-index:-1; mix-blend-mode: overlay; opacity:.12;
  background-image: url('data:image/svg+xml;utf8,\
    <svg xmlns="http://www.w3.org/2000/svg" width="120" height="120" viewBox="0 0 120 120">\
      <filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="2" stitchTiles="stitch"/></filter>\
      <rect width="120" height="120" filter="url(%23n)" opacity="0.35"/>\
    </svg>');
  background-size: 300px 300px;
}

/* Header */
.site-header{
  position: sticky; top: 0; z-index: 1000;
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 14px;
  padding: 1px 2px;
  background: linear-gradient(180deg, rgba(2,24,40,.74), rgba(2,24,40,.45));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

/* Hamburger */
.hamburger{
  width:40px; height:36px; border:0; background:transparent; cursor:pointer;
  display:inline-flex; flex-direction:column; justify-content:center; gap:6px;
}
.hamburger span{display:block; height:2px; width:22px; background:var(--foam); border-radius:2px}

/* Brand (Oʻahu trace + wordmark) */
.brand{
  display:flex; align-items:center; gap:10px; text-decoration:none; color: var(--foam);
  font-weight:800; letter-spacing:.2px;
}
.brand-icon {
  width: 75px;   /* try 80px–120px */
  height: 75px;
  stroke: #2DD4BF;
  stroke-width: 3;
}

.brand-icon path{ stroke: var(--aqua); stroke-width: 2.5; filter: drop-shadow(0 0 6px rgba(0,179,198,.45)); }
.brand-text{ text-shadow: 0 1px 0 rgba(0,0,0,.25);
          font-size: calc(0.35 * var(--brand-icon-size, 80px)) }

/* Top nav (minimal) */
.main-nav{ display:flex; gap: 16px; justify-content:flex-end; }
.main-nav a{
  color: var(--muted); text-decoration: none; font-weight:600;
  padding:6px 10px; border-radius: 10px; transition: transform .12s ease, background .12s ease, color .12s ease;
}
.main-nav a:hover{ color: var(--foam); background: rgba(255,255,255,.06); transform: translateY(-1px); }
@media (max-width: 900px){ .main-nav{ display:none } }

/* Drawer (hamburger menu) */
.drawer{
  position: fixed; top: 0; left: 0; height: 100%; width: 340px; z-index: 1100;
  transform: translateX(-100%); transition: transform .25s ease;
  background: linear-gradient(180deg, rgba(2,24,40,.98), rgba(2,24,40,.92));
  border-right: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow);
  padding: 16px; overflow-y: auto;
}
.drawer.open{ transform: translateX(0) }
.drawer-header{ display:flex; justify-content:space-between; align-items:center; margin-bottom: 8px; color: var(--foam); }
.drawer-close{ background:transparent; color: var(--foam); border:none; font-size:28px; cursor:pointer; }
.drawer-section{ margin: 16px 0; }
.drawer-section h3{ margin:0 0 8px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .9px; }
.drawer a{
  display:block; color: var(--foam); text-decoration:none; padding:10px 8px; border-radius: 10px;
  transition: background .12s ease, transform .12s ease;
}
.drawer a:hover{ background: rgba(255,255,255,.08); transform: translateX(2px); }
.drawer-social a{ display:inline-block; margin-right: 12px; font-size: 20px; color: var(--muted); }
.drawer-social a:hover{ color: var(--foam); }
.sponsor-cta{
  background: linear-gradient(135deg, var(--aqua), var(--sun)); color:#0a1a22 !important; font-weight:800;
  margin-top: 8px;
}

/* Backdrop */
.backdrop{ position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 1090; }

/* Map card */
.wrap{ max-width: 1200px; margin: 8px auto 90px; padding: 0 14px; }
.card{
  position: relative; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* Keep your map sizing */
#map{ height: clamp(440px, 62vh, 740px); width: 100%; margin-top: 0; }

/* Map guide chip */
.map-guide{
  position: absolute; left: 16px; bottom: 16px; z-index: 5;
  background: rgba(1, 29, 48, .85); color: var(--foam);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px; padding: 8px 12px; font-size: 14px;
}

/* Footer */
.site-footer{
  border-top: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(1,29,48,.85), rgba(1,29,48,.65));
  padding: 18px 14px; display:flex; align-items:center; justify-content:space-between;
}
.site-footer .social a{ color: var(--muted); margin-right:14px; font-size:20px; text-decoration:none; }
.site-footer .social a:hover{ color: var(--foam); }
.legal{ color: var(--muted); font-size: 14px; }

/* Drawer focus ring for keyboard users */
.drawer :focus-visible {
  outline: 2px solid var(--aqua);
  outline-offset: 2px;
}
/* INTRODUCTION PAGE ADD-ONS */

/* Hero card with subtle ocean gradient & glow */
.intro-hero{
  overflow: clip;
  background:
    radial-gradient(800px 400px at 85% -10%, rgba(0,179,198,.22), transparent 70%),
    radial-gradient(1000px 600px at -10% 110%, rgba(255,179,107,.12), transparent 65%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  position: relative;
}
.intro-hero__content{
  padding: clamp(24px, 5vw, 48px);
  max-width: 900px;
}
.intro-hero h1{
  margin: 0 0 8px;
  font-size: clamp(28px, 4.8vw, 44px);
  line-height: 1.1;
  text-shadow: 0 2px 28px rgba(0,179,198,.35);
}
.lead{
  margin: 8px 0 18px;
  font-size: clamp(16px, 2.4vw, 20px);
  color: var(--muted);
}

/* Prose */
.prose{
  padding: clamp(18px, 3.6vw, 28px);
  max-width: 880px;
}
.prose p{ margin: 0 0 14px; }

/* Image grid */
.intro-grid{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(10px, 2vw, 16px);
  padding: 0 clamp(18px, 3.6vw, 28px) clamp(18px, 3.6vw, 28px);
}
.intro-photo{
  grid-column: span 6;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.intro-photo img{
  display: block;
  width: 100%;
  height: auto;
}
.intro-photo figcaption{
  padding: 10px 12px;
  font-size: 14px;
  color: var(--muted);
}
@media (max-width: 820px){
  .intro-photo{ grid-column: 1 / -1; }
}

/* CTA buttons */
.btn{
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700; text-decoration: none;
  background: rgba(255,255,255,.1);
  color: var(--text);
  border: 1px solid var(--stroke);
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.btn:hover{ transform: translateY(-1px); background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.25); }
.btn i{ font-size: 0.95em; }

.btn-sun{
  background: linear-gradient(135deg, var(--aqua), var(--sun));
  color: #0a1a22; border-color: transparent;
}
.btn-sun:hover{ transform: translateY(-1px); opacity: .95; }

.btn-outline{
  background: transparent;
  border-color: rgba(255,255,255,.35);
}

.intro-cta{
  display: flex; gap: 10px; flex-wrap: wrap;
  padding: 0 clamp(18px, 3.6vw, 28px) clamp(22px, 4vw, 34px);
}
.avatar {
  max-width: 250px;   /* keep it a reasonable size */
  width: 100%;        /* scale down responsively */
  height: auto;       /* preserve aspect ratio */
  border-radius: 50%; /* if you want it round */
  display: block;
  margin: 0 auto;
}

/* ==========================================================================
   COVERAGE PANEL STYLES (Moved from strava_api.js)
   ========================================================================== */
#coverage-panel {
  max-width: 1100px;
  margin: 12px auto 0 auto;
  padding: 0 12px;
}
.coverage-card {
  background: #0b132b;
  color: #E6FFFA;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  padding: 12px 16px;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto;
  display: grid;
  grid-template-columns: 1fr minmax(160px, 320px);
  gap: 14px;
  align-items: center;
}
.coverage-nums { font-weight: 600; line-height: 1.35; font-size: 14px; }
.coverage-nums .big { font-size: 18px; display:block; margin-bottom: 2px; }
.coverage-nums .small { opacity:.85; display:block; }
.coverage-bar {
  height: 10px;
  background: rgba(255,255,255,.12);
  border-radius: 999px;
  overflow: hidden;
}
.coverage-bar .fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg,#2DD4BF,#60A5FA);
  transition: width .4s ease;
}
@media (max-width: 640px){
  .coverage-card { grid-template-columns: 1fr; }
}