/* ==========================================================================
   TALLYSTACKBUDDIESB - ALPINE GLASS LANDSCAPE DESIGN SYSTEM
   Aesthetic: Dark Glassmorphism
   Card Style: Glass Overlay (Full-bleed media with frosted translucent overlay)
   Palette: Ivory, Forest Green, Warm Beige, Copper
   ========================================================================== */

:root {
  /* Core Color Tokens */
  --color-ivory: #FAF8F5;
  --color-ivory-muted: #D8CEBE;
  --color-forest-deep: #0D1812;
  --color-forest-mid: #16281F;
  --color-forest-light: #213C2E;
  --color-warm-beige: #E8DFD5;
  --color-copper: #C86D51;
  --color-copper-hover: #DF8366;
  --color-copper-glow: rgba(200, 109, 81, 0.35);

  /* Glassmorphism Surfaces */
  --glass-bg-subtle: rgba(255, 255, 255, 0.05);
  --glass-bg-card: rgba(16, 28, 22, 0.82);
  --glass-bg-elevated: rgba(22, 40, 31, 0.90);
  --glass-border: rgba(200, 109, 81, 0.28);
  --glass-border-light: rgba(255, 255, 255, 0.12);
  --glass-blur: 16px;
  --glass-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);

  /* Spacing Scale (4, 8, 16, 24, 40, 64px) */
  --space-4: 4px;
  --space-8: 8px;
  --space-16: 16px;
  --space-24: 24px;
  --space-40: 40px;
  --space-64: 64px;

  /* Typography */
  --font-family-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-family-serif: "Georgia", "Times New Roman", serif;
  --line-height-tight: 1.25;
  --line-height-normal: 1.6;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  /* Header heights */
  --header-height: 64px;
}

/* Base Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-family-base);
  background-color: var(--color-forest-deep);
  color: var(--color-ivory);
  line-height: var(--line-height-normal);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip; /* Clean handling without masking inner overflow layout errors */
}

/* Accessibility Focus Visible */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--color-copper);
  outline-offset: 3px;
}

/* Ensure headings wrap long domain and brand names */
h1, h2, h3, h4, h5, h6,
.brand-name,
nav,
.nav-link {
  overflow-wrap: anywhere;
  min-width: 0;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-16);
  padding-right: var(--space-16);
}

/* ==========================================================================
   HEADER COMPONENT
   Robust, ultra-responsive header across desktop, laptops, tablets,
   foldables, and ultra-compact small devices (down to 280px-320px).
   ========================================================================== */
.site-header {
  height: var(--header-height);
  min-height: 48px;
  background-color: rgba(13, 24, 18, 0.96);
  border-bottom: 1px solid var(--glass-border);
  position: relative;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  text-decoration: none;
  color: var(--color-ivory);
  font-weight: 700;
  font-size: clamp(0.9375rem, 3.2vw, 1.125rem);
  letter-spacing: -0.01em;
  flex-shrink: 1;
  min-width: 0;
}

.brand-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: block;
}

.brand-name {
  color: var(--color-ivory);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Navigation */
.primary-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: clamp(12px, 1.6vw, 24px);
  align-items: center;
}

.nav-link {
  color: var(--color-ivory-muted);
  text-decoration: none;
  font-size: clamp(0.85rem, 1vw, 0.9375rem);
  font-weight: 500;
  transition: color 0.2s ease, border-color 0.2s ease;
  padding: var(--space-4) 0;
  position: relative;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--color-ivory);
}

.nav-link.is-active {
  color: var(--color-ivory);
  border-bottom: 2px solid var(--color-copper);
}

.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  width: 42px;
  height: 42px;
  padding: 9px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  flex-shrink: 0;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.nav-toggle:hover {
  background: rgba(200, 109, 81, 0.15);
  border-color: var(--color-copper);
}

.hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-ivory);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Header Compact CTA */
.header-action {
  flex-shrink: 0;
}

.header-action .btn-compact {
  padding: var(--space-8) var(--space-16);
  font-size: 0.875rem;
  white-space: nowrap;
}

/* Refined responsive breakpoints for header adaptation */
@media (max-width: 1080px) and (min-width: 901px) {
  .nav-list {
    gap: 12px;
  }
  .nav-link {
    font-size: 0.84rem;
  }
  .header-action .btn-compact {
    padding: 6px 12px;
    font-size: 0.8125rem;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 56px;
  }

  .site-header {
    height: var(--header-height);
  }

  .header-action {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  /* Full mobile & small-device overlay navigation drawer */
  .primary-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(100vh - var(--header-height));
    height: calc(100dvh - var(--header-height));
    background-color: rgba(10, 20, 15, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: var(--space-40) var(--space-24);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 99;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .primary-nav.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-list {
    width: 100%;
    max-width: 360px;
    flex-direction: column;
    gap: var(--space-16);
    align-items: stretch;
    text-align: center;
    margin: auto 0;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    display: block;
    width: 100%;
    font-size: 1.15rem;
    padding: 12px var(--space-16);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border-light);
  }

  .nav-link:hover,
  .nav-link:focus-visible {
    background: rgba(200, 109, 81, 0.15);
    border-color: var(--color-copper);
    color: var(--color-ivory);
  }

  .nav-link.is-active {
    border-bottom: 1px solid var(--color-copper);
    border-color: var(--color-copper);
    background: rgba(200, 109, 81, 0.2);
    color: var(--color-ivory);
    font-weight: 700;
  }

  /* Hamburger transform when open */
  .nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* Small devices, phones & sub-400px viewports down to 280px */
@media (max-width: 480px) {
  :root {
    --header-height: 52px;
  }

  .header-inner {
    gap: 8px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .brand-logo {
    gap: 6px;
    font-size: 0.95rem;
  }

  .brand-icon {
    width: 28px;
    height: 28px;
  }

  .nav-toggle {
    width: 38px;
    height: 38px;
    padding: 8px;
  }

  .hamburger-bar {
    width: 19px;
  }

  .nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }

  .primary-nav {
    padding: var(--space-24) var(--space-16);
  }

  .nav-link {
    font-size: 1rem;
    padding: 10px var(--space-16);
  }
}

/* Extreme small devices (under 360px) */
@media (max-width: 359px) {
  :root {
    --header-height: 48px;
  }

  .site-header {
    height: var(--header-height);
  }

  .header-inner {
    padding-left: 8px;
    padding-right: 8px;
    gap: 6px;
  }

  .brand-logo {
    font-size: 0.875rem;
    gap: 5px;
    max-width: calc(100% - 46px);
  }

  .brand-icon {
    width: 24px;
    height: 24px;
  }

  .nav-toggle {
    width: 36px;
    height: 36px;
    padding: 7px;
  }

  .hamburger-bar {
    width: 18px;
  }

  .primary-nav {
    top: var(--header-height);
    height: calc(100dvh - var(--header-height));
    padding: 16px 12px;
  }

  .nav-list {
    gap: 10px;
  }

  .nav-link {
    font-size: 0.9375rem;
    padding: 9px 12px;
  }
}

/* ==========================================================================
   BUTTONS & MICRO-COMPONENTS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn-copper {
  background-color: var(--color-copper);
  color: var(--color-ivory);
  border-color: var(--color-copper);
}

.btn-copper:hover {
  background-color: var(--color-copper-hover);
  border-color: var(--color-copper-hover);
  color: var(--color-ivory);
}

.btn-glass {
  background-color: var(--glass-bg-subtle);
  color: var(--color-ivory);
  border-color: var(--glass-border);
  backdrop-filter: blur(8px);
}

.btn-glass:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: var(--color-ivory);
  color: var(--color-ivory);
}

.btn-compact {
  padding: 8px 16px;
  font-size: 0.875rem;
  background-color: var(--color-forest-light);
  color: var(--color-ivory);
  border-color: var(--glass-border);
}

.btn-compact:hover {
  background-color: var(--color-copper);
  border-color: var(--color-copper);
}

.btn-text {
  background: transparent;
  color: var(--color-ivory-muted);
  border-color: transparent;
}

.btn-text:hover {
  color: var(--color-ivory);
  text-decoration: underline;
}

/* ==========================================================================
   HERO COMPONENT: 3D MOUNTAIN LAYERS & LAKE SURFACE
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 560px;
  padding: var(--space-64) 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: radial-gradient(circle at 50% 20%, #1A3427 0%, var(--color-forest-deep) 75%);
  overflow: hidden;
}

.hero-mountains-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
}

/* Procedural Mountain Silhouettes using CSS gradients & masks */
.mountain-layer {
  position: absolute;
  bottom: 60px;
  left: 0;
  right: 0;
  height: 280px;
  background-repeat: repeat-x;
}

.layer-back {
  background: linear-gradient(135deg, rgba(30, 56, 43, 0.6) 0%, transparent 60%),
              radial-gradient(ellipse at 40% 100%, #152A20 0%, transparent 70%);
  opacity: 0.45;
  clip-path: polygon(0 100%, 0 45%, 15% 30%, 35% 60%, 50% 20%, 70% 55%, 85% 25%, 100% 40%, 100% 100%);
  transition: transform 0.1s ease-out;
}

.layer-mid {
  background: linear-gradient(180deg, rgba(22, 40, 31, 0.8) 0%, #112019 100%);
  opacity: 0.7;
  clip-path: polygon(0 100%, 0 65%, 20% 45%, 40% 70%, 60% 35%, 80% 60%, 100% 40%, 100% 100%);
  bottom: 40px;
  height: 220px;
  transition: transform 0.1s ease-out;
}

.layer-front {
  background: linear-gradient(180deg, #1A3326 0%, #0D1812 100%);
  opacity: 0.9;
  clip-path: polygon(0 100%, 0 80%, 25% 60%, 45% 85%, 75% 55%, 100% 75%, 100% 100%);
  bottom: 20px;
  height: 160px;
  transition: transform 0.1s ease-out;
}

/* Subtle Animated Ripple Plane */
.lake-ripple-plane {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: linear-gradient(180deg, rgba(200, 109, 81, 0.15) 0%, rgba(13, 24, 18, 0.95) 80%),
              repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0px, rgba(255, 255, 255, 0.03) 2px, transparent 3px, transparent 9px);
  background-size: 100% 100%, 100% 16px;
  animation: lakeRipples 8s infinite ease-in-out;
}

@keyframes lakeRipples {
  0%, 100% {
    background-position: 0 0, 0 0;
  }
  50% {
    background-position: 0 0, 0 8px;
  }
}

.hero-content-wrapper {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  padding: 6px 14px;
  border-radius: 999px;
  background-color: rgba(30, 56, 43, 0.8);
  border: 1px solid var(--glass-border);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-ivory);
  margin-bottom: var(--space-24);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-copper);
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-family: var(--font-family-serif);
  line-height: var(--line-height-tight);
  color: var(--color-ivory);
  margin-bottom: var(--space-24);
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-ivory-muted);
  margin-bottom: var(--space-40);
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-16);
}

/* Floating weather/location badges */
.hero-weather-pills {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-16);
  margin-top: var(--space-40);
  padding-left: var(--space-16);
  padding-right: var(--space-16);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.glass-pill {
  background-color: rgba(16, 28, 22, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border-light);
  padding: 8px 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  font-size: 0.8125rem;
}

.pill-label {
  color: var(--color-copper);
  font-weight: 600;
}

.pill-value {
  color: var(--color-ivory);
}

/* Mountain-shaped Section Divider */
.mountain-divider {
  width: 100%;
  height: 48px;
  line-height: 0;
  background-color: transparent;
}

.mountain-divider svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   DESTINATIONS SECTION & CARD STYLE: GLASS OVERLAY
   Full-bleed image with a translucent panel over it
   ========================================================================== */
.destinations-section {
  padding: var(--space-64) 0;
  background-color: #112219;
}

.section-header {
  margin-bottom: var(--space-40);
  max-width: 760px;
}

.section-pretitle {
  display: block;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-copper);
  font-weight: 700;
  margin-bottom: var(--space-8);
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-family: var(--font-family-serif);
  line-height: var(--line-height-tight);
  color: var(--color-ivory);
  margin-bottom: var(--space-16);
}

.section-intro {
  color: var(--color-ivory-muted);
  font-size: 1.0625rem;
}

/* Card Grid */
.destinations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-40);
}

/* Glass Overlay Card Commitment */
.glass-overlay-card {
  position: relative;
  min-width: 0; /* Prevents overflow */
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  min-height: 440px;
  background-color: var(--color-forest-deep);
  border: 1px solid var(--glass-border-light);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.glass-overlay-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-copper);
}

.card-media {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.85);
  transition: transform 0.5s ease;
}

.glass-overlay-card:hover .card-image {
  transform: scale(1.04);
}

.card-country-tag {
  position: absolute;
  top: var(--space-16);
  right: var(--space-16);
  z-index: 2;
  background: rgba(13, 24, 18, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  color: var(--color-ivory);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* The Frosted Glass Overlay Panel */
.card-glass-panel {
  position: relative;
  z-index: 2;
  margin-top: auto; /* Pushes to bottom */
  background: var(--glass-bg-card);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-top: 1px solid var(--glass-border);
  padding: var(--space-24);
  display: flex;
  flex-direction: column;
  gap: var(--space-16); /* Minimum 24px between distinct functional card sections */
}

.card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--color-copper);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.card-title {
  font-size: 1.375rem;
  font-family: var(--font-family-serif);
  color: var(--color-ivory);
  line-height: var(--line-height-tight);
}

.card-copy {
  font-size: 0.9375rem;
  color: var(--color-ivory-muted);
  line-height: 1.55;
}

.card-footer-action {
  padding-top: var(--space-8);
}

.card-link {
  color: var(--color-copper);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9375rem;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease, transform 0.2s ease;
}

.card-link:hover {
  color: var(--color-copper-hover);
  transform: translateX(3px);
}

/* ==========================================================================
   SUPPORTING GEOGRAPHY & INTERACTIVE MAP SECTION
   ========================================================================== */
.geography-section {
  padding: var(--space-64) 0;
  background-color: var(--color-forest-deep);
}

.interactive-map-card {
  background-color: var(--glass-bg-elevated);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: var(--space-24);
  box-shadow: var(--glass-shadow);
  margin-bottom: var(--space-64);
}

.map-controls {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  margin-bottom: var(--space-24);
  border-bottom: 1px solid var(--glass-border-light);
  padding-bottom: var(--space-16);
}

.map-tab {
  background: transparent;
  color: var(--color-ivory-muted);
  border: 1px solid transparent;
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.map-tab:hover {
  color: var(--color-ivory);
  background-color: rgba(255, 255, 255, 0.05);
}

.map-tab.is-active {
  background-color: var(--color-copper);
  color: var(--color-ivory);
  border-color: var(--color-copper);
}

.map-display-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-40);
  align-items: center;
}

.map-graphic-box {
  background: #09130E;
  border: 1px solid var(--glass-border-light);
  border-radius: var(--radius-sm);
  padding: var(--space-16);
}

.basin-vector-map {
  width: 100%;
  height: auto;
  display: block;
}

.basin-details-box {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.basin-title {
  font-family: var(--font-family-serif);
  font-size: 1.5rem;
  color: var(--color-ivory);
}

.basin-desc {
  font-size: 0.9375rem;
  color: var(--color-ivory-muted);
  line-height: 1.6;
}

.basin-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-16);
  margin-top: var(--space-8);
}

.stat-cell {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border-light);
  padding: var(--space-16);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-copper);
  margin-bottom: 12px; /* Explicit minimum 12px between statistic and label */
}

.stat-label {
  font-size: 0.75rem;
  color: var(--color-ivory-muted);
  text-transform: uppercase;
}

.feature-trio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-40);
}

.feature-item {
  background: var(--glass-bg-subtle);
  border: 1px solid var(--glass-border-light);
  padding: var(--space-24);
  border-radius: var(--radius-md);
}

.feature-icon-wrapper {
  margin-bottom: var(--space-16);
}

.feature-icon {
  width: 32px;
  height: 32px;
  display: block;
}

.feature-heading {
  font-size: 1.125rem;
  font-family: var(--font-family-serif);
  color: var(--color-ivory);
  margin-bottom: var(--space-8);
}

.feature-text {
  font-size: 0.9375rem;
  color: var(--color-ivory-muted);
  line-height: 1.6;
}

/* ==========================================================================
   SUB-PAGE EDITORIAL DOSSIER STYLES
   ========================================================================== */
.subpage-hero {
  padding: var(--space-64) 0 var(--space-40) 0;
  background: radial-gradient(circle at 50% 0%, #1A3427 0%, var(--color-forest-deep) 80%);
  border-bottom: 1px solid var(--glass-border-light);
}

.subpage-hero-inner {
  max-width: 860px;
}

.subpage-tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-copper);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-16);
}

.subpage-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-family: var(--font-family-serif);
  line-height: var(--line-height-tight);
  color: var(--color-ivory);
  margin-bottom: var(--space-16);
}

.subpage-lead {
  font-size: 1.125rem;
  color: var(--color-ivory-muted);
  line-height: 1.65;
}

.content-section {
  padding: var(--space-64) 0;
  background-color: var(--color-forest-deep);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: var(--space-40);
  align-items: start;
}

.article-body {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-ivory);
}

.article-body h2 {
  font-family: var(--font-family-serif);
  font-size: 1.75rem;
  color: var(--color-ivory);
  margin-top: var(--space-40);
  margin-bottom: var(--space-16);
  border-bottom: 1px solid var(--glass-border-light);
  padding-bottom: var(--space-8);
}

.article-body h2:first-of-type {
  margin-top: 0;
}

.article-body h3 {
  font-size: 1.25rem;
  color: var(--color-ivory);
  margin-top: var(--space-24);
  margin-bottom: var(--space-8);
}

.article-body p {
  margin-bottom: var(--space-24);
  color: var(--color-ivory-muted);
}

.article-figure {
  margin: var(--space-40) 0;
}

.article-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  display: block;
}

.article-figure figcaption {
  font-size: 0.8125rem;
  color: var(--color-ivory-muted);
  margin-top: var(--space-8);
  font-style: italic;
  text-align: center;
}

.editorial-callout-box {
  background: rgba(30, 56, 43, 0.6);
  border-left: 4px solid var(--color-copper);
  padding: var(--space-24);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: var(--space-40) 0;
}

.editorial-callout-box h4 {
  font-family: var(--font-family-serif);
  font-size: 1.125rem;
  color: var(--color-ivory);
  margin-bottom: var(--space-8);
}

.editorial-callout-box p {
  margin-bottom: 0;
  color: var(--color-ivory);
}

.article-bullet-list {
  margin-bottom: var(--space-24);
  padding-left: var(--space-24);
  color: var(--color-ivory-muted);
}

.article-bullet-list li {
  margin-bottom: var(--space-8);
}

/* Data Tables */
.data-table-wrapper {
  overflow-x: auto;
  margin: var(--space-40) 0;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
  min-width: 500px;
}

.specs-table th,
.specs-table td {
  padding: var(--space-16);
  border-bottom: 1px solid var(--glass-border-light);
}

.specs-table th {
  background: rgba(22, 40, 31, 0.8);
  color: var(--color-ivory);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.specs-table td {
  color: var(--color-ivory-muted);
}

.specs-table tr:last-child td {
  border-bottom: none;
}

.specs-table tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.02);
}

/* Sidebar */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
}

.sidebar-card {
  padding: var(--space-24);
  border-radius: var(--radius-md);
}

.glass-panel {
  background: var(--glass-bg-card);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.sidebar-title {
  font-family: var(--font-family-serif);
  font-size: 1.125rem;
  color: var(--color-ivory);
  margin-bottom: var(--space-16);
  border-bottom: 1px solid var(--glass-border-light);
  padding-bottom: var(--space-8);
}

.sidebar-list {
  list-style: none;
  font-size: 0.875rem;
  color: var(--color-ivory-muted);
}

.sidebar-list li {
  margin-bottom: var(--space-16);
  line-height: 1.5;
}

.sidebar-list strong {
  color: var(--color-ivory);
}

.sidebar-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.sidebar-nav-links a {
  color: var(--color-copper);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
}

.sidebar-nav-links a:hover {
  color: var(--color-copper-hover);
  text-decoration: underline;
}

/* ==========================================================================
   CONTACT PAGE & FORMS
   ========================================================================== */
.contact-grid-container {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: var(--space-40);
  align-items: start;
}

.contact-form-panel {
  padding: var(--space-40);
  border-radius: var(--radius-md);
}

.contact-panel-title {
  font-family: var(--font-family-serif);
  font-size: 1.75rem;
  color: var(--color-ivory);
  margin-bottom: var(--space-8);
}

.contact-panel-desc {
  font-size: 0.9375rem;
  color: var(--color-ivory-muted);
  margin-bottom: var(--space-24);
}

.styled-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-ivory);
}

.required-mark {
  color: var(--color-copper);
}

.form-control {
  background-color: rgba(9, 19, 14, 0.7);
  border: 1px solid var(--glass-border);
  color: var(--color-ivory);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9375rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  border-color: var(--color-copper);
  box-shadow: 0 0 0 2px var(--color-copper-glow);
}

.form-control.is-invalid {
  border-color: #e55353;
}

.field-error {
  display: none;
  font-size: 0.75rem;
  color: #ff7878;
}

.form-control.is-invalid + .field-error {
  display: block;
}

.form-checkbox-group {
  flex-direction: column;
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: var(--space-8);
  font-size: 0.875rem;
  color: var(--color-ivory-muted);
  cursor: pointer;
}

.checkbox-container input {
  margin-top: 4px;
}

.inline-link {
  color: var(--color-copper);
  text-decoration: underline;
}

.inline-link:hover {
  color: var(--color-copper-hover);
}

.form-feedback {
  padding: var(--space-16);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin-bottom: var(--space-16);
}

.form-feedback.is-success {
  background-color: rgba(30, 80, 50, 0.7);
  border: 1px solid #48bb78;
  color: #FAF8F5;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
}

.info-card {
  padding: var(--space-24);
  border-radius: var(--radius-md);
}

.info-card-title {
  font-family: var(--font-family-serif);
  font-size: 1.25rem;
  color: var(--color-ivory);
  margin-bottom: var(--space-16);
}

.company-legal-title {
  font-weight: 700;
  color: var(--color-ivory);
  margin-bottom: var(--space-8);
}

.company-detail-item {
  font-size: 0.875rem;
  color: var(--color-ivory-muted);
  margin-bottom: var(--space-16);
  line-height: 1.5;
}

.map-static-panel {
  padding: var(--space-24);
  border-radius: var(--radius-md);
}

.map-box-title {
  font-family: var(--font-family-serif);
  font-size: 1.125rem;
  color: var(--color-ivory);
  margin-bottom: var(--space-16);
}

.styled-static-map {
  background: #0D1812;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: var(--space-16);
}

.svg-map {
  display: block;
  width: 100%;
  height: auto;
}

.map-caption {
  font-size: 0.8125rem;
  color: var(--color-ivory-muted);
  line-height: 1.5;
}

/* ==========================================================================
   LEGAL PAGES
   ========================================================================== */
.legal-layout {
  max-width: 860px;
}

.legal-body {
  padding: var(--space-40);
  border-radius: var(--radius-md);
}

.legal-body h2 {
  font-family: var(--font-family-serif);
  font-size: 1.375rem;
  color: var(--color-ivory);
  margin-top: var(--space-40);
  margin-bottom: var(--space-16);
  border-bottom: 1px solid var(--glass-border-light);
  padding-bottom: var(--space-8);
}

.legal-body h2:first-of-type {
  margin-top: 0;
}

.legal-body p {
  color: var(--color-ivory-muted);
  margin-bottom: var(--space-16);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.legal-body code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85em;
  color: var(--color-copper);
}

/* ==========================================================================
   FOOTER (IDENTICAL ACROSS ALL 10 PAGES)
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background-color: #0A140F;
  border-top: 1px solid var(--glass-border);
  color: var(--color-ivory-muted);
  font-size: 0.875rem;
}

.footer-content-grid {
  padding: var(--space-64) var(--space-16) var(--space-40) var(--space-16);
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr;
  gap: var(--space-40);
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  margin-bottom: var(--space-16);
}

.footer-tagline {
  margin-bottom: var(--space-16);
  line-height: 1.5;
  max-width: 380px;
}

.legal-entity-info {
  font-size: 0.75rem;
  line-height: 1.6;
  color: rgba(216, 206, 190, 0.7);
}

.footer-heading {
  font-family: var(--font-family-serif);
  font-size: 1.0625rem;
  color: var(--color-ivory);
  margin-bottom: var(--space-16);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.footer-links a {
  color: var(--color-ivory-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--color-copper);
}

.footer-contact-email {
  margin-top: var(--space-16);
  font-size: 0.8125rem;
}

.footer-contact-email a {
  color: var(--color-copper);
  text-decoration: underline;
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: var(--space-24) 0;
  font-size: 0.75rem;
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-16);
  align-items: center;
}

.copyright-notice {
  color: var(--color-ivory-muted);
}

.disclaimer-note {
  color: rgba(216, 206, 190, 0.6);
}

/* ==========================================================================
   COOKIE BANNER (FIXED BOTTOM WITH DATA ATTRIBUTES)
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background-color: rgba(13, 24, 18, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--color-copper);
  padding: var(--space-16) 0;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.5);
  display: block;
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-24);
  flex-wrap: wrap;
}

.cookie-text-box {
  flex: 1 1 400px;
}

.cookie-heading {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-ivory);
  margin-bottom: 4px;
}

.cookie-copy {
  font-size: 0.8125rem;
  color: var(--color-ivory-muted);
  line-height: 1.4;
}

.cookie-btn-group {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  flex-wrap: wrap;
}

/* ==========================================================================
   RESPONSIVE DESIGN DOWN TO 320PX
   Breakpoint below 400px included.
   ========================================================================== */
@media (max-width: 992px) {
  .article-layout,
  .contact-grid-container {
    grid-template-columns: 1fr;
  }

  .map-display-panel {
    grid-template-columns: 1fr;
  }

  .footer-content-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .destinations-grid {
    grid-template-columns: 1fr;
  }

  .footer-content-grid {
    grid-template-columns: 1fr;
    gap: var(--space-24);
  }

  .basin-stats-grid {
    grid-template-columns: 1fr;
  }
}

/* Breakpoint below 400px (Rule: explicitly required) */
@media (max-width: 399px) {
  :root {
    --space-64: 40px;
    --space-40: 24px;
  }

  .contact-form-panel,
  .legal-body {
    padding: var(--space-16);
  }

  .hero-cta-group {
    flex-direction: column;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .cookie-btn-group {
    width: 100%;
    flex-direction: column;
  }

  .cookie-btn-group .btn {
    width: 100%;
  }
}

/* ==========================================================================
   ACCESSIBILITY: PREFERS REDUCED MOTION
   Disables transitions and animations only. Never blanket disables transform.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}