/* ============================================================
   CampingScout — shared design system + landing page
   Palette (from brand image / Figma):
   dark green #2C3524 · olive #374318 · peach #F9D898
   orange #F84809 · cream #F6F3E9
   ============================================================ */

:root {
  --cream: #F6F3E9;
  --olive: #374318;
  --olive-deep: #2C3524;
  --orange: #F84809;
  --orange-dark: #D93C05;
  --peach: #F9D898;
  --sage: #8A9A5B;
  --ink: #222222;
  --ink-2: #393939;
  --muted: #676767;
  --line: #E3DECB;
  --line-strong: #CFC9B4;
  --card: #FFFFFF;
  --shadow: 0 2px 9px rgba(60, 70, 40, .14);
  --radius: 16px;
  --font: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* type scale */
  --fs-xs: 12px;    /* form labels, calendar day-of-week */
  --fs-sm: 14px;    /* inputs, small buttons, meta text, footer */
  --fs-base: 16px;  /* body copy, nav links */
  --fs-lg: 20px;    /* leads, subtitles, h3 */
  --fs-h2: clamp(36px, 4.2vw, 48px);
  --fs-h1: clamp(40px, 5.2vw, 64px);
  --lh-heading: 1.02;
  --lh-body: 1.5;
}

@font-face {
  font-family: 'Cooper Black';
  src: url('/static/fonts/CooperBlack.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--ink-2);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: var(--font); cursor: pointer; }
input, select, textarea { font-family: var(--font); }

/* ------------------------------------------------- hero */
.hero {
  position: relative;
  min-height: 65vh;
  padding: 32px 6.9% 96px;
  background:
    linear-gradient(67deg, rgba(0,0,0,.55) 40%, rgba(0,0,0,.15) 100%),
    url('/static/img/hero.jpg') center 62% / cover no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nav-bar {
  width: 100%;
  max-width: 1242px;
  background: var(--cream);
  border-radius: 8px;
  height: 75px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 18px rgba(0,0,0,.18);
}
.nav-links { display: flex; gap: 32px; flex: 1; }
.nav-links a { font-size: var(--fs-base); font-weight: 600; color: var(--ink); }
.nav-links a:hover { color: var(--orange); }
.logo {
  font-family: 'Cooper Black', var(--font);
  font-weight: 400;
  font-size: 22px;
  color: var(--olive);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -.3px;
}
.nav-right { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: 20px; }
.btn-pill {
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: var(--fs-base);
  letter-spacing: .6px;
  padding: 13px 28px;
  border-radius: 66px;
  transition: background .15s;
}
.btn-pill:hover { background: var(--orange-dark); }
.text-btn {
  background: none;
  border: none;
  color: var(--olive);
  font-weight: 700;
  font-size: var(--fs-sm);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 0;
}

.hero-copy {
  margin: auto 0;
  text-align: center;
  color: #fff;
  max-width: 680px;
}
.hero-copy h1 {
  font-weight: 800;
  font-size: var(--fs-h1);
  line-height: var(--lh-heading);
  margin-bottom: 26px;
  text-wrap: balance;
}
.hero-copy p { font-size: var(--fs-lg); line-height: var(--lh-body); opacity: .95; }

/* Airbnb-style search pill */
.search-pill {
  position: absolute;
  bottom: -36px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 500px;
  padding: 6px;
  display: flex;
  align-items: center;
  gap: 1px;
  box-shadow: 0 10px 34px rgba(0,0,0,.22);
  z-index: 5;
}
.search-cell {
  position: relative;
  padding: 12px 26px;
  width: 150px;
  border-radius: 500px;
  transition: background .15s;
}
.search-cell:hover { background: var(--cream); }
.search-cell-wide { width: 230px; }
.search-cell-nights { width: 150px; }
.search-cell label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 3px;
}
.search-cell input {
  border: none;
  outline: none;
  background: transparent;
  font-size: var(--fs-sm);
  color: var(--ink);
  width: 100%;
}
.search-cell input::placeholder { color: var(--muted); }
.search-divider { width: 1px; height: 26px; background: var(--line); flex-shrink: 0; }
.search-go {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--orange);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  flex-shrink: 0;
  transition: background .15s;
}
.search-go:hover { background: var(--orange-dark); }

.autocomplete {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 320px;
  max-height: 320px;
  overflow-y: auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 40px rgba(0,0,0,.2);
  padding: 8px;
  z-index: 50;
}
.autocomplete div {
  padding: 11px 16px;
  border-radius: 10px;
  font-size: var(--fs-sm);
  color: var(--ink);
  cursor: pointer;
}
.autocomplete div:hover, .autocomplete div.active { background: var(--cream); }

/* arrival cell — button that opens the calendar popover */
.search-value {
  display: block;
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  font-size: var(--fs-sm);
  color: var(--muted);
  padding: 0;
  white-space: nowrap;
}
.search-value.has-value { color: var(--ink); }

/* calendar popover (same look as the app's arrival calendar) */
.cal-pop {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 40px rgba(0,0,0,.2);
  padding: 18px;
  z-index: 50;
}
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-head strong { font-size: var(--fs-base); color: var(--ink); }
.cal-nav button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  font-size: var(--fs-base);
  color: var(--ink);
  margin-left: 6px;
}
.cal-nav button:hover:not(:disabled) { background: var(--cream); }
.cal-nav button:disabled { opacity: .3; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { margin-bottom: 4px; }
.cal-dow span {
  text-align: center;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--muted);
  padding: 5px 0;
  background: var(--cream);
  border-radius: 8px;
}
.cal-day {
  aspect-ratio: 1;
  border: none;
  background: transparent;
  border-radius: 10px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink);
  transition: all .1s;
}
.cal-day:hover:not(:disabled):not(.selected) { background: var(--cream); }
.cal-day:disabled { color: var(--line-strong); cursor: default; }
.cal-day.selected { background: var(--olive); color: var(--peach); }
/* long-weekend nights with a 3-night minimum stay (see /api/minstay) */
.cal-day.holiday { position: relative; }
.cal-day.holiday::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: #b26a00;
}
.cal-day.holiday.selected::after { background: var(--peach); }
.cal-legend {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}
.cal-legend::before {
  content: '';
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #b26a00;
}

/* nights cell — compact − / + stepper (same pattern as the app) */
.mini-stepper { display: flex; align-items: center; gap: 10px; }
.mini-stepper button {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: #fff;
  font-size: var(--fs-base);
  line-height: 1;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mini-stepper button:hover:not(:disabled) { border-color: var(--olive); }
.mini-stepper button:disabled { opacity: .3; cursor: default; }
.mini-stepper span {
  min-width: 20px;
  text-align: center;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink);
}

/* desktop: a roomier, Airbnb-scale search pill (mobile stacks it instead) */
@media (min-width: 901px) {
  .search-pill { padding: 8px; bottom: -44px; }
  .search-cell { padding: 17px 32px; width: 190px; }
  .search-cell-wide { width: 310px; }
  .search-cell-nights { width: 190px; }
  .search-cell label { font-size: 13.5px; margin-bottom: 5px; }
  .search-cell input, .search-value { font-size: var(--fs-base); }
  .search-divider { height: 34px; }
  .search-go { width: 58px; height: 58px; margin-left: 8px; }
  .search-go svg { width: 23px; height: 23px; }
  .mini-stepper { gap: 12px; }
  .mini-stepper button { width: 30px; height: 30px; }
  .mini-stepper span { min-width: 24px; font-size: var(--fs-base); }
}

/* color bands under hero (Figma) */
.band-olive { height: 102px; background: var(--olive); }
.band-orange { height: 18px; background: var(--orange); }

/* ------------------------------------------------- sections
   content aligns to the same 1242px column as the navbar */
section { padding: 88px max(24px, calc((100% - 1242px) / 2)); }

.section-head h2 {
  font-weight: 800;
  font-size: var(--fs-h2);
  line-height: var(--lh-heading);
  color: var(--ink);
  margin-bottom: 10px;
}
.section-head p { font-size: var(--fs-lg); color: var(--muted); max-width: 622px; }
.section-head.centered { text-align: center; }
.section-head.centered p { margin: 0 auto; }

/* how it works */
.steps {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.step { display: flex; gap: 16px; align-items: flex-start; flex: 1; min-width: 240px; }
.step-num {
  width: 51px;
  height: 51px;
  border-radius: 50%;
  background: var(--olive);
  color: var(--peach);
  font-weight: 700;
  font-size: var(--fs-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-text { max-width: 247px; }
.step-text h3 { font-weight: 700; font-size: var(--fs-lg); color: var(--ink-2); margin-bottom: 4px; }
.step-text p { font-size: var(--fs-base); color: var(--muted); line-height: var(--lh-body); }

/* testimonials */
.social .cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 44px;
}
.t-card {
  background: var(--card);
  border-radius: 10px;
  padding: 26px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.stars { color: var(--orange); font-size: var(--fs-base); letter-spacing: 3px; }
.t-quote { font-size: var(--fs-base); line-height: var(--lh-body); color: var(--ink-2); flex: 1; }
.t-person { display: flex; align-items: center; gap: 14px; }
.t-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  font-size: var(--fs-base);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
.t-avatar--olive { background: var(--olive); }
.t-avatar--orange { background: var(--orange); }
.t-avatar--sage { background: var(--sage); }
.t-person strong { display: block; font-size: var(--fs-base); font-weight: 700; color: var(--ink); }
.t-person span { font-size: var(--fs-sm); color: var(--olive); font-weight: 500; }

/* extension promo */
.ext-promo .promo-card {
  background: var(--olive);
  border-radius: 28px;
  padding: 56px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
  box-shadow: 0 18px 44px rgba(44, 53, 36, .28);
}
.promo-eyebrow {
  display: inline-block;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: var(--fs-xs);
  color: var(--peach);
  margin-bottom: 14px;
}
.promo-copy h2 { font-weight: 800; font-size: var(--fs-h2); line-height: var(--lh-heading);
  color: #fff; margin-bottom: 14px; }
.promo-lead { font-size: var(--fs-lg); line-height: var(--lh-body); color: #E7E3D4; }
.promo-lead strong { color: #fff; }
.promo-points { list-style: none; margin: 22px 0 28px; display: grid; gap: 12px; }
.promo-points li { position: relative; padding-left: 30px; color: #ECE8DA;
  font-size: var(--fs-base); line-height: var(--lh-body); }
.promo-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.promo-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.promo-note { font-size: var(--fs-sm); color: #CFCBB8; }

/* mock popup on the right */
.promo-visual { display: flex; justify-content: center; }
.mini-pop {
  width: 100%;
  max-width: 320px;
  background: var(--cream);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
}
.mini-pop-head { font-weight: 800; font-size: var(--fs-base); color: var(--olive);
  display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.mini-pop-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--ink);
}
.mini-check {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: var(--orange);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mini-pop-status {
  margin-top: 12px;
  background: #E7F0E1;
  color: #2e6b2e;
  border-radius: 10px;
  padding: 10px 13px;
  font-size: 12.5px;
  font-weight: 600;
}

/* FAQ */
.faq {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 72px;
  align-items: start;
}
.faq-left h2 {
  font-weight: 800;
  font-size: var(--fs-h2);
  line-height: var(--lh-heading);
  color: var(--ink);
  margin-bottom: 24px;
}
.faq-left p { font-size: var(--fs-lg); color: var(--muted); line-height: var(--lh-body); }
.faq-list details {
  border-bottom: 1px solid var(--line-strong);
  padding: 22px 0;
}
.faq-list summary {
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
  transition: transform .2s;
  flex-shrink: 0;
}
.faq-list details[open] summary::after { transform: rotate(-135deg); }
.faq-list details p {
  margin-top: 14px;
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--muted);
  max-width: 620px;
}

/* footer */
.footer {
  background: var(--olive-deep);
  color: var(--cream);
  padding: 46px max(24px, calc((100% - 1242px) / 2)) 36px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  font-size: var(--fs-sm);
}
.footer .logo { color: var(--peach); font-size: 24px; }
.footer-tagline { margin-top: 10px; opacity: .9; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { opacity: .9; }
.footer-bottom a { color: var(--cream); text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom a:hover { color: #fff; }
.footer-sep { opacity: .5; margin: 0 2px; }

/* ------------------------------------------------- responsive */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-bar { max-width: none; }
  .search-pill {
    position: static;
    transform: none;
    margin-top: 48px;
    flex-direction: column;
    border-radius: 24px;
    width: 100%;
    max-width: 420px;
    padding: 10px;
  }
  .search-cell, .search-cell-wide, .search-cell-nights { width: 100%; }
  .cal-pop { width: min(320px, 86vw); }
  .search-divider { width: 100%; height: 1px; }
  .search-go { width: 100%; border-radius: 66px; margin: 6px 0 0; }
  .hero { padding-bottom: 40px; }
  .hero-copy { margin: 56px 0 0; }
  .faq { grid-template-columns: 1fr; gap: 32px; }
  section { padding: 64px 6%; }

  .ext-promo .promo-card { grid-template-columns: 1fr; gap: 34px; padding: 40px 28px; }
  .promo-visual { order: -1; }

  /* center the "How it works" section */
  .how .section-head { text-align: center; }
  .how .section-head p { margin: 0 auto; }
  .steps { flex-direction: column; align-items: center; gap: 36px; }
  .step { flex-direction: column; align-items: center; text-align: center; flex: none; }
  .step-text { max-width: 320px; }
}

/* phones: keep the nav bar on one row without squishing its contents */
@media (max-width: 560px) {
  .nav-bar { padding: 0 16px; gap: 10px; }
  .nav-right { flex: 0 1 auto; gap: 10px; }
  .logo { font-size: 18px; }
  .btn-pill { padding: 11px 18px; font-size: 14px; letter-spacing: .3px; white-space: nowrap; }
}
