/* B&H Plumbing and Heating LLC — styles
   Palette: spruce (Vermont woods), brass (fittings / pilot flame), snow & frost. */

:root {
  --spruce: #17352B;
  --spruce-deep: #0F251E;
  --brass: #F2A93B;
  --brass-deep: #C97F12;
  --snow: #F6F8F7;
  --frost: #E4ECE9;
  --ink: #12201B;
  --slate: #43524C;
  --line: #C9D6D1;
  --error: #B42318;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section: clamp(3.5rem, 8vw, 6.5rem);
  color-scheme: light;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  font-stretch: 100%;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

h1, h2, h3 {
  margin: 0 0 0.6em;
  font-stretch: 75%;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h2 { font-size: clamp(2rem, 4.6vw, 3.25rem); }
h3 { font-size: 1.5rem; line-height: 1.15; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--brass); color: var(--ink); padding: 0.75rem 1rem; font-weight: 700;
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0.75rem 1.4rem;
  font: inherit; font-weight: 700; text-decoration: none;
  border: 2px solid transparent; border-radius: 4px; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--brass { background: var(--brass); color: var(--ink); }
.btn--brass:hover { background: #FFBE5C; }
.btn--ghost { border-color: rgba(246, 248, 247, .5); color: var(--snow); }
.btn--ghost:hover { border-color: var(--snow); }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--spruce-deep); color: var(--snow);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 4rem; }
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; margin-right: auto; }
.brand__mark { width: 3rem; height: 2.5rem; flex: none; overflow: visible; color: var(--snow); }
.brand__name { font-stretch: 75%; font-weight: 800; font-size: 1.35rem; line-height: 1; }
.brand__name span { font-weight: 500; }
.site-nav ul { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; font-size: 0.95rem; opacity: .85; }
.site-nav a:hover { opacity: 1; text-decoration: underline; }
.header-call {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 800; font-stretch: 85%; font-size: 1.1rem; color: var(--brass); text-decoration: none;
  white-space: nowrap;
}
.header-call svg { width: 1.1rem; height: 1.1rem; }

@media (max-width: 860px) {
  .site-nav { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--spruce); color: var(--snow);
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(5rem, 10vw, 7.5rem);
  overflow: hidden;
}
.hero__inner { position: relative; z-index: 1; }
.hero h1 {
  max-width: 20ch;
  font-size: clamp(2.1rem, 5.4vw, 3.9rem);
  margin-bottom: 0.5em;
}
.hero__lede { max-width: 54ch; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #D3DFDA; }

.hero__phone {
  display: inline-block; margin: 0.75rem 0 1.75rem;
  text-decoration: none; color: var(--brass);
}
.hero__phone-label {
  display: block; font-size: 1rem; font-weight: 600; color: var(--snow); opacity: .8;
}
.hero__phone-number {
  display: block;
  font-size: clamp(2.4rem, 12.5vw, 9.5rem);
  white-space: nowrap;
  font-weight: 800; font-stretch: 62%;
  line-height: .9; letter-spacing: -0.015em;
  font-variant-numeric: lining-nums tabular-nums;
}
.hero__phone:hover .hero__phone-number { color: #FFBE5C; }

.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2rem; }
.hero__facts {
  display: flex; flex-wrap: wrap; gap: .5rem 1.75rem;
  list-style: none; margin: 0; padding: 0; font-size: .95rem; color: #D3DFDA;
}
.hero__facts li { display: flex; align-items: center; gap: .5rem; }
.hero__facts li::before { content: ""; width: .5rem; height: .5rem; background: var(--brass); flex: none; }

.hero__pipe { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: clamp(50px, 8vw, 110px); opacity: .9; }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; scroll-margin-top: 4rem; }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--slate); font-size: 1.125rem; }

/* Services */
.services__grid {
  display: grid; gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}
.service { border-top: 6px solid var(--spruce); padding-top: 1.25rem; }
.service__img {
  width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover;
  margin-bottom: 1.25rem; background: var(--frost);
}
.service p { color: var(--slate); }
.service ul { list-style: none; margin: 0; padding: 0; }
.service li {
  position: relative; padding: .55rem 0 .55rem 1.35rem;
  border-bottom: 1px solid var(--line);
}
.service li::before {
  content: ""; position: absolute; left: 0; top: 1.05rem;
  width: .55rem; height: .55rem; background: var(--brass);
}
.services__note { margin-top: 2.5rem; color: var(--slate); max-width: 60ch; }

/* About */
.about { background: var(--frost); }
.about__inner { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; }
@media (min-width: 900px) { .about__inner { grid-template-columns: 1.6fr 1fr; align-items: start; } }
.about__main { display: grid; gap: 2rem; }
@media (min-width: 1100px) { .about__points { grid-template-columns: 1fr 1fr; } }
.about__photo { margin: 0; }
.about__img {
  width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover;
  background: #CFDCD7; border-bottom: 6px solid var(--brass);
}
@media (max-width: 899px) { .about__img { aspect-ratio: 3 / 2; } }
.about__copy p { max-width: 58ch; font-size: 1.125rem; }
.about__points { margin: 0; display: grid; gap: 1.5rem; }
.about__points div { border-left: 4px solid var(--brass); padding-left: 1.1rem; }
.about__points dt { font-weight: 800; font-stretch: 80%; font-size: 1.25rem; margin-bottom: .2rem; }
.about__points dd { margin: 0; color: var(--slate); }

/* Process */
.process__steps {
  list-style: none; margin: 0; padding: 0; counter-reset: step;
  display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}
.process__steps li { counter-increment: step; }
.process__steps li::before {
  content: counter(step);
  display: block; font-size: 4.5rem; font-weight: 800; font-stretch: 62%;
  line-height: 1; color: var(--brass-deep); margin-bottom: .5rem;
}
.process__steps p { color: var(--slate); max-width: 40ch; }

/* Service area */
.area { background: var(--spruce); color: var(--snow); }
.area p { color: #D3DFDA; max-width: 50ch; }
.area a { color: var(--brass); }
.area__inner { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .area__inner { grid-template-columns: 1fr 1.2fr; align-items: start; } }
.area__img {
  width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover;
  margin-top: 1.5rem; background: var(--spruce-deep);
}
.area__list {
  list-style: none; margin: 0; padding: 0;
  columns: 2 10rem; column-gap: 2rem;
}
.area__list li {
  break-inside: avoid; padding: .45rem 0;
  border-bottom: 1px solid rgba(246, 248, 247, .18);
  font-weight: 600;
}

/* FAQ */
.faq__inner { display: grid; gap: 2rem; }
@media (min-width: 900px) { .faq__inner { grid-template-columns: 1fr 2fr; } }
.faq__list { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 0; font-weight: 700; font-size: 1.125rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; font-size: 1.5rem; line-height: 1; color: var(--brass-deep);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--slate); max-width: 62ch; padding-bottom: .5rem; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* Contact */
.contact { background: var(--frost); }
.contact__inner { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 900px) { .contact__inner { grid-template-columns: 1fr 1.35fr; align-items: start; } }
.contact__intro p { color: var(--slate); max-width: 44ch; }
.contact__phone {
  display: inline-block; margin: .5rem 0 1.5rem;
  font-size: clamp(2.5rem, 6vw, 3.75rem); font-weight: 800; font-stretch: 62%;
  line-height: 1; color: var(--spruce); text-decoration: none;
}
.contact__phone:hover { color: var(--brass-deep); }
.contact__nap { font-style: normal; line-height: 1.7; }

.contact-form {
  background: #fff; padding: clamp(1.25rem, 3vw, 2.25rem);
  border-top: 6px solid var(--brass);
}
.field-row { display: grid; gap: 0 1.25rem; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { margin: 0 0 1.25rem; min-width: 0; }
.field label, .field legend { display: block; font-weight: 700; font-size: .95rem; margin-bottom: .35rem; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: .7rem .8rem; background: #fff;
  border: 1.5px solid #8EA29A; border-radius: 4px;
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--brass); outline-offset: 0; border-color: var(--spruce); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field__hint { font-size: .875rem; color: var(--slate); margin: .35rem 0 0; }
.field__error { font-size: .875rem; color: var(--error); font-weight: 600; margin: .35rem 0 0; }
.field--choices { border: 0; padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.choices label {
  display: inline-flex; align-items: center; gap: .45rem; margin: 0;
  padding: .55rem .85rem; border: 1.5px solid var(--line); border-radius: 4px;
  font-weight: 500; cursor: pointer;
}
.choices label:has(input:checked) { border-color: var(--spruce); background: var(--frost); }
.choices input { accent-color: var(--spruce); margin: 0; }
.turnstile { min-height: 65px; margin: 0 0 1rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 1rem 0 0; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-success { color: #1B6B3A; }
.form-status.is-error { color: var(--error); }
.form-fineprint { font-size: .85rem; color: var(--slate); margin: .75rem 0 0; }
.contact-form button[disabled] { opacity: .65; cursor: progress; }

/* Footer */
.site-footer { background: var(--spruce-deep); color: #C4D2CC; padding: 3rem 0 2rem; font-size: .95rem; }
.site-footer a { color: var(--snow); }
.site-footer__inner { display: grid; gap: 2rem; }
@media (min-width: 760px) { .site-footer__inner { grid-template-columns: 2fr 1fr; } }
.site-footer__name { font-weight: 800; font-stretch: 75%; font-size: 1.35rem; color: var(--snow); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.site-footer__copy { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 1.5rem; margin: 0; font-size: .85rem; }

/* Mobile call bar */
.callbar { display: none; }
@media (max-width: 700px) {
  .header-call span { display: none; }
  .header-call { width: 2.75rem; height: 2.75rem; justify-content: center; border: 1.5px solid var(--brass); border-radius: 4px; }
  .callbar {
    display: grid; grid-template-columns: 1.4fr 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--spruce-deep);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, .25);
  }
  .callbar a {
    display: flex; align-items: center; justify-content: center; min-height: 3.5rem;
    font-weight: 800; text-decoration: none;
  }
  .callbar__call { background: var(--brass); color: var(--ink); }
  .callbar__quote { color: var(--snow); }
  body { padding-bottom: 3.5rem; }
}

@media print {
  .site-header, .callbar, .hero__pipe, .contact-form { display: none; }
  .hero, .area { background: none; color: #000; }
}
