/* ==========================================================================
   DNM Maintenance and Solution — styles.css
   Colour tokens sampled directly from assets/dnmlogo.png:
     Logo red   #DC1414  (roofline + "N")
     Logo black #050708  ("D", "M" and wordmark)
   ========================================================================== */

:root {
  /* Brand (sampled from dnmlogo.png) */
  --primary-red: #dc1414;
  --primary-red-hover: #b30f0f;
  --primary-red-deep: #8f0b0b;
  --primary-red-tint: #fdeceb;
  --dark-accent: #050708;
  --dark-accent-2: #16191d;
  --dark-accent-3: #262a30;

  /* Neutrals */
  --white: #ffffff;
  --surface: #f8fafc;
  --line: #e2e6eb;
  --line-strong: #c9cfd6;
  --text: #1c2025;
  --text-muted: #4a525c;
  --text-on-dark: #e9ecef;
  --text-on-dark-muted: #a9b0b8;

  /* Type */
  --font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-h1: clamp(2.6rem, 1.6rem + 4.2vw, 4.75rem);
  --fs-h1-inner: clamp(2.3rem, 1.6rem + 3vw, 3.6rem);
  --fs-h2: clamp(2rem, 1.5rem + 2vw, 2.9rem);
  --fs-h3: clamp(1.35rem, 1.2rem + 0.5vw, 1.6rem);

  /* Layout */
  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section-y: clamp(4rem, 3rem + 4vw, 6.5rem);
  --header-h: 84px;

  /* Shape & depth */
  --radius-sm: 4px;
  --radius: 8px;
  --shadow-card: 0 1px 2px rgba(5, 7, 8, 0.06), 0 8px 24px -12px rgba(5, 7, 8, 0.18);
  --shadow-lift: 0 2px 4px rgba(5, 7, 8, 0.06), 0 18px 36px -16px rgba(5, 7, 8, 0.28);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--primary-red-hover); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--primary-red-deep); }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.005em;
  color: var(--dark-accent);
  margin: 0 0 1rem;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.12; }
h4 { font-size: 1.2rem; font-weight: 600; }

:focus-visible { outline: 3px solid var(--primary-red); outline-offset: 3px; border-radius: 2px; }

.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;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--dark-accent); color: var(--white); padding: 0.75rem 1rem;
  border-radius: var(--radius-sm); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--white); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 18px; height: 18px; }
.icon--lg { width: 30px; height: 30px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 50px; padding: 0.8rem 1.4rem;
  font-family: var(--font-body); font-size: 1rem; font-weight: 600; line-height: 1.2;
  text-decoration: none; border-radius: var(--radius-sm); border: 2px solid transparent;
  cursor: pointer; transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--primary-red); color: var(--white); }
.btn--primary:hover { background: var(--primary-red-hover); color: var(--white); }
.btn--dark { background: var(--dark-accent); color: var(--white); }
.btn--dark:hover { background: var(--dark-accent-3); color: var(--white); }
.btn--outline { background: transparent; color: var(--dark-accent); border-color: var(--dark-accent); }
.btn--outline:hover { background: var(--dark-accent); color: var(--white); }
.btn--white { background: var(--white); color: var(--primary-red-deep); }
.btn--white:hover { background: var(--dark-accent); color: var(--white); }
.btn--ghost-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.75); }
.btn--ghost-light:hover { background: var(--white); color: var(--dark-accent); border-color: var(--white); }
.btn--sm { min-height: 42px; padding: 0.55rem 1rem; font-size: 0.95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.text-link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-weight: 600; color: var(--primary-red-hover); text-decoration: none;
  border-bottom: 2px solid currentColor; padding-bottom: 1px;
}
.text-link:hover { color: var(--dark-accent); }

/* ---------- Top bar ---------- */
.topbar { background: var(--dark-accent); color: var(--text-on-dark-muted); font-size: 0.875rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 38px; }
.topbar a { color: var(--text-on-dark); text-decoration: none; }
.topbar a:hover { color: var(--white); text-decoration: underline; }
.topbar__group { display: flex; align-items: center; gap: 1.5rem; }
.topbar__item { display: inline-flex; align-items: center; gap: 0.4rem; }
.topbar .icon { color: var(--primary-red); }
@media (max-width: 900px) { .topbar { display: none; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s var(--ease);
}
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(255, 255, 255, 0.9); backdrop-filter: saturate(1.4) blur(10px); } }
.site-header.is-scrolled { box-shadow: 0 6px 24px -14px rgba(5, 7, 8, 0.35); }
.site-header .container { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; flex: none; padding: 6px 0; }
.brand img { height: 70px; width: auto; transition: height 0.25s var(--ease); }
.site-header.is-scrolled .brand img { height: 54px; }

.primary-nav { margin-left: auto; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 0.25rem; }
.nav-list > li { position: relative; display: flex; align-items: center; }
.nav-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.8rem;
  font-weight: 500; font-size: 0.98rem; color: var(--text); text-decoration: none;
  border-radius: var(--radius-sm);
}
.nav-link:hover { color: var(--primary-red-hover); }
.nav-link[aria-current="page"] { color: var(--primary-red-hover); box-shadow: inset 0 -2px 0 var(--primary-red); border-radius: 0; }

.subnav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 44px; margin-left: -0.6rem; padding: 0;
  background: none; border: 0; color: var(--text-muted); cursor: pointer; border-radius: var(--radius-sm);
}
.subnav-toggle .icon { transition: transform 0.2s var(--ease); }
.subnav-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.subnav {
  list-style: none; position: absolute; top: 100%; left: 0; min-width: 300px;
  background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--primary-red);
  border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow-lift);
  padding: 0.5rem; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
}
.subnav a { display: block; padding: 0.55rem 0.75rem; color: var(--text); text-decoration: none; border-radius: var(--radius-sm); font-size: 0.95rem; }
.subnav a:hover { background: var(--surface); color: var(--primary-red-hover); }
.has-subnav:hover .subnav, .has-subnav:focus-within .subnav, .has-subnav.is-open .subnav { opacity: 1; visibility: visible; transform: translateY(0); }

.header-actions { display: flex; align-items: center; gap: 0.75rem; flex: none; }
.header-phone {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-weight: 700; color: var(--dark-accent); text-decoration: none; white-space: nowrap;
}
.header-phone .icon { color: var(--primary-red); }
.header-phone:hover { color: var(--primary-red-hover); }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 48px; height: 48px; padding: 0; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--white); color: var(--dark-accent); cursor: pointer;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1120px) {
  .header-phone span { display: none; }
  .header-phone { width: 44px; height: 44px; justify-content: center; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); }
}
@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .site-header { background: var(--white); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .brand img, .site-header.is-scrolled .brand img { height: 52px; }
  .nav-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .header-actions .btn { display: none; }
  .primary-nav {
    position: fixed; inset: var(--header-h) 0 0 0; margin: 0;
    background: var(--white); overflow-y: auto; padding: 1rem var(--gutter) 6rem;
    opacity: 0; transform: translateY(-12px); visibility: hidden;
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
    border-top: 1px solid var(--line);
  }
  .primary-nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav-link { flex: 1; min-height: 56px; font-size: 1.15rem; padding: 0 0.25rem; }
  .nav-link[aria-current="page"] { box-shadow: inset 3px 0 0 var(--primary-red); padding-left: 0.85rem; }
  .subnav-toggle { width: 56px; height: 56px; margin: 0; }
  .subnav {
    position: static; display: none; width: 100%; min-width: 0;
    opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: 0; border-radius: 0; padding: 0 0 0.75rem 0.5rem;
  }
  .has-subnav:hover .subnav, .has-subnav:focus-within .subnav { display: none; }
  .has-subnav.is-open .subnav { display: block; }
  .nav-mobile-cta { display: grid !important; }
  body.nav-open { overflow: hidden; }
}
.nav-mobile-cta { display: none; gap: 0.75rem; margin-top: 1.5rem; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section--alt { background: var(--surface); }
.section--dark { background: var(--dark-accent); color: var(--text-on-dark); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--tight { padding-block: clamp(3rem, 2rem + 3vw, 4.5rem); }

.section-head { max-width: 760px; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
.section-head p { font-size: 1.125rem; color: var(--text-muted); max-width: 64ch; }
.section--dark .section-head p { color: var(--text-on-dark-muted); }
.section-head--split { max-width: none; display: grid; grid-template-columns: 1.1fr 1fr; gap: 1rem 3rem; align-items: end; }
.section-head--split p { margin: 0 0 0.35rem; }
@media (max-width: 860px) { .section-head--split { grid-template-columns: 1fr; } }

.lead { font-size: 1.2rem; line-height: 1.6; color: var(--text-muted); max-width: 62ch; }

/* ---------- Roofline signature ---------- */
.roofline { width: 100%; height: auto; overflow: visible; }
.roofline path {
  fill: none; stroke: var(--primary-red); stroke-width: 14; stroke-linejoin: miter; stroke-linecap: butt;
  stroke-dasharray: 1; stroke-dashoffset: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .roofline--draw path { stroke-dashoffset: 1; animation: roof-draw 1.5s 0.15s var(--ease) forwards; }
  .roofline--draw path + path { animation-delay: 0.45s; }
  @keyframes roof-draw { to { stroke-dashoffset: 0; } }
}

/* ---------- Home hero ---------- */
.hero { position: relative; padding: clamp(2rem, 1rem + 3vw, 3.5rem) 0 clamp(3rem, 2rem + 3vw, 4.5rem); overflow: hidden; }
.hero__roof { height: clamp(96px, 12vw, 168px); margin-bottom: clamp(-0.5rem, -2vw, -1.75rem); }
.hero__roof path { vector-effect: non-scaling-stroke; stroke-width: clamp(8px, 1vw, 13px); }
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 4vw, 4rem); align-items: start;
  padding-inline: clamp(0rem, 5vw, 4.5rem);
}
.hero h1 { margin-bottom: 1.25rem; max-width: 17ch; }
.hero__sub { font-size: clamp(1.1rem, 1rem + 0.35vw, 1.25rem); color: var(--text-muted); max-width: 54ch; margin-bottom: 1.75rem; }
.hero__areas { margin-top: 1.25rem; font-size: var(--fs-small); color: var(--text-muted); display: flex; align-items: center; gap: 0.45rem; }
.hero__areas .icon { color: var(--primary-red); }

.workorder {
  background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: var(--shadow-lift); overflow: hidden; margin-top: clamp(0rem, 3vw, 2.5rem);
}
.workorder__head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.35rem; background: var(--dark-accent); color: var(--white);
}
.workorder__head h2 { font-size: 1.45rem; color: var(--white); margin: 0; }
.workorder__badge { font-size: 0.8rem; font-weight: 600; background: var(--primary-red); color: var(--white); padding: 0.2rem 0.6rem; border-radius: 99px; white-space: nowrap; }
.steps { list-style: none; counter-reset: step; padding: 0.5rem 1.35rem 0.75rem; }
.steps li { counter-increment: step; position: relative; padding: 0.9rem 0 0.9rem 3rem; border-bottom: 1px dashed var(--line-strong); }
.steps li:last-child { border-bottom: 0; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0.9rem;
  width: 2rem; height: 2rem; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  color: var(--primary-red); border: 2px solid var(--primary-red); border-radius: 50%;
}
.steps strong { display: block; font-size: 1rem; color: var(--dark-accent); }
.steps span { display: block; font-size: 0.93rem; color: var(--text-muted); line-height: 1.5; }
.workorder__foot { padding: 1rem 1.35rem 1.35rem; border-top: 1px solid var(--line); background: var(--surface); }
.workorder__foot p { margin: 0; font-size: 0.93rem; color: var(--text-muted); }
.workorder__foot a { font-weight: 700; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; padding-inline: 0; }
  .hero__roof { margin-bottom: -0.5rem; }
  .workorder { margin-top: 0.5rem; }
}

/* ---------- Trust strip ---------- */
.trust { border-block: 1px solid var(--line); background: var(--white); }
.trust__list { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); }
.trust__item { display: flex; gap: 0.85rem; align-items: flex-start; padding: 1.5rem 1.25rem; border-left: 1px solid var(--line); }
.trust__item:first-child { border-left: 0; padding-left: 0; }
.trust__item .icon { color: var(--primary-red); width: 30px; height: 30px; margin-top: 2px; }
.trust__item strong { display: block; font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; line-height: 1.1; color: var(--dark-accent); }
.trust__item span { font-size: 0.92rem; color: var(--text-muted); }
@media (max-width: 960px) {
  .trust__list { grid-template-columns: repeat(2, 1fr); }
  .trust__item { border-left: 0; padding: 1.25rem 0; }
  .trust__item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .trust__item:nth-child(2n) { padding-left: 1.25rem; border-left: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .trust__list { grid-template-columns: 1fr; }
  .trust__item, .trust__item:nth-child(2n) { padding-left: 0; border-left: 0; }
  .trust__item + .trust__item { border-top: 1px solid var(--line); }
}

/* ---------- Audience rows (home) ---------- */
.audience-rows { list-style: none; border-top: 2px solid var(--dark-accent); }
.audience-row {
  display: grid; grid-template-columns: 56px minmax(0, 0.9fr) minmax(0, 1.4fr) auto;
  gap: 1rem 2rem; align-items: center; padding: 1.6rem 0; border-bottom: 1px solid var(--line-strong);
}
.audience-row .icon { width: 40px; height: 40px; color: var(--primary-red); }
.audience-row h3 { margin: 0; }
.audience-row p { margin: 0; color: var(--text-muted); }
@media (max-width: 860px) {
  .audience-row { grid-template-columns: 44px 1fr; align-items: start; }
  .audience-row .icon { width: 32px; height: 32px; }
  .audience-row p, .audience-row .text-link { grid-column: 2; justify-self: start; }
}

/* ---------- Services grid (home) ---------- */
.service-grid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.service-card {
  position: relative; display: flex; flex-direction: column; height: 100%;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.4rem 1.4rem; box-shadow: var(--shadow-card);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}
.service-card::before {
  content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 4px;
  background: var(--primary-red); border-radius: var(--radius) var(--radius) 0 0;
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.service-card:hover, .service-card:focus-within { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--line-strong); }
.service-card:hover::before, .service-card:focus-within::before { transform: scaleX(1); }
.service-card__icon {
  width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 1.1rem;
  background: var(--primary-red-tint); color: var(--primary-red); border-radius: var(--radius-sm);
}
.service-card h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.service-card h3 a { color: inherit; text-decoration: none; }
.service-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.service-card p { font-size: 0.95rem; color: var(--text-muted); margin: 0; }
.section--alt .service-card { background: var(--white); }
@media (max-width: 1060px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .service-grid { grid-template-columns: 1fr; } }
.section-foot { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; }

/* ---------- Why choose (dark) ---------- */
.why-grid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--dark-accent-3); }
.why-item { padding: 2rem 1.75rem 2rem 0; }
.why-item + .why-item { padding-left: 1.75rem; border-left: 1px solid var(--dark-accent-3); }
.why-item .icon { width: 34px; height: 34px; color: var(--primary-red); margin-bottom: 1.1rem; }
.why-item h3 { font-size: 1.55rem; }
.why-item p { color: var(--text-on-dark-muted); font-size: 0.98rem; margin: 0; }
@media (max-width: 960px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .why-item, .why-item + .why-item { padding: 1.75rem 1.5rem 1.75rem 0; border-left: 0; }
  .why-item:nth-child(2n) { padding-left: 1.5rem; border-left: 1px solid var(--dark-accent-3); }
  .why-item:nth-child(n+3) { border-top: 1px solid var(--dark-accent-3); }
}
@media (max-width: 560px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-item, .why-item + .why-item, .why-item:nth-child(2n) { padding: 1.5rem 0; border-left: 0; }
  .why-item + .why-item { border-top: 1px solid var(--dark-accent-3); }
}
.area-band {
  margin-top: clamp(2.5rem, 4vw, 3.5rem); padding-top: 2rem; border-top: 1px solid var(--dark-accent-3);
  display: grid; grid-template-columns: auto 1fr; gap: 1rem 2.5rem; align-items: center;
}
.area-band h3 { margin: 0; font-size: 1.5rem; }
.area-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.area-list li {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.45rem 0.9rem;
  border: 1px solid var(--dark-accent-3); border-radius: 99px; font-size: 0.95rem; color: var(--text-on-dark);
}
.area-list .icon { color: var(--primary-red); }
@media (max-width: 760px) { .area-band { grid-template-columns: 1fr; } }

/* ---------- Quote banner ---------- */
.quote-banner { background: var(--primary-red); color: var(--white); padding-block: clamp(3rem, 2rem + 3vw, 4.5rem); position: relative; overflow: hidden; }
.quote-banner .container { display: grid; grid-template-columns: 1.4fr auto; gap: 1.5rem 3rem; align-items: center; position: relative; }
.quote-banner h2 { color: var(--white); margin-bottom: 0.6rem; }
.quote-banner p { margin: 0; font-size: 1.15rem; color: #fff; max-width: 56ch; }
.quote-banner__roof { position: absolute; right: -4%; bottom: -18%; width: 46%; opacity: 0.16; pointer-events: none; }
.quote-banner__roof path { stroke: var(--white); }
@media (max-width: 860px) { .quote-banner .container { grid-template-columns: 1fr; } .quote-banner__roof { width: 90%; } }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 2.5rem clamp(2rem, 5vw, 5rem); align-items: start; }
.faq-aside { position: sticky; top: calc(var(--header-h) + 2rem); }
.faq-aside p { color: var(--text-muted); }
.faq-aside .contact-mini { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
@media (max-width: 900px) { .faq-layout { grid-template-columns: 1fr; } .faq-aside { position: static; } }

.accordion { border-top: 1px solid var(--line-strong); }
.accordion__item { border-bottom: 1px solid var(--line-strong); }
.accordion__item h3 { margin: 0; font-family: var(--font-body); font-size: 1.07rem; font-weight: 600; line-height: 1.4; }
.accordion__trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 0; background: none; border: 0; text-align: left; cursor: pointer; color: var(--dark-accent);
}
.accordion__trigger:hover { color: var(--primary-red-hover); }
.accordion__trigger .icon { color: var(--primary-red); transition: transform 0.25s var(--ease); }
.accordion__trigger[aria-expanded="true"] .icon { transform: rotate(45deg); }
.accordion__panel { padding: 0 2.5rem 1.35rem 0; color: var(--text-muted); }
.accordion__panel p:last-child { margin-bottom: 0; }
.js .accordion__panel[hidden] { display: none; }

/* ---------- Inner page hero ---------- */
.page-hero { padding: clamp(1.5rem, 1rem + 2vw, 2.5rem) 0 clamp(2.5rem, 2rem + 2vw, 3.75rem); border-bottom: 1px solid var(--line); background: var(--white); }
.page-hero__roof { width: min(340px, 70%); margin-bottom: -0.4rem; }
.page-hero__roof path { stroke-width: 16; }
.page-hero h1 { font-size: var(--fs-h1-inner); max-width: 20ch; margin-bottom: 1rem; }
.page-hero .lead { margin-bottom: 1.5rem; }
.breadcrumb { margin-bottom: 1.75rem; font-size: 0.9rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; color: var(--text-muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.4rem; color: var(--line-strong); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary-red-hover); }
.breadcrumb [aria-current] { color: var(--dark-accent); font-weight: 600; }

/* ---------- Services page ---------- */
.svc-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.svc-toc { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.svc-toc h2 { font-size: 1.3rem; margin-bottom: 0.75rem; }
.svc-toc ol { list-style: none; border-left: 2px solid var(--line); }
.svc-toc a:not(.btn) { display: block; padding: 0.45rem 0 0.45rem 1rem; margin-left: -2px; border-left: 2px solid transparent; color: var(--text-muted); text-decoration: none; font-size: 0.95rem; line-height: 1.35; }
.svc-toc a:not(.btn):hover { color: var(--dark-accent); }
.svc-toc a.is-active { color: var(--primary-red-hover); border-left-color: var(--primary-red); font-weight: 600; }
.svc-toc .btn { margin-top: 1.5rem; width: 100%; }
@media (max-width: 960px) {
  .svc-layout { grid-template-columns: 1fr; }
  .svc-toc { position: static; }
  .svc-toc ol { display: flex; flex-wrap: wrap; gap: 0.5rem; border: 0; }
  .svc-toc a:not(.btn) { border: 1px solid var(--line-strong); border-radius: 99px; padding: 0.4rem 0.85rem; margin: 0; }
  .svc-toc .btn { display: none; }
}
.svc { padding-block: clamp(2.5rem, 2rem + 2vw, 3.75rem); border-bottom: 1px solid var(--line); }
.svc:first-child { padding-top: 0; }
.svc:last-child { border-bottom: 0; }
.svc__head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.svc__head .service-card__icon { margin: 0; flex: none; }
.svc__head h2 { margin: 0; font-size: clamp(1.9rem, 1.5rem + 1.4vw, 2.5rem); }
.svc__intro { font-size: 1.1rem; color: var(--text-muted); max-width: 68ch; }
.svc__cols { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.5rem 2.5rem; margin-top: 1.75rem; }
.svc__cols h3 { font-size: 1.3rem; margin-bottom: 0.75rem; }
.checklist { list-style: none; display: grid; gap: 0.55rem; }
.checklist li { position: relative; padding-left: 1.85rem; line-height: 1.5; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.2rem; width: 1.15rem; height: 1.15rem;
  background: var(--primary-red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 72% no-repeat;
  border-radius: 3px;
}
.svc__who p { color: var(--text-muted); }
.climate-note {
  margin-top: 1.5rem; padding: 1.15rem 1.35rem; background: var(--surface);
  border-left: 4px solid var(--primary-red); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.climate-note h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.climate-note p { margin: 0; color: var(--text); font-size: 0.98rem; }
.svc__cta { margin-top: 1.5rem; }
@media (max-width: 760px) { .svc__cols { grid-template-columns: 1fr; } }
.code-note { margin-top: 2rem; padding: 1.25rem 1.5rem; border: 1px solid var(--line-strong); border-radius: var(--radius); font-size: 0.95rem; color: var(--text-muted); background: var(--white); }
.code-note strong { color: var(--dark-accent); }

/* ---------- Who we serve page ---------- */
.jump-links { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.jump-links a { display: inline-block; padding: 0.45rem 0.95rem; border: 1px solid var(--line-strong); border-radius: 99px; text-decoration: none; color: var(--text); font-size: 0.95rem; font-weight: 500; }
.jump-links a:hover { border-color: var(--primary-red); color: var(--primary-red-hover); }
.segment { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr); gap: 2rem clamp(2rem, 5vw, 4.5rem); }
.segment__intro .icon { width: 44px; height: 44px; color: var(--primary-red); margin-bottom: 1rem; }
.segment__intro p { color: var(--text-muted); }
.segment__panels { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.section--alt .panel { background: var(--white); }
.section:not(.section--alt) .panel { background: var(--surface); }
.panel h3 { font-size: 1.3rem; }
.panel--fix { border-top: 4px solid var(--primary-red); }
.panel--pain { border-top: 4px solid var(--dark-accent); }
.dash-list { list-style: none; display: grid; gap: 0.6rem; }
.dash-list li { position: relative; padding-left: 1.25rem; line-height: 1.5; color: var(--text-muted); }
.dash-list li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 0.6rem; height: 2px; background: var(--dark-accent); }
.segment .svc-tags { margin-top: 1.25rem; }
@media (max-width: 960px) { .segment { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .segment__panels { grid-template-columns: 1fr; } }
.svc-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.svc-tags a { display: inline-block; font-size: 0.85rem; padding: 0.3rem 0.7rem; background: var(--primary-red-tint); color: var(--primary-red-deep); border-radius: 99px; text-decoration: none; font-weight: 500; }
.svc-tags a:hover { background: var(--primary-red); color: var(--white); }

/* ---------- About page ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2.5rem clamp(2rem, 6vw, 5.5rem); align-items: start; }
.split p { color: var(--text); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.statement {
  background: var(--dark-accent); color: var(--text-on-dark); border-radius: var(--radius);
  padding: clamp(1.75rem, 3vw, 2.5rem); position: relative; overflow: hidden;
}
.statement .roofline { width: 70%; margin-bottom: 1.25rem; }
.statement .roofline path { stroke-width: 18; }
.statement p.statement__quote { font-family: var(--font-display); font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); font-weight: 600; line-height: 1.15; color: var(--white); margin-bottom: 1rem; }
.statement p { color: var(--text-on-dark-muted); }
.statement p:last-child { margin: 0; }
.values { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.25rem; }
.value { padding: 1.5rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.value h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.value p { margin: 0; color: var(--text-muted); font-size: 0.97rem; }
.standards { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line-strong); }
.standards li { display: flex; gap: 1rem; padding: 1.4rem 1.5rem 1.4rem 0; border-bottom: 1px solid var(--line-strong); }
.standards li:nth-child(2n) { padding-left: 1.5rem; border-left: 1px solid var(--line-strong); }
.standards .icon { color: var(--primary-red); width: 28px; height: 28px; margin-top: 2px; }
.standards h3 { font-size: 1.25rem; margin-bottom: 0.3rem; }
.standards p { margin: 0; color: var(--text-muted); font-size: 0.97rem; }
@media (max-width: 760px) { .standards { grid-template-columns: 1fr; } .standards li:nth-child(2n) { padding-left: 0; border-left: 0; } }

/* ---------- Contact page ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2.5rem clamp(2rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 960px) { .contact-layout { grid-template-columns: 1fr; } }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-card); padding: clamp(1.5rem, 3vw, 2.5rem); }
.form-card h2 { margin-bottom: 0.5rem; }
.form-card > p { color: var(--text-muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; margin-top: 1.5rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.95rem; color: var(--dark-accent); }
.field .req { color: var(--primary-red-hover); }
.field .hint { font-size: 0.85rem; color: var(--text-muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--white);
  font-size: 1rem; transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.field select {
  appearance: none; padding-right: 2.5rem;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23050708' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 0.8rem center / 18px no-repeat;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: #9aa3ad; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--dark-accent); box-shadow: 0 0 0 3px rgba(220, 20, 20, 0.25); }
.field [aria-invalid="true"] { border-color: var(--primary-red); background: #fffafa; }
.field-error { display: none; font-size: 0.875rem; font-weight: 500; color: var(--primary-red-deep); }
.field-error.is-visible { display: flex; gap: 0.35rem; align-items: center; }
.field-error .icon { width: 16px; height: 16px; }
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; margin-top: 0.5rem; }
.form-actions p { margin: 0; font-size: 0.88rem; color: var(--text-muted); max-width: 42ch; }
.form-status { grid-column: 1 / -1; display: none; padding: 1rem 1.15rem; border-radius: var(--radius-sm); font-weight: 500; }
.form-status.is-visible { display: block; }
.form-status--success { background: #ecf8f0; border: 1px solid #9fd5b1; color: #145a2c; }
.form-status--error { background: var(--primary-red-tint); border: 1px solid #f2a7a7; color: var(--primary-red-deep); }
.btn[aria-busy="true"] { opacity: 0.75; cursor: progress; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }

.contact-aside { display: grid; gap: 1.25rem; }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.info-card h2, .info-card h3 { font-size: 1.4rem; margin-bottom: 1rem; }
.info-list { list-style: none; display: grid; gap: 1rem; }
.info-list li { display: flex; gap: 0.85rem; align-items: flex-start; }
.info-list .icon { color: var(--primary-red); margin-top: 2px; }
.info-list strong { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.info-list a, .info-list address { color: var(--dark-accent); font-style: normal; font-weight: 600; text-decoration: none; word-break: break-word; }
.info-list a:hover { color: var(--primary-red-hover); text-decoration: underline; }
.hours { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.hours th, .hours td { padding: 0.5rem 0; border-bottom: 1px solid var(--line); text-align: left; }
.hours th { font-weight: 500; color: var(--text-muted); }
.hours td { text-align: right; font-weight: 600; color: var(--dark-accent); }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.info-card--dark { background: var(--dark-accent); border-color: var(--dark-accent); color: var(--text-on-dark); }
.info-card--dark h2, .info-card--dark h3 { color: var(--white); }
.info-card--dark p { color: var(--text-on-dark-muted); }
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); height: clamp(320px, 40vw, 480px); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }
.map-caption { margin-top: 0.85rem; font-size: 0.95rem; color: var(--text-muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark-accent); color: var(--text-on-dark-muted); font-size: 0.97rem; }
.footer-main { display: grid; grid-template-columns: 1.3fr 1fr 0.8fr 1.1fr; gap: 2.5rem; padding-block: clamp(3.5rem, 3rem + 2vw, 5rem) 3rem; }
.footer-logo { display: inline-block; background: var(--white); border-radius: var(--radius); padding: 0.75rem 1rem; margin-bottom: 1.25rem; }
.footer-logo img { height: 72px; width: auto; }
.site-footer h2 { font-size: 1.35rem; color: var(--white); margin-bottom: 1rem; }
.site-footer ul { list-style: none; display: grid; gap: 0.55rem; }
.site-footer a { color: var(--text-on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-nap { font-style: normal; display: grid; gap: 0.7rem; }
.footer-nap div { display: flex; gap: 0.6rem; align-items: flex-start; }
.footer-nap .icon { color: var(--primary-red); margin-top: 3px; }
.footer-tagline { color: var(--text-on-dark); max-width: 34ch; }
.footer-bottom { border-top: 1px solid var(--dark-accent-3); padding-block: 1.4rem; font-size: 0.88rem; }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 960px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-main { grid-template-columns: 1fr; } }

/* ---------- Mobile call bar ---------- */
.mobile-cta { display: none; }
@media (max-width: 760px) {
  .mobile-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem;
    padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom));
    background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -16px rgba(5, 7, 8, 0.4);
  }
  .mobile-cta .btn { min-height: 48px; padding-inline: 0.75rem; }
  body { padding-bottom: 76px; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- Print ---------- */
@media print {
  .topbar, .site-header, .mobile-cta, .quote-banner, .site-footer, .nav-toggle { display: none !important; }
  .js .accordion__panel[hidden] { display: block; }
  body { padding: 0; }
}
