/* JT Plumbing Heating and Air: local styles. System fonts, no frameworks. */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

:root {
  --paper: #faf7f1;
  --white: #ffffff;
  --ink: #202b34;
  --muted: #4c5d69;
  --line: #e1d8c6;
  --line-soft: #e8e4d8;
  --navy: #0f3a5d;
  --navy-deep: #0b2a44;
  --navy-ink: #081f33;
  --copper: #a86414;
  --copper-deep: #7c4a10;
  --copper-soft: #f4e7d2;
  --tint: #f2ebdd;
  --mist: #e9eff4;
  --radius-img: 18px;
  --radius-card: 14px;
  --focus: #7c4a10;
  --focus-light: #f6c87a;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  overflow-x: clip;
}

img { max-width: 100%; height: auto; }

a { color: var(--navy); }
a:hover { color: var(--copper-deep); }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--navy-ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; color: #fff; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section { padding-top: clamp(64px, 8vw, 120px); padding-bottom: clamp(64px, 8vw, 120px); }
section[id] { scroll-margin-top: 84px; }
.section-quiet { background: var(--paper); }
.section-white { background: var(--white); }
.section-tint { background: var(--tint); }
.section-mist { background: var(--mist); }
.section-navy { background: var(--navy-deep); color: #f3f6f9; }
.section-navy .section-lede { color: #d7e1ea; }

h1, .h1, h2.section-title {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--navy-ink);
  text-wrap: balance;
}
.section-navy h2.section-title { color: #ffffff; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--copper-deep);
  margin-bottom: 16px;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: var(--copper);
  flex: none;
}
.section-navy .eyebrow { color: var(--copper-soft); }
.section-navy .eyebrow::before { background: var(--focus-light); }

.section-lede {
  max-width: 62ch;
  color: var(--muted);
  margin-top: 16px;
}
.section-head { margin-bottom: 40px; }
.section-head.center { text-align: left; }

/* Buttons: solid, readable pairs only. */
a.btn, button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.25;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}
a.btn-primary, button.btn-primary {
  background: var(--navy);
  border-color: var(--navy);
  color: #ffffff;
}
a.btn-primary:hover, button.btn-primary:hover {
  background: var(--navy-ink);
  border-color: var(--navy-ink);
  color: #ffffff;
}
a.btn-secondary, button.btn-secondary {
  background: var(--white);
  border-color: var(--navy);
  color: var(--navy-ink);
}
a.btn-secondary:hover, button.btn-secondary:hover {
  background: var(--mist);
  border-color: var(--navy-ink);
  color: var(--navy-ink);
}
a.btn-light, button.btn-light {
  background: #faf3e6;
  border-color: #faf3e6;
  color: var(--navy-ink);
}
a.btn-light:hover, button.btn-light:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--navy-ink);
}
.section-navy a.btn-light:focus-visible { outline-color: var(--focus-light); }

/* Header: one tidy row on desktop, CSS-only toggle on mobile. */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line-soft);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy-ink);
  margin-right: auto;
  min-width: 0;
  flex: 1 1 auto;
}
.brand:hover { color: var(--navy-ink); }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.brand-text {
  font-weight: 800;
  font-size: 1.02rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand-sub {
  display: block;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--copper-deep);
}
.nav-check {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.nav-button { display: none; }
.site-nav ul {
  display: flex;
  flex-wrap: nowrap;
  gap: 22px;
  list-style: none;
  padding: 0;
  white-space: nowrap;
}
.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.96rem;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--navy); border-bottom-color: var(--copper); }
.header-cta { flex: none; }
.header-cta .btn { padding-left: 18px; padding-right: 18px; }

/* Hero: text plus one strong photo, never text over the photo. */
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 56px;
  align-items: center;
}
.hero-copy p.proof { margin-top: 20px; color: var(--muted); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  list-style: none;
  padding-left: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy-ink);
}
.hero-meta li { display: flex; align-items: center; gap: 8px; }
.hero-meta li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--copper);
  flex: none;
}
figure.photo { margin: 0; }
figure.photo img {
  display: block;
  width: 100%;
  border-radius: var(--radius-img);
  object-fit: cover;
}
.hero-photo img { aspect-ratio: 4 / 3; }
figcaption {
  margin-top: 12px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted);
}
.section-navy figcaption { color: #c9d5e1; }

/* Stats band. */
.stats { background: var(--navy); color: #eef3f8; }
.stats-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  list-style: none;
  padding: 34px 0;
  margin: 0;
}
.stats-list li { border-left: 3px solid var(--focus-light); padding-left: 18px; }
.hero-grid > *, .proof-grid > *, .areas-grid > *, .contact-grid > *, figure.photo { min-width: 0; }
.stats-value { display: block; font-size: 1.9rem; font-weight: 800; line-height: 1.1; color: #fff; overflow-wrap: break-word; }
.stats-label { display: block; margin-top: 6px; font-size: 0.92rem; color: #cfdae5; }

/* Services. */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 26px 24px;
}
.service-card { display: flex; flex-direction: column; gap: 10px; }
.service-num {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper-deep);
}
.service-card h3 { font-size: 1.28rem; line-height: 1.3; color: var(--navy-ink); }
.service-card p { color: var(--muted); font-size: 1rem; }
.service-tags {
  list-style: none;
  padding: 12px 0 0;
  margin: auto 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.service-tags li {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-ink);
  background: var(--mist);
  border-radius: 999px;
  padding: 5px 12px;
}

/* Proof: real install photo plus checklist. */
.proof-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 56px;
  align-items: start;
}
.proof-photo img { aspect-ratio: 408 / 452; }
.check-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.check-list li {
  position: relative;
  padding-left: 34px;
  color: var(--ink);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: var(--navy);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 11px;
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(42deg);
}
.check-list strong { color: var(--navy-ink); }
.rating-line {
  margin-top: 26px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--white);
  font-size: 0.98rem;
}
.rating-line strong { color: var(--navy-ink); font-size: 1.1rem; }

/* Process. */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  counter-increment: step;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
}
.step h3 { margin-top: 16px; font-size: 1.22rem; color: var(--navy-ink); line-height: 1.3; }
.step p { margin-top: 10px; color: var(--muted); font-size: 1rem; }
.step-time {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--copper-deep);
  background: var(--copper-soft);
  border-radius: 999px;
  padding: 5px 14px;
}

/* Gallery: service inspiration, not a portfolio. */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.gallery-grid figure.photo img { aspect-ratio: 4 / 3; }
.gallery-note { margin-top: 22px; color: var(--muted); font-size: 0.95rem; max-width: 70ch; }

/* Areas. */
.areas-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: start;
}
.city-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin-top: 26px;
}
.city-list li {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy-ink);
}
.info-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 28px 26px;
  display: grid;
  gap: 20px;
}
.info-block h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--copper-deep);
  margin-bottom: 8px;
}
.info-block p, .info-block a { color: var(--ink); }
.info-block a { font-weight: 600; }
.hours-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.hours-list li { display: flex; justify-content: space-between; gap: 16px; }
.hours-list span:last-child { font-weight: 600; color: var(--navy-ink); }

/* Contact. */
.section-navy a { color: #fff; }
.section-navy a:hover { color: var(--focus-light); }
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 48px;
  align-items: start;
}
.contact-lines { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.contact-lines li { display: grid; gap: 2px; }
.contact-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--focus-light);
}
.contact-lines a { text-decoration: none; font-weight: 700; font-size: 1.12rem; overflow-wrap: anywhere; }
.footer-grid a { overflow-wrap: anywhere; }
.contact-lines a:hover { text-decoration: underline; }
.contact-lines p { color: #d7e1ea; margin: 0; }
.social-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 26px 0 0; }
.social-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
}
.social-list a:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, 0.08); }
.form-card {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  padding: 30px 28px;
}
.form-card h3 { color: var(--navy-ink); font-size: 1.3rem; line-height: 1.3; }
.form-card > p { color: var(--muted); font-size: 0.98rem; margin-top: 8px; }
.contact-form { margin-top: 20px; display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { font-weight: 600; font-size: 0.95rem; color: var(--navy-ink); }
input, select, textarea {
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid #b9c2cb;
  border-radius: 10px;
  padding: 12px 14px;
  min-height: 48px;
  width: 100%;
}
textarea { min-height: 124px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-color: var(--navy);
}
.form-note { font-size: 0.92rem; color: var(--muted); margin: 0; }
.form-note a { color: var(--navy); font-weight: 700; }

/* Button color guards: generic section link rules must never override buttons. */
.section-navy a.btn-primary, .site-footer a.btn-primary { color: #ffffff; }
.section-navy a.btn-secondary, .site-footer a.btn-secondary { color: var(--navy-ink); }
.section-navy a.btn-light, .site-footer a.btn-light { color: var(--navy-ink); }

/* Footer. */
.site-footer { background: var(--navy-ink); color: #d7e1ea; }
.footer-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 28px;
  padding-top: 52px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.footer-cta p { margin: 0; font-size: 1.35rem; font-weight: 700; color: #fff; line-height: 1.35; }
.footer-cta .btn { margin-left: auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
  padding-top: 40px;
  padding-bottom: 40px;
}
.footer-grid h2, .footer-grid h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--focus-light);
  margin-bottom: 14px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid a { color: #e8eef4; text-decoration: none; }
.footer-grid a:hover { color: #fff; text-decoration: underline; }
.footer-brand { font-weight: 800; color: #fff; font-size: 1.1rem; }
.footer-grid p { margin-top: 10px; font-size: 0.95rem; color: #c4d0dc; max-width: 34ch; }
.footer-base {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 24px;
  padding-bottom: 32px;
  font-size: 0.88rem;
  color: #b7c3d0;
  display: grid;
  gap: 8px;
}
.footer-base p { margin: 0; }

/* Responsive. */
@media (max-width: 1000px) {
  .site-nav ul { gap: 14px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .proof-grid, .areas-grid, .contact-grid { gap: 36px; }
}
@media (max-width: 859px) {
  .header-inner { flex-wrap: wrap; }
  .nav-check { visibility: visible; }
  .nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 88px;
    padding: 8px 18px;
    margin-left: 12px;
    border: 2px solid var(--navy);
    border-radius: 10px;
    background: var(--white);
    color: var(--navy-ink);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
  }
  .nav-button .nav-close { display: none; }
  .nav-check:checked ~ .nav-button { background: var(--navy); color: #fff; }
  .nav-check:checked ~ .nav-button .nav-open { display: none; }
  .nav-check:checked ~ .nav-button .nav-close { display: inline; }
  .nav-check:focus-visible ~ .nav-button { outline: 3px solid var(--focus); outline-offset: 3px; }
  .site-nav, .header-cta { display: none; flex-basis: 100%; }
  .nav-check:checked ~ .site-nav { display: block; }
  .nav-check:checked ~ .header-cta { display: block; }
  .site-nav { order: 10; border-top: 1px solid var(--line-soft); margin-top: 4px; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--line-soft); }
  .site-nav a { display: block; padding: 14px 4px; font-size: 1rem; border-bottom: none; }
  .header-cta { order: 11; padding: 14px 0 8px; }
  .header-cta .btn { width: 100%; }
  .hero-grid, .proof-grid, .areas-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-photo img { aspect-ratio: 4 / 3; }
  .proof-photo img { aspect-ratio: 408 / 452; }
  .stats-list { grid-template-columns: 1fr 1fr; gap: 20px; }
  .service-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-cta .btn { margin-left: 0; width: 100%; }
}
@media (max-width: 480px) {
  .stats-list { grid-template-columns: 1fr 1fr; }
  .stats-value { font-size: 1.55rem; }
  .field-row { grid-template-columns: 1fr; }
  .brand-text { font-size: 0.92rem; }
  .eyebrow { font-size: 0.72rem; letter-spacing: 0.12em; }
  .nav-button { flex: none; }
  .hero-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
