/* ============================================================
   Visit Spring City, Utah - Site Stylesheet
   ============================================================ */

:root {
  --cream: #faf6ee;
  --cream-dark: #f1e9d8;
  --charcoal: #2b2621;
  --brown: #4a3f33;
  --oxide: #a3402b;
  --oxide-dark: #832f1e;
  --sage: #67765a;
  --sage-dark: #4f5c45;
  --gold: #c1932e;
  --cream-line: #e4d9c2;
  --text-muted: #6b6255;
  --max: 1180px;
  --radius: 6px;
  --shadow: 0 12px 30px -14px rgba(43, 38, 33, 0.35);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--charcoal);
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }
.lede { font-size: 1.2rem; color: var(--text-muted); max-width: 62ch; }
.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--oxide);
  display: inline-block;
  margin-bottom: .8em;
}
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; }
section.tight { padding: 44px 0; }
.section-head { max-width: 700px; margin-bottom: 42px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .95rem;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .18s ease;
}
.btn-primary { background: var(--oxide); color: #fff; }
.btn-primary:hover { background: var(--oxide-dark); }
.btn-outline { border-color: var(--charcoal); color: var(--charcoal); background: transparent; }
.btn-outline:hover { background: var(--charcoal); color: #fff; }
.btn-light { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); backdrop-filter: blur(2px); }
.btn-light:hover { background: #fff; color: var(--charcoal); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 500;
  background: rgba(250, 246, 238, .96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--cream-line);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--oxide); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 1.15rem;
}
.brand-text { font-family: var(--serif); font-size: 1.28rem; color: var(--charcoal); line-height: 1.1; }
.brand-text small { display: block; font-family: var(--sans); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--oxide); font-weight: 700; margin-top: 2px; }
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  text-decoration: none; color: var(--charcoal); font-weight: 600; font-size: .95rem;
  position: relative; padding: 4px 0;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -3px; height: 2px; width: 0;
  background: var(--oxide); transition: width .18s ease;
}
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--oxide); }
.nav-cta { margin-left: 6px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--charcoal); margin: 5px 0; }

@media (max-width: 880px) {
  .main-nav {
    position: fixed; inset: 68px 0 0 0; background: var(--cream);
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 10px 24px 30px; transform: translateY(-110%);
    transition: transform .25s ease; overflow-y: auto;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--cream-line); }
  .nav-cta { margin-left: 0; margin-top: 14px; }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 86vh; display: flex; align-items: flex-end;
  background-size: cover; background-position: center; color: #fff;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30,25,20,.25) 0%, rgba(25,20,16,.35) 45%, rgba(20,16,13,.86) 100%);
}
.hero-inner { position: relative; z-index: 2; padding-bottom: 64px; width: 100%; }
.hero h1 { color: #fff; margin-bottom: .3em; text-shadow: 0 2px 18px rgba(0,0,0,.25); }
.hero .lede { color: #f3ebdd; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.4); color: #fff; padding: 7px 16px; border-radius: 999px;
  font-size: .8rem; font-weight: 600; letter-spacing: .04em; margin-bottom: 18px;
}

.page-hero {
  position: relative; min-height: 46vh; display: flex; align-items: flex-end;
  background-size: cover; background-position: center; color: #fff;
}
.page-hero::before { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(30,25,20,.28) 0%, rgba(20,16,13,.82) 100%); }
.page-hero-inner { position: relative; z-index: 2; padding-bottom: 44px; }
.page-hero h1 { color: #fff; margin-bottom: .2em; }
.page-hero .lede { color: #f3ebdd; margin-bottom: 0; }
.breadcrumb { font-size: .82rem; color: #f3ebdd; margin-bottom: 14px; }
.breadcrumb a { color: #f3ebdd; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 4px 18px -10px rgba(43,38,33,.25);
  border: 1px solid var(--cream-line);
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media { aspect-ratio: 4/3; overflow: hidden; background: var(--cream-dark); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin-bottom: .35em; }
.card-body p { color: var(--text-muted); font-size: .96rem; }
.card-tag {
  align-self: flex-start; font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--sage-dark); background: #eef1e9; padding: 4px 10px;
  border-radius: 999px; margin-bottom: 10px;
}
.card-link { margin-top: auto; font-weight: 700; color: var(--oxide); text-decoration: none; font-size: .92rem; }
.card-link:hover { text-decoration: underline; }

.info-card {
  background: #fff; border: 1px solid var(--cream-line); border-radius: var(--radius);
  padding: 26px 28px;
}

/* ---------- Feature / split rows ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.split.reverse .split-media { order: 2; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 30px; } .split.reverse .split-media { order: 0; } }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.split-media.tall img { aspect-ratio: 3/4; }

/* ---------- Stat strip ---------- */
.stat-strip {
  background: var(--charcoal); color: #fff; padding: 44px 0;
}
.stat-strip .grid { grid-template-columns: repeat(4,1fr); text-align: center; }
.stat-strip .stat b { display:block; font-family: var(--serif); font-size: 2.2rem; color: var(--gold); }
.stat-strip .stat span { font-size: .82rem; color: #d8cfc0; text-transform: uppercase; letter-spacing: .07em; }
@media (max-width: 720px) { .stat-strip .grid { grid-template-columns: repeat(2,1fr); gap: 26px; } }

/* ---------- Section variants ---------- */
.section-alt { background: var(--cream-dark); }
.section-dark { background: var(--charcoal); color: #efe7d8; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: var(--gold); }

/* ---------- Event / listing rows ---------- */
.listing {
  display: grid; grid-template-columns: 260px 1fr; gap: 30px;
  padding: 30px 0; border-top: 1px solid var(--cream-line);
}
.listing:last-child { }
@media (max-width: 780px) { .listing { grid-template-columns: 1fr; } }
.listing-media img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.listing h3 { margin-bottom: .25em; }
.listing .meta { display: flex; gap: 18px; flex-wrap: wrap; margin: 10px 0 14px; font-size: .88rem; color: var(--sage-dark); font-weight: 600; }
.listing .meta span { display: inline-flex; align-items: center; gap: 6px; }

.badge-note {
  display: inline-block; background: #fbeee0; color: var(--oxide-dark); border: 1px solid #eccdac;
  padding: 3px 10px; border-radius: 6px; font-size: .78rem; margin-bottom: 10px;
}

/* ---------- Timeline (history) ---------- */
.timeline { border-left: 3px solid var(--cream-line); margin-left: 8px; }
.timeline-item { position: relative; padding: 4px 0 32px 32px; }
.timeline-item::before {
  content: ""; position: absolute; left: -9px; top: 6px; width: 15px; height: 15px;
  border-radius: 50%; background: var(--oxide); border: 3px solid var(--cream);
}
.timeline-item .yr { font-family: var(--serif); color: var(--oxide); font-size: 1.15rem; display:block; margin-bottom:.2em;}

/* ---------- Forms ---------- */
.lead-form { background: #fff; border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); border: 1px solid var(--cream-line); }
.lead-form h3 { margin-bottom: .2em; }
.lead-form .lede { font-size: 1rem; margin-bottom: 22px; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: .82rem; font-weight: 700; margin-bottom: 6px; color: var(--brown); }
.form-row input {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--cream-line); border-radius: 5px;
  font-family: var(--sans); font-size: 1rem; background: var(--cream);
}
.form-row input:focus { outline: none; border-color: var(--oxide); background: #fff; }
.form-note { font-size: .76rem; color: var(--text-muted); margin-top: 12px; }
.form-msg { margin-top: 14px; font-weight: 600; font-size: .92rem; display: none; padding: 12px 14px; border-radius: 5px; }
.form-msg.show { display: block; }
.form-msg.ok { background: #eaf3e6; color: var(--sage-dark); }
.form-msg.err { background: #fbeae7; color: var(--oxide-dark); }
.hp-field { position: absolute; left: -9999px; opacity: 0; }

.cta-band {
  background: var(--sage); color: #fff; border-radius: var(--radius); padding: 46px;
}
.cta-band h2 { color: #fff; }
.cta-band .lede { color: #eef1e9; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: #cfc6b6; padding: 60px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.site-footer a { color: #cfc6b6; text-decoration: none; font-size: .92rem; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; font-size: .8rem; color: #9c927f; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--cream-line); border: none; margin: 0; }
.tag-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.tag-pill { background: #fff; border: 1px solid var(--cream-line); padding: 6px 14px; border-radius: 999px; font-size: .82rem; font-weight: 600; }
.icon-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.icon-list li { display: flex; gap: 12px; align-items: flex-start; }
.icon-list .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--oxide); margin-top: 8px; flex: none; }
.callout {
  border-left: 4px solid var(--gold); background: #fbf6ea; padding: 18px 22px; border-radius: 0 5px 5px 0;
  font-size: .95rem; color: var(--brown);
}
.two-col-text { columns: 2; column-gap: 44px; }
@media (max-width: 780px) { .two-col-text { columns: 1; } }
table.data-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.data-table th, table.data-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--cream-line); }
table.data-table th { font-family: var(--sans); text-transform: uppercase; font-size: .72rem; letter-spacing: .06em; color: var(--text-muted); }

.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--cream-line); }
.map-embed iframe { width: 100%; height: 340px; border: 0; display: block; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--oxide); color: #fff; padding: 10px 16px; z-index: 1000;
}
.skip-link:focus { left: 10px; top: 10px; }
