﻿/* Design system: industrial dark + safety orange (Refero "Andercore" foundation,
   UI UX Pro Max Home Services rules: emergency contact up top, license visible, flat + accessible) */
:root {
  --ink: #17120e;
  --night: #0e0b09;
  --night-2: #1a1512;
  --line-dark: #3a302a;
  --paper: #f7f4ef;
  --sand: #ece4d7;
  --line: #ddd3c4;
  --muted: #5f564e;
  --muted-dark: #b3a89c;
  --accent: #c2410c;        /* CTA only; white text 5.2:1 */
  --accent-hover: #a63508;
  --accent-soft: #f97316;   /* small highlights on dark only */
  --ok: #15803d;
  --err: #b91c1c;
  --font: "Archivo", "Inter", system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;
  --r: 4px;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; font: 400 17px/1.6 var(--font); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 14px 26px; border-radius: var(--r); font: 600 16px/1 var(--font); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color .18s, border-color .18s, color .18s; }
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.28); }
.btn--ghost:hover { background: rgba(255,255,255,.18); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--sand); }
.btn--outline { color: #fff; border-color: rgba(255,255,255,.7); }
.btn--outline:hover { background: rgba(255,255,255,.12); }

.tag { font: 400 13px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--accent); margin-bottom: 14px; }
.tag--onDark { color: var(--accent-soft); }
.eyebrow { font: 400 13px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--accent-soft); margin-bottom: 18px; }
.muted { color: var(--muted); }

/* Top bar + header */
.topbar { background: var(--night); color: var(--muted-dark); font-size: 14px; border-bottom: 1px solid var(--line-dark); }
.topbar__inner { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.25); }

.header { position: sticky; top: 0; z-index: 50; background: rgba(14,11,9,.96); backdrop-filter: blur(8px); color: #fff; border-bottom: 1px solid var(--line-dark); }
.header__inner { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-weight: 800; font-size: 18px; letter-spacing: -0.01em; }
.brand__text span { font: 400 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted-dark); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 10px 12px; text-decoration: none; font-size: 15px; color: rgba(255,255,255,.82); border-radius: var(--r); }
.nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.header__cta { display: flex; align-items: center; gap: 18px; }
.phone { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.phone svg { width: 22px; height: 22px; fill: var(--accent-soft); }
.phone span { display: flex; flex-direction: column; font-weight: 800; font-size: 18px; line-height: 1.1; white-space: nowrap; }
.phone small { font: 400 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted-dark); }

/* Hero */
.hero { position: relative; background: var(--night); color: #fff; overflow: hidden; }
/* img/hero.jpg sits under the dark overlay; if the file is missing the gradient/grid fallback shows */
.hero__photo { position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(14,11,9,.95) 22%, rgba(14,11,9,.6) 48%, rgba(14,11,9,.05) 75%),
    linear-gradient(0deg, rgba(14,11,9,.9), transparent 30%),
    url("/img/hero.webp") right 30% / cover no-repeat,
    radial-gradient(ellipse at 80% 40%, #4a3524 0%, transparent 60%),
    repeating-linear-gradient(0deg, transparent 0 47px, rgba(255,255,255,.035) 47px 48px),
    repeating-linear-gradient(90deg, transparent 0 47px, rgba(255,255,255,.035) 47px 48px),
    var(--night); }
.hero__grid { position: relative; padding-top: 88px; padding-bottom: 96px; }
.hero__copy { max-width: 620px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); font-weight: 900; letter-spacing: -0.03em; max-width: 13ch; }
.lede { margin-top: 22px; font-size: 19px; color: rgba(255,255,255,.82); max-width: 52ch; }
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; font-weight: 500; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; background: var(--accent); clip-path: polygon(14% 52%, 0 66%, 38% 100%, 100% 22%, 86% 8%, 38% 72%); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Quote form */
.card { background: #fff; color: var(--ink); border-radius: 0; }
/* Button bar under the hero photo */
.estimate-bar { background: var(--night); color: #fff; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.12); }
.estimate-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.estimate-bar p { font-size: 17px; color: rgba(255,255,255,.85); }
.estimate-bar strong { color: #fff; }
/* Lead capture at the bottom of the page */
.quote-band { background: var(--night); padding: 64px 0; }
#quote { scroll-margin-top: 100px; }
.quote { position: relative; padding: 28px 30px 22px; border-top: 5px solid var(--accent); box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
  display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 0 16px; align-items: start; }
.quote__head, .quote .fine, .quote__embed { grid-column: 1 / -1; }
.quote__embed { min-height: 480px; }
.quote__head { display: flex; align-items: baseline; gap: 6px 20px; flex-wrap: wrap; margin-bottom: 18px; }
.quote__head h2 { font-size: 24px; font-weight: 800; }
.quote__head .muted { font-size: 15px; }
.quote__head .tag { margin-bottom: 0; }
.field { margin-top: 0; }
.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.field input, .field select { width: 100%; min-height: 48px; padding: 10px 14px; font: 400 16px var(--font); color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r); }
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(194,65,12,.2); }
.field__err { display: none; color: var(--err); font-size: 14px; margin-top: 6px; }
.field.is-invalid input { border-color: var(--err); }
.field.is-invalid .field__err { display: block; }
.quote .btn { margin-top: 28px; min-height: 48px; width: auto; }
.fine { font-size: 13px; color: var(--muted); margin-top: 14px; }
.quote__fail { grid-column: 1 / -1; margin-top: 12px; padding: 12px 14px; background: #fef2f2; border-left: 4px solid var(--err); color: var(--err); font-weight: 600; font-size: 15px; }
.quote__fail[hidden] { display: none; }
.quote__ok { position: absolute; inset: 0; background: #fff; padding: 40px 30px; display: flex; flex-direction: column; justify-content: center; gap: 12px; border-top: 5px solid var(--ok); }
.quote__ok[hidden] { display: none; }
.quote__ok svg { width: 48px; height: 48px; fill: #fff; background: var(--ok); border-radius: 50%; padding: 10px; }
.quote__ok h3 { font-size: 26px; }

/* Trust strip */
.strip { background: var(--accent); color: #fff; }
.strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip__grid > div { padding: 22px 20px; border-left: 1px solid rgba(255,255,255,.25); display: flex; flex-direction: column; gap: 2px; }
.strip__grid > div:first-child { border-left: 0; padding-left: 0; }
.strip strong { font-size: 24px; font-weight: 900; letter-spacing: -0.02em; }
.strip span { font-size: 15px; color: rgba(255,255,255,.9); }

/* Sections */
.section { padding: 96px 0; }
.section--light { background: var(--paper); }
.section--sand { background: var(--sand); }
.section--dark { background: var(--night); color: #fff; }
.section--dark .muted { color: var(--muted-dark); }
.section h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; }
.section__head { max-width: 760px; margin-bottom: 48px; }
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.split > div > .muted { margin-top: 18px; font-size: 18px; }
.split > div > .btn { margin-top: 28px; }
.split--rev { grid-template-columns: 1fr 1fr; align-items: center; }

/* Signs list */
.signs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.signs li { display: flex; gap: 14px; padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.signs h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.signs p { font-size: 15px; color: var(--muted); }
.num { font: 400 13px/1.6 var(--mono); color: var(--accent); flex: none; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-dark); border-left: 1px solid var(--line-dark); }
.svc { padding: 36px 32px 40px; border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); transition: background-color .2s; }
.svc:hover { background: var(--night-2); }
.svc svg { width: 40px; height: 40px; fill: none; stroke: var(--accent-soft); stroke-width: 2; margin-bottom: 26px; }
.svc svg .f { fill: var(--accent-soft); stroke: none; }
.svc h3 { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.svc p { color: var(--muted-dark); font-size: 16px; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { position: relative; background: #fff; border: 1px solid var(--line); padding: 28px 24px 32px; }
.steps li::after { content: ""; position: absolute; left: 0; top: -1px; width: 48px; height: 4px; background: var(--accent); }
.steps h3 { font-size: 20px; font-weight: 700; margin: 10px 0 8px; }
.steps p { color: var(--muted); font-size: 15px; }

/* Camera scope illustration */
.scope { margin: 0; }
.scope__screen { position: relative; background: #000; border: 10px solid var(--ink); box-shadow: 0 24px 50px -24px rgba(0,0,0,.5); }
.scope__screen svg { width: 100%; height: auto; }
.scope__img--static { width: 100%; height: auto; aspect-ratio: 790 / 485; object-fit: cover; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.scope__hud { position: absolute; top: 12px; left: 14px; right: 14px; display: flex; justify-content: space-between; font: 400 12px var(--mono); color: #f5e9d6; }
.scope__hud span:first-child { color: #ef4444; }
.scope__flag { position: absolute; bottom: 14px; left: 14px; background: var(--accent); color: #fff; font: 400 12px var(--mono); padding: 4px 10px; text-transform: uppercase; letter-spacing: .04em; }
.scope figcaption { margin-top: 14px; font-size: 14px; color: var(--muted); }
.reasons { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 22px; }
.reasons li { padding-left: 20px; border-left: 3px solid var(--accent); }
.reasons h3 { font-size: 19px; font-weight: 700; margin-bottom: 4px; }
.reasons p { color: var(--muted); font-size: 16px; }

/* Compare table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: #fff; }
.compare { width: 100%; border-collapse: collapse; min-width: 620px; font-size: 16px; }
.compare th, .compare td { text-align: left; padding: 18px 22px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: var(--ink); color: #fff; font-weight: 700; }
.compare thead th:nth-child(2) { background: var(--accent); }
.compare tbody th { font-weight: 600; width: 26%; }
.compare tbody tr:last-child > * { border-bottom: 0; }
.photo { margin: 0; }
.photo img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; background: var(--sand); }
.split--media { grid-template-columns: 1fr 1fr; align-items: center; margin-bottom: 48px; }
.photo figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.note { margin-top: 18px; color: var(--muted); font-size: 15px; max-width: 70ch; }

/* Areas */
.areas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-dark); border-left: 1px solid var(--line-dark); }
.areas li { padding: 18px 20px; border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); font-weight: 500; display: flex; align-items: center; gap: 10px; }
.areas li::before { content: ""; width: 8px; height: 8px; background: var(--accent-soft); flex: none; }

/* FAQ */
.faq-wrap { max-width: 900px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; font-weight: 700; font-size: 19px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font: 400 28px/1 var(--font); color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 0 24px; color: var(--muted); max-width: 72ch; }
.faq-a p + p { margin-top: 12px; }

/* Inner pages */
.crumbs { background: var(--night); color: var(--muted-dark); font-size: 14px; border-bottom: 1px solid var(--line-dark); }
.crumbs .wrap { padding-top: 12px; padding-bottom: 12px; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.crumbs a { color: #fff; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs .sep { color: var(--line-dark); }
.page-hero { background: var(--night); color: #fff; padding: 64px 0 72px; }
.page-hero h1 { font-size: clamp(34px, 4.6vw, 56px); font-weight: 900; letter-spacing: -0.03em; max-width: 20ch; }
.page-hero .lede { max-width: 62ch; }
.page-hero .hero__actions { margin-top: 28px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(26px, 2.8vw, 34px); font-weight: 800; margin: 48px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 20px; font-weight: 700; margin: 28px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--accent); }
.prose .table-wrap { margin: 8px 0 20px; }
.aside { position: sticky; top: 100px; display: grid; gap: 20px; }
.aside .card { padding: 26px 24px; border-top: 5px solid var(--accent); box-shadow: 0 18px 40px -24px rgba(0,0,0,.35); }
.aside .card h3, .aside .card .card__title { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.aside .card p { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.aside .card ul { margin: 0 0 16px; padding-left: 18px; font-size: 15px; color: var(--muted); }
.aside .btn + .btn { margin-top: 10px; }
.tiles { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.tiles a { display: block; height: 100%; padding: 26px 24px 28px; background: #fff; border: 1px solid var(--line); text-decoration: none; position: relative; transition: border-color .18s; }
.tiles a::after { content: ""; position: absolute; left: 0; top: -1px; width: 48px; height: 4px; background: var(--accent); }
.tiles a:hover { border-color: var(--accent); }
.tiles strong { display: block; font-size: 20px; font-weight: 800; margin-bottom: 6px; color: var(--ink); }
.tiles span { color: var(--muted); font-size: 15px; }
.areas a { color: #fff; text-decoration: none; }
.areas a:hover { text-decoration: underline; }
.lead-links { margin-top: 22px; color: var(--muted); }
.lead-links a { color: var(--accent); }
.section--dark .lead-links a { color: var(--accent-soft); }
.cta__title { font-size: clamp(28px, 3.4vw, 40px); font-weight: 900; line-height: 1.1; letter-spacing: -0.02em; }
.quote__title { font-size: 24px; font-weight: 800; line-height: 1.1; }

/* CTA + footer */
.cta { background: var(--accent); color: #fff; padding: 64px 0; }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 900; }
.cta p + p { margin-top: 8px; font-size: 18px; color: rgba(255,255,255,.9); }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.footer { background: var(--night); color: var(--muted-dark); padding: 64px 0 0; font-size: 15px; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1.3fr 1.2fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer__brand { color: #fff; font-weight: 800; font-size: 20px; margin-bottom: 10px; }
.footer__h { font: 400 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--accent-soft); margin-bottom: 12px; }
.footer__grid p { line-height: 1.9; }
.footer__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line-dark); padding-top: 20px; padding-bottom: 24px; font-size: 13px; }

.callbar { display: none; }

/* Responsive */
@media (max-width: 1080px) {
  .nav { display: none; }
  .header__cta { margin-left: auto; }
  .services { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .quote { grid-template-columns: 1fr 1fr; gap: 16px; }
  .quote__head { margin-bottom: 0; }
  .quote .btn { grid-column: 1 / -1; margin-top: 4px; width: 100%; }
}
@media (max-width: 860px) {
  .hero__grid, .split, .split--rev, .layout { grid-template-columns: 1fr; gap: 40px; }
  .aside { position: static; }
  .tiles { grid-template-columns: 1fr; }
  .page-hero { padding: 44px 0 52px; }
  .hero__grid { padding-top: 48px; padding-bottom: 56px; }
  .hero__photo { background:
    linear-gradient(90deg, rgba(14,11,9,.92) 40%, rgba(14,11,9,.55)),
    linear-gradient(0deg, rgba(14,11,9,.9), transparent 30%),
    url("/img/hero.webp") 80% center / cover no-repeat, var(--night); }
  .strip__grid { grid-template-columns: 1fr 1fr; }
  .strip__grid > div { border-left: 0; padding-left: 0; }
  .signs { grid-template-columns: 1fr; }
  .areas { grid-template-columns: 1fr 1fr; }
  .cta__inner { flex-direction: column; align-items: flex-start; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .topbar__lic { display: none; }
  .section { padding: 72px 0; }
}
@media (max-width: 640px) {
  body { padding-bottom: 76px; }
  .header__cta .btn, .phone small { display: none; }
  .brand__text strong { font-size: 16px; }
  .services, .steps { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 100%; }
  .quote { padding: 24px 20px; grid-template-columns: 1fr; }
  .callbar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--night); border-top: 1px solid var(--line-dark); }
}
@media (max-width: 420px) {
  .phone span { font-size: 16px; }
  .brand__text span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
