/* ==========================================================================
   Holden Family RV, Inc. & RecTech — site stylesheet
   Modern, responsive, dependency-free. Offline-safe (system fonts only).
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --green-950: #0d3320;
  --green-900: #123f28;
  --green-800: #17553a;
  --green-700: #1c6b47;
  --green-600: #21855a;
  --green-100: #e3efe7;
  --green-50:  #f0f6f2;

  --amber-600: #c2410c;
  --amber-500: #d9682a;
  --amber-300: #e8a04c;
  --amber-100: #f7e8d8;

  --bg:       #faf9f5;
  --surface:  #ffffff;
  --ink:      #1f2937;
  --muted:    #5b6470;
  --line:     #e7e3da;

  --radius:    12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 3px rgba(18, 63, 40, .08);
  --shadow-md: 0 6px 18px rgba(18, 63, 40, .10);
  --shadow-lg: 0 14px 34px rgba(18, 63, 40, .14);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --maxw: 1080px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  line-height: 1.2;
  color: var(--green-900);
  margin: 0 0 .6em;
  font-weight: 800;
  letter-spacing: -.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--green-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-800); }

ul, ol { padding-left: 1.3em; }

strong { color: var(--green-900); }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 22px;
}

main { display: block; }

/* ---------- Accessibility helpers ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green-900);
  color: #fff;
  padding: .7rem 1.2rem;
  border-radius: 0 0 var(--radius) 0;
  z-index: 100;
  font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

:focus-visible {
  outline: 3px solid var(--amber-500);
  outline-offset: 2px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .72rem 1.35rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease,
              border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-primary { background: var(--green-700); color: #fff; }
.btn-primary:hover { background: var(--green-800); color: #fff; }

.btn-accent { background: var(--amber-600); color: #fff; }
.btn-accent:hover { background: #a53a0b; color: #fff; }

.btn-ghost { border-color: rgba(255,255,255,.65); color: #fff; background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

.btn-outline { border-color: var(--green-700); color: var(--green-700); background: transparent; }
.btn-outline:hover { background: var(--green-50); color: var(--green-800); }

.btn-lg { padding: .9rem 1.7rem; font-size: 1.05rem; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--green-950);
  color: #d9e5dd;
  font-size: .82rem;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-block: .45rem;
}
.topbar a { color: #fff; font-weight: 600; text-decoration: none; }
.topbar a:hover { color: var(--amber-300); }
.topbar-info { display: flex; gap: 1.1rem; flex-wrap: wrap; margin: 0; }
.topbar-info span, .topbar-info a { display: inline-flex; align-items: center; gap: .35rem; }
.topbar-phone svg { width: 13px; height: 13px; }

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .65rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.15;
  padding: .2rem 0;
}
.brand-name {
  font-size: 1.32rem;
  font-weight: 800;
  color: var(--green-900);
  letter-spacing: -.01em;
}
.brand-name .amp { color: var(--amber-600); }
.brand-sub {
  font-size: .72rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .2rem;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: block;
  padding: .5rem .8rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .93rem;
  color: var(--ink);
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}
.site-nav a:hover { background: var(--green-50); color: var(--green-800); }
.site-nav a[aria-current="page"] {
  background: var(--green-700);
  color: #fff;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: .5rem;
  border: 2px solid var(--green-700);
  background: transparent;
  color: var(--green-800);
  font-weight: 700;
  font-size: .9rem;
  padding: .45rem .95rem;
  border-radius: 999px;
  cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2.5px;
  background: currentColor;
  border-radius: 2px;
  content: "";
  position: relative;
}
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after  { position: absolute; top: 6px; }

@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    width: 100%;
    padding-bottom: .8rem;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: .15rem; }
  .site-nav a { padding: .65rem .9rem; }
}

/* ---------- Breadcrumb ---------- */
.breadcrumb { margin-bottom: .8rem; font-size: .85rem; }
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin: 0;
  padding: 0;
  color: var(--muted);
}
.breadcrumb li { display: flex; align-items: center; gap: .35rem; }
.breadcrumb li + li::before {
  content: "/";
  color: var(--line);
  font-weight: 400;
}
.breadcrumb a { color: var(--green-700); font-weight: 600; }
.breadcrumb [aria-current="page"] { color: var(--muted); }

/* ---------- Inner page header ---------- */
.page-header {
  background:
    radial-gradient(1100px 300px at 85% -60%, var(--green-100), transparent),
    linear-gradient(180deg, var(--green-50), var(--bg));
  border-bottom: 1px solid var(--line);
  padding: 2.6rem 0 2.2rem;
}
.page-header h1 { margin-bottom: .35em; }
.page-header-lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 46rem;
  margin: 0;
}

.page-body { padding-block: 2.6rem 3.2rem; }
.page-body section + section { margin-top: 2.8rem; }

/* ---------- Hero (homepage) ---------- */
.hero {
  color: #fff;
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(232, 160, 76, .25), transparent 60%),
    linear-gradient(160deg, var(--green-900) 0%, var(--green-950) 78%);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.25fr .9fr;
  gap: 2.6rem;
  align-items: center;
  padding-block: 3.4rem 3.8rem;
}
.hero .eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--amber-300);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  padding: .32rem .9rem;
  margin: 0 0 1.1rem;
}

/* ---------- Standalone eyebrow label (light sections) ---------- */
.section .eyebrow {
  color: var(--amber-600);
  background: none;
  border: 0;
  margin: 0 0 .45rem;
}
.hero h1 {
  color: #fff;
  margin-bottom: .55em;
}
.hero .hero-lead {
  font-size: 1.13rem;
  color: #dbe7de;
  max-width: 34rem;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.6rem;
}

.hero-media {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-lg);
  margin: 0;
}
.hero-media img {
  width: 100%;
  border-radius: calc(var(--radius-lg) - 6px);
  background: #f2f1ec;
}
.hero-media figcaption {
  color: var(--muted);
  font-size: .8rem;
  text-align: center;
  padding-top: .6rem;
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding-block: 2.6rem 2.8rem; }
  .hero-media { max-width: 460px; }
}

/* ---------- Sections ---------- */
.section { padding-block: 2.9rem; }
.section-tint { background: var(--green-50); border-block: 1px solid var(--line); }
.section-head { max-width: 46rem; margin-bottom: 1.9rem; }
.section-head .eyebrow {
  color: var(--amber-600);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  margin: 0 0 .4rem;
  display: block;
}
.section-head p { color: var(--muted); font-size: 1.05rem; }

.grid { display: grid; gap: 1.3rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 920px)  { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px)  { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px)  { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 520px)  { .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.7rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: .55rem;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card h3 { margin: 0; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; flex-grow: 1; }
.card .more { font-weight: 700; font-size: .9rem; text-decoration: none; }
.card .more:hover { text-decoration: underline; }

.icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--green-100);
  color: var(--green-800);
  margin-bottom: .4rem;
}
.icon-badge svg { width: 24px; height: 24px; }

/* ---------- Check list ---------- */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  padding: .42rem 0;
}
.check-list svg {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--green-600);
  margin-top: .18rem;
}

/* ---------- Brand chips ---------- */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.chip {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .42rem 1.05rem;
  font-weight: 700;
  font-size: .9rem;
  color: var(--green-800);
  box-shadow: var(--shadow-sm);
}

/* ---------- Media figures ---------- */
figure.float-figure {
  float: left;
  width: min(300px, 46%);
  margin: .4rem 1.6rem 1rem 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: var(--shadow-md);
}
figure.float-figure img { border-radius: 8px; width: 100%; }
figure.float-figure figcaption {
  font-size: .8rem;
  color: var(--muted);
  padding: .5rem .15rem .1rem;
  text-align: center;
}
.clearfix::after { content: ""; display: table; clear: both; }
@media (max-width: 620px) {
  figure.float-figure { float: none; width: 100%; margin-inline: 0; }
}

figure.figure {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: var(--shadow-md);
  margin: 0 0 1.4rem;
}
figure.figure img { border-radius: 8px; width: 100%; }
figure.figure figcaption {
  font-size: .8rem;
  color: var(--muted);
  padding: .5rem .15rem .1rem;
  text-align: center;
}

/* ---------- Stats band ---------- */
.stats-band {
  background: linear-gradient(150deg, var(--green-900), var(--green-950));
  color: #fff;
}
.stats-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  padding: 2.4rem 0;
  margin: 0;
  text-align: center;
}
.stats-grid strong {
  display: block;
  font-size: 1.65rem;
  color: var(--amber-300);
  line-height: 1.2;
}
.stats-grid span { font-size: .92rem; color: #cfe0d5; }
@media (max-width: 760px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- FAQ (details/summary) ---------- */
.faq-list { display: grid; gap: .7rem; }
.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-list summary {
  cursor: pointer;
  padding: 1rem 1.2rem;
  font-weight: 700;
  color: var(--green-900);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  flex: none;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--amber-600);
  transition: transform .2s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details[open] summary { border-bottom: 1px solid var(--line); }
.faq-list .faq-answer {
  padding: .9rem 1.2rem 1.1rem;
  color: var(--muted);
}
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer a { font-weight: 600; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.9rem;
  box-shadow: var(--shadow-md);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.2rem;
}
.form-field { display: flex; flex-direction: column; gap: .3rem; }
.form-field-full { grid-column: 1 / -1; }
.form-field label { font-weight: 700; font-size: .88rem; color: var(--green-900); }
.form-field input, .form-field textarea, .form-field select {
  font: inherit;
  padding: .6rem .8rem;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  width: 100%;
}
.form-field select { appearance: auto; }
.form-field input:focus, .form-field textarea:focus {
  border-color: var(--green-600);
  outline: none;
  box-shadow: 0 0 0 3px rgba(33, 133, 90, .18);
}
.form-field textarea { min-height: 96px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: .8rem; }
.form-confirm {
  margin-top: 1rem;
  background: var(--green-50);
  border: 1px solid var(--green-100);
  color: var(--green-800);
  border-radius: 10px;
  padding: .8rem 1.1rem;
  font-weight: 600;
  font-size: .92rem;
}
.form-actions { margin-top: 1.2rem; display: flex; gap: .8rem; flex-wrap: wrap; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Info / note boxes ---------- */
.note {
  background: var(--amber-100);
  border: 1px solid #ecd3b8;
  border-left: 4px solid var(--amber-600);
  border-radius: 10px;
  padding: .95rem 1.2rem;
  color: #6b3a15;
  font-size: .95rem;
}
.note p:last-child { margin-bottom: 0; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.data {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  font-size: .95rem;
}
table.data th, table.data td {
  text-align: left;
  padding: .7rem 1rem;
  border-bottom: 1px solid var(--line);
}
table.data th {
  background: var(--green-50);
  color: var(--green-900);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
table.data tr:last-child td { border-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(700px 260px at 90% -40%, rgba(232, 160, 76, .3), transparent 60%),
    linear-gradient(150deg, var(--green-900), var(--green-950));
  color: #fff;
  text-align: center;
  padding-block: 3.2rem;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #cfe0d5; max-width: 40rem; margin-inline: auto; }
.cta-band .hero-cta { justify-content: center; margin-top: 1.5rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-950);
  color: #b9c9bf;
  font-size: .92rem;
  margin-top: 3.4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2.2rem;
  padding-block: 2.8rem 2.2rem;
}
.footer-title {
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  margin: 0 0 .7rem;
}
.footer-brand p { margin: 0; line-height: 1.65; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .38rem; }
.footer-nav a { color: #b9c9bf; text-decoration: none; }
.footer-nav a:hover { color: var(--amber-300); text-decoration: underline; }
.footer-contact address { font-style: normal; line-height: 1.75; }
.footer-contact a { color: #fff; text-decoration: none; font-weight: 600; }
.footer-contact a:hover { color: var(--amber-300); }
.footer-hours { margin: .8rem 0 0; padding-top: .8rem; border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-block: 1.1rem;
  font-size: .82rem;
  color: #8fa598;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom p { margin: 0; }
@media (max-width: 920px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.not-found {
  text-align: center;
  padding-block: 4.5rem;
}
.not-found .code {
  font-size: clamp(4.5rem, 14vw, 7.5rem);
  font-weight: 900;
  color: var(--green-100);
  line-height: 1;
  margin-bottom: .4rem;
}
.not-found .hero-cta { justify-content: center; margin-top: 1.6rem; }
.not-found ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.4rem;
  justify-content: center;
  margin-top: 1.6rem;
  font-weight: 600;
}

/* ---------- Utility ---------- */
.lead { font-size: 1.12rem; color: var(--muted); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .cta-band, .btn, .nav-toggle { display: none !important; }
  body { background: #fff; color: #000; }
  .page-header { background: none; border: 0; padding: 0 0 1rem; }
}