/* Magnolia's Finest RV Park — hospitality theme */

:root {
  --magnolia: #17392d;
  --forest: #24513d;
  --gold: #b88a32;
  --gold-dark: #8f6a20;
  --cream: #f7f2e8;
  --sand: #ddd0b8;
  --white: #ffffff;
  --ink: #252b27;
  --muted: #5b665f;
  --line: #e4d8c2;
  --ok: #2e7d4f;
  --bad: #9b3b32;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(23, 57, 45, 0.08);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
iframe { display: block; max-width: 100%; border: 0; border-radius: var(--radius); }
a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-dark); }
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--magnolia);
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }

.container { width: min(1140px, calc(100% - 2rem)); margin: 0 auto; }
.container--narrow { width: min(800px, calc(100% - 2rem)); margin: 0 auto; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--magnolia);
  padding: .5rem 1rem;
  z-index: 10000;
  border-radius: var(--radius);
}
.skip-link:focus { left: 1rem; top: 1rem; }

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.admin-bar .site-header { top: 32px; }
.site-header.is-stuck { box-shadow: 0 6px 20px rgba(23, 57, 45, .08); }
.header-util {
  background: var(--magnolia);
  color: var(--sand);
  font-size: .82rem;
  letter-spacing: .04em;
}
.header-util-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 32px;
  gap: 1rem;
}
.header-util a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}
.header-util a:hover { color: var(--cream); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
  padding: .4rem 0;
  flex-wrap: nowrap;
}
.site-header.is-stuck .header-inner { min-height: 64px; padding: .25rem 0; }
.site-header.is-stuck .header-util { display: none; }
.brand { flex: 0 0 auto; }
.brand img {
  width: auto;
  height: 58px;
  transition: height .2s ease;
}
.site-header.is-stuck .brand img { height: 48px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex: 1 1 auto;
  justify-content: flex-end;
  min-width: 0;
}
.nav-list {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: .15rem .7rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  color: var(--magnolia);
  text-decoration: none;
  font-size: .86rem;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
}
.nav-list a:hover,
.nav-list .current-menu-item > a { color: var(--gold-dark); }

.header-cta {
  white-space: nowrap;
  flex: 0 0 auto;
  min-height: 42px;
  padding: .55rem 0.9rem;
  font-size: .75rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
}
.nav-toggle-bars {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--magnolia);
  position: relative;
  border-radius: 1px;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--magnolia);
  border-radius: 1px;
}
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 48px;
  padding: .7rem 1.25rem;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  appearance: none;
}
.btn-gold { background: var(--gold); color: var(--magnolia); }
.btn-gold:hover { background: #c79a3e; color: var(--magnolia); }
.btn-outline-gold { background: transparent; color: var(--gold-dark); border-color: var(--gold); }
.btn-outline-gold:hover { background: var(--gold); color: var(--magnolia); }
.btn-cream { background: var(--cream); color: var(--magnolia); }
.btn-cream:hover { color: var(--magnolia); }
.btn-forest { background: var(--magnolia); color: var(--cream); }
.btn-forest:hover { background: var(--forest); color: var(--cream); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.mt-sm { margin-top: 1.25rem; }
.mt-md { margin-top: 1.5rem; }
.mt-lg { margin-top: 2rem; }

.app-tracker {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
.app-tracker__step {
  flex: 1 1 6rem;
  text-align: center;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .55rem .4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--muted);
}
.app-tracker__step.is-done {
  background: var(--forest);
  color: var(--cream);
  border-color: var(--forest);
}
.app-tracker__step.is-current {
  background: var(--gold);
  color: var(--magnolia);
  border-color: var(--gold);
}

/* Hero */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  color: var(--cream);
  background: var(--magnolia) center / cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 57, 45, .25) 0%, rgba(23, 57, 45, .72) 70%, rgba(23, 57, 45, .88) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 5rem 0 3.5rem;
  width: min(1140px, calc(100% - 2rem));
  margin: 0 auto;
}
.eyebrow {
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: .75rem;
}
.hero h1 { color: var(--white); max-width: 16ch; }
.hero .lede { max-width: 42ch; color: var(--sand); font-size: 1.15rem; }
.hero .btn-outline-gold {
  color: var(--cream);
  border-color: var(--gold);
}
.hero .btn-outline-gold:hover {
  background: var(--gold);
  color: var(--magnolia);
}

.stat-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: var(--white);
  border-top: 1px solid var(--line);
}
.stat {
  padding: 1.25rem 1rem;
  text-align: center;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--serif); font-size: 1.35rem; color: var(--magnolia); }
.stat span { font-size: .85rem; color: var(--muted); }

/* Sections */
.section { padding: 4.5rem 0; }
.section-white { background: var(--white); }
.section-green { background: var(--magnolia); color: var(--cream); }
.section-green h2,
.section-green h3 { color: var(--cream); }
.section-green a:not(.btn) { color: var(--gold); }
.section-intro { max-width: 46rem; margin-bottom: 2rem; }
.kicker {
  color: var(--gold-dark);
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: .4rem;
}

.card-grid { display: grid; gap: 1.25rem; }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.6rem 1.4rem 1.5rem;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
}
.card-list .card { margin-bottom: 1rem; }
.card h3 { margin-bottom: .4em; }
.card img {
  width: calc(100% + 2.8rem);
  height: 220px;
  object-fit: cover;
  margin: -1.6rem -1.4rem 1.1rem;
}

.photo-story {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 220px 220px;
  gap: .7rem;
}
.photo-story a {
  display: block;
  overflow: hidden;
  background: var(--forest);
  border-radius: var(--radius);
}
.photo-story img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.photo-story a:hover img { transform: scale(1.04); }
.photo-story a:first-child { grid-row: 1 / span 2; }

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1em;
}
.step { padding-right: .5rem; }
.step-num {
  font-family: var(--serif);
  color: var(--gold);
  font-size: 1.6rem;
  display: block;
  margin-bottom: .3rem;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: none;
}
.how-step {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.1rem 1.35rem;
  min-width: 0;
}
.how-step__num {
  display: block;
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
  margin-bottom: .65rem;
}
.how-step h3 {
  font-size: 1.15rem;
  margin-bottom: .4rem;
}
.how-step p {
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
}

.amenity-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.amenity {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.2rem;
  border-radius: var(--radius);
}
.amenity strong { display: block; color: var(--magnolia); margin-bottom: .25rem; }

/* Availability */
.avail {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.5rem;
  border-radius: var(--radius);
}
.avail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .7rem 0;
  border-bottom: 1px solid var(--line);
}
.avail-row:last-of-type { border-bottom: 0; }
.avail code {
  display: block;
  font-size: .82rem;
  word-break: break-all;
  color: var(--muted);
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: .45rem;
  vertical-align: middle;
}
.dot-ok { background: var(--ok); }
.dot-bad { background: var(--bad); }
.dot-ask { background: var(--gold); }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item button {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 1rem 0;
  font-weight: 600;
  font-size: 1.05rem;
  font-family: var(--sans);
  color: var(--magnolia);
  cursor: pointer;
  border-radius: var(--radius);
}
.faq-item button::after { content: "+"; float: right; color: var(--gold); }
.faq-item.is-open button::after { content: "–"; }
.faq-item .faq-a { display: none; padding: 0 0 1rem; color: var(--muted); }
.faq-item.is-open .faq-a { display: block; }

/* Forms */
.form { display: grid; gap: 1rem; }
.form--spaced { margin-top: 2rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { display: block; font-weight: 600; font-size: .92rem; color: var(--magnolia); margin-bottom: .3rem; }
.form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.form select,
.form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--sand);
  background: var(--white);
  padding: .6rem .75rem;
  font: 1rem var(--sans);
  color: var(--ink);
  border-radius: var(--radius);
}
.form textarea { min-height: 120px; }
.form input[type="file"] {
  min-height: 0;
  padding: .45rem 0;
  border: 0;
  background: transparent;
}
.form input[type="checkbox"],
.form input[type="radio"] {
  width: 1.15rem;
  height: 1.15rem;
  min-height: 0;
  margin-right: .4rem;
  vertical-align: middle;
  accent-color: var(--magnolia);
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid var(--gold);
  border-color: var(--gold);
}
.form-step {
  border: 1px solid var(--line);
  padding: 1.25rem;
  background: var(--white);
  margin-bottom: 1rem;
  border-radius: var(--radius);
}
.form-step h3 { margin-bottom: .8rem; }
.mfrv-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.mfrv-notice {
  padding: .9rem 1rem;
  margin-bottom: 1rem;
  border-left: 4px solid var(--gold);
  background: var(--white);
  border-radius: var(--radius);
}
.mfrv-notice--ok { border-color: var(--ok); }
.mfrv-notice--err { border-color: var(--bad); }

/* Page hero */
.page-hero {
  background: var(--magnolia);
  color: var(--cream);
  padding: 3.5rem 0 2.5rem;
}
.page-hero h1 { color: var(--white); }
.page-hero p { color: var(--sand); max-width: 42rem; }
.page-hero a { color: var(--gold); }
.crumbs { font-size: .88rem; margin-bottom: 1rem; color: var(--sand); }
.crumbs a { color: var(--gold); text-decoration: none; }

.split {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 2.5rem;
  align-items: start;
}
.split img { width: 100%; height: auto; border-radius: var(--radius); }

.rules-group { margin-bottom: 2rem; }
.rules-group h2 { border-bottom: 1px solid var(--line); padding-bottom: .4rem; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
}
.gallery-grid a {
  display: block;
  background: var(--forest);
  border-radius: var(--radius);
  overflow: hidden;
}
.gallery-grid img { width: 100%; height: 280px; object-fit: cover; }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 28, 22, .92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 2rem;
}
.lightbox.is-on { display: flex; }
.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 88vh;
  border-radius: var(--radius);
}
.lightbox button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: 0;
  color: var(--cream);
  font-size: 2rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
}

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.blog-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.blog-card img { width: 100%; height: 190px; object-fit: cover; }
.blog-card .pad { padding: 1.1rem 1.15rem 1.3rem; }
.blog-card h2 { font-size: 1.35rem; }
.entry { width: min(740px, 100%); margin: 0 auto; }
.entry .hero-img { width: 100%; height: auto; margin: 0 0 1.5rem; border-radius: var(--radius); }

/* Footer */
.site-footer {
  background: var(--magnolia);
  color: var(--sand);
  padding: 3.5rem 0 2.5rem;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand img { border-radius: var(--radius); }
.footer-name { font-family: var(--serif); color: var(--cream); font-size: 1.4rem; margin: .7rem 0 .4rem; }
.site-footer a { color: var(--sand); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-head { color: var(--gold); font-size: 1rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: .35rem 0; }
.footer-tag {
  text-align: center;
  margin: 2.5rem 0 0;
  color: var(--gold);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .78rem;
}

/* Mobile tab bar */
.mfrv-tabbar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1001;
  height: calc(56px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--magnolia);
  border-top: 1px solid rgba(184, 138, 50, .35);
}
.mfrv-tabbar__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--sand);
  text-decoration: none;
  font-size: .7rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 700;
  gap: .15rem;
}
.mfrv-tabbar__item--gold { color: var(--gold); }
.mfrv-tabbar__icon { display: flex; }

/* Reviews */
.review { border-left: 3px solid var(--gold); padding: .2rem 0 .2rem 1rem; }
.stars { color: var(--gold); letter-spacing: .1em; }

/* Single site */
.meta-table { width: 100%; border-collapse: collapse; }
.meta-table th,
.meta-table td { text-align: left; padding: .55rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.meta-table th { width: 42%; color: var(--muted); font-weight: 600; }

/* Pagination */
.nav-links { display: flex; gap: 1rem; margin-top: 2rem; }

@media (max-width: 1100px) {
  .how-steps { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1rem 1.25rem;
    flex-direction: column;
    align-items: stretch;
  }
  .site-nav.is-open { display: flex; }
  .nav-list { flex-direction: column; align-items: flex-start; gap: .7rem; }
  .header-cta { width: fit-content; }
  .stat-bar,
  .card-grid-3,
  .card-grid-2,
  .steps,
  .how-steps,
  .amenity-list,
  .blog-grid,
  .footer-grid,
  .split,
  .form-grid,
  .photo-story {
    grid-template-columns: 1fr;
  }
  .photo-story { grid-template-rows: none; }
  .photo-story a:first-child { grid-row: auto; }
  .steps,
  .how-steps { grid-template-columns: 1fr 1fr; }
  .amenity-list { grid-template-columns: 1fr 1fr; }
  .mfrv-tabbar { display: flex; }
  .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

@media (max-width: 640px) {
  .stat-bar { grid-template-columns: 1fr 1fr; }
  .stat { border-bottom: 1px solid var(--line); }
  .stat:nth-child(2n) { border-right: 0; }
  .steps,
  .how-steps,
  .amenity-list,
  .gallery-grid,
  .blog-grid { grid-template-columns: 1fr; }
  .hero { min-height: 70vh; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .photo-story img,
  .brand img,
  .site-header,
  .header-inner { transition: none; }
}

@media print {
  .site-header,
  .mfrv-tabbar,
  .btn,
  .site-footer { display: none !important; }
  .page-hero { background: none; color: #000; padding: 0; }
  .page-hero h1 { color: #000; }
  body { background: #fff; }
}
