/* Triple Crown Mobile RV Repair
   Mobile-first. Palette: hunter green, gold, cream (from the reference mockup). */

:root {
  --green-900: #0B1A14;
  --green-800: #0F3D2E;
  --green-700: #1A5240;
  --green-600: #2A6A53;
  --gold: #C9A96B;
  --gold-hover: #D8BC85;
  --gold-ink: #7D5F25;   /* orange for text on light backgrounds (AA contrast) */
  --white: #FFFFFF;
  --paper: #F6F5EE;
  --line: #DDD9C9;
  --steel: #55625B;
  --ink: #0B1A14;

  --font-head: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius: 4px;
  --wrap: 1160px;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  padding-bottom: 64px; /* room for mobile action bar */
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--green-900); padding: 10px 14px; z-index: 100; font-weight: 700; }
.skip-link:focus { left: 8px; }

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

/* Safety-stripe bar: the one signature element */
.hazard {
  height: 8px;
  background: repeating-linear-gradient(-45deg, var(--gold) 0 14px, var(--green-900) 14px 28px);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 12px 26px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; letter-spacing: .03em; text-transform: uppercase;
  text-decoration: none; border: 2px solid transparent; border-radius: var(--radius);
  cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--gold); color: var(--green-900); }
.btn-primary:hover { background: var(--gold-hover); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: var(--white); color: var(--green-800); border-color: var(--white); }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--green-800); color: var(--white); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); }
.brand-mark { width: 38px; height: 32px; color: var(--gold); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-family: var(--font-head); font-size: 1.55rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.brand-text span { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: #B7C9BF; margin-top: 3px; }

.header-call { margin-left: auto; display: none; align-items: center; gap: 10px; text-decoration: none; color: var(--white); }
.header-call svg { width: 26px; height: 26px; color: var(--gold); }
.header-call-text { display: flex; flex-direction: column; line-height: 1.1; }
.header-call-text b { font-family: var(--font-head); font-size: 1.5rem; letter-spacing: .02em; }
.header-call-text small { font-size: .72rem; color: #B7C9BF; }

.nav-toggle { width: 48px; height: 48px; background: transparent; border: 0; color: var(--white); cursor: pointer; display: grid; place-items: center; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 24px; height: 3px; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle .bars { position: relative; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -8px; }
.nav-toggle .bars::after { top: 8px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-8px) rotate(-45deg); }

.site-nav { position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--green-900); display: none; border-top: 1px solid rgba(255,255,255,.1); }
.site-nav.open { display: block; }
.site-nav a { display: block; padding: 16px 20px; text-decoration: none; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.08); }
.site-nav a:hover { background: var(--green-700); }

/* ---------- Hero ---------- */
.hero { background: var(--green-800); color: var(--white); padding: 40px 0 0; overflow: hidden; }
.hero-grid { display: grid; gap: 36px; }
.hero-tag { font-weight: 600; font-size: .95rem; color: var(--gold); margin-bottom: 12px; }
.hero h1 { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.9rem, 12vw, 5.4rem); line-height: .95; text-transform: uppercase; letter-spacing: .005em; }
.hero-lede { margin: 20px 0 26px; font-size: 1.1rem; max-width: 34em; color: #D3E0D8; }
.hero-note { margin-top: 14px; font-size: .95rem; color: #B7C9BF; }
.hero-note a { color: var(--white); font-weight: 600; }
.hero-art { margin: 28px -20px 0; width: calc(100% + 40px); max-width: none; }

/* ---------- Quote form ---------- */
.quote { background: var(--white); color: var(--ink); padding: 24px 20px 22px; border-top: 6px solid var(--gold); border-radius: var(--radius); margin-bottom: 40px; box-shadow: 0 18px 40px rgba(0,0,0,.28); }
.quote-head h2 { font-family: var(--font-head); font-size: 2rem; font-weight: 800; text-transform: uppercase; color: var(--green-800); line-height: 1; }
.quote-head p { margin: 8px 0 18px; font-size: .95rem; color: var(--steel); }
.field { margin-bottom: 14px; border: 0; padding: 0; min-width: 0; }
.field-pair { display: grid; gap: 0; }
.field label, .field legend { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 5px; color: var(--green-800); padding: 0; }
.opt { font-weight: 400; color: var(--steel); }
input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  width: 100%; min-height: 48px; padding: 11px 12px; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--white); border: 2px solid var(--line); border-radius: var(--radius);
}
textarea { resize: vertical; min-height: 104px; }
input:hover, select:hover, textarea:hover { border-color: #BDB8A3; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(201,169,107,.55); }
.field.invalid input, .field.invalid select { border-color: #C0262D; }
.error { color: #A31D24; font-size: .85rem; font-weight: 600; min-height: 0; margin-top: 4px; }
.error:empty { display: none; }
.contact-method { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.contact-method legend { width: 100%; }
.contact-method label { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; margin: 0; min-height: 44px; cursor: pointer; }
.contact-method input { width: 20px; height: 20px; accent-color: var(--gold); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 12px; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.ok { color: #0B6B3A; background: #E6F5EC; padding: 12px; border-radius: var(--radius); }
.form-status.fail { color: #8E1A20; background: #FBEAEA; padding: 12px; border-radius: var(--radius); }
.form-fine { margin-top: 12px; font-size: .82rem; color: var(--steel); }
.form-fine a { font-weight: 600; }
.quote.sending #submitBtn { opacity: .6; pointer-events: none; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-alt { background: var(--paper); }
.section-dark { background: var(--green-800); color: var(--white); }
.section-head { margin-bottom: 30px; max-width: 46rem; }
.section h2, .final-cta h2 { font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 7vw, 3rem); line-height: 1; text-transform: uppercase; color: var(--green-800); }
.section-dark h2 { color: var(--white); }
.section-head p { margin-top: 12px; font-size: 1.05rem; color: var(--steel); }
.section-dark .section-head p { color: #C3D4CA; }

/* Services */
.services { display: grid; gap: 0; border-top: 1px solid var(--line); }
.service { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.service .icon { grid-row: span 3; width: 48px; height: 48px; color: var(--green-700); }
.service h3 { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; text-transform: uppercase; color: var(--green-800); line-height: 1.1; }
.service p { color: var(--steel); margin-top: 2px; }
.service a { margin-top: 8px; font-weight: 700; color: var(--gold-ink); text-underline-offset: 3px; min-height: 32px; width: fit-content; }

/* About */
.about-grid { display: grid; gap: 28px; }
.about-copy p { margin: 16px 0 18px; font-size: 1.05rem; max-width: 36em; }
.checks { margin-bottom: 26px; }
.checks li { position: relative; padding: 6px 0 6px 32px; font-weight: 600; }
.checks li::before { content: ""; position: absolute; left: 0; top: 9px; width: 20px; height: 20px; background: var(--gold); border-radius: 50%; }
.checks li::after { content: ""; position: absolute; left: 7px; top: 13px; width: 6px; height: 11px; border: solid var(--green-900); border-width: 0 3px 3px 0; transform: rotate(45deg) scale(.7); transform-origin: center; }

/* Placeholders (replace with verified content, see README) */
.placeholder { border: 2px dashed #9AA597; border-radius: var(--radius); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 4px; padding: 20px; color: var(--steel); font-weight: 600; background: rgba(255,255,255,.4); }
.placeholder small { font-weight: 400; font-size: .82rem; }
.section-dark .placeholder { border-color: rgba(255,255,255,.4); color: #C3D4CA; background: rgba(255,255,255,.04); }
.photo-slot { min-height: 280px; }
.city-slot, .review-slot { min-height: 160px; }

/* Credentials */
.cred-grid { display: grid; gap: 32px; }
.cred-grid h3 { font-family: var(--font-head); font-size: 1.5rem; text-transform: uppercase; margin-bottom: 14px; color: var(--gold); }
.slots { display: grid; gap: 12px; }
.slots li { min-height: 76px; }
.slots-brands { grid-template-columns: repeat(2, 1fr); }
.slots-brands li { min-height: 64px; }

/* Why */
.why { display: grid; gap: 28px; }
.why li { border-top: 4px solid var(--gold); padding-top: 18px; }
.why .icon { width: 44px; height: 44px; color: var(--green-700); margin-bottom: 10px; }
.why h3 { font-family: var(--font-head); font-size: 1.6rem; text-transform: uppercase; color: var(--green-800); line-height: 1.1; }
.why p { margin-top: 6px; color: var(--steel); }

/* Area */
.area-grid { display: grid; gap: 28px; }
.area-grid p { margin-top: 14px; font-size: 1.05rem; max-width: 36em; }
.area-grid a { font-weight: 700; color: var(--gold-ink); }

/* Final CTA */
.final-cta { background: var(--green-900); color: var(--white); padding: 52px 0; }
.final-grid { display: grid; gap: 24px; }
.final-cta h2 { color: var(--white); }
.final-cta p { margin-top: 10px; color: #C3D4CA; font-size: 1.05rem; }
.final-cta p a { color: var(--white); font-weight: 700; }

/* Footer */
.site-footer { background: var(--green-800); color: #C3D4CA; font-size: .95rem; }
.footer-grid { display: grid; gap: 24px; padding-top: 36px; padding-bottom: 24px; }
.footer-brand { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; text-transform: uppercase; color: var(--white); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer nav li { padding: 4px 0; }
.copyright { padding-top: 16px; padding-bottom: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; }

/* Mobile sticky action bar */
.action-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr 1.6fr; background: var(--green-900); border-top: 3px solid var(--gold); padding-bottom: env(safe-area-inset-bottom); }
.action-bar a { display: grid; place-items: center; min-height: 58px; text-decoration: none; color: var(--white); font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; text-transform: uppercase; letter-spacing: .04em; }
.action-bar a + a { border-left: 1px solid rgba(255,255,255,.14); }
.action-bar .action-primary { background: var(--gold); color: var(--green-900); }
.action-bar.hidden { transform: translateY(110%); }
.action-bar { transition: transform .2s; }

/* ---------- Tablet ---------- */
@media (min-width: 640px) {
  .btn-row { flex-direction: row; flex-wrap: wrap; }
  .field-pair { grid-template-columns: 1fr 1fr; gap: 0 14px; }
  .services { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .why { grid-template-columns: 1fr 1fr; }
  .slots { grid-template-columns: 1fr 1fr; }
  .slots-brands { grid-template-columns: repeat(4, 1fr); }
  .hero-art { margin-left: 0; margin-right: 0; width: 100%; }
}

/* ---------- Desktop ---------- */
@media (min-width: 960px) {
  :root { --header-h: 76px; }
  body { padding-bottom: 0; }
  .action-bar { display: none; }
  .brand-text strong { font-size: 1.8rem; }

  .hero { padding-top: 64px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: start; }
  .hero-art { margin-top: 36px; }
  .quote { margin-bottom: 64px; position: relative; z-index: 2; }
  .hero-copy { padding-bottom: 0; align-self: stretch; display: flex; flex-direction: column; }
  .hero-copy .hero-art { margin-top: auto; }

  .section { padding: 88px 0; }
  .services { grid-template-columns: repeat(3, 1fr); border-top: 0; gap: 28px; }
  .service { grid-template-columns: 1fr; padding: 22px 0 0; border-bottom: 0; border-top: 4px solid var(--green-800); }
  .service .icon { grid-row: auto; margin-bottom: 12px; }
  .why { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .about-grid { grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
  .photo-slot { min-height: 420px; }
  .cred-grid { grid-template-columns: 1fr 1fr; gap: 56px; }
  .area-grid { grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center; }
  .final-grid { grid-template-columns: 1.4fr 1fr; align-items: center; }
  .final-grid .btn-row { justify-content: flex-end; }
  .footer-grid { grid-template-columns: 1.5fr 1fr; }
}

/* Header: phone shows from tablet; full nav only when there is room */
@media (min-width: 760px) {
  .header-call { display: flex; }
  .header-call-text b, .brand-text strong { white-space: nowrap; }
}
@media (min-width: 1280px) {
  .nav-toggle { display: none; }
  .site-nav { position: static; display: block; background: none; border: 0; }
  .site-nav ul { display: flex; gap: 4px; }
  .site-nav a { padding: 10px 11px; border: 0; font-size: .95rem; border-radius: var(--radius); white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
