/* Mike's Guide Service — global styles
   Modern, outdoorsy, photo-forward. Mobile-first. */

/* Self-hosted fonts — variable woff2, latin subset. Served same-origin
   so first paint isn't blocked on a cross-origin Google Fonts request.
   One file per family covers every weight via the variable axis. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/playfair-var.woff2') format('woff2');
}

:root {
  --river: #1d4e6e;
  --river-dark: #0f2f44;
  --salmon: #d97755;
  --salmon-dark: #b85a3d;
  --sand: #f5efe3;
  --bark: #2a1f15;
  --ink: #1a1a1a;
  --slate: #4a5568;
  --line: #d8d2c2;
  --bg: #fdfcf8;
  --card: #ffffff;
  --shadow-sm: 0 1px 2px rgba(15, 47, 68, 0.06), 0 1px 3px rgba(15, 47, 68, 0.08);
  --shadow-md: 0 4px 6px -1px rgba(15, 47, 68, 0.08), 0 2px 4px -2px rgba(15, 47, 68, 0.08);
  --shadow-lg: 0 10px 15px -3px rgba(15, 47, 68, 0.1), 0 4px 6px -4px rgba(15, 47, 68, 0.05);
  --radius: 6px;
  --radius-lg: 12px;
  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--river-dark);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); letter-spacing: -0.01em; }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; }

a {
  color: var(--river);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--salmon-dark); }

img { max-width: 100%; height: auto; display: block; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── Header / Nav ──────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 252, 248, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--river-dark);
  letter-spacing: -0.01em;
}
.nav-brand span { color: var(--salmon); }

.nav-links {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.75rem;
}
.nav-links a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}
.nav-links a:hover { color: var(--river); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--salmon);
  border-radius: 1px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  background: var(--salmon);
  color: white;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--salmon-dark); color: white; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--river-dark);
  border-radius: 1px;
}

@media (min-width: 820px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
}

/* Mobile menu overlay */
.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.mobile-menu.open { display: block; }
.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 1rem 1.25rem;
}
.mobile-menu li { padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.mobile-menu li:last-child { border-bottom: 0; }
.mobile-menu a { color: var(--ink); font-weight: 500; }

/* ── Hero ──────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  color: white;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(15, 47, 68, 0.5) 0%, rgba(15, 47, 68, 0.75) 100%);
}
.hero-content {
  padding: 4rem 1.25rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
.hero h1 {
  color: white;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
  max-width: 18ch;
}
.hero-tag {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  background: var(--salmon);
  color: white;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  max-width: 50ch;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}
.hero-cta {
  display: inline-flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ── Buttons ──────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
}
.btn-primary { background: var(--salmon); color: white; }
.btn-primary:hover { background: var(--salmon-dark); color: white; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: white; color: var(--river-dark); border: 2px solid white; }
.btn-secondary:hover { background: rgba(255,255,255,0.9); }
.btn-outline { background: transparent; color: var(--river); border: 2px solid var(--river); }
.btn-outline:hover { background: var(--river); color: white; }
.btn-ghost { background: transparent; color: var(--river); }
.btn-ghost:hover { background: rgba(29, 78, 110, 0.08); }

/* ── Sections ─────────────────────────────────── */

section { padding: 4rem 0; }
section.tight { padding: 2.5rem 0; }
section.alt { background: var(--sand); }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}
.section-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--salmon);
  margin-bottom: 0.75rem;
}
.section-head p { color: var(--slate); font-size: 1.1rem; }

/* ── Trip cards ───────────────────────────────── */

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 700px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.trip-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.trip-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.trip-card-img {
  aspect-ratio: 16/10;
  background: var(--river-dark);
  background-size: cover;
  background-position: center;
}
.trip-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.trip-card h3 { margin-bottom: 0.5rem; }
.trip-card-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--slate);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.trip-card-price {
  margin-top: auto;
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
}
.trip-card-price strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--river-dark);
}

/* ── Stats / featurelets ──────────────────────── */

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2.5rem 0;
}
@media (min-width: 700px) { .stats { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }
.stat {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--salmon);
  font-weight: 700;
  line-height: 1;
}
.stat-label { font-size: 0.85rem; color: var(--slate); margin-top: 0.5rem; text-transform: uppercase; letter-spacing: 0.05em; }

/* ── Form ─────────────────────────────────────── */

.form-card {
  background: var(--card);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
@media (min-width: 700px) { .form-card { padding: 2.5rem; } }

.field { margin-bottom: 1.25rem; }
.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--river-dark);
}
.field label .req { color: var(--salmon); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  background: white;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--river);
  box-shadow: 0 0 0 3px rgba(29, 78, 110, 0.15);
}
.field textarea { resize: vertical; min-height: 110px; }
.field-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field-row .field { margin-bottom: 0; }

.form-msg { padding: 0.75rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: 0.95rem; }
.form-msg.success { background: #ecfdf5; color: #065f46; border: 1px solid #6ee7b7; }
.form-msg.error { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; }

/* ── Footer ───────────────────────────────────── */

.site-footer {
  background: var(--river-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 700px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand { font-family: var(--font-display); font-size: 1.5rem; color: white; margin-bottom: 0.5rem; }
.footer-brand span { color: var(--salmon); }
.footer h4 { color: white; font-size: 1rem; margin-bottom: 1rem; font-family: var(--font-sans); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 0.5rem; }
.footer a { color: rgba(255, 255, 255, 0.85); }
.footer a:hover { color: var(--salmon); }
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ── Phone CTA bar (mobile-friendly) ──────────── */

.phone-bar {
  background: var(--salmon);
  color: white;
  padding: 0.65rem 1.25rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
}
.phone-bar a { color: white; text-decoration: underline; }

/* ── Page header (non-home) ───────────────────── */

.page-header {
  background: linear-gradient(135deg, var(--river-dark), var(--river));
  color: white;
  padding: 3.5rem 0 3rem;
  text-align: center;
}
.page-header h1 { color: white; margin-bottom: 0.5rem; }
.page-header p { color: rgba(255, 255, 255, 0.9); font-size: 1.1rem; max-width: 60ch; margin: 0 auto; }

/* ── Prose ────────────────────────────────────── */

.prose { max-width: 720px; margin: 0 auto; }
.prose p { font-size: 1.08rem; }
.prose ul, .prose ol { padding-left: 1.5rem; }
.prose li { margin-bottom: 0.4rem; }

/* ── Gauge cards (river-levels) ───────────────── */

.gauge-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 700px) { .gauge-grid { grid-template-columns: repeat(2, 1fr); } }

.gauge {
  background: var(--card);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--river);
}
.gauge h3 { margin-bottom: 0.25rem; font-size: 1.15rem; }
.gauge-loc { font-size: 0.85rem; color: var(--slate); margin-bottom: 1rem; }
.gauge-readings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gauge-reading-label { font-size: 0.7rem; color: var(--slate); text-transform: uppercase; letter-spacing: 0.05em; }
.gauge-reading-value { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--river-dark); line-height: 1.1; }
.gauge-reading-unit { font-size: 0.75rem; color: var(--slate); }
.gauge-meta { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px dashed var(--line); font-size: 0.78rem; color: var(--slate); }

.webcams { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 2rem; }
@media (min-width: 700px) { .webcams { grid-template-columns: repeat(2, 1fr); } }
.webcam {
  background: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.webcam img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #1a1a1a; }
.webcam-cap { padding: 0.75rem 1rem; font-size: 0.85rem; color: var(--slate); }

/* ── Hero slideshow ────────────────────────────── */

.hero-slideshow .hero-bg {
  animation: slideshow 30s infinite;
  opacity: 0;
}
.hero-slideshow .hero-bg:nth-child(1) { animation-delay: 0s; }
.hero-slideshow .hero-bg:nth-child(2) { animation-delay: 6s; }
.hero-slideshow .hero-bg:nth-child(3) { animation-delay: 12s; }
.hero-slideshow .hero-bg:nth-child(4) { animation-delay: 18s; }
.hero-slideshow .hero-bg:nth-child(5) { animation-delay: 24s; }

@keyframes slideshow {
  0%   { opacity: 0; }
  4%   { opacity: 1; }
  20%  { opacity: 1; }
  24%  { opacity: 0; }
  100% { opacity: 0; }
}

/* ── Photo gallery ────────────────────────────── */

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}
@media (min-width: 600px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery-item {
  /* Native aspect ratio of the original-site photos (421×312 ≈ 4:3).
     Avoids upscaling square crops that exaggerate pixelation. */
  aspect-ratio: 4/3;
  background: var(--river-dark) center/cover no-repeat;
  border-radius: 8px;
  overflow: hidden;
  cursor: zoom-in;
  transition: transform 0.2s;
  /* Crisp scaling for small source images */
  image-rendering: -webkit-optimize-contrast;
}
.gallery-item:hover { transform: scale(1.02); box-shadow: var(--shadow-md); }
.gallery-empty {
  grid-column: 1 / -1;
  background: var(--card);
  padding: 3rem 1rem;
  text-align: center;
  color: var(--slate);
  border-radius: 8px;
  border: 2px dashed var(--line);
}
/* Lightbox — click any .gallery-item to enlarge */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 35, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem;
  cursor: zoom-out;
  animation: fade-in 0.15s ease-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 6rem);
  width: auto;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lightbox-cap {
  position: absolute;
  bottom: 1rem;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  padding: 0 2rem;
  pointer-events: none;
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.15);
  border: 0;
  color: white;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.25); }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: 0;
  color: white;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox-nav.show { display: flex; }
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.25); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.gallery-cat-tabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  justify-content: center;
}
.gallery-cat-tabs button {
  padding: 0.4rem 1rem;
  background: white;
  border: 1.5px solid var(--line);
  border-radius: 100px;
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  color: var(--slate);
  font-weight: 500;
  transition: all 0.15s;
}
.gallery-cat-tabs button.active,
.gallery-cat-tabs button:hover {
  background: var(--river);
  color: white;
  border-color: var(--river);
}

/* ── Reviews ──────────────────────────────────── */

.review {
  background: var(--card);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.review-quote { font-size: 1rem; font-style: italic; color: var(--ink); margin-bottom: 1rem; }
.review-author { font-weight: 600; color: var(--river-dark); font-size: 0.9rem; }
.review-stars { color: #f59e0b; margin-bottom: 0.5rem; }

/* ── Utilities ────────────────────────────────── */

.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.muted { color: var(--slate); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
