/* Little Rock RV Park — shared stylesheet
   Warm park branding: deep brown, rich park green, warm cream, gold accent.
   App feel pass: iOS system type, content sections as rounded cards on a
   deeper app background, pill buttons with a pressed state, grouped list
   accordions with animated answers, and a frosted glass Book Now bar.
   Mobile first, CSS only hamburger nav. One small script (assets/nav.js)
   handles the scroll state and assists the accordion open/close animation. */

:root {
  --brown-900: #38200f;
  --brown: #4b2814;
  --brown-soft: #5d3a1e;
  --green-900: #22402a;
  --green: #386641;
  --green-mid: #4e9b47;
  --green-bright: #7cab58;
  --green-soft: #e9efdd;
  --cream: #faf3e3;
  --cream-deep: #f3e8cf;
  --paper: #fffdf6;
  --app-bg: #ece0c0;
  --gold: #f2c94c;
  --gold-dark: #d9a91f;
  --ink: #2b2119;
  --ink-soft: #5c4f43;
  --line: #e2d5ba;
  --hairline: #e7dcc0;
  --radius: 18px;
  --max: 1120px;
  --card-shadow: 0 1px 2px rgba(75, 40, 20, .05), 0 10px 30px rgba(75, 40, 20, .08);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--app-bg);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, .brand, .btn, .main-nav, .eyebrow, summary {
  font-family: var(--font);
}

h1 { font-weight: 800; letter-spacing: -.02em; }
h2 { font-weight: 700; letter-spacing: -.012em; }
h3 { font-weight: 700; }

::selection { background: rgba(242, 201, 76, .45); }

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

a { color: var(--green); }
a:hover { color: var(--green-900); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* ---------- Buttons (pill shaped, with a pressed state) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  background: var(--brown);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 1.02rem;
  line-height: 1.25;
  text-align: center;
  transition: transform .12s ease, background-color .2s ease, filter .15s ease, box-shadow .2s ease;
  touch-action: manipulation;
}
.btn:hover { background: var(--brown-soft); color: #fff; }
.btn:active { transform: scale(.965); filter: brightness(.93); }
.btn-book {
  background: var(--gold);
  color: var(--brown-900);
  box-shadow: 0 2px 8px rgba(56, 32, 15, .35);
}
.btn-book:hover { background: var(--gold-dark); color: var(--brown-900); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-900); color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--green-900);
  border: 2px solid var(--green);
}
.btn-outline:hover { background: var(--green-soft); color: var(--green-900); }
.btn-lg { font-size: 1.1rem; padding: 14px 28px; min-height: 54px; }
.btn-header { min-height: 44px; padding: 9px 18px; font-size: .98rem; }

/* ---------- Header ---------- */
/* The header sits in normal flow so it never overlaps the hero image.
   assets/nav.js toggles html.nav-compact once the header has scrolled
   out of view, which swaps in the slim pinned Book Now only bar
   (.bookbar) below for the rest of the scroll. */
.site-header {
  background: var(--brown);
  color: #fff;
  position: relative;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(56, 32, 15, .35);
}
.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px 10px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}
.brand {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -.01em;
  font-size: 1rem;
  line-height: 1.12;
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.brand:hover { color: var(--gold); }
.brand-text { min-width: 0; }
/* Single row at every width: Call Us + gold Book Now beside the brand. */
.header-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.header-actions .btn-header { min-height: 42px; padding: 8px 14px; font-size: .9rem; white-space: nowrap; }

/* ---------- Pinned Book Now bar (frosted glass, scroll state) ---------- */
.bookbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: rgba(75, 40, 20, .78);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  border-bottom: 1px solid rgba(242, 201, 76, .45);
  box-shadow: 0 4px 24px rgba(56, 32, 15, .25);
  padding: calc(7px + env(safe-area-inset-top)) 12px 7px;
  display: flex;
  justify-content: center;
  transform: translateY(-105%);
  visibility: hidden;
  transition: transform .25s ease, visibility .25s;
}
html.nav-compact .bookbar { transform: translateY(0); visibility: visible; }
html.nav-compact { scroll-padding-top: calc(70px + env(safe-area-inset-top)); }
.bookbar .btn { min-height: 42px; padding: 8px 34px; }

/* Hamburger button (label for the CSS only checkbox toggle) */
.nav-btn {
  order: 2;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  border: 2px solid rgba(255, 255, 255, .55);
  border-radius: 12px;
  cursor: pointer;
  background: transparent;
}
.nav-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle:focus-visible ~ .header-inner .nav-btn { outline: 3px solid var(--gold); outline-offset: 2px; }
.nav-toggle:checked ~ .header-inner .nav-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle:checked ~ .header-inner .nav-btn span:nth-child(2) { opacity: 0; }
.nav-toggle:checked ~ .header-inner .nav-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav panel: dropdown under the header on mobile */
.main-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--brown-900);
  box-shadow: 0 14px 24px rgba(56, 32, 15, .35);
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  transition: max-height .25s ease, visibility .25s;
}
.nav-toggle:checked ~ .main-nav { max-height: 480px; visibility: visible; }
.main-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  color: #fdf6e3;
  text-decoration: none;
  font-size: 1.02rem;
  font-weight: 600;
  padding: 12px 20px;
  border-top: 1px solid rgba(250, 243, 227, .14);
}
.main-nav a:hover { background: var(--brown-soft); color: var(--gold); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%);
  padding-bottom: 14px;
}
.hero-img { width: 100%; height: 240px; object-fit: cover; object-position: center; }
.hero-text { padding: 24px 16px 16px; }
/* On pages with a hero photo the text sits in a white app card that
   overlaps the bottom of the photo. */
.hero:has(.hero-img) .hero-text {
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  padding: 22px 20px 24px;
  margin-top: -38px;
  position: relative;
  z-index: 2;
  width: calc(100% - 24px);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--green);
  margin: 0 0 8px;
}
h1 { font-size: 2rem; line-height: 1.16; margin: 0 0 12px; color: var(--brown); }
h2 { font-size: 1.45rem; line-height: 1.25; margin: 30px 0 12px; color: var(--green-900); }
h3 { font-size: 1.12rem; margin: 18px 0 6px; color: var(--brown); }
.lede { font-size: 1.1rem; color: var(--ink-soft); max-width: 62ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 4px; }
.hero-actions .btn { flex: 1 1 200px; }

/* ---------- Sections (content as rounded app cards) ---------- */
section { padding: 4px 0; }
.wrap > section {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 24px 20px 16px;
  margin: 16px 0;
}
.wrap > section h2:first-child { margin-top: 2px; }

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 18px 0 8px;
}
.card {
  background: #fff;
  border: 1px solid rgba(226, 213, 186, .55);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 1px 2px rgba(75, 40, 20, .04), 0 6px 18px rgba(75, 40, 20, .06);
}
.card h3 { margin-top: 4px; }
.card p { margin: 6px 0 0; color: var(--ink-soft); }

.checklist { list-style: none; padding: 0; margin: 12px 0; }
.checklist li { padding: 6px 0 6px 28px; position: relative; break-inside: avoid; }
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 2px;
  color: var(--green);
  font-weight: 700;
}

/* ---------- Rate cards ---------- */
.rate-group { margin: 26px 0; }
.rate-group h2 { margin-top: 0; }
.rate-cards { display: grid; grid-template-columns: 1fr; gap: 14px; }
.rate-card {
  background: #fff;
  border: 1px solid rgba(226, 213, 186, .55);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  box-shadow: 0 1px 2px rgba(75, 40, 20, .04), 0 6px 18px rgba(75, 40, 20, .06);
}
.rate-card .site-type { font-weight: 700; color: var(--brown); font-size: 1.05rem; margin: 0; }
.rate-card .price { font-size: 2.3rem; font-weight: 800; letter-spacing: -.02em; color: var(--green-900); margin: 6px 0 0; }
.rate-card .per { color: var(--ink-soft); margin: 2px 0 0; }
.badge {
  display: inline-block;
  background: var(--gold);
  color: var(--brown-900);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

/* ---------- Compare table (kept open, compact density) ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 14px; }
table.compare { width: 100%; border-collapse: collapse; margin: 0; background: #fff; font-size: .86rem; line-height: 1.4; }
table.compare th, table.compare td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
table.compare th { background: var(--brown); color: #fff; }
table.compare tr.own { background: var(--green-soft); font-weight: 600; }

/* ---------- Distances ---------- */
.distances { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 16px 0; }
.distance {
  background: var(--cream);
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: 16px;
  padding: 14px 18px;
}
.distance .place { font-weight: 700; color: var(--brown); }
.distance .away { color: var(--ink-soft); font-size: .95rem; }

/* ---------- Accordions (iOS grouped lists) ---------- */
/* Consecutive faq-items read as one white grouped list: hairline
   outline, rows split by inset hairlines, chevron disclosure. */
.faq-item {
  background: #fff;
  border-left: 1px solid var(--hairline);
  border-right: 1px solid var(--hairline);
  margin: 0;
  position: relative;
}
.faq-item:first-of-type {
  border-top: 1px solid var(--hairline);
  border-radius: 16px 16px 0 0;
}
.faq-item:last-of-type {
  border-bottom: 1px solid var(--hairline);
  border-radius: 0 0 16px 16px;
}
.faq-item:first-of-type:last-of-type { border-radius: 16px; }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  min-height: 54px;
  padding: 16px 48px 16px 18px;
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.35;
  color: var(--brown);
  transition: background-color .15s ease;
  touch-action: manipulation;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ""; }
/* Inset hairline between rows. */
.faq-item + .faq-item > summary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 0;
  height: 1px;
  background: var(--hairline);
}
/* Chevron disclosure indicator: points right closed, down open. */
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 19px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2.5px solid var(--green);
  border-bottom: 2.5px solid var(--green);
  transform: translateY(-50%) rotate(-45deg);
  transition: transform .3s ease;
}
.faq-item[open] summary::after { transform: translateY(-70%) rotate(45deg); }
.faq-item summary:hover { background: #fbf6ea; }
.faq-item summary:active { background: var(--cream); }
/* Animated answer: grid rows 0fr to 1fr (nav.js assists so the
   close animation plays too). */
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .38s cubic-bezier(.32, .72, .24, 1);
}
.faq-item[open] .faq-answer { grid-template-rows: 1fr; }
.faq-answer-inner { overflow: hidden; min-height: 0; padding: 2px 18px 18px; }
.faq-answer-inner p { margin: 0 0 10px; color: var(--ink-soft); }
.faq-answer-inner p:last-child { margin-bottom: 0; }
.faq-answer-inner h3 { margin-top: 14px; }
.faq-answer-inner .eyebrow { margin-top: 16px; }
.faq-answer-inner .eyebrow:first-child { margin-top: 2px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--brown);
  color: #fff;
  border-top: 5px solid var(--gold);
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  padding: 28px 24px;
  margin: 34px 0;
  text-align: center;
}
.cta-band h2 { color: #fff; margin-top: 0; }
.cta-band p { color: #f0e3c8; }
.cta-band .btn { margin: 6px; }
.cta-band .btn-green { background: var(--green-mid); }
.cta-band .btn-green:hover { background: var(--green); }

/* ---------- Map ---------- */
.map-figure { margin: 20px 0; }
.map-figure img { border: 1px solid var(--line); border-radius: 16px; background: var(--green-soft); }
.map-figure figcaption { color: var(--ink-soft); font-size: .95rem; padding-top: 10px; }
.legend { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 14px 0; }
.legend li { display: flex; align-items: center; gap: 8px; font-size: .95rem; }
.swatch { width: 18px; height: 18px; border-radius: 6px; border: 1px solid rgba(0,0,0,.25); display: inline-block; }
.sw-site { background: #f2c94c; }
.sw-office { background: #8a5a2b; }
.sw-dog { background: #7fb069; }
.sw-garden { background: #4e9b47; }
.sw-dumpster { background: #5b5b5b; }
.sw-open { background: #dcebc8; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brown); color: #f3e8cf; margin-top: 44px; }
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px 20px 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}
.footer-col h3 { color: var(--gold); margin-top: 0; font-size: 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 8px 0 0; }
.footer-col li { padding: 3px 0; }
.footer-col a { color: #f3e8cf; text-decoration: none; }
.footer-col a:hover { color: var(--gold); text-decoration: underline; }
.footer-brand { font-weight: 800; font-size: 1.15rem; color: #fff; margin: 0 0 8px; }
.footer-note {
  text-align: center;
  color: #d9c9a3;
  font-size: .9rem;
  padding: 14px 20px 22px;
  margin: 0;
}

.footer-note a { color: inherit; font-weight: 700; }

/* ---------- Larger phones and tablets ---------- */
@media (min-width: 560px) {
  .header-inner { padding: 8px 16px; min-height: 60px; }
  .header-actions .btn-header { min-height: 44px; padding: 9px 18px; font-size: .98rem; }
  .brand { font-size: 1.2rem; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .rate-cards { grid-template-columns: repeat(2, 1fr); }
  .distances { grid-template-columns: repeat(2, 1fr); }
  .hero-actions .btn { flex: 0 1 auto; }
}

/* ---------- Desktop ---------- */
@media (min-width: 900px) {
  .wrap { padding: 0 20px; }
  .nav-btn { display: none; }
  .main-nav {
    position: static;
    max-height: none;
    visibility: visible;
    overflow: visible;
    box-shadow: none;
    background: var(--green-900);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    transition: none;
  }
  .main-nav a {
    min-height: 46px;
    padding: 10px 16px;
    border-top: none;
    font-size: .98rem;
  }
  .main-nav a:hover { background: var(--green); color: #fff; }
  .hero-img { height: 420px; }
  .hero-text { padding: 34px 0 24px; }
  .hero:has(.hero-img) .hero-text { padding: 28px 30px 30px; margin-top: -46px; width: calc(100% - 40px); }
  h1 { font-size: 2.55rem; }
  h2 { font-size: 1.65rem; }
  .cards { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
  .rate-cards { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .distances { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
  .checklist { columns: 2; column-gap: 30px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .faq-answer, .btn, .bookbar, .faq-item summary::after { transition: none; }
}
