/* Only Dan's HVAC — single page site */

:root {
  --navy: #0E1C38;
  --navy-2: #16294D;
  --blue: #1A4FA3;
  --blue-light: #8DB4F0;
  --orange: #E8620F;
  --orange-dark: #C24F08;
  --copper: #B8733A;
  --copper-light: #D9965C;
  --frost: #F2F6FA;
  --slate: #3A4656;
  --line: #D5DEE9;
  --white: #FFFFFF;

  --font-display: "Saira", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: 0.889rem;
  --step-0: 1.125rem;
  --step-1: 1.333rem;
  --step-2: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
  --step-3: clamp(2.1rem, 1.4rem + 3vw, 3.6rem);

  --gutter: 20px;
  --pipe-gutter: 40px;     /* room on the left for the copper line */
  --container: 1200px;
  --radius-sm: 4px;
  --radius-lg: 10px;
  --section-y: clamp(4rem, 3rem + 4vw, 7rem);
  --header-h: 72px;

  color-scheme: light;
}

@media (min-width: 900px) {
  :root { --gutter: 32px; --pipe-gutter: 80px; --header-h: 84px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--slate);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 0.18em; }
a:hover { color: var(--navy); }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.1;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: var(--step-3); font-weight: 760; font-stretch: 112%; letter-spacing: -0.01em; }
h2 { font-size: var(--step-2); font-weight: 720; font-stretch: 108%; }
h3 { font-size: var(--step-1); font-weight: 680; font-stretch: 104%; }
p { margin: 0 0 1em; max-width: 65ch; }

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

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: var(--white); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.section-title { margin-bottom: 0.5em; }
.section-intro { font-size: var(--step-1); line-height: 1.5; margin-bottom: 2.5rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0.7em 1.4em;
  font-family: var(--font-display); font-weight: 650; font-size: 1.05rem; font-stretch: 105%;
  text-decoration: none; border-radius: var(--radius-sm); border: 2px solid transparent;
  cursor: pointer; touch-action: manipulation;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.btn-primary { background: var(--orange); color: var(--navy); }
.btn-primary:hover { background: #F37A2E; color: var(--navy); }
.btn-ghost { border-color: rgba(255,255,255,0.55); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.08); color: var(--white); }
.btn-secondary { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-secondary:hover { background: var(--blue); color: var(--white); }
.btn-call { background: var(--orange); color: var(--navy); padding-inline: 1em; }
.btn-call:hover { background: #F37A2E; color: var(--navy); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 1rem;
  min-height: var(--header-h);
  padding-left: var(--gutter);
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; margin-right: auto; }
.brand img { width: 48px; height: 48px; }
.brand-name {
  font-family: var(--font-display); font-weight: 760; font-stretch: 112%;
  color: var(--navy); font-size: 1.2rem; line-height: 1; font-style: italic;
}
.brand-name span { color: var(--blue); }

.site-nav { position: relative; }
.nav-toggle {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 44px; padding: 0 0.9rem;
  font: inherit; font-weight: 700; color: var(--navy);
  background: none; border: 2px solid var(--line); border-radius: var(--radius-sm); cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; position: relative;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.nav-list {
  list-style: none; margin: 0; padding: 0.5rem;
  position: absolute; right: 0; top: calc(100% + 10px);
  min-width: 220px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px rgba(14, 28, 56, 0.16);
  display: none;
}
.nav-list.is-open { display: block; }
.nav-list a {
  display: block; padding: 0.7rem 0.9rem; border-radius: var(--radius-sm);
  color: var(--navy); text-decoration: none; font-weight: 700;
}
.nav-list a:hover { background: var(--frost); }

.header-call span { display: none; }
@media (min-width: 560px) { .header-call span { display: inline; } }

@media (min-width: 1000px) {
  .brand img { width: 56px; height: 56px; }
  .nav-toggle { display: none; }
  .nav-list {
    display: flex; position: static; gap: 0.25rem; padding: 0;
    background: none; border: 0; box-shadow: none; min-width: 0;
  }
  .nav-list a { padding: 0.5rem 0.75rem; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--navy);
  color: #D7E1EE;
  overflow: hidden;
}
.hero-inner {
  display: grid; gap: 2.5rem;
  padding-top: clamp(3rem, 2rem + 4vw, 6rem);
}
.hero h1 { color: var(--white); max-width: 14ch; }
.hero-lede { font-size: var(--step-1); line-height: 1.5; max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero-media {
  margin: 0; height: clamp(280px, 60vw, 420px);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden;
}

.parallax { height: 100%; overflow: hidden; position: relative; }
.parallax img {
  width: 100%; height: 125%; object-fit: cover;
  position: absolute; top: -12.5%; left: 0;
  will-change: transform;
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr; align-items: end;
    padding-top: 5rem;
  }
  .hero-copy { padding-bottom: 5rem; }
  .hero-media { height: 560px; }
}

/* ---------- Copper pipe ---------- */
.pipe-wrap { position: relative; }
.pipe {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 2; overflow: visible;
}
.pipe path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.pipe-track { stroke: var(--copper); stroke-opacity: 0.22; stroke-width: 4; }
.pipe-run { stroke: var(--copper); stroke-width: 4; }
.pipe-fitting { fill: var(--white); stroke: var(--copper); stroke-width: 3; }
.pipe-branch, .pipe-branch-track { display: none; }
@media (min-width: 900px) {
  .pipe-track, .pipe-run { stroke-width: 5; }
  .pipe-branch, .pipe-branch-track { display: inline; }
}

/* ---------- Trust strip ---------- */
.trust { background: var(--navy-2); color: #D7E1EE; }
.trust-list {
  list-style: none; margin: 0; padding: 1.5rem 0;
  display: grid; gap: 1rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.trust-list li { display: flex; align-items: center; gap: 0.75rem; font-size: 1rem; }
.trust-list strong { color: var(--white); }
.trust-list .icon { color: var(--blue-light); width: 1.5em; height: 1.5em; }
.trust-list .icon-star { color: #F5B83D; fill: #F5B83D; }
.trust-list a { color: var(--blue-light); }
.trust-list a:hover { color: var(--white); }

/* ---------- Home / business split ---------- */
.split { background: var(--frost); padding: var(--section-y) 0; }
.split-grid { display: grid; gap: 2rem; }
@media (min-width: 900px) { .split-grid { grid-template-columns: 1fr 1fr; margin-top: 4.5rem; } }

.path-panel {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border-top: 5px solid var(--orange);
  display: flex; flex-direction: column;
}
.path-panel-business { border-top-color: var(--blue); }
.path-panel img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center 20%; }
.path-panel:first-child img { object-position: 60% 8%; }
.path-body { padding: 1.75rem; display: flex; flex-direction: column; flex: 1; }
.path-body .btn { align-self: flex-start; margin-top: auto; }

.ticks { list-style: none; padding: 0; margin: 0 0 1.75rem; }
.ticks li { position: relative; padding-left: 1.75rem; margin-bottom: 0.5rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.45em;
  width: 0.7rem; height: 0.4rem;
  border-left: 3px solid var(--blue); border-bottom: 3px solid var(--blue);
  transform: rotate(-45deg);
}
.ticks-light li::before { border-color: var(--blue-light); }

/* ---------- Services ---------- */
.services { padding: var(--section-y) 0; }
.services-grid { display: grid; gap: 2.5rem; margin-top: 2rem; }
@media (min-width: 900px) { .services-grid { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }
.service-group h3 {
  padding-bottom: 0.6rem; margin-bottom: 1.2rem;
  border-bottom: 3px solid var(--navy);
}
.service-group dl { margin: 0; }
.service-group dt { font-weight: 700; color: var(--navy); }
.service-group dd { margin: 0.15rem 0 1.2rem; font-size: 1rem; }
.brands-note {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  font-weight: 700; color: var(--navy); max-width: none;
}

/* ---------- About ---------- */
.about { background: var(--navy); color: #D7E1EE; padding: var(--section-y) 0; }
.about h2 { color: var(--white); }
.about-inner { display: grid; gap: 2.5rem; align-items: center; }
.about-media { margin: 0; border-radius: var(--radius-lg); overflow: hidden; }
.about-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.about-copy p { font-size: var(--step-0); }
@media (min-width: 900px) {
  .about-inner { grid-template-columns: 0.9fr 1.1fr; gap: 4rem; }
  .about-media img { aspect-ratio: 4 / 5; }
}

/* ---------- Process ---------- */
.process { padding: var(--section-y) 0; }
.steps {
  list-style: none; margin: 2rem 0 0; padding: 0;
  display: grid; gap: 2rem;
  counter-reset: step;
}
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; position: relative; padding-top: 3.5rem; }
.steps li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 2.5rem; height: 2.5rem; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 760; font-size: 1.2rem;
  color: var(--white); background: var(--blue); border-radius: 50%;
}
.steps h3 { font-size: 1.2rem; }
.steps p { font-size: 1rem; }

/* ---------- Work ---------- */
.work { background: var(--frost); padding-bottom: var(--section-y); }
.work-band {
  position: relative; height: clamp(320px, 50vw, 520px);
  display: flex; align-items: flex-end;
  color: var(--white);
}
.work-band .parallax { position: absolute; inset: 0; }
.work-band::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(14, 28, 56, 0.9), rgba(14, 28, 56, 0.15) 60%);
}
.work-band-copy { position: relative; z-index: 1; padding-bottom: 2.5rem; }
.work-band-copy h2 { color: var(--white); margin-bottom: 0.25em; }
.work-band-copy p { font-size: var(--step-1); margin: 0; }

.gallery {
  list-style: none; margin: 3rem 0 0; padding: 0;
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}
.gallery figure { margin: 0; background: var(--white); border-radius: var(--radius-lg); overflow: hidden; height: 100%; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { padding: 0.9rem 1.1rem 1.1rem; font-size: 1rem; color: var(--navy); font-weight: 700; }

/* ---------- Reviews ---------- */
.reviews { padding: var(--section-y) 0; text-align: center; }
.reviews .section-title { margin-inline: auto; }
.rating { display: flex; justify-content: center; align-items: center; gap: 0.6rem; margin: 0 auto 2.5rem; font-weight: 700; color: var(--navy); }
.stars { color: #E9A21F; font-size: 1.4rem; letter-spacing: 0.1em; }
.review-grid { display: grid; gap: 1.5rem; text-align: left; }
@media (min-width: 900px) { .review-grid { grid-template-columns: 1.2fr 1.2fr 0.8fr; align-items: start; } }
.review {
  margin: 0; padding: 1.75rem;
  background: var(--frost); border-left: 4px solid var(--copper); border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.review p { font-size: 1.05rem; color: var(--navy); }
.review footer { font-size: 0.95rem; font-weight: 700; color: var(--slate); }
.reviews-link { margin: 2.5rem auto 0; max-width: none; }

/* ---------- Area ---------- */
.area { background: var(--navy); color: #D7E1EE; padding: var(--section-y) 0; }
.area h2 { color: var(--white); }
.area-inner { display: grid; gap: 2rem; }
.area-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  align-content: start;
}
.area-list li {
  padding: 0.45rem 0.9rem; border: 1px solid rgba(141, 180, 240, 0.4); border-radius: 999px;
  font-size: 1rem; color: var(--white);
}
@media (min-width: 900px) { .area-inner { grid-template-columns: 1fr 1fr; gap: 4rem; } }

/* ---------- FAQ ---------- */
.faq { padding: var(--section-y) 0; }
.faq-inner { display: grid; gap: 2rem; }
@media (min-width: 900px) { .faq-inner { grid-template-columns: 0.8fr 1.2fr; gap: 4rem; } }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  padding: 1.1rem 0; min-height: 48px;
  font-family: var(--font-display); font-weight: 650; font-size: 1.15rem; color: var(--navy);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex: none; width: 0.65rem; height: 0.65rem;
  border-right: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 180ms ease;
}
.faq-list details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq-list details p { padding-bottom: 1rem; }

/* ---------- Quote ---------- */
.quote { background: var(--frost); padding: var(--section-y) 0; }
.quote-inner { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .quote-inner { grid-template-columns: 0.8fr 1.2fr; gap: 4rem; align-items: start; } }
.contact-list { list-style: none; margin: 2rem 0 0; padding: 0; }
.contact-list li { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; font-weight: 700; color: var(--navy); }
.contact-list .icon { color: var(--blue); }
.contact-list a { color: var(--navy); }

.quote-form {
  background: var(--white); border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 1rem + 2vw, 2.5rem);
  display: grid; gap: 1.1rem 1.25rem;
  border-top: 5px solid var(--orange);
}
@media (min-width: 640px) { .quote-form { grid-template-columns: 1fr 1fr; } .field-full { grid-column: 1 / -1; } }

.field { margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 700; color: var(--navy); margin-bottom: 0.35rem; font-size: 1rem; padding: 0; }
.req { color: var(--orange-dark); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 0.65rem 0.8rem;
  font: inherit; font-size: 1rem; color: var(--navy);
  background: var(--white); border: 2px solid #B9C6D6; border-radius: var(--radius-sm);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: 3px solid rgba(26, 79, 163, 0.25); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: #C0262D; }
.field-error { color: #B3232A; font-size: 0.95rem; margin: 0.3rem 0 0; min-height: 0; }
.field-error:empty { display: none; }

.choice-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.choice {
  display: inline-flex !important; align-items: center; gap: 0.5rem;
  min-height: 48px; padding: 0 1.1rem; margin: 0 !important;
  border: 2px solid #B9C6D6; border-radius: var(--radius-sm); cursor: pointer;
}
.choice input { width: 1.1rem; height: 1.1rem; accent-color: var(--blue); margin: 0; }
.choice:has(input:checked) { border-color: var(--blue); background: #EAF1FC; }

.form-note { font-size: 0.95rem; margin: 0; }
.btn-submit { width: 100%; font-size: 1.15rem; min-height: 54px; }
.btn-submit[disabled] { opacity: 0.6; cursor: progress; }
@media (min-width: 640px) { .btn-submit { width: auto; } }

.form-error-summary {
  grid-column: 1 / -1;
  background: #FDECEC; border-left: 4px solid #C0262D; padding: 1rem 1.25rem; border-radius: var(--radius-sm);
  color: #7A1418;
}
.form-error-summary ul { margin: 0.4rem 0 0; padding-left: 1.2rem; }
.form-error-summary a { color: #7A1418; }
.form-status:empty { display: none; }
.form-status { padding: 1rem 1.25rem; border-radius: var(--radius-sm); font-weight: 700; }
.form-status.is-success { background: #E7F5EC; color: #135C2E; border-left: 4px solid #1E8A47; }
.form-status.is-error { background: #FDECEC; color: #7A1418; border-left: 4px solid #C0262D; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #C3D0E0; padding: 3.5rem 0 1.5rem; font-size: 1rem; }
.site-footer a { color: var(--white); }
.footer-inner { display: grid; gap: 2rem; }
.footer-brand img { background: var(--white); border-radius: 50%; padding: 4px; }
.footer-details { display: grid; gap: 1.1rem 2rem; margin: 0; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.footer-details dt { font-size: 0.9rem; color: var(--blue-light); }
.footer-details dd { margin: 0.1rem 0 0; color: var(--white); }
@media (min-width: 900px) { .footer-inner { grid-template-columns: auto 1fr; gap: 4rem; align-items: start; } }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,0.12);
}
.footer-base p { margin: 0; }
