/* ============================================================
   Jax Fence Wash — fence washing, Jacksonville FL
   Design system: deep navy #0E2A38 / slate blue #173C4D /
   CTA blue #1C93B8 / coral accent #EA5943 /
   warm white #FAFAF8 / light gray #F0F2EF
   Mobile-first. System font stack (Arial fallback).
   ============================================================ */

:root {
  --navy: #0E2A38;
  --slate: #173C4D;
  --cta: #1C93B8;
  --cta-dark: #15708C;
  --coral: #EA5943;
  --coral-dark: #C74332;
  --white: #FAFAF8;
  --gray: #F0F2EF;
  --text: #1E2A32;
  --text-muted: #55636B;
  --border: #DCE1DC;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(14, 42, 56, .08);
  --maxw: 1140px;
  --font: Arial, "Helvetica Neue", Helvetica, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cta-dark); }
a:hover { color: var(--navy); }

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

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

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

/* ---------- Header ---------- */
.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 20px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.2;
}
.brand small {
  display: block;
  font-weight: 400;
  font-size: .78rem;
  color: #BFD3DC;
}
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.main-nav a {
  color: #EAF2F5;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: .95rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] { background: var(--slate); color: #fff; }
.header-cta { display: flex; gap: 8px; align-items: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  border-radius: 8px;
  padding: 14px 26px;
  min-height: 48px;
  line-height: 1.3;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  text-align: center;
  transition: background .15s ease, transform .05s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--cta); color: #fff; }
.btn-primary:hover { background: var(--cta-dark); color: #fff; }
.btn-coral { background: var(--coral); color: #fff; }
.btn-coral:hover { background: var(--coral-dark); color: #fff; }
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-sm { padding: 10px 18px; min-height: 44px; font-size: .92rem; }

/* ---------- Hero ---------- */
.hero {
  background: var(--navy);
  color: #fff;
  padding: 40px 0 48px;
}
.hero-grid {
  display: grid;
  gap: 28px;
  align-items: center;
}
.hero h1 {
  font-size: 2.1rem;
  line-height: 1.2;
  margin: 0 0 14px;
  color: #fff;
}
.hero p.lead { font-size: 1.1rem; color: #D5E4EA; margin: 0 0 22px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero figure { margin: 0; }
.hero img {
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(0,0,0,.35);
  width: 100%;
}
.hero-trust {
  margin-top: 18px;
  font-size: .92rem;
  color: #AEC6D1;
}

/* ---------- Sections ---------- */
.section { padding: 52px 0; }
.section.alt { background: var(--gray); }
.section h2 {
  font-size: 1.75rem;
  line-height: 1.3;
  color: var(--navy);
  margin: 0 0 16px;
}
.section h3 {
  font-size: 1.25rem;
  color: var(--slate);
  margin: 26px 0 10px;
}
.section p, .section ul, .section ol { margin: 0 0 16px; }
.section ul, .section ol { padding-left: 22px; }
.section li { margin-bottom: 8px; }

.split {
  display: grid;
  gap: 28px;
  align-items: center;
}
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }

/* Process steps */
.steps {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}
.step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.step h3 { margin-top: 0; }
.step .step-num {
  display: inline-block;
  background: var(--cta);
  color: #fff;
  font-weight: 700;
  width: 34px; height: 34px;
  line-height: 34px;
  text-align: center;
  border-radius: 50%;
  margin-bottom: 10px;
}

/* Before/after */
.ba-grid { display: grid; gap: 20px; margin-top: 20px; }
.ba-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.ba-card img { width: 100%; }
.ba-card figcaption {
  padding: 14px 18px;
  font-size: .9rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Benefits cards */
.cards { display: grid; gap: 16px; margin-top: 20px; }
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }

/* FAQ */
.faq { margin-top: 20px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  background: #fff;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 700;
  color: var(--navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 48px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--cta);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-a { padding: 0 20px 20px; }

/* CTA band */
.cta-band {
  background: var(--slate);
  color: #fff;
  text-align: center;
  padding: 56px 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #CFE0E8; max-width: 640px; margin: 0 auto 24px; }
.cta-band .hero-cta { justify-content: center; }
.phone-big {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  margin-top: 16px;
}
.phone-big:hover { color: #fff; text-decoration: underline; }

/* ---------- Forms ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  max-width: 640px;
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; color: var(--navy); }
.field label .req { color: var(--coral); }
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: var(--font);
  border: 2px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  min-height: 48px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--cta);
  outline: none;
  box-shadow: 0 0 0 3px rgba(28,147,184,.2);
}
.field .hint { font-size: .88rem; color: var(--text-muted); margin-top: 4px; }
.field .error { font-size: .88rem; color: var(--coral-dark); margin-top: 4px; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--coral); }
.field.invalid .error { display: block; }
.radio-group { display: flex; gap: 16px; flex-wrap: wrap; }
.radio-group label { font-weight: 400; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-note {
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 18px;
  display: none;
  font-size: .95rem;
}
.form-note.show { display: block; }
.form-note.error { background: #FDEEEC; border: 1px solid var(--coral); color: #7A1403; }
.form-note.info { background: #E8F4F8; border: 1px solid var(--cta); color: var(--slate); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #C9DCE5; padding: 44px 0 24px; }
.footer-grid {
  display: grid;
  gap: 28px;
  margin-bottom: 28px;
}
.site-footer h3 { color: #fff; font-size: 1.05rem; margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #C9DCE5; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 20px;
  font-size: .88rem;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Mobile call bar ---------- */
.mobile-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 12px rgba(0,0,0,.1);
  z-index: 60;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  gap: 10px;
}
.mobile-bar .btn { flex: 1; padding: 12px 8px; min-height: 48px; font-size: .95rem; }

/* Breadcrumbs */
.crumbs { font-size: .88rem; color: var(--text-muted); margin: 18px 0 0; }
.crumbs a { color: var(--cta-dark); }

/* Page hero (inner pages) */
.page-hero { background: var(--navy); color: #fff; padding: 44px 0; }
.page-hero h1 { color: #fff; font-size: 2rem; margin: 0; line-height: 1.25; }
.page-hero p { color: #C9DCE5; margin: 10px 0 0; }

/* 404 */
.notfound { text-align: center; padding: 80px 0; }
.notfound h1 { font-size: 3rem; color: var(--navy); margin: 0 0 12px; }

/* Thank you */
.thanks { text-align: center; padding: 70px 0; }
.thanks h1 { color: var(--navy); }

/* ---------- Tablet & desktop ---------- */
@media (min-width: 700px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; }
  .hero h1 { font-size: 2.9rem; }
  .split { grid-template-columns: 1fr 1fr; }
  .split.flip .split-media { order: 2; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .ba-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .hero h1 { font-size: 3.1rem; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .cards { grid-template-columns: repeat(4, 1fr); }
  .section { padding: 68px 0; }
  .page-hero h1 { font-size: 2.6rem; }
}
@media (max-width: 699px) {
  body { font-size: 16px; }
  .mobile-bar { display: flex; }
  body { padding-bottom: 72px; }
  .header-cta .btn-outline { display: none; }
  .hero { padding: 32px 0 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
