:root {
  --bg: #0c1418;
  --bg-alt: #142126;
  --surface: rgba(18, 31, 36, 0.88);
  --surface-strong: rgba(12, 20, 24, 0.94);
  --text: #f2efe7;
  --muted: #c2b79f;
  --line: rgba(242, 239, 231, 0.12);
  --tan: #bea47c;
  --olive: #75815d;
  --orange: #d47533;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  --radius: 24px;
  --radius-sm: 16px;
  --gutter: clamp(0.75rem, 2vw, 1.5rem);
  --content-max: 1180px;
  --content-width: min(var(--content-max), calc(100vw - (var(--gutter) * 2)));
  --header-offset: calc(env(safe-area-inset-top, 0px) + 1rem);
  --bottom-safe: calc(env(safe-area-inset-bottom, 0px) + 1rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Barlow", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(212, 117, 51, 0.18), transparent 30%),
    linear-gradient(180deg, #081015 0%, #122026 42%, #0d161a 100%);
  -webkit-tap-highlight-color: transparent;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.2;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
iframe {
  max-width: 100%;
}

.page-shell {
  position: relative;
  z-index: 1;
  padding-bottom: 6rem;
}

.site-header,
.site-footer,
.hero,
.content-grid,
.card-grid,
.page-panel {
  width: var(--content-width);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: clamp(0.5rem, 1.5vw, 0.9rem);
  padding: var(--header-offset) clamp(0.9rem, 2vw, 1.2rem) 1rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(8, 16, 21, 0.72);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-kicker,
.section-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--tan);
}

.brand-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
  font-weight: 700;
}

.brand-title-mobile {
  display: none;
}

.site-nav {
  display: flex;
  gap: clamp(0.45rem, 1vw, 1rem);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  padding: 0.7rem clamp(0.8rem, 1.4vw, 1rem);
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line);
  transform: translateY(-1px);
}

.mobile-app-nav {
  position: fixed;
  right: 0.75rem;
  bottom: 0.75rem;
  left: 0.75rem;
  z-index: 8;
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
  padding: 0.7rem;
  padding-bottom: var(--bottom-safe);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(9, 16, 20, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.3);
}

.mobile-app-nav a {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 0.7rem 0.5rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: min(68vh, 760px);
  margin-top: 1rem;
  padding: clamp(3rem, 7vw, 5rem) clamp(1.25rem, 4vw, 4rem);
  border-radius: clamp(24px, 3vw, 32px);
  background:
    linear-gradient(135deg, rgba(8, 16, 21, 0.92), rgba(20, 33, 38, 0.7)),
    url("../images/homepage-hero.png") center/cover;
  box-shadow: var(--shadow);
}

.hero-subpage {
  min-height: min(42vh, 460px);
  background:
    linear-gradient(135deg, rgba(8, 16, 21, 0.94), rgba(20, 33, 38, 0.7)),
    url("../images/campground.jpg") center/cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.42)),
    linear-gradient(90deg, rgba(117, 129, 93, 0.12), transparent 40%);
}

.hero-content {
  position: relative;
  max-width: min(40rem, 100%);
}

.hero-content.narrow {
  max-width: min(34rem, 100%);
}

.hero h1,
.hero h2,
.panel h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.3rem);
  line-height: 0.95;
}

.hero h2 {
  margin-top: 0.4rem;
  font-size: clamp(1.7rem, 4vw, 2.8rem);
}

.tagline,
.hero p,
.panel p,
.panel li,
.site-footer,
.site-nav a {
  font-size: 1.02rem;
  line-height: 1.65;
}

.tagline {
  max-width: 28rem;
  color: var(--muted);
}

.date-pill {
  display: inline-flex;
  margin-top: 0.35rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(190, 164, 124, 0.28);
  border-radius: 999px;
  background: rgba(8, 16, 21, 0.42);
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.3;
}

.hero-actions,
.section-heading {
  display: flex;
  gap: clamp(0.75rem, 1.5vw, 1rem);
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.hero-actions {
  margin-top: 1.8rem;
  width: fit-content;
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 16, 21, 0.42);
  backdrop-filter: blur(10px);
}

.button,
.button:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem clamp(1rem, 2vw, 1.25rem);
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.18);
}

.button-primary {
  background: linear-gradient(135deg, var(--orange), #eb9558);
  color: #0e1111;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line);
}

.button-disabled {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(242, 239, 231, 0.55);
  cursor: not-allowed;
}

.content-grid,
.card-grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.25rem);
  margin-top: clamp(1rem, 2vw, 1.5rem);
}

.content-grid {
  grid-template-columns: repeat(12, 1fr);
}

.card-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.home-highlight-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel {
  width: auto;
  padding: clamp(1.15rem, 2vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--surface-strong));
  box-shadow: var(--shadow);
}

.mission-panel {
  max-width: 72rem;
}

.home-highlight-panel {
  min-height: 100%;
}

.panel-wide,
.video-panel,
.status-panel {
  grid-column: span 12;
}

.content-grid > .panel:not(.panel-wide) {
  grid-column: span 6;
}

.feature-list {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.feature-list li + li {
  margin-top: 0.35rem;
}

.placeholder-card,
.winner-card {
  padding: 1.25rem;
  border: 1px dashed rgba(190, 164, 124, 0.4);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
}

.winner-card p,
.price-value {
  font-size: 1.5rem;
  color: var(--tan);
  font-weight: 700;
}

.muted,
.form-reminder {
  color: var(--muted);
}

.video-frame,
.form-embed,
.map-canvas {
  width: 100%;
  border: 0;
  border-radius: var(--radius-sm);
}

.video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: rgba(0, 0, 0, 0.24);
}

.video-frame iframe {
  width: 100%;
  height: 100%;
}

.form-embed {
  min-height: clamp(1400px, 170vh, 2200px);
  background: #fff;
}

.form-embed-poll {
  display: block;
  width: min(760px, 100%);
  min-height: 1180px;
  margin-inline: auto;
}

.map-canvas {
  min-height: clamp(320px, 48vw, 450px);
}

.is-hidden {
  display: none;
}

.map-popup h3 {
  margin: 0 0 0.4rem;
  color: #172126;
  font-size: 1.05rem;
}

.map-popup p {
  margin: 0 0 0.7rem;
  color: #172126;
  font-size: 0.92rem;
  line-height: 1.45;
}

.map-popup__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: #d47533;
  color: #0c1418;
  font-weight: 700;
}

.location-card,
.price-card {
  min-height: 100%;
}

.status-panel .button {
  margin-top: 0.8rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.5rem, 3vw, 2rem) 0 3rem;
  color: var(--muted);
}

.site-credit {
  margin-top: 0.2rem;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  opacity: 0.72;
}

.video-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 10;
}

.video-modal.is-open {
  display: block;
}

.video-modal.is-disabled {
  display: none !important;
}

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 4, 5, 0.86);
  backdrop-filter: blur(4px);
}

.video-modal__dialog {
  position: relative;
  width: min(900px, calc(100vw - (var(--gutter) * 2)));
  margin: 6vh auto 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(19, 32, 37, 0.98), rgba(9, 17, 21, 0.98));
  box-shadow: var(--shadow);
}

.video-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

.site-header,
.hero,
.page-panel,
.mobile-app-nav,
.video-modal__dialog {
  transition:
    width 180ms ease,
    padding 180ms ease,
    border-radius 180ms ease,
    margin 180ms ease;
}

@media (max-width: 1080px) {
  .content-grid > .panel:not(.panel-wide) {
    grid-column: span 12;
  }

  .home-highlight-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    align-items: stretch;
  }
}

@media (max-width: 960px) {
  .site-header {
    align-items: flex-start;
  }

  .brand {
    max-width: 100%;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
  }
}

@media (max-width: 780px) {
  .site-header,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-shell {
    padding-bottom: 7.5rem;
  }

  .site-header {
    gap: 0.8rem;
    padding-bottom: 0.9rem;
  }

  .brand-title-desktop {
    display: none;
  }

  .brand-title-mobile {
    display: inline;
    font-size: 1.45rem;
  }

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

  .content-grid > .panel,
  .panel-wide,
  .video-panel,
  .status-panel {
    grid-column: auto;
  }

  .hero {
    min-height: auto;
    padding: 3rem 1.15rem;
    border-radius: 24px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 11vw, 3.4rem);
    max-width: 11ch;
  }

  .hero h2 {
    font-size: clamp(1.35rem, 6vw, 2rem);
  }

  .hero p,
  .panel p,
  .panel li,
  .site-footer {
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .tagline {
    max-width: 22rem;
  }

  .site-nav {
    display: none;
  }

  .mobile-app-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .panel {
    padding: 1.2rem;
    border-radius: 20px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .button,
  .button:visited {
    width: 100%;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    backdrop-filter: none;
    gap: 0.7rem;
  }

  .form-embed {
    min-height: 1600px;
  }

  .form-embed-poll {
    min-height: 1120px;
  }

  .map-canvas {
    min-height: 280px;
  }

  .section-heading {
    align-items: flex-start;
  }

  .section-label {
    letter-spacing: 0.16em;
  }

  .video-modal__dialog {
    width: min(100vw - 1rem, 900px);
    margin-top: 8vh;
    padding: 0.8rem;
    border-radius: 20px;
  }

  .video-modal__close {
    top: 0.55rem;
    right: 0.55rem;
  }

  .site-footer {
    padding-bottom: calc(6rem + var(--bottom-safe));
  }
}

@media (max-width: 420px) {
  :root {
    --gutter: 0.5rem;
  }

  .site-header {
    padding-inline: 0.85rem;
    border-radius: 20px;
  }

  .brand-kicker,
  .section-label {
    font-size: 0.66rem;
  }

  .brand-title-mobile {
    font-size: 1.28rem;
  }

  .hero {
    padding: 2.6rem 1rem;
  }

  .hero h1 {
    font-size: clamp(2rem, 12vw, 2.8rem);
  }

  .hero h2 {
    font-size: 1.2rem;
  }

  .button,
  .button:visited {
    min-height: 44px;
  }

  .mobile-app-nav {
    right: 0.5rem;
    bottom: 0.5rem;
    left: 0.5rem;
    gap: 0.4rem;
    padding: 0.55rem;
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 0.55rem);
  }

  .mobile-app-nav a {
    min-height: 42px;
    font-size: 0.74rem;
    padding-inline: 0.3rem;
  }

  .panel {
    padding: 1rem;
  }

  .form-embed {
    min-height: 1800px;
  }

  .date-pill {
    font-size: 0.88rem;
  }

  .form-embed-poll {
    min-height: 1080px;
  }
}
