/* Layout: Southwest Home Services brand — black ground, logo gold, white condensed type, gold hairline rules like the yard signs. Single dark look by design. */
:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --band: #111111;
  --ink: #ffffff;
  --muted: #bdb7a9;
  --line: #2e2a20;
  --rule: #c9a13d;          /* gold hairline */
  --accent: #f2c94c;        /* logo gold */
  --accent-ink: #0a0a0a;
  --call: #f2c94c;
  --call-ink: #0a0a0a;
  --shingle: #1c1c1c;
  --trim: #f4f1ea;
  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Barlow", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.6;
  padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 900px) { body { padding-bottom: 0; } }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--call); outline-offset: 2px;
}
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: 0.005em; }
h1 { font-size: clamp(2.5rem, 6.5vw, 4.4rem); font-weight: 700; text-transform: uppercase; }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 700; text-transform: uppercase; }
h3 { font-size: 1.45rem; font-weight: 600; }
p { margin: 0; }
.wrap {
  max-width: 1160px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.eyebrow {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}
.lede { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.prose { display: grid; gap: 1rem; max-width: 66ch; }
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section.band { background: var(--band); }
.stack { display: grid; gap: 1.25rem; }

/* Header */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 21; background: var(--surface); }
.top .wrap { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand svg { width: 38px; height: 30px; flex: none; }
.brand b { font-family: var(--display); font-size: 1.35rem; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1; }
.brand small { display: block; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; }
.nav { display: none; gap: 1.4rem; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.98rem; }
.nav a:hover { color: var(--accent); }
.phone-btn {
  display: none; align-items: center; gap: 0.5rem; text-decoration: none; font-weight: 700;
  background: var(--call); color: var(--call-ink); padding: 0.6rem 1rem; border-radius: 6px;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.menu { position: relative; }
.menu summary {
  list-style: none; cursor: pointer; font-weight: 700; padding: 0.5rem 0.8rem;
  border: 1px solid var(--line); border-radius: 6px; color: var(--ink);
}
.menu summary::-webkit-details-marker { display: none; }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); width: min(320px, calc(100vw - 32px));
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 1rem;
  display: grid; gap: 0.35rem; box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}
.menu-panel a { color: var(--ink); text-decoration: none; padding: 0.35rem 0; font-weight: 600; }
.menu-panel .eyebrow { margin-top: 0.6rem; }
@media (min-width: 900px) {
  .nav, .phone-btn { display: flex; }
  .menu { display: none; }
}

/* Hero */
.hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; gap: 2.5rem; padding-block: clamp(2.5rem, 6vw, 4.5rem); align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.05fr 1fr; } }
.hero-copy { display: grid; gap: 1.25rem; min-width: 0; }
.hero h1 .tint { color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; font-weight: 700;
  padding: 0.85rem 1.3rem; border-radius: 6px; font-size: 1.05rem; border: 2px solid transparent; cursor: pointer;
  font-family: var(--body);
}
.btn-call { background: var(--call); color: var(--call-ink); font-variant-numeric: tabular-nums; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.call-note { font-size: 0.9rem; color: var(--muted); }

.specs {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0;
  border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface);
}
@media (min-width: 700px) { .specs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.spec { padding: 0.9rem 1rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 0.15rem; }
.spec strong { font-family: var(--display); font-size: 1.6rem; line-height: 1; text-transform: uppercase; }
.spec span { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* House elevation */
.elevation { width: 100%; height: auto; }
.elevation .sky { fill: var(--band); }
.elevation .roof { fill: var(--shingle); }
.elevation .shingle-line { stroke: var(--muted); stroke-width: 1; opacity: 0.35; }
.elevation .wall { fill: var(--accent); }
.elevation .lap { stroke: var(--bg); stroke-width: 1.2; opacity: 0.35; }
.elevation .trim { fill: var(--trim); }
.elevation .glass { fill: var(--band); }
.elevation .door { fill: var(--call); }
.elevation .ground { stroke: var(--ink); stroke-width: 2; }
.elevation .lead { stroke: var(--ink); stroke-width: 1.5; fill: none; }
.elevation .dot { fill: var(--ink); }
.elevation text { font-family: var(--mono); font-size: 17px; letter-spacing: 0.06em; fill: var(--ink); font-weight: 600; }
.elevation a:hover text, .elevation a:focus text { fill: var(--accent); text-decoration: underline; }
.elevation-note { font-size: 0.9rem; color: var(--muted); text-align: center; margin-top: 0.5rem; }

/* Grids */
.grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 640px) and (max-width: 899px) { .grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.service {
  display: grid; gap: 0.5rem; padding: 1.4rem; background: var(--surface); border: 1px solid var(--line);
  border-radius: 8px; text-decoration: none; color: var(--ink);
}
.service:hover { border-color: var(--accent); }
.service .eyebrow { color: var(--accent); }
.service p { color: var(--muted); font-size: 0.98rem; }
.service .more { font-weight: 700; color: var(--accent); font-size: 0.95rem; margin-top: auto; }

.sec-head { display: grid; gap: 0.75rem; margin-bottom: 2rem; max-width: 70ch; }

/* Owner block */
.owner { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 900px) { .owner { grid-template-columns: 300px 1fr; } }
.owner-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 1.25rem; display: grid; gap: 0.75rem;
}
.portrait {
  aspect-ratio: 4 / 5; max-width: 100%; border-radius: 6px; overflow: hidden; position: relative;
  background: repeating-linear-gradient(0deg, var(--band) 0 13px, var(--surface) 13px 15px);
  display: grid; place-items: center; color: var(--muted); font-family: var(--mono); font-size: 0.75rem; text-align: center;
}
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.facts { display: grid; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.facts li { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dashed var(--line); padding-bottom: 0.35rem; font-size: 0.95rem; }
.facts li span:first-child { color: var(--muted); }
.facts li span:last-child { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.checks li { padding-left: 1.7rem; position: relative; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.45em; width: 1rem; height: 0.55rem;
  border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent); transform: rotate(-45deg);
}

/* Reviews */
.reviews { display: grid; gap: 1rem; }
@media (min-width: 700px) { .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .reviews { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.review { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 1.25rem; display: grid; gap: 0.75rem; align-content: start; }
.stars { color: var(--call); letter-spacing: 0.15em; font-size: 1rem; }
.review blockquote { margin: 0; font-size: 1.02rem; }
.review figcaption { font-weight: 700; font-size: 0.95rem; }
.proof { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.proof a {
  display: inline-flex; gap: 0.5rem; align-items: center; padding: 0.6rem 1rem; border: 1px solid var(--line);
  border-radius: 6px; background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600;
}
.proof a b { font-family: var(--display); font-size: 1.3rem; }

/* Photos */
.photos { display: grid; gap: 0.75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .photos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ph {
  margin: 0; aspect-ratio: 4 / 3; max-width: 100%; border-radius: 6px; overflow: hidden; position: relative;
  background: repeating-linear-gradient(0deg, var(--band) 0 13px, var(--surface) 13px 15px);
  display: grid; place-items: end start;
}
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph figcaption {
  position: relative; margin: 0.5rem; background: var(--surface); color: var(--ink); font-family: var(--mono);
  font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.25rem 0.5rem; border-radius: 4px;
}

/* Process */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; counter-reset: step; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.steps li { counter-increment: step; display: grid; gap: 0.4rem; padding-top: 1rem; border-top: 3px solid var(--accent); }
.steps li::before { content: "Step " counter(step); font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.steps h3 { font-size: 1.3rem; }
.steps p { color: var(--muted); font-size: 0.97rem; }

/* Areas */
.areas { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.areas a, .areas span {
  padding: 0.45rem 0.85rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none;
  color: var(--ink); background: var(--surface); font-weight: 600; font-size: 0.95rem;
}
.areas a:hover { border-color: var(--accent); color: var(--accent); }
.areas span { color: var(--muted); font-weight: 500; }

/* FAQ */
.faq { display: grid; gap: 0.6rem; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 1rem 1.2rem; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; }
.faq details p { margin-top: 0.6rem; color: var(--muted); }

/* Page head (inner pages) */
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-block: clamp(2.25rem, 5vw, 3.5rem); display: grid; gap: 1rem; }
.crumbs { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.crumbs a { color: var(--muted); }
.split { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.aside-box { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 1.4rem; display: grid; gap: 0.9rem; align-content: start; }
.aside-box .num { font-family: var(--display); font-size: 2rem; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Form */
.estimate { display: grid; gap: 2rem; }
@media (min-width: 900px) { .estimate { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); } }
form.est { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 1.4rem; display: grid; gap: 1rem; }
.field { display: grid; gap: 0.35rem; }
.field label, .field legend { font-weight: 700; font-size: 0.95rem; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 0.7rem 0.8rem; width: 100%;
}
.row2 { display: grid; gap: 1rem; }
@media (min-width: 560px) { .row2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
fieldset.field { border: 0; padding: 0; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips label { display: inline-flex; align-items: center; gap: 0.4rem; border: 1px solid var(--line); border-radius: 999px; padding: 0.35rem 0.8rem; font-weight: 600; cursor: pointer; }
.hp { position: absolute; left: -9999px; }
.form-msg { font-weight: 600; color: var(--accent); }
.small { font-size: 0.88rem; color: var(--muted); }

/* CTA band */
.cta { background: var(--shingle); color: #f1f4f6; }
.cta .wrap { padding-block: clamp(2.5rem, 6vw, 4rem); display: grid; gap: 1.25rem; justify-items: start; }
.cta h2 { color: #ffffff; }
.cta p { color: #c3ccd3; max-width: 60ch; }
.cta .btn-ghost { border-color: #f1f4f6; color: #f1f4f6; }

/* Footer */
footer { background: var(--surface); border-top: 1px solid var(--line); font-size: 0.95rem; }
footer .wrap { padding-block: 2.5rem; display: grid; gap: 2rem; }
@media (min-width: 800px) { footer .wrap { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
footer h3 { font-size: 1.1rem; text-transform: uppercase; margin-bottom: 0.6rem; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.3rem; }
footer a { color: var(--ink); }
footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 1rem; color: var(--muted); font-size: 0.85rem; }

/* Mobile call bar */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: 1.3fr 1fr;
  gap: 0.5rem; background: var(--surface); border-top: 1px solid var(--line);
  padding: 0.55rem max(12px, env(safe-area-inset-right, 0px)) calc(0.55rem + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
}
.callbar a { justify-content: center; padding: 0.7rem 0.5rem; font-size: 1rem; }
@media (min-width: 900px) { .callbar { display: none; } }

.preview-flag {
  background: var(--call); color: var(--call-ink); font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em;
  text-align: center; padding: 0.4rem 1rem; text-transform: uppercase;
}

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

/* ---- Brand overrides ---- */
.brand img { height: 46px; width: auto; }
footer .brand img { height: 58px; }
.top { border-bottom: 1px solid var(--rule); background: #000; }
body::before { background: #000; }
.menu-panel { background: #000; border-color: var(--rule); }
.hero { background: #000; border-bottom: 1px solid var(--rule); }
.hero h1 { font-size: clamp(2.8rem, 7vw, 5rem); }
.hero-photo {
  position: relative; aspect-ratio: 4 / 5; max-width: 100%; border-radius: 10px; overflow: hidden;
  border: 3px solid var(--accent); background: var(--surface);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.hero-photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1rem 0.9rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.85)); color: #fff; font-weight: 600;
}
.hero-photo figcaption span { color: var(--accent); }
@media (min-width: 900px) { .hero-media { max-width: 440px; justify-self: end; width: 100%; } }
.rule-label { display: flex; align-items: center; gap: 0.9rem; font-family: var(--display); color: var(--accent); letter-spacing: 0.22em; text-transform: uppercase; font-size: 1.05rem; font-weight: 600; }
.rule-label::before, .rule-label::after { content: ""; height: 2px; background: var(--rule); flex: 1; max-width: 70px; }
.eyebrow { color: var(--accent); }
.specs { border-color: var(--rule); }
.spec { border-color: var(--line); }
.spec strong { color: var(--accent); }
.service, .review, .aside-box, .owner-card, form.est, .faq details { border-color: var(--line); }
.service:hover { border-color: var(--accent); }
.svc-icon { width: 46px; height: 46px; stroke: var(--accent); fill: none; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.service h3 { text-transform: uppercase; font-weight: 700; }
.steps li { border-top-color: var(--accent); }
.checks li::before { border-color: var(--accent); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { border-color: #ffffff; color: #ffffff; }
.cta { background: var(--accent); color: #0a0a0a; }
.cta h2 { color: #0a0a0a; }
.cta p { color: #2a2410; }
.cta .btn-call { background: #0a0a0a; color: var(--accent); }
.cta .btn-ghost { border-color: #0a0a0a; color: #0a0a0a; }
footer { background: #000; border-top: 1px solid var(--rule); }
footer a { color: #ffffff; }
.callbar { background: #000; border-top-color: var(--rule); }
.areas a, .areas span { background: var(--surface); }
.field input, .field select, .field textarea { background: #0a0a0a; }
.ph figcaption { background: #000; color: var(--accent); }
.big-phone { font-family: var(--display); font-weight: 700; font-size: clamp(2.6rem, 8vw, 4.6rem); line-height: 1; color: #fff; text-decoration: none; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.elevation .sky { fill: #111111; }
.elevation .roof { fill: #1e1e1e; stroke: var(--accent); stroke-width: 3; }
.elevation .shingle-line { stroke: #555; opacity: 0.6; }
.elevation .wall { fill: #262626; }
.elevation .lap { stroke: #3a3a3a; opacity: 1; }
.elevation .glass { fill: #3b3b3b; }
.elevation .door { fill: var(--accent); }
.elevation .ground, .elevation .lead { stroke: var(--accent); }
.elevation .dot { fill: var(--accent); }
.elevation text { fill: #ffffff; }
.elevation a:hover text, .elevation a:focus text { fill: var(--accent); }

.dealer { display: inline-flex; align-items: center; gap: 0.8rem; text-decoration: none; color: var(--ink); border: 1px solid var(--rule); border-radius: 8px; padding: 0.55rem 0.9rem 0.55rem 0.55rem; justify-self: start; width: fit-content; max-width: 100%; }
.dealer img { height: 42px; width: auto; background: #ffffff; padding: 6px 10px; border-radius: 5px; }
.dealer span { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 1.1rem; color: var(--accent); }

.ba { display: grid; gap: 0.9rem; }
@media (min-width: 760px) { .ba { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ba-item { margin: 0; position: relative; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; max-width: 100%; background: var(--surface); }
.ba-item img { width: 100%; height: 100%; object-fit: cover; }
.ba-tag { position: absolute; top: 0.75rem; left: 0.75rem; z-index: 1; font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; font-size: 1rem; padding: 0.3rem 0.8rem; border-radius: 4px; background: #000; color: #fff; border: 1px solid #fff; }
.ba-tag.ba-after { background: var(--accent); color: #0a0a0a; border-color: var(--accent); }
.ba-cap { margin-top: 0.9rem; color: var(--muted); }
.ba-cap b { color: var(--ink); }

.ba-tall .ba-item { aspect-ratio: 4 / 5; }
@media (min-width: 760px) { .ba-tall { max-width: 820px; } }
