/* =============================================
   DALLAS TO DENVER — Road Trip Guide
   Palette: deep forest green, cream, gold
============================================== */

:root {
  --bg:        #101711;
  --bg-mid:    #162018;
  --bg-light:  #1D281F;
  --cream:     #F2EDE4;
  --cream-dim: rgba(242,237,228,0.48);
  --gold:      #C9A84C;
  --gold-dim:  rgba(201,168,76,0.16);
  --border:    rgba(242,237,228,0.08);
  --border-mid:rgba(242,237,228,0.16);
  --font-sans: 'Inter', 'Noto Sans TC', system-ui, sans-serif;
  --max-w:     1160px;
  --t:         0.30s ease;
}

/* ── RESET ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

/* ── SCROLL REVEAL ───────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ── NAVIGATION ──────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
  background: rgba(14,26,15,0);
  border-bottom: 1px solid rgba(242,237,228,0);
  transition: background 0.35s ease, border-color 0.35s ease;
}
.site-nav.scrolled {
  background: rgba(14,26,15,0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}
.nav-title {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.lang-toggle {
  position: absolute;
  right: clamp(1.5rem, 5vw, 3rem);
  background: rgba(242,237,228,0.08);
  border: 1px solid rgba(242,237,228,0.22);
  color: var(--cream-dim);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  padding: 0.30rem 0.85rem;
  border-radius: 2px;
  cursor: pointer;
  transition: background var(--t), color var(--t), border-color var(--t);
}
.lang-toggle:hover {
  background: var(--gold-dim);
  color: var(--gold);
  border-color: var(--gold);
}

/* ── HERO SCENE (scroll-driven) ──────────── */

/* Outer container: tall enough for scroll travel (150vh extra) */
.hero-scene {
  position: relative;
  height: 250vh;
}

/* Sticky inner: stays visible for the full 250vh scroll distance */
.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

/* Dark topography background — stays put, card scales over it */
.hero-topo-bg {
  position: absolute;
  inset: 0;
  background-color: #0a1209;
  /* Subtle topography contour lines as repeating SVG */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.045)' stroke-width='1'%3E%3Cellipse cx='300' cy='300' rx='60' ry='40'/%3E%3Cellipse cx='300' cy='300' rx='110' ry='76'/%3E%3Cellipse cx='300' cy='300' rx='162' ry='115'/%3E%3Cellipse cx='300' cy='300' rx='215' ry='155'/%3E%3Cellipse cx='300' cy='300' rx='270' ry='198'/%3E%3Cellipse cx='300' cy='300' rx='326' ry='242'/%3E%3Cellipse cx='300' cy='300' rx='383' ry='288'/%3E%3Cellipse cx='300' cy='300' rx='440' ry='334'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 600px 600px;
  background-position: center;
}

/* The scaling card — starts at 50%, JS scales it to 100% on scroll */
.hero-card {
  position: absolute;
  inset: 0;
  transform-origin: center center;
  transform: scale(0.52);
  will-change: transform;
  overflow: hidden;
  /* Subtle border visible when card is small */
  box-shadow: 0 0 0 1px rgba(255,255,255,0.10), 0 40px 120px rgba(0,0,0,0.80);
  transition: box-shadow 0.4s ease;
}
/* Shadow disappears once card fills screen */
.hero-card.full { box-shadow: none; }

/* Photo carousel inside card */
.hero-carousel-inner {
  position: absolute;
  inset: 0;
}
.carousel-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.carousel-slide.active { opacity: 1; }

/* Gradient over photos for text legibility */
.hero-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(10,18,9,0.65) 0%,
    rgba(10,18,9,0.30) 55%,
    rgba(10,18,9,0.50) 100%
  );
  pointer-events: none;
}

/* Text — centered in card */
.hero-card-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  pointer-events: none;
}

/* "DALLAS" SVG outline — clean, no skeleton artifacts */
.hero-dallas-svg {
  width: min(68vw, 500px);
  display: block;
  /* Slightly compensate for card scale so text doesn't look tiny */
  margin-bottom: -0.4rem;
}

/* "to Denver" solid bold text */
.hero-solid-title {
  font-family: 'Bebas Neue', 'Inter', sans-serif;
  font-size: clamp(3.2rem, 9vw, 7rem);
  font-weight: 400; /* Bebas Neue is display — 400 is already bold */
  color: var(--cream);
  line-height: 0.80;
  letter-spacing: 0.04em;
  margin-bottom: 1.4rem;
}

/* Subtitle */
.hero-card-sub {
  font-size: 0.70rem;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(242,237,228,0.58);
  margin-bottom: 2.2rem;
}

/* "↓ scroll" hint — fades out as user scrolls */
.hero-scroll-cue {
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(242,237,228,0.38);
  transition: opacity 0.3s ease;
}

/* ── OVERVIEW STRIP ──────────────────────── */
.overview-strip {
  background: var(--bg-mid);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.2rem clamp(1.5rem, 5vw, 3rem);
}
.overview-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.ov-stats { display: flex; align-items: center; }
.ov-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 2rem;
}
.ov-item:first-child { padding-left: 0; }
.ov-num { font-size: 2rem; font-weight: 800; color: var(--gold); line-height: 1; }
.ov-label {
  font-size: 0.63rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin-top: 0.2rem;
}
.ov-divider { width: 1px; height: 40px; background: var(--border); }
.ov-cities { display: flex; gap: 1.8rem; flex-wrap: wrap; }
.ov-city {
  font-size: 0.72rem;
  color: var(--cream-dim);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.ov-city-n {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold);
  background: var(--gold-dim);
  padding: 1px 5px;
  border-radius: 2px;
}

/* ── SHARED SECTION ──────────────────────── */
.section {
  padding: clamp(4rem, 8vh, 7rem) clamp(1.5rem, 5vw, 3rem);
}
.container {
  max-width: var(--max-w);
  margin: 0 auto;
}
.container--centered { text-align: center; }

.section-heading {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.section-heading--center { text-align: center; }
.section-sub { font-size: 0.85rem; color: var(--cream-dim); margin-bottom: 3rem; }
.section-sub--center { text-align: center; }

/* ── CHECKLIST ───────────────────────────── */
.checklist-section { background: var(--bg-mid); }

/* Flex so 5 cards center as 3 + 2 (no orphan stuck to left) */
.checklist-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.4rem;
}
.checklist-category {
  background: #151E16;
  border: 1px solid rgba(242,237,228,0.11);
  border-radius: 8px;
  padding: 1.4rem 1.6rem;
  width: calc(33.33% - 1.4rem);
  min-width: 220px;
  text-align: left;

  backdrop-filter: blur(18px) saturate(115%);
  -webkit-backdrop-filter: blur(18px) saturate(115%);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 20px 60px rgba(0, 0, 0, 0.22);
}

.checklist-category {
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.checklist-category:hover {
  background: rgba(242, 237, 228, 0.07);
  border-color: rgba(50, 136, 91, 0.28);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 24px 70px rgba(0, 0, 0, 0.25);
}

@media (max-width: 860px) { .checklist-category { width: calc(50% - 0.7rem); } }
@media (max-width: 540px)  { .checklist-category { width: 100%; } }

.checklist-cat-title {
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--border);
}
.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.82rem;
  color: var(--cream-dim);
  cursor: pointer;
  padding: 0.38rem 0;
  border-bottom: 1px solid rgba(242,237,228,0.05);
  transition: color var(--t);
}
.checklist-item:last-child { border-bottom: none; }
.checklist-item input[type="checkbox"] {
  width: 14px; height: 14px;
  flex-shrink: 0;
  margin-top: 3px;
  accent-color: var(--gold);
  cursor: pointer;
}
.checklist-item:hover { color: var(--cream); }
.checklist-item.checked { color: rgba(242,237,228,0.28); text-decoration: line-through; }

/* ── DAYS SECTION ────────────────────────── */
.days-section { background: var(--bg); }

.day-item {
  position: relative;
  border-bottom: 1px solid var(--border);
  padding: clamp(3rem, 6vh, 5rem) 0;
}
.day-item:first-child { border-top: 1px solid var(--border); }

.day-item-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
}
.day-item--even .day-item-row { direction: rtl; }
.day-item--even .day-item-row > * { direction: ltr; }

.day-item-ghost {
  position: absolute;
  font-size: clamp(7rem, 15vw, 13rem);
  font-weight: 900;
  line-height: 1;
  color: rgba(242,237,228,0.055);
  top: 50%;
  transform: translateY(-50%);
  left: clamp(1.5rem, 5vw, 3rem);
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.04em;
}
.day-item--even .day-item-ghost {
  left: auto;
  right: clamp(1.5rem, 5vw, 3rem);
}

.day-item-visual {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 2px;
}
.day-item-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s ease;
}
.day-item:hover .day-item-img { transform: scale(1.04); }

.day-item-text { padding: 0.5rem 0; }
.day-item-eyebrow {
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.65rem;
}
.day-item-title {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 800;
  color: var(--cream);
  line-height: 1.15;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}
.day-item-subtitle {
  font-size: 0.88rem;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 0.9rem;
}
.day-item-teaser {
  font-size: 0.83rem;
  color: var(--cream-dim);
  line-height: 1.75;
  margin-bottom: 1.4rem;
  max-width: 420px;
}
.day-item-meta {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.day-item-meta-tag { font-size: 0.70rem; letter-spacing: 0.08em; color: var(--cream-dim); }
.day-item-meta-tag strong { color: var(--cream); }

.day-expand-btn {
  background: transparent;
  border: 1px solid var(--border-mid);
  color: var(--cream-dim);
  font-size: 0.70rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.55rem 1.4rem;
  cursor: pointer;
  transition: background var(--t), color var(--t), border-color var(--t);
}
.day-expand-btn:hover,
.day-item.open .day-expand-btn {
  background: var(--gold-dim);
  color: var(--gold);
  border-color: var(--gold);
}

/* ── EXPANDED PANEL ──────────────────────── */
.day-item-expanded {
  display: none;
  max-width: var(--max-w);
  margin: 2rem auto 0;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
}
.day-item.open .day-item-expanded { display: block; }

.rph-wrap {
  position: relative;
  height: 240px;
  overflow: hidden;
  border-radius: 2px;
  margin-bottom: 1.5rem;
}
.rph-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.rph-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(14,26,15,0.85) 0%, rgba(14,26,15,0.22) 100%);
}
.rph-content {
  position: relative;
  z-index: 2;
  padding: 1.6rem 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.rph-eyebrow {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.rph-route-name { font-size: 1.2rem; font-weight: 700; color: var(--cream); margin-bottom: 0.6rem; }
.rph-route-svg { width: 100%; max-width: 480px; margin-bottom: 0.7rem; }
.rph-stats-row { display: flex; gap: 1.8rem; }
.rph-stat { font-size: 0.70rem; color: rgba(242,237,228,0.65); letter-spacing: 0.06em; }
.rph-stat strong { color: var(--cream); }

.day-meta-table {
  display: flex;
  background: var(--bg-mid);
  border: 1px solid var(--border);
  border-radius: 2px;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.dmt-item {
  flex: 1;
  min-width: 110px;
  padding: 0.9rem 1.3rem;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.dmt-item:last-child { border-right: none; }
.dmt-label { font-size: 0.58rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.dmt-value { font-size: 0.83rem; color: var(--cream); }
.maps-text-link {
  font-size: 0.70rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  color: var(--gold);
  padding: 0.9rem 1.3rem;
  display: flex;
  align-items: center;
  white-space: nowrap;
  transition: color var(--t);
}
.maps-text-link:hover { color: #e0c068; }

.day-content-wrap { margin-bottom: 2rem; }
.day-content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 640px) { .day-content-grid { grid-template-columns: 1fr; } }

.content-section-h {
  display: block;
  font-size: 0.60rem;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
  margin-top: 1.2rem;
}
.content-section-h:first-child { margin-top: 0; }
.content-list { list-style: none; padding: 0; }
.content-list li {
  font-size: 0.82rem;
  color: var(--cream-dim);
  padding: 0.28rem 0 0.28rem 1rem;
  position: relative;
  border-bottom: 1px solid rgba(242,237,228,0.04);
}
.content-list li::before { content: '—'; position: absolute; left: 0; color: var(--gold); font-size: 0.65rem; }
.notes-block p {
  font-size: 0.82rem;
  color: var(--cream-dim);
  padding: 0.28rem 0;
  border-bottom: 1px solid rgba(242,237,228,0.04);
}

/* Standard 3-photo masonry gallery */
.day-photo-masonry {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  grid-template-rows: 180px 180px;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.photo-main {
  grid-row: 1 / 3;
  background-size: cover;
  background-position: center;
  border-radius: 2px;
}
.photo-secondary {
  background-size: cover;
  background-position: center;
  border-radius: 2px;
}

/* Day 5 — 3 vertical portrait photos side by side */
.day-photo-portrait {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.photo-portrait-item {
  aspect-ratio: 2/3;
  background-size: cover;
  background-position: center;
  border-radius: 2px;
}
.photo-caption {
  font-size: 0.78rem;
  color: var(--cream-dim);
  font-style: italic;
  margin-bottom: 2rem;
  padding-top: 0.5rem;
}

/* ── FOOTER ──────────────────────────────── */
.site-footer {
  background: var(--bg-mid);
  border-top: 1px solid var(--border);
  padding: 2.5rem clamp(1.5rem, 5vw, 3rem);
  text-align: center;
}
.site-footer p { font-size: 0.78rem; color: var(--cream-dim); letter-spacing: 0.06em; }
.footer-note { font-size: 0.67rem !important; color: rgba(242,237,228,0.28) !important; margin-top: 0.3rem; }

/* ── BACK TO TOP ─────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 1.8rem; right: 1.8rem;
  z-index: 100;
  width: 40px; height: 40px;
  background: var(--bg-mid);
  border: 1px solid var(--border);
  color: var(--cream-dim);
  font-size: 1rem;
  border-radius: 2px;
  cursor: pointer;
  opacity: 0; pointer-events: none;
  transition: opacity var(--t), background var(--t), color var(--t);
}
.back-to-top.visible { opacity: 1; pointer-events: all; }
.back-to-top:hover { background: var(--gold-dim); color: var(--gold); }

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 768px) {
  .day-item-row { grid-template-columns: 1fr; gap: 1.5rem; }
  .day-item--even .day-item-row { direction: ltr; }
  .day-item-visual { aspect-ratio: 16/9; }
  .hero-carousel-wrap { width: 200px; height: 260px; }
  .overview-inner { flex-direction: column; align-items: flex-start; }
}
