/* Oklahoma storm-sky system.
   Palette: storm slate (the green-gray sky before hail), hail white,
   watch-box amber (NOAA severe-weather alert). One accent, spent on the
   ledger and the CTA. Type: Barlow Condensed (display) / Barlow (body) —
   highway-signage roots, plainspoken plains vernacular. */

:root {
  --storm-900: #1d252b;
  --storm-800: #27313a;
  --storm-700: #37424c;
  --storm-line: #46525d;
  --hail: #f6f8f6;
  --tint: #e9ede9;
  --ink: #232a30;
  --muted: #5d6a73;
  --sky: #93a6b0;
  --alert: #e8a013;
  --alert-deep: #a86e00;
  --radius: 10px;
  --measure: 62ch;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Barlow", system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--hail);
}

h1, h2, h3 {
  font-family: "Barlow Condensed", "Barlow", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.005em;
  margin: 0 0 0.5em;
}

a { color: var(--alert-deep); }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--alert);
  outline-offset: 2px;
}

/* ---------- top bar ---------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 4vw, 2.5rem);
  background: var(--storm-900);
}

.wordmark {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  text-decoration: none;
}
.wordmark span { color: var(--alert); }
.wordmark.small { font-size: 1.1rem; margin: 0 0 0.5rem; }

.topbar nav { display: flex; align-items: center; gap: 1.4rem; }
.topbar nav a {
  color: #cdd6db;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.topbar nav a:hover { color: #fff; }
.topbar .nav-cta {
  color: var(--storm-900);
  background: var(--alert);
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  font-weight: 600;
}
.topbar .nav-cta:hover { color: var(--storm-900); filter: brightness(1.06); }

/* ---------- error banner ---------- */

.alert-banner {
  background: #fdeed2;
  border-left: 5px solid var(--alert);
  padding: 0.8rem clamp(1rem, 4vw, 2.5rem);
  font-size: 0.95rem;
}

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

.hero {
  background:
    linear-gradient(168deg, var(--storm-900) 0%, var(--storm-800) 55%, #2e3d41 100%);
  color: #e8edef;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 4vw, 2.5rem) clamp(3rem, 7vw, 5rem);
}
.hero.slim { padding-bottom: clamp(2.5rem, 5vw, 3.5rem); }

.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.hero-inner.narrow { grid-template-columns: minmax(0, 1fr); max-width: 760px; }

.hero h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.7rem);
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 0.01em;
}

.eyebrow {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.85rem;
  color: var(--alert);
  margin: 0 0 0.9rem;
}

.hero-sub {
  font-size: 1.1rem;
  max-width: 46ch;
  color: #c8d2d7;
}
.hero-sub a { color: var(--alert); }

/* ---------- the storm ledger (signature) ---------- */

.storm-ledger {
  margin-top: 2rem;
  border-left: 4px solid var(--alert);
  background: rgba(0, 0, 0, 0.22);
  padding: 1rem 1.25rem 0.5rem;
  max-width: 34rem;
}

.ledger-title {
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--sky);
  margin: 0 0 0.75rem;
}

.ledger-row {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--storm-line);
}
.ledger-row:first-of-type { border-top: 0; }

.ledger-stat {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--alert);
  min-width: 4.6rem;
  font-variant-numeric: tabular-nums;
}

.ledger-label { font-size: 0.95rem; color: #dbe2e5; }
.ledger-label em {
  display: block;
  font-style: normal;
  font-size: 0.8rem;
  color: var(--sky);
}

/* ---------- quote form card ---------- */

.quote-card {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 18px 50px rgba(10, 16, 20, 0.35);
}

.quote-card h2 { font-size: 1.7rem; margin-bottom: 0.15rem; }
.card-sub { margin: 0 0 1.2rem; color: var(--muted); font-size: 0.95rem; }

.quote-card label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0.9rem 0 0.3rem;
}
.quote-card label .optional { font-weight: 400; color: var(--muted); }

.quote-card input[type="text"],
.quote-card input[type="tel"],
.quote-card input[type="email"],
.quote-card select,
.quote-card textarea {
  width: 100%;
  font: inherit;
  padding: 0.6rem 0.7rem;
  border: 1.5px solid #c9d2d6;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
}

.hp-field {
  position: absolute !important;
  left: -9999px;
  height: 1px;
  overflow: hidden;
}

.consent {
  display: flex !important;
  gap: 0.6rem;
  align-items: flex-start;
  font-weight: 400 !important;
  font-size: 0.8rem !important;
  color: var(--muted);
  line-height: 1.45;
  margin-top: 1.1rem !important;
}
.consent input { margin-top: 0.2rem; }

.cf-turnstile { margin-top: 1rem; }

.quote-card button {
  display: block;
  width: 100%;
  margin-top: 1.1rem;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--storm-900);
  background: var(--alert);
  border: 0;
  border-radius: 7px;
  padding: 0.8rem;
  cursor: pointer;
  transition: filter 120ms ease;
}
.quote-card button:hover { filter: brightness(1.07); }

.fine-print {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0.8rem 0 0;
  text-align: center;
}

/* ---------- sections ---------- */

.section {
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1rem, 4vw, 2.5rem);
  max-width: 1120px;
  margin: 0 auto;
}
.section.tinted {
  max-width: none;
  background: var(--tint);
}
.section.tinted > * { max-width: 1120px; margin-left: auto; margin-right: auto; }
.section.tinted > p, .section.tinted > h2 { max-width: var(--measure); }

.section h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); text-transform: uppercase; }
.section > p { max-width: var(--measure); }
.section-sub { color: var(--muted); }

.text-link { font-weight: 600; }

/* steps: a real sequence, so numbers carry meaning */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--alert-deep);
  border-bottom: 3px solid var(--alert);
  display: inline-block;
  padding-bottom: 0.15rem;
  margin-bottom: 0.6rem;
}
.steps h3 { font-size: 1.25rem; margin-bottom: 0.25rem; }
.steps p { margin: 0; font-size: 0.97rem; color: var(--muted); }

/* roofer list */
.roofer-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem;
}
.roofer-list li {
  background: #fff;
  border: 1px solid #dde4e6;
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.roofer-name { font-weight: 600; }
.roofer-rating { font-size: 0.9rem; color: var(--muted); }
.roofer-rating strong { color: var(--alert-deep); }

/* FAQ */
.faq details {
  border-top: 1px solid #d5dde0;
  padding: 0.9rem 0;
  max-width: var(--measure);
}
.faq details:last-of-type { border-bottom: 1px solid #d5dde0; }
.faq summary {
  font-weight: 600;
  cursor: pointer;
}
.faq details p { color: var(--muted); }

/* ---------- articles ---------- */

.article {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1rem, 4vw, 2.5rem);
}
.article h1 { font-size: clamp(2rem, 4.5vw, 3rem); text-transform: uppercase; }
.article .lede { font-size: 1.15rem; color: var(--storm-700); }
.article h2 { font-size: 1.5rem; text-transform: uppercase; margin-top: 2.2rem; }
.article li { margin-bottom: 0.5rem; }
.article ol.compact li { margin-bottom: 0.2rem; }
.sources {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid #d5dde0;
  font-size: 0.85rem;
  color: var(--muted);
}
.legal h2 { font-size: 1.25rem; }

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

.site-footer {
  background: var(--storm-900);
  color: #b9c4ca;
  padding: 2.5rem clamp(1rem, 4vw, 2.5rem) 1.5rem;
  font-size: 0.9rem;
}
.footer-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 2rem;
}
.footer-note { max-width: 44ch; margin: 0; }
.footer-links { display: flex; flex-direction: column; gap: 0.45rem; align-items: flex-start; }
.footer-links a { color: #cdd6db; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-legal {
  max-width: 1120px;
  margin: 2rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid var(--storm-line);
  color: var(--sky);
  font-size: 0.8rem;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .topbar { flex-wrap: wrap; }
  .topbar nav { gap: 0.9rem; flex-wrap: wrap; }
  .quote-card { padding: 1.25rem; }
  .ledger-stat { min-width: 3.6rem; font-size: 1.4rem; }
}
