/* Firehouse Roofing KC — site styles. Hand-written; no theme or framework code. */
:root {
  --red: #c52031;
  --red-dark: #a01a28;
  --orange: #ff9500;          /* brand orange: borders, icons, accents */
  --orange-text: #9a4d00;     /* brand orange darkened for readable text (WCAG AA on white and gray) */
  --cta-link: #ffe3ad;        /* light orange that stays readable on the red band */
  --ink: #212934;
  --muted: #4a4e57;
  --line: #d4d4d4;
  --gray: #e2e2e2;
  --light: #f6f6f6;
  --white: #fff;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --wrap: 1180px;
  --radius: 4px;
  --header-h: 104px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font: 400 1.0625rem/1.65 var(--font); color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-text); text-underline-offset: 2px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; font-weight: 700; color: var(--ink); }
h2 { font-size: clamp(1.55rem, 1.1rem + 1.5vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.4rem; }
li { margin: .3rem 0; }
strong { font-weight: 700; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--ink); color: #fff; padding: .7rem 1rem; }
.skip-link:focus { left: 1rem; top: 1rem; color: #fff; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 4px solid var(--orange); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); position: relative; }
.brand { display: flex; flex-direction: column; padding: .5rem 0; font-family: Arial, Helvetica, sans-serif; font-size: .82rem; line-height: 1.3; color: var(--ink); }
.brand-logo { display: block; width: 186px; }
.brand-meta a { display: inline-block; padding: .3rem 0; color: var(--ink); text-decoration: none; }
.brand-meta { line-height: 1.1; }
.brand-meta a:hover { color: var(--red); text-decoration: underline; }

.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav > ul { display: flex; align-items: center; gap: 1.35rem; }
.primary-nav li { margin: 0; }
.primary-nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.02rem; }
.primary-nav a:hover, .primary-nav a[aria-current="page"], .primary-nav .in-section > .nav-row > a { color: var(--red); }
.nav-row { display: flex; align-items: center; gap: .15rem; }
.has-sub { position: relative; }
.sub-toggle { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; border-radius: var(--radius); }
.sub-toggle svg { width: 12px; height: 12px; transition: transform .15s; }
.has-sub.open .sub-toggle svg { transform: rotate(180deg); }
.submenu { display: none; position: absolute; top: calc(100% + 10px); left: 0; min-width: 320px; background: var(--white); border-top: 3px solid var(--orange); box-shadow: 0 10px 28px rgba(0,0,0,.14); padding: .4rem 0; }
.submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -13px; height: 13px; } /* hover bridge */
.submenu a { display: block; padding: .55rem 1.1rem; font-weight: 600; font-size: .98rem; }
.submenu a:hover, .submenu a[aria-current="page"] { background: var(--light); color: var(--red); }
.has-sub.open > .submenu { display: block; }
@media (hover: hover) and (min-width: 1081px) {
  .has-sub:hover > .submenu, .has-sub:focus-within > .submenu { display: block; }
}
.nav-toggle { display: none; align-items: center; gap: .5rem; padding: .55rem .8rem; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--white); color: var(--ink); font: 700 .95rem var(--font); cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 1080px) {
  :root { --header-h: 92px; }
  .brand-logo { width: 160px; }
  .nav-toggle { display: inline-flex; }
  .primary-nav { display: none; position: absolute; top: calc(100% + 4px); left: -1rem; right: -1rem; background: var(--white); border-bottom: 4px solid var(--orange); box-shadow: 0 12px 24px rgba(0,0,0,.12); max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .primary-nav.open { display: block; }
  .primary-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav > ul > li { border-top: 1px solid #ececec; }
  .primary-nav a { display: block; padding: .85rem 1.25rem; }
  .nav-row { justify-content: space-between; padding-right: .75rem; }
  .nav-row a { flex: 1; }
  .sub-toggle { width: 44px; height: 44px; }
  .submenu { position: static; min-width: 0; box-shadow: none; border-top: 0; padding: 0 0 .5rem 1rem; }
  .submenu::before { display: none; }
  .submenu a { padding: .6rem 1.25rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: clamp(360px, 36vw, 520px); padding: 3rem 0; color: var(--white); background: #3a3f47; overflow: hidden; }
.hero-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20,22,26,.62) 0%, rgba(20,22,26,.38) 60%, rgba(20,22,26,.25) 100%); }
.hero h1 { margin: 0; color: var(--white); text-shadow: 0 1px 4px rgba(0,0,0,.45); }
.hero .eyebrow { display: block; margin-bottom: .9rem; font-size: clamp(1rem, .9rem + .45vw, 1.3rem); text-transform: uppercase; }
.hero .title { display: block; font-size: clamp(2rem, 1.3rem + 2.4vw, 3rem); }
.hero .title::after { content: ""; display: block; width: 26px; height: 4px; margin: .8rem 0 0 -.15rem; background: var(--red); border-radius: 3px; transform: skewX(-20deg); }
.hero .sub { max-width: 50rem; margin: 1.5rem 0 0; font-weight: 700; font-size: clamp(1.05rem, .95rem + .45vw, 1.3rem); line-height: 1.4; text-shadow: 0 1px 4px rgba(0,0,0,.55); }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(2.75rem, 5vw, 4.5rem) 0; }
.section.gray { background: var(--gray); }
.section.light { background: var(--light); }
.section.angles { background: var(--gray) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 900' preserveAspectRatio='none'%3E%3Cg fill='%23fff' fill-opacity='.55'%3E%3Cpath d='M1050 0h60L520 900h-60z'/%3E%3Cpath d='M1230 0h22L700 900h-22z'/%3E%3Cpath d='M1420 0h90l-300 900h-90z'/%3E%3C/g%3E%3C/svg%3E") center/cover no-repeat; }
.section.tight { padding-top: 1.5rem; }
.center { text-align: center; }
.lead { font-size: 1.1rem; }
.prose { max-width: 75ch; }
.prose-wide { max-width: none; }

.h-dash { text-align: center; }
.h-dash::after { content: ""; display: block; width: 26px; height: 4px; margin: .6rem auto 0; background: var(--red); border-radius: 3px; transform: skewX(-20deg); }
.h-bar { font-size: 1.15rem; margin-top: 2.5rem; }
.h-bar::after { content: ""; display: block; width: 165px; height: 3px; margin-top: .7rem; background: var(--orange); }
.subhead { color: var(--red); font-size: 1.3rem; }
.small-head { font-size: 1.05rem; margin-top: 1.6rem; }

.btn { display: inline-block; padding: .55rem 1.15rem; border: 0; border-radius: var(--radius); background: var(--red); color: var(--white); font: 700 1rem/1.3 var(--font); text-decoration: none; cursor: pointer; }
.btn:hover, .btn:focus-visible { background: var(--red-dark); color: var(--white); }
.btn[disabled] { opacity: .65; cursor: wait; }
.btn-row { margin: 1.75rem 0 0; text-align: center; }

.split { display: grid; gap: clamp(1.75rem, 4vw, 3.25rem); align-items: start; }
@media (min-width: 880px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split.main-aside { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); }
  .split.main-aside-wide { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
  .split.middle { align-items: center; }
}
.badges { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: center; }
.badges img { width: 150px; }
.aside-stack { display: grid; gap: 1.25rem; justify-items: center; }
.rounded { border-radius: 4px; }
.muted { color: var(--muted); }

/* Check lists and arrow lists */
.checks, .arrows { list-style: none; padding: 0; }
.checks li, .arrows li { position: relative; padding-left: 2rem; margin: .65rem 0; }
.checks li::before, .arrows li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; background: var(--red); -webkit-mask: var(--icon) center/contain no-repeat; mask: var(--icon) center/contain no-repeat; }
.checks li { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E"); }
.arrows li { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m9 5-1.4 1.4 5.6 5.6-5.6 5.6L9 19l7-7z'/%3E%3C/svg%3E"); }
.arrows li::before { background: var(--ink); }
.checks.big li { margin: 1.1rem 0; font-size: 1.15rem; }
.checks.big a { text-decoration: none; }
.checks.big a:hover { text-decoration: underline; }
.def-list li > strong { display: block; }
.def-list li p { margin: .2rem 0 0; color: var(--muted); }
.bold-list li { font-weight: 700; }

/* Wave divider (drawn for this site) */
.wave { display: block; width: 100%; height: 48px; margin-top: -1px; color: var(--gray); }
.wave path { fill: currentColor; }

/* ---------- Service cards ---------- */
.cards { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); margin-top: 2rem; }
.card { position: relative; display: flex; flex-direction: column; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 6px; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 10px 26px rgba(0,0,0,.12); transform: translateY(-2px); }
.card img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; }
.card-body { padding: 1.1rem 1.25rem 1.3rem; }
.card h3 { margin: 0 0 .35rem; font-size: 1.2rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card p { margin: 0; color: var(--muted); }
.card .more { display: inline-block; margin-top: .7rem; color: var(--orange-text); font-weight: 700; }

/* ---------- Photo grids ---------- */
.photo-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); margin: 1.25rem 0 1.75rem; }
@media (min-width: 880px) { .photo-grid { grid-template-columns: repeat(4, 1fr); } }
.photo-grid figure { margin: 0; }
.photo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.photo-grid figcaption { margin-top: .4rem; font-size: .9rem; color: var(--muted); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { position: relative; padding-left: 2.6rem; margin: 1rem 0; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: .05rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--red); color: var(--white); font-weight: 700; font-size: .95rem; line-height: 1.8rem; text-align: center; }

/* ---------- Reviews ---------- */
.reviews { display: grid; gap: 1.75rem; max-width: 1000px; margin: 2rem auto 0; }
.review { margin: 0; padding: 1.6rem 1.8rem; background: var(--light); }
.review:nth-child(even) { background: var(--gray); }
.review h3 { display: flex; align-items: center; gap: .7rem; margin: 0 0 .8rem; font-size: 1.15rem; }
.review h3 svg { width: 22px; height: 22px; flex: none; fill: var(--orange); }
.review blockquote { margin: 0; }
.review blockquote p:last-child { margin-bottom: 0; }

/* ---------- Forms ---------- */
.form-card { max-width: 700px; margin: 2.25rem auto 0; padding: clamp(1.25rem, 4vw, 2.25rem) clamp(1.25rem, 6vw, 3.5rem); background: var(--white); border: 1px solid #8f8f8f; border-radius: 6px; }
.form-card h3 { margin-bottom: 1rem; font-size: 1.2rem; }
.field { margin: 0 0 1.05rem; }
.field label { display: block; margin-bottom: .3rem; font-weight: 600; }
.req { margin-left: .25rem; color: var(--red); font-size: .8rem; font-style: italic; font-weight: 400; }
.field input, .field textarea { width: 100%; padding: .65rem .75rem; border: 1px solid #8a8a8a; border-radius: var(--radius); background: #fafafa; color: var(--ink); font: inherit; }
.field textarea { min-height: 9.5rem; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--ink); background: var(--white); }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--red); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5em; margin: .9rem 0 0; font-weight: 600; }
.form-status.error { color: var(--red); }
.form-note { margin: .9rem 0 0; font-size: .9rem; color: var(--muted); }

/* ---------- Contact band, NAP, map ---------- */
.contact-band { background-color: #f1f1f1; background-position: center bottom; background-repeat: no-repeat; background-size: cover; }
.contact-band .logo { width: 330px; max-width: 100%; }
.nap { list-style: none; margin: 1rem 0 0; padding: 0; }
.nap li { display: flex; align-items: flex-start; gap: .85rem; margin: .55rem 0; font-size: 1.12rem; }
.nap svg { flex: none; width: 20px; height: 20px; margin-top: .3rem; fill: var(--ink); }
.nap a { color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.nap a:hover { color: var(--red); text-decoration: underline; }
.map-figure { margin: 0; text-align: center; }
.map-figure h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.map-figure p { font-weight: 700; font-size: .95rem; margin-bottom: .6rem; }
.map-figure img { width: 100%; border: 1px solid var(--line); }

/* ---------- Service area ---------- */
.area h2 { font-size: 1.3rem; }
.area h3 { margin: 1.1rem 0 .25rem; color: var(--orange-text); font-size: 1.08rem; font-weight: 600; }
.inline-list { list-style: none; margin: 0; padding: 0; }
.inline-list li { display: inline; margin: 0; }
.inline-list li:not(:last-child)::after { content: ", "; }
.call-card { display: block; max-width: 300px; margin-inline: auto; }
.call-card img { border-radius: 2px; box-shadow: 0 6px 18px rgba(0,0,0,.15); }

/* ---------- CTA band and footer ---------- */
.cta-band { background: var(--red); color: var(--white); font-weight: 700; font-size: 1.17rem; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 2rem; padding: 1.1rem 0; }
.cta-band p { margin: 0; }
.cta-band a { color: var(--white); text-decoration: none; }
.cta-band a:hover { text-decoration: underline; color: var(--white); }
.cta-band a.cta-link { color: var(--cta-link); }

.site-footer { background: var(--light); padding: 3rem 0 0; font-size: .97rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 880px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer .logo { width: 200px; margin-bottom: .6rem; }
.site-footer .nap li { font-size: .97rem; margin: .4rem 0; }
.site-footer .nap svg { width: 16px; height: 16px; margin-top: .3rem; }
.site-footer .badges { justify-content: flex-start; margin-top: 1rem; }
.site-footer .badges img { width: 92px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { position: relative; margin: .15rem 0; padding-left: 1.1rem; }
.footer-links li::before { content: ""; position: absolute; left: 0; top: .5em; width: 7px; height: 7px; border-top: 2px solid var(--orange); border-right: 2px solid var(--orange); transform: rotate(45deg); }
.footer-links a { color: var(--ink); text-decoration: none; font-weight: 600; }
.footer-links a:hover, .footer-links a[aria-current="page"] { color: var(--orange-text); text-decoration: underline; }
.copyright { margin-top: 2.5rem; padding: 1.1rem 0; border-top: 1px solid #ddd; font-size: .86rem; color: var(--muted); }
.copyright p { margin: 0; }

/* ---------- 404 ---------- */
.not-found { padding: 5rem 0; text-align: center; }

/* ---------- Preview banner (preview builds only) ---------- */
.preview-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999; padding: .55rem 1rem; background: #111; color: #fff; font: 600 .9rem/1.4 Arial, sans-serif; text-align: center; }
html[data-preview] body { padding-bottom: 2.5rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .cta-band, .site-footer, .form-card, .preview-banner { display: none !important; }
  .hero { color: #000; min-height: 0; }
  .hero::after, .hero-img { display: none; }
  .hero h1 { color: #000; text-shadow: none; }
}

.contact-band{background-image:url(/assets/img/skyline-1600.09bfcfb4.webp)}
