/* Southern Utah Guide — global styles */
:root {
  --paper: #FDFBF6;
  --sand: #F4EDDF;
  --ink: #2A2118;
  --ink-soft: #6B5D4D;
  --clay: #A34A24;
  --clay-deep: #7E3517;
  --dusk: #22303C;
  --dusk-soft: #3A4B5A;
  --juniper: #4E6B54;
  --gold: #C98F2D;
  --line: #E5DBC8;
  --shadow: 0 2px 14px rgba(42, 33, 24, .08);
  --radius: 10px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
h1, h2, h3, h4 { font-family: "Fraunces", Georgia, serif; line-height: 1.15; text-wrap: balance; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; max-width: 70ch; }
a { color: var(--clay); }
img, svg { max-width: 100%; display: block; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; font-weight: 700;
  color: var(--clay); margin: 0 0 .6rem;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 251, 246, .94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 1.4rem; padding: .7rem 20px; max-width: 1220px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: 1.12rem; white-space: nowrap; }
.brand svg { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 1.15rem; align-items: center; margin-left: auto; flex-wrap: wrap; }
.nav-links a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; padding: .2rem 0; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a[aria-current="page"] { border-bottom-color: var(--clay); }
.btn {
  display: inline-block; background: var(--clay); color: #fff !important; text-decoration: none;
  padding: .55rem 1.15rem; border-radius: 999px; font-weight: 700; font-size: .95rem; border: 0; cursor: pointer;
}
.btn:hover { background: var(--clay-deep); }
.btn.ghost { background: transparent; color: var(--ink) !important; border: 2px solid var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff !important; }
.btn.light { background: #fff; color: var(--dusk) !important; }
.btn.light:hover { background: var(--sand); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--ink); }
.search-btn { background: none; border: 0; cursor: pointer; padding: .3rem; color: var(--ink); }
.search-btn svg { width: 20px; height: 20px; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; padding: 1rem 20px; gap: .8rem;
  }
  .nav-links.open { display: flex; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--dusk); color: #fff; overflow: hidden; }
.hero .art { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .art svg { width: 100%; height: 100%; }
.hero-inner { position: relative; padding: clamp(4rem, 10vw, 8rem) 20px; max-width: 1140px; margin: 0 auto; }
.hero h1 { color: #fff; max-width: 17ch; }
.hero p { font-size: 1.15rem; max-width: 52ch; color: #E9E2D4; }
.hero .actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.6rem; }

/* Page hero (interior) */
.page-hero { background: var(--sand); border-bottom: 1px solid var(--line); padding: 2.6rem 0 2.2rem; }
.page-hero p { color: var(--ink-soft); font-size: 1.05rem; }

/* ---------- Sections ---------- */
.section { padding: 3rem 0; }
.section.alt { background: var(--sand); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.section-head p { margin: 0; color: var(--ink-soft); }
.more-link { font-weight: 700; text-decoration: none; white-space: nowrap; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 1.3rem; grid-template-columns: repeat(auto-fill, minmax(265px, 1fr)); }
.grid.wide { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .15s ease;
}
.card:hover { transform: translateY(-3px); }
.card .thumb { aspect-ratio: 16/9; background: var(--sand); }
.card .thumb svg { width: 100%; height: 100%; }
.card .body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.card h3 { margin: 0; font-size: 1.12rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--clay); }
.card .meta { display: flex; gap: .45rem; flex-wrap: wrap; align-items: center; font-size: .8rem; }
.card .desc { font-size: .92rem; color: var(--ink-soft); margin: 0; }
.card .foot { margin-top: auto; padding-top: .5rem; display: flex; justify-content: space-between; align-items: center; font-size: .88rem; }
.chip {
  display: inline-block; background: var(--sand); border: 1px solid var(--line);
  border-radius: 999px; padding: .06rem .6rem; font-size: .76rem; font-weight: 600; color: var(--ink-soft);
}
.chip.cat { background: #F3E4DA; border-color: #E5C9B8; color: var(--clay-deep); }
.chip.easy { background: #E7EFE9; border-color: #C9DACD; color: #38553E; }
.chip.moderate { background: #EAF0F5; border-color: #C8D8E4; color: #2F5470; }
.chip.hard { background: #F6E3DC; border-color: #E8C4B5; color: #8C3418; }
.chip.tier { background: #F7EDD8; border-color: #E8D5A8; color: #8A6413; }
.chip.tag { background: #EDF1E6; border-color: #CFDCC2; color: #44603A; text-transform: uppercase; font-size: .68rem; letter-spacing: .05em; }
.price { color: var(--juniper); font-weight: 700; letter-spacing: .05em; }
.rating { color: var(--gold); font-weight: 700; }
.card.premium { border: 2px solid var(--gold); }
.card.premium .body { position: relative; }

/* ---------- Filters ---------- */
.filter-layout { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; align-items: start; }
@media (max-width: 900px) { .filter-layout { grid-template-columns: 1fr; } }
.filters { position: sticky; top: 70px; display: flex; flex-direction: column; gap: 1rem; }
.filters details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem;
}
.filters summary { font-weight: 700; cursor: pointer; font-size: .95rem; }
.filters .opts { display: flex; flex-direction: column; gap: .35rem; margin-top: .6rem; }
.filters label { display: flex; gap: .5rem; align-items: center; font-size: .92rem; cursor: pointer; }
.filters input { accent-color: var(--clay); width: 16px; height: 16px; }
.filters .clear { font-size: .85rem; }
.result-count { color: var(--ink-soft); font-size: .92rem; margin-bottom: 1rem; }

/* ---------- Detail pages ---------- */
.detail-hero { background: var(--dusk); color: #fff; position: relative; overflow: hidden; }
.detail-hero .art { position: absolute; inset: 0; }
.detail-hero .art svg { width: 100%; height: 100%; }
.detail-hero-inner { position: relative; max-width: 1140px; margin: 0 auto; padding: 3.2rem 20px 2.6rem; }
.detail-hero h1 { color: #fff; }
.detail-hero .meta { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .6rem; }
.detail-hero .chip { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.25); color: #F1EADC; }
.detail-cols { display: grid; grid-template-columns: 1fr 320px; gap: 2.4rem; padding: 2.4rem 0 3.5rem; align-items: start; }
@media (max-width: 900px) { .detail-cols { grid-template-columns: 1fr; } }
.info-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .8rem;
  position: sticky; top: 80px;
}
.info-card h3 { margin: 0; }
.info-row { display: flex; flex-direction: column; gap: .1rem; font-size: .95rem; }
.info-row .k { text-transform: uppercase; letter-spacing: .1em; font-size: .68rem; font-weight: 700; color: var(--ink-soft); }
.callout {
  border-left: 4px solid var(--gold); background: #FBF4E4; border-radius: 0 8px 8px 0;
  padding: .9rem 1.1rem; margin: 1.2rem 0; font-size: .95rem;
}
.callout.permit { border-left-color: var(--clay); background: #F8EAE2; }
.callout strong { display: block; margin-bottom: .15rem; }

/* ---------- Plan page ---------- */
.itin-day { border-left: 3px solid var(--clay); padding: .2rem 0 1rem 1.2rem; margin-left: .4rem; }
.itin-day h4 { margin-bottom: .3rem; }
.table-wrap { overflow-x: auto; }
table.seasons { border-collapse: collapse; width: 100%; font-size: .93rem; min-width: 640px; }
table.seasons th { text-align: left; padding: .6rem .8rem; background: var(--dusk); color: #fff; }
table.seasons td { padding: .7rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.seasons td:first-child { font-weight: 700; white-space: nowrap; }

/* ---------- Tiers / Get listed ---------- */
.tiers { display: grid; gap: 1.3rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin: 2rem 0; }
.tier-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.tier-card.popular { border: 2px solid var(--clay); position: relative; }
.tier-card.popular::before {
  content: "Most popular"; position: absolute; top: -12px; left: 1.2rem;
  background: var(--clay); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: .15rem .7rem; border-radius: 999px;
}
.tier-price { font-family: "Fraunces", Georgia, serif; font-size: 2rem; font-weight: 700; margin: .3rem 0; }
.tier-price span { font-size: .95rem; font-family: "Source Sans 3", sans-serif; font-weight: 600; color: var(--ink-soft); }
.tier-card ul { padding-left: 1.1rem; margin: .8rem 0 1.2rem; font-size: .93rem; }
.tier-card li { margin-bottom: .35rem; }

/* Forms */
.form-grid { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; max-width: 720px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
label.f { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; font-size: .9rem; }
input[type=text], input[type=email], input[type=tel], select, textarea {
  font: inherit; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink);
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus, a:focus-visible, button:focus-visible { outline: 3px solid rgba(163, 74, 36, .4); outline-offset: 1px; }

/* ---------- Search overlay ---------- */
.search-overlay {
  position: fixed; inset: 0; background: rgba(34, 48, 60, .55); z-index: 100;
  display: none; padding: 10vh 20px 0;
}
.search-overlay.open { display: block; }
.search-panel { max-width: 640px; margin: 0 auto; background: var(--paper); border-radius: 12px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.search-panel input { width: 100%; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 1rem 1.2rem; font-size: 1.1rem; }
.search-results { max-height: 55vh; overflow-y: auto; }
.search-results a {
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  padding: .7rem 1.2rem; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line);
}
.search-results a:hover { background: var(--sand); }
.search-results .t { font-weight: 600; }
.search-results .s { font-size: .8rem; color: var(--ink-soft); white-space: nowrap; }
.search-hint { padding: .8rem 1.2rem; color: var(--ink-soft); font-size: .9rem; }

/* ---------- Footer ---------- */
footer.site { background: var(--dusk); color: #C8CFD6; margin-top: 3rem; }
.foot-inner { max-width: 1140px; margin: 0 auto; padding: 2.8rem 20px 2rem; display: grid; gap: 2rem; grid-template-columns: 2fr 1fr 1fr 1fr; }
@media (max-width: 800px) { .foot-inner { grid-template-columns: 1fr 1fr; } }
footer.site h4 { color: #fff; font-size: 1rem; margin-bottom: .7rem; }
footer.site a { color: #C8CFD6; text-decoration: none; display: block; padding: .15rem 0; font-size: .93rem; }
footer.site a:hover { color: #fff; }
.foot-brand { font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: 1.2rem; color: #fff; display: flex; gap: .5rem; align-items: center; }
.foot-note { border-top: 1px solid rgba(255,255,255,.12); padding: 1.1rem 20px; text-align: center; font-size: .82rem; color: #8FA0AE; }

/* Utility */
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.hidden { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
}
