/* River Flow Co — landing page */
:root {
  --cream: #EDDFC4;
  --cream-2: #F0E4CC;
  --cream-deep: #E4D2AF;
  --cream-line: #D8C49C;

  --navy: #1B3A53;
  --navy-deep: #112C40;
  --navy-soft: #2D4F6A;

  --sky: #B6D7E8;
  --sky-deep: #8FB8D0;
  --sky-soft: #DDEAF1;

  --gold: #B4632F;
  --gold-deep: #8C4A1F;

  --river: #4A86B8;
  --river-deep: #2F6A99;
  --river-soft: #A8CBE3;

  --ink: #15110D;
  --ink-2: #2A2520;
  --muted: #6B5E4B;
  --muted-2: #8A7C68;

  --good: #5C8E5F;
  --warn: #C49545;
  --bad: #B45B49;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;

  --serif: "Spectral", "Source Serif Pro", Georgia, serif;
  --sans: "Manrope", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream-2);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.serif { font-family: var(--serif); }
.italic { font-style: italic; }
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.river-name {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--gold);
  letter-spacing: -0.01em;
}

/* ── Nav (overridden to match existing app's cream glass) */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 32px;
  height: 60px;
  background: rgba(243, 233, 217, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(26, 26, 26, 0.07);
}
.nav-left { display: flex; align-items: center; gap: 14px; }
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: #1A1A1A;
}
.nav-brand-text {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #1A1A1A;
}
.nav-center {
  display: flex; gap: 28px; align-items: center; justify-content: center;
}
.nav-link {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(26, 26, 26, 0.5);
  text-decoration: none;
  cursor: pointer;
  padding: 4px 2px;
  border: none; background: none;
  transition: color 0.15s;
}
.nav-link:hover { color: #1A1A1A; }
.nav-link.is-active { color: #1D6EB3; font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 22px; justify-content: flex-end; }
.nav-open-app {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(26, 26, 26, 0.5);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-open-app:hover { color: #1A1A1A; }

/* ── Hero */
.hero {
  position: relative;
  padding: 80px 24px 100px;
  overflow: hidden;
  background: #0D2035;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    160deg,
    rgba(8, 22, 38, 0.45) 0%,
    rgba(8, 22, 38, 0.35) 40%,
    rgba(8, 22, 38, 0.55) 100%
  );
}
.hero-card {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  background: var(--cream);
  border-radius: var(--r-lg);
  padding: 56px 64px 48px;
  box-shadow: 0 30px 80px -20px rgba(20,12,4,0.25), 0 2px 0 rgba(255,255,255,0.4) inset;
}
.hero-eyebrow {
  display: flex; align-items: center; gap: 10px;
  color: var(--muted);
  margin-bottom: 28px;
}
.hero-eyebrow-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--river);
}
.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 16px;
}
.hero-title em {
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}
.hero-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.4;
  color: var(--muted);
  margin: 0 0 40px;
  max-width: 560px;
}

/* Search */
.search {
  position: relative;
  max-width: 720px;
}
.search-input-wrap {
  display: flex; align-items: center; gap: 16px;
  background: #FBF5E6;
  border: 1.5px solid var(--cream-line);
  border-radius: 999px;
  padding: 8px 8px 8px 26px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.7) inset, 0 6px 24px -8px rgba(20,12,4,0.18);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search-input-wrap:focus-within {
  border-color: var(--river);
  box-shadow: 0 1px 0 rgba(255,255,255,0.7) inset, 0 0 0 4px rgba(74,134,184,0.15);
}
.search-icon { color: var(--muted-2); flex-shrink: 0; }
.search-input {
  flex: 1; min-width: 0;
  background: transparent;
  border: none; outline: none;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
  padding: 14px 0;
}
.search-input::placeholder { color: var(--muted-2); font-style: italic; }
.search-btn {
  flex-shrink: 0;
  padding: 14px 28px;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.search-btn:hover { background: var(--navy-deep); }
.search-btn:active { transform: translateY(1px); }
.btn-mobile { display: none; }
.search-results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0; right: 0;
  background: #FBF5E6;
  border: 1px solid var(--cream-line);
  border-radius: var(--r-md);
  box-shadow: 0 20px 60px -10px rgba(20,12,4,0.25);
  overflow: hidden;
  z-index: 10;
  max-height: 420px;
  overflow-y: auto;
  display: none;
}
.search-results.is-open { display: block; }
.search-result {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 14px 20px;
  cursor: pointer;
  border-bottom: 1px solid rgba(216,196,156,0.4);
  transition: background 0.1s;
}
.search-result:last-child { border-bottom: none; }
.search-result:hover, .search-result.is-active { background: rgba(216,196,156,0.25); }
.search-result-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.search-result-name {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink);
}
.search-result-loc {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.search-empty {
  padding: 24px 20px;
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  text-align: center;
}

/* Chips */
.chips {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 28px;
  align-items: center;
}
.chips-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 4px;
}
.chip {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink-2);
  padding: 8px 16px;
  background: rgba(251,245,230,0.6);
  border: 1px solid var(--cream-line);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  display: inline-block;
}
.chip:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Hero meta strip */
.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid rgba(168,133,71,0.2);
}
.hero-meta-item { display: flex; flex-direction: column; gap: 6px; padding-right: 24px; }
.hero-meta-label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-meta-value {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.hero-meta-value small { font-size: 14px; color: var(--muted-2); font-weight: 400; }

/* ── Section base */
.section { padding: 30px 24px; background: var(--cream-2); }
.section.alt { background: var(--cream); }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  margin-bottom: 24px;
}
.section-title {
  font-family: var(--serif);
  font-size: 48px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 400;
  color: var(--ink);
  margin: 8px 0 0;
}
.section-title em { font-style: italic; color: var(--gold); }
.section-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--muted);
  max-width: 360px;
  margin: 0;
  text-align: right;
}

/* ── US Map */
.map-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  background: var(--cream);
  border-radius: var(--r-lg);
  padding: 36px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset;
}
.section.alt .map-wrap { background: #F0E4CC; }
.map-svg-wrap {
  display: flex; flex-direction: column;
  background: #FBF5E6;
  border-radius: var(--r-md);
  padding: 16px;
  border: 1px solid var(--cream-line);
  position: relative;
}
.map-svg { width: 100%; height: auto; display: block; }
.map-svg path { outline: none; }
.map-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(168,133,71,0.2);
  font-family: var(--sans);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.map-legend-scale { display: flex; gap: 3px; }
.map-legend-scale span { width: 18px; height: 12px; border-radius: 2px; }
.map-panel {
  background: #FBF5E6;
  border-radius: var(--r-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  max-height: calc(min(100vw - 504px, 744px) * 0.5833 + 78px);
}
.map-panel-eyebrow {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.map-panel-state {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--gold);
  margin: 0 0 4px;
}
.map-panel-meta {
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 20px;
}
.map-panel-list { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow-y: auto; }
.map-panel-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(168,133,71,0.25);
  cursor: pointer;
}
.map-panel-item:last-child { border-bottom: none; }
.map-panel-item:hover .map-panel-item-name { color: var(--gold); }
.map-panel-item-dot { width: 8px; height: 8px; border-radius: 50%; }
.map-panel-item-name { font-family: var(--serif); font-size: 16px; color: var(--ink); transition: color 0.15s; }
.map-panel-item-sub {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}
.map-panel-empty {
  flex: 1; display: grid; place-items: center;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  padding: 32px;
}

/* ── Featured rivers */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.featured-card {
  background: var(--cream);
  border-radius: var(--r-md);
  padding: 26px 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto auto;
  gap: 4px 16px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  position: relative;
  overflow: hidden;
}
.section.alt .featured-card { background: #F4E8D0; }
.featured-card:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -12px rgba(20,12,4,0.18); }
.featured-card-loc {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex; align-items: center; gap: 6px;
}
.featured-card-loc::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--river); }
.featured-card-name {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--gold);
  margin: 2px 0;
}
.featured-card-status { font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--muted); margin-top: 4px; }
.featured-card-cfs { grid-row: 1 / 4; grid-column: 2; align-self: center; text-align: right; }
.featured-card-cfs-num {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.featured-card-cfs-label {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  vertical-align: middle;
  margin-left: 4px;
}
.featured-card-cfs-unit {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-top: 4px;
}
.featured-card-trend {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(74,134,184,0.13);
  color: var(--river-deep);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.featured-card-trend.up { background: rgba(92,142,95,0.15); color: var(--good); }
.featured-card-trend.down { background: rgba(180,91,73,0.15); color: var(--bad); }
.featured-card-spark { grid-column: 1 / -1; margin-top: 18px; height: 48px; width: 100%; }

/* ── Activities */
.activities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--cream-line);
  border: 1px solid var(--cream-line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.activity {
  background: var(--cream);
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: background 0.15s;
  position: relative;
  min-height: 220px;
}
.section.alt .activity { background: #F4E8D0; }
.activity:hover { background: #FBF5E6; }
.activity:hover .activity-arrow { color: var(--gold); transform: translateX(2px); }
.activity-icon { width: 36px; height: 36px; display: grid; place-items: center; color: var(--gold); margin-bottom: 4px; }
.activity-icon svg { width: 32px; height: 32px; }
.activity-name { font-family: var(--serif); font-size: 26px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); line-height: 1.1; }
.activity-desc { font-family: var(--serif); font-style: italic; font-size: 16px; line-height: 1.4; color: var(--muted); margin: 2px 0 8px; max-width: 32ch; }
.activity-sub {
  margin-top: auto;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding-top: 12px;
  border-top: 1px dashed rgba(168,133,71,0.3);
}
.activity-arrow { position: absolute; top: 30px; right: 28px; color: var(--muted-2); transition: color 0.15s, transform 0.15s; }

/* ── River drawer */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(20,12,4,0.55);
  backdrop-filter: blur(4px);
  display: none;
}
.drawer-backdrop.is-open { display: block; }
.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(560px, 100vw);
  background: var(--cream);
  padding: 36px 40px;
  overflow-y: auto;
  box-shadow: -20px 0 60px -10px rgba(0,0,0,0.3);
  display: flex; flex-direction: column; gap: 24px;
  transform: translateX(100%);
  transition: transform 0.25s ease-out;
  z-index: 101;
}
.drawer.is-open { transform: translateX(0); }
.drawer-close {
  border: none; background: transparent; cursor: pointer;
  color: var(--muted); font-size: 22px; padding: 4px;
  line-height: 1;
}
.drawer-close:hover { color: var(--ink); }
.drawer-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(168,133,71,0.2);
}
.drawer-stat-label { font-family: var(--sans); font-size: 10px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.drawer-stat-value { font-family: var(--serif); font-size: 40px; font-weight: 500; line-height: 1; margin-top: 4px; }
.drawer-stat-value small { font-size: 12px; color: var(--muted-2); margin-left: 4px; font-family: var(--sans); letter-spacing: 0.16em; }
.drawer-quote {
  padding: 16px 20px;
  background: #FBF5E6;
  border-radius: 12px;
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
}
.drawer-actions { display: flex; gap: 10px; margin-top: 4px; }
.drawer-btn-primary {
  flex: 1;
  padding: 14px 20px;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.drawer-btn-primary:hover { background: var(--navy-deep); }
.drawer-btn-primary.is-disabled { background: var(--muted-2); cursor: default; }

/* ── Coming-soon illustrations */
.coming-soon-illo { display: flex; justify-content: center; padding: 8px 0 4px; }
.bobber-group { animation: bobber-bob 2.4s ease-in-out infinite; }
@keyframes bobber-bob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}
.pump-handle { animation: pump-press 1.4s ease-in-out infinite; }
@keyframes pump-press {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(20px); }
}

/* ── Footer */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 56px 24px 36px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
}
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-tag { font-family: var(--serif); font-style: italic; color: rgba(255,255,255,0.55); font-size: 15px; max-width: 260px; margin: 0; }
.footer-col h4 {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin: 0 0 14px;
}
.footer-col a {
  display: block;
  font-family: var(--serif);
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 15px;
  padding: 5px 0;
  cursor: pointer;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--cream); }
.footer-bottom {
  max-width: 1200px;
  margin: 36px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}


/* ── Responsive */
@media (max-width: 880px) {
  .nav { grid-template-columns: 1fr 1fr; }
  .nav-center { display: none; }
  .hero { padding-top: 32px; padding-bottom: 56px; }
  .hero-card { padding: 36px 24px; }
  .hero-title { font-size: 44px; }
  .hero-meta { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .search-input { font-size: 17px; padding: 10px 0; }
  .search-btn { padding: 10px 20px; }
  .btn-desktop { display: none; }
  .btn-mobile { display: inline; }
  .chip { font-size: 13px; padding: 6px 12px; }
  .map-wrap { grid-template-columns: 1fr; padding: 12px; gap: 16px; }
  .map-panel { max-height: none; }
  .map-legend-hint { display: none; }
  .featured-grid { grid-template-columns: 1fr; }
  .activities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .activity { padding: 24px 16px 20px; }
  .activity-name { font-size: 21px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .section { padding: 64px 20px; }
  .section-head { grid-template-columns: 1fr; }
  .section-sub { text-align: left; }
}
