/* Fairfield County Garage Door — one stylesheet, no framework.
   One accent (#a8330a, 6.6:1 on white), near-black ink, system font stack. */

:root {
  --ink: #16181b;
  --ink-soft: #4a4f56;
  --ink-faint: #6b7178;
  --paper: #ffffff;
  --bg: #faf9f7;
  --line: #e2dfda;
  --line-soft: #efece7;
  --accent: #a8330a;
  --accent-dark: #852807;
  --accent-wash: #fdf3ee;
  --dark: #16181b;
  --dark-soft: #2a2e33;
  --radius: 10px;
  --wrap: 1120px;
  --prose: 70ch;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-dark); }

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

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--paper); color: var(--ink); padding: 12px 16px; z-index: 50;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 13px 20px;
  background: var(--accent); color: #fff;
  font-size: 18px; font-weight: 700; line-height: 1.2;
  border: 2px solid var(--accent); border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
  font-family: var(--font);
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn:focus-visible { outline: 3px solid #ffb38f; outline-offset: 2px; }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent-wash); color: var(--accent-dark); }
.btn-on-dark.btn-ghost { color: #fff; border-color: #6f757c; background: transparent; }
.btn-on-dark.btn-ghost:hover { background: #2a2e33; color: #fff; border-color: #8c9298; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- header ---------- */

.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px;
  padding: 14px 0;
}
.brand {
  display: block; font-size: 19px; font-weight: 800; line-height: 1.15;
  color: var(--ink); text-decoration: none; letter-spacing: -.01em; max-width: 13ch;
}
.brand span { display: block; color: var(--accent); }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 22px; margin: 0; padding: 0; list-style: none; }
.site-nav a { color: var(--ink-soft); font-weight: 600; font-size: 16px; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; }
.header-cta { display: flex; gap: 10px; }
.header-cta .btn { min-height: 48px; padding: 10px 16px; font-size: 16px; }

@media (max-width: 860px) {
  .header-row { padding: 12px 0 14px; gap: 10px; }
  .brand { max-width: none; font-size: 18px; }
  .brand span { display: inline; }
  .site-nav { width: 100%; margin-left: 0; order: 3; overflow-x: auto; }
  .site-nav ul { gap: 18px; }
  .header-cta { width: 100%; order: 2; }
  .header-cta .btn { flex: 1; min-height: 54px; font-size: 15.5px; white-space: nowrap; padding: 10px 8px; }
}

/* ---------- hero ---------- */

.hero { background: var(--dark); color: #fff; padding: 40px 0 36px; }
.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(1.7rem, 5.6vw, 2.6rem);
  line-height: 1.12; letter-spacing: -.02em; font-weight: 800;
  max-width: 24ch;
}
.hero .lead { font-size: 1.1rem; color: #e9e6e1; max-width: 60ch; margin: 0 0 20px; }
.hero .lead strong { color: #fff; }
.hero p { max-width: 60ch; }
.hero a:not(.btn) { color: #ffc6a8; }
.hero .cta-row { margin: 22px 0 0; }
.hero .cta-note { color: #b9bdc2; font-size: 15px; margin: 12px 0 0; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 22px 0; }
.cta-row em, .cta-row i { font-style: normal; color: var(--ink-faint); font-size: 15px; }
.hero .cta-row em, .hero .cta-row i { color: #b9bdc2; }

@media (max-width: 620px) {
  .cta-row { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .cta-row .btn { width: 100%; }
}

/* ---------- trust strip ---------- */

.trust { background: var(--paper); border-bottom: 1px solid var(--line); }
.trust ul {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  margin: 0; padding: 0; list-style: none;
}
.trust li { padding: 20px 22px 20px 0; border-right: 1px solid var(--line-soft); }
.trust li:last-child { border-right: 0; padding-right: 0; }
.trust b { display: block; font-size: 15px; letter-spacing: .02em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.trust span { display: block; font-size: 15.5px; color: var(--ink-soft); line-height: 1.45; }

@media (max-width: 860px) {
  .trust ul { grid-template-columns: 1fr 1fr; }
  .trust li { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line-soft); }
  .trust li:nth-child(2n) { border-right: 0; padding-right: 0; }
  .trust li:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 520px) {
  .trust ul { grid-template-columns: 1fr; }
  .trust li { border-right: 0; padding: 14px 0; }
  .trust li:last-child { border-bottom: 0; }
}

/* ---------- prose ---------- */

main { display: block; }
.intro { background: var(--paper); border-bottom: 1px solid var(--line); padding: 28px 0; }
.intro > :first-child { margin-top: 0; }
.intro > :last-child { margin-bottom: 0; }
.body { padding: 34px 0 52px; }
.prose { max-width: var(--prose); }
.intro .prose p { font-size: 1.03rem; }

.prose > :first-child { margin-top: 0; }
.prose h2 {
  margin: 44px 0 14px; font-size: 1.42rem; line-height: 1.25;
  letter-spacing: -.01em; font-weight: 800;
  padding-top: 20px; border-top: 1px solid var(--line);
}
.prose h3 { margin: 30px 0 10px; font-size: 1.1rem; font-weight: 700; }
.prose p, .prose li { font-size: 1.0625rem; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin-bottom: 9px; }
.prose strong { font-weight: 700; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }

.prose blockquote {
  margin: 22px 0; padding: 4px 0 4px 18px;
  border-left: 4px solid var(--accent);
  color: var(--ink-soft);
}
.prose blockquote p { margin: 0 0 8px; }
.prose blockquote p:last-child { margin: 0; }

.table-scroll { overflow-x: auto; margin: 0 0 22px; -webkit-overflow-scrolling: touch; }
.prose table { width: 100%; border-collapse: collapse; font-size: 1rem; background: var(--paper); }
.prose th, .prose td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--line-soft); font-weight: 700; font-size: .95rem; }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose table a { font-weight: 600; }

/* ---------- form ---------- */

.form-card {
  max-width: 560px; margin: 8px 0 28px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
}
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--ink-faint); }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 14px;
  font: inherit; font-size: 17px; color: var(--ink);
  background: var(--paper); border: 1px solid #c6c2bc; border-radius: 8px;
}
.field textarea { min-height: 104px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 3px solid #ffb38f; outline-offset: 1px; border-color: var(--accent);
}
.field-checkbox { margin-bottom: 16px; }
.checkbox-label {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; font-weight: 400; color: var(--ink-soft);
}
.checkbox-label input[type="checkbox"] {
  width: auto; flex: 0 0 auto; margin: 3px 0 0;
}
.form-card .btn { width: 100%; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-status { margin: 14px 0 0; font-size: 16px; font-weight: 600; min-height: 1.2em; }
.form-status:empty { margin: 0; min-height: 0; }
.form-status[data-state="sending"] { color: var(--ink-soft); }
.form-status[data-state="ok"] { color: #14612f; }
.form-status[data-state="error"] { color: #a1130c; }
.form-note { font-size: 15px; color: var(--ink-faint); max-width: 560px; }

/* ---------- sticky mobile call bar ---------- */

.callbar { display: none; }
@media (max-width: 860px) {
  body.has-callbar { padding-bottom: 86px; }
  .callbar {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(22, 24, 27, .97); border-top: 1px solid #3a3f45;
  }
  .callbar .btn { flex: 1; min-height: 56px; font-size: 16px; white-space: nowrap; padding: 10px 8px; }
}

/* ---------- footer ---------- */

.site-footer { background: var(--dark); color: #cfd3d7; padding: 34px 0 40px; font-size: 16px; }
.site-footer a { color: #fff; }
.footer-top { display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: baseline; }
.footer-brand { font-size: 18px; font-weight: 800; color: #fff; }
.footer-phone { font-size: 20px; font-weight: 800; }
.footer-phone a { text-decoration: none; }
.footer-phone a:hover { text-decoration: underline; }
.site-footer h2 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: #9aa0a6; margin: 26px 0 10px; font-weight: 700; }
.footer-towns, .footer-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none; }
.footer-legal { margin-top: 18px; padding-top: 18px; border-top: 1px solid #343a40; }
.footer-small { color: #9aa0a6; font-size: 15px; margin: 16px 0 0; max-width: 72ch; }

/* ---------- 404 ---------- */

.notfound { padding: 56px 0 72px; }
.notfound h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); margin: 0 0 14px; }

.draft-notice {
  background: var(--accent-wash); border: 1px solid #e6c3b1; border-left: 4px solid var(--accent);
  border-radius: 8px; padding: 14px 16px; margin: 0 0 26px; max-width: var(--prose);
  font-size: 16px; color: #6d2206;
}

/* ---------- FAQ blocks ---------- */

.prose .faq-q { margin: 26px 0 6px; font-size: 1.08rem; }
.prose .faq-q strong { font-weight: 700; }
.prose .faq-a { margin: 0 0 18px; color: var(--ink-soft); }
.prose .faq-a a { color: var(--accent); }
.footer-hours { font-weight: 400; font-size: 16px; color: #9aa0a6; }
