/* Fuvahmulah Marine Foundation · brand tokens from the FMF brand guide */
:root {
  --deep-ocean: #0D2D52;
  --ocean-blue: #1A5C94;
  --lagoon: #82B9D7;
  --sea-foam: #EAF3F8;
  --white: #FFFFFF;
  --ink-muted: #4E6378;
  --ink-soft: #2B3F55;
  --line: #D6E3EC;
  --font: "Montserrat", "Calibri", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--deep-ocean); background: var(--white); line-height: 1.5; }
img { max-width: 100%; height: auto; }
a { color: var(--ocean-blue); }
a:hover { color: var(--deep-ocean); }
:focus-visible { outline: 3px solid var(--lagoon); outline-offset: 2px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: 1280px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--deep-ocean); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 2000; }
.skip:focus { left: 8px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--ocean-blue); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--white); position: sticky; top: 0; z-index: 1000; }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 10px; }
.brand img { height: 52px; width: auto; display: block; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; font-size: 15px; font-weight: 600; }
nav a { color: var(--deep-ocean); text-decoration: none; padding: 8px 0; }
nav a:hover { color: var(--ocean-blue); }
.btn-nav { background: var(--deep-ocean); color: #fff !important; padding: 10px 16px !important; border-radius: 8px; }

/* Map section */
.map-section { background: var(--sea-foam); }
.map-grid { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding-block: 40px 48px; }
.map-col { flex: 1 1 460px; min-width: 0; }
.map { width: 100%; height: min(78vh, 680px); min-height: 420px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--sea-foam); }
.map .leaflet-tile-pane { filter: grayscale(.9) sepia(.15) hue-rotate(175deg) saturate(1.8) brightness(1.04) contrast(.95); }
.map-note { margin-top: 10px; font-size: 13px; color: var(--ink-muted); }
.info-col { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
h1 { font-size: clamp(32px, 4.2vw, 46px); line-height: 1.08; font-weight: 800; }
.lead { font-size: 18px; line-height: 1.6; color: var(--ink-soft); max-width: 34em; }

.station-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.card-head h2 { font-size: 24px; font-weight: 800; }
.chip { font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--sea-foam); color: var(--ocean-blue); }
.chip:empty { display: none; }
.card-note { font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.facts div { background: var(--sea-foam); border-radius: 10px; padding: 10px 12px; }
.facts dt { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ocean-blue); }
.facts dd { margin: 2px 0 0; font-size: 14px; font-weight: 600; }
.btn-primary, .btn-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 10px; font-weight: 700; font-size: 16px; text-decoration: none; }
.btn-primary { background: var(--deep-ocean); color: #fff; }
.btn-primary:hover { background: var(--ocean-blue); color: #fff; }
.btn-secondary { background: var(--ocean-blue); color: #fff; }
.btn-secondary:hover { background: var(--deep-ocean); color: #fff; }

.station-list { display: flex; flex-direction: column; gap: 8px; }
.list-label { font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-muted); }
.station-list ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.station-list button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: transparent; font: inherit; font-size: 15px; text-align: left; color: var(--deep-ocean); cursor: pointer; }
.station-list button span:first-child { font-weight: 700; }
.station-list button span:last-child { font-size: 13px; color: var(--ink-muted); }
.station-list button:hover { background: var(--white); }
.station-list button[aria-pressed="true"] { background: var(--white); border: 2px solid var(--ocean-blue); }
.coming { font-size: 14px; color: var(--ink-soft); padding: 12px 14px; border: 1px dashed var(--lagoon); border-radius: 10px; }

/* Map pins */
.fmf-pin { background: none; border: none; }
.fmf-pin svg { display: block; filter: drop-shadow(0 2px 3px rgba(13,45,82,.35)); transition: transform .15s ease; transform-origin: 50% 100%; }
.fmf-pin.is-active svg { transform: scale(1.3); }
.leaflet-container { font-family: var(--font); }
.leaflet-popup-content { font-family: var(--font); font-weight: 700; color: var(--deep-ocean); margin: 10px 14px; }

/* Impact */
.impact { background: var(--deep-ocean); color: #fff; }
.impact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; padding-block: 36px; }
.impact-grid span { display: block; font-size: 15px; color: #C9DCEA; }
.impact-grid .big { font-size: 44px; font-weight: 800; color: #fff; line-height: 1.1; font-variant-numeric: tabular-nums; }

/* Story */
.story-row { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-block: 64px; }
.story-drop { flex: 0 0 auto; width: 180px; max-width: 40%; }
.story-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.story-text h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.15; font-weight: 800; }
.story-text p:not(.eyebrow) { font-size: 17px; line-height: 1.65; color: var(--ink-soft); max-width: 40em; }

/* Partner */
.partner { background: var(--sea-foam); }
.partner-row { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; padding-block: 56px; }
.partner-row > div { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.partner-row h2 { font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2; font-weight: 800; }
.partner-row p:not(.eyebrow) { font-size: 16px; line-height: 1.6; color: var(--ink-soft); max-width: 38em; }

/* Support */
.support-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; padding-block: 56px; }
.tile { padding: 24px; border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; gap: 10px; }
.tile h3 { font-size: 20px; font-weight: 800; }
.tile p { font-size: 15px; line-height: 1.6; color: var(--ink-soft); }

/* Footer */
.site-footer { background: var(--deep-ocean); color: #fff; }
.footer-row { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-start; padding-block: 44px; }
.footer-row img { height: 96px; width: auto; }
.footer-row p { font-size: 15px; line-height: 1.6; }
.footer-row a { color: #fff; text-decoration: none; }
.footer-row a:hover { color: var(--lagoon); }
.foot-title { font-weight: 700; }
.tagline { color: var(--lagoon); font-weight: 700; }
.muted { color: #C9DCEA; }

@media (max-width: 640px) {
  .map { height: 62vh; min-height: 360px; }
  .site-header { position: static; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fmf-pin svg { transition: none; }
}
