/* ────────────────────────────────────────────
   New Heights Heating & Air
   ──────────────────────────────────────────── */

:root {
  --navy:        #0d2137;
  --navy-mid:    #1a365d;
  --red:         #c1272d;
  --red-hover:   #a12025;
  --red-faint:   #fdf0f0;
  --slate:       #4a6074;
  --gold:        #e4a100;
  --text:        #1c1c1c;
  --text-mid:    #3d4550;
  --text-light:  #6b7685;
  --surface:     #f3f4f6;
  --white:       #ffffff;
  --border:      #dfe2e7;
  --font:        "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Segoe UI", system-ui, -apple-system, sans-serif;
  --measure:     1140px;
  --gap:         clamp(1.5rem, 4vw, 3rem);
}

/* ── Reset ─────────────────────────────── */

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

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

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 1rem;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

button { font: inherit; cursor: pointer; border: none; background: none; }

/* ── Utilities ─────────────────────────── */

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

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ── Top Bar (phone) ───────────────────── */

.top-bar {
  background: var(--navy);
  color: var(--white);
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
  padding: 0.45rem 0;
}

.top-bar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.top-bar a {
  color: var(--white);
  font-weight: 600;
}

.top-bar a:hover { opacity: 0.85; }

.top-bar .top-bar__area {
  color: rgba(255,255,255,0.7);
  font-weight: 400;
}

/* ── Header / Nav ──────────────────────── */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.75rem;
}

.logo-link { display: flex; align-items: center; gap: 0; }

.logo-link img {
  height: 42px;
  width: auto;
}

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--navy);
  transition: transform 0.25s, opacity 0.25s;
}

.site-nav { display: flex; align-items: center; gap: 0; }

.site-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.15rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: color 0.2s;
  min-height: 40px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--red);
}

.site-nav .nav-cta {
  background: var(--red);
  color: var(--white);
  border-radius: 6px;
  padding: 0.55rem 1.25rem;
  margin-left: 0.5rem;
  font-weight: 600;
  transition: background 0.2s;
}

.site-nav .nav-cta:hover {
  background: var(--red-hover);
  color: var(--white);
}

/* ── Hero ──────────────────────────────── */

.hero {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 5rem);
  background: var(--white);
  position: relative;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero__content {
  position: relative;
  padding-left: 1.75rem;
}

/* The red vertical rule — a continuous line from headline to CTA,
   binding them into one visual unit. It encodes the brand accent
   as a structural element rather than a decoration. */
.hero__content::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25rem;
  bottom: 0.25rem;
  width: 4px;
  background: var(--red);
  border-radius: 2px;
}

.hero__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--red);
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--navy);
  margin-bottom: 1.25rem;
}

.hero__sub {
  font-size: 1.1rem;
  color: var(--text-mid);
  max-width: 44ch;
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__photo {
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 3;
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
  pointer-events: none;
}

/* ── Buttons ───────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  min-height: 44px;
  transition: background 0.2s, box-shadow 0.2s;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--red-hover);
  box-shadow: 0 4px 16px rgba(193,39,45,0.25);
}

.btn-outline {
  border: 2px solid var(--navy);
  color: var(--navy);
  background: transparent;
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--navy);
}

.btn-white:hover {
  background: var(--surface);
}

/* ── Proof Bar ─────────────────────────── */

.proof-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}

.proof-bar .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  flex-wrap: wrap;
  text-align: center;
}

.proof-item {
  font-size: 0.9rem;
  color: var(--text-mid);
  white-space: nowrap;
}

.proof-item strong {
  color: var(--navy);
  font-weight: 700;
}

.proof-item .stars {
  color: var(--gold);
  letter-spacing: 1px;
}

.proof-sep {
  width: 1px;
  height: 1.25rem;
  background: var(--border);
}

/* ── Section Primitives ────────────────── */

.section {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.section--alt {
  background: var(--surface);
}

.section--navy {
  background: var(--navy);
  color: var(--white);
}

.section__eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--red);
  margin-bottom: 0.5rem;
}

.section--navy .section__eyebrow { color: rgba(255,255,255,0.6); }

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section--navy .section__title { color: var(--white); }

.section__intro {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 56ch;
  line-height: 1.65;
}

.section--navy .section__intro { color: rgba(255,255,255,0.75); }

/* ── About (homepage) ──────────────────── */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-top: 2.5rem;
}

.about-photo {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text p {
  margin-bottom: 1rem;
  color: var(--text-mid);
  line-height: 1.7;
}

.about-text p:last-child { margin-bottom: 0; }

.about-sig {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.about-sig__name {
  font-weight: 700;
  color: var(--navy);
  font-size: 1rem;
}

.about-sig__role {
  font-size: 0.875rem;
  color: var(--text-light);
}

/* ── Services Grid ─────────────────────── */

.services-intro {
  max-width: 56ch;
  margin-bottom: 2.5rem;
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.svc-card {
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.svc-card:hover {
  border-color: var(--red);
  box-shadow: 0 6px 24px rgba(0,0,0,0.06);
}

/* Red top-edge line on each card — marks the card
   as part of the NH brand system */
.svc-card::before {
  content: "";
  display: block;
  width: 32px;
  height: 3px;
  background: var(--red);
  border-radius: 2px;
  margin-bottom: 1.25rem;
}

.svc-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.svc-card__desc {
  font-size: 0.9375rem;
  color: var(--text-mid);
  line-height: 1.65;
}

/* ── Services Detail (services page) ───── */

.svc-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  border-bottom: 1px solid var(--border);
}

.svc-detail:last-child { border-bottom: none; }

.svc-detail--flip .svc-detail__text { order: 2; }
.svc-detail--flip .svc-detail__aside { order: 1; }

.svc-detail__num {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--red);
  margin-bottom: 0.5rem;
  font-variant-numeric: tabular-nums;
}

.svc-detail__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.svc-detail__body {
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.svc-detail__list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.svc-detail__list li {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  font-size: 0.9375rem;
  color: var(--text-mid);
}

.svc-detail__list li::before {
  content: "\2713";
  color: var(--red);
  font-weight: 700;
  flex-shrink: 0;
}

.svc-detail__aside {
  background: var(--surface);
  border-radius: 10px;
  padding: 2rem;
}

.svc-detail__aside-title {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
}

.svc-detail__aside p {
  font-size: 0.9375rem;
  color: var(--text-mid);
  line-height: 1.65;
}

/* ── Process / Timeline ────────────────── */

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  counter-reset: step;
}

.process-step {
  counter-increment: step;
  position: relative;
  padding-top: 2.5rem;
}

/* Step number — generated by CSS counter,
   so the sequence is real data, not decoration */
.process-step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--red);
  opacity: 0.35;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.process-step__title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.section--navy .process-step__title { color: var(--white); }

.process-step__desc {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.6;
}

.section--navy .process-step__desc { color: rgba(255,255,255,0.65); }
.section--navy .process-step::before { color: rgba(255,255,255,0.2); }

/* ── Reviews Strip ─────────────────────── */

.reviews-strip {
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  background: var(--red-faint);
}

.reviews-strip__stars {
  font-size: 1.75rem;
  color: var(--gold);
  letter-spacing: 3px;
  margin-bottom: 0.5rem;
}

.reviews-strip__count {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.reviews-strip__source {
  font-size: 0.875rem;
  color: var(--text-light);
}

/* ── CTA Band ──────────────────────────── */

.cta-band {
  background: var(--navy);
  padding: clamp(3rem, 7vw, 5rem) 0;
  text-align: center;
}

.cta-band__title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.cta-band__sub {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 48ch;
  margin-inline: auto;
}

.cta-band__actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Contact Page ──────────────────────── */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-info { padding-top: 0.5rem; }

.contact-block {
  margin-bottom: 2rem;
}

.contact-block:last-child { margin-bottom: 0; }

.contact-block__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--red);
  margin-bottom: 0.35rem;
}

.contact-block__value {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.6;
}

.contact-block__value a {
  color: var(--navy);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  transition: border-color 0.2s;
}

.contact-block__value a:hover {
  border-color: var(--red);
}

.contact-form {
  background: var(--surface);
  padding: 2.5rem;
  border-radius: 10px;
}

.contact-form__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.contact-form__sub {
  font-size: 0.9375rem;
  color: var(--text-light);
  margin-bottom: 1.75rem;
}

.form-row {
  margin-bottom: 1.25rem;
}

.form-row label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.9375rem;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s;
  min-height: 44px;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(193,39,45,0.1);
}

.form-row textarea { resize: vertical; min-height: 120px; }

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ── Service Area List ─────────────────── */

.area-list {
  column-count: 2;
  column-gap: 2rem;
  margin-top: 1rem;
}

.area-list li {
  font-size: 0.9375rem;
  color: var(--text-mid);
  padding: 0.3rem 0;
  break-inside: avoid;
}

.area-list li::before {
  content: "\2022 ";
  color: var(--red);
  font-weight: 700;
}

/* ── Footer ────────────────────────────── */

.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.65);
  padding: clamp(2.5rem, 5vw, 4rem) 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  margin-bottom: 2.5rem;
}

.footer-brand img {
  height: 36px;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 32ch;
}

.footer-col__title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  padding: 0.25rem 0;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  font-size: 0.8125rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ── Responsive ────────────────────────── */

@media (max-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }

  .hero__photo {
    max-width: 480px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-photo {
    max-width: 480px;
  }

  .svc-grid {
    grid-template-columns: 1fr;
  }

  .svc-detail {
    grid-template-columns: 1fr;
  }

  .svc-detail--flip .svc-detail__text { order: 1; }
  .svc-detail--flip .svc-detail__aside { order: 2; }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .proof-sep { display: none; }

  .proof-bar .wrap {
    gap: 1rem 2rem;
  }
}

@media (max-width: 640px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 0.5rem 1rem 1rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }

  .site-nav.open { display: flex; }

  .site-nav a {
    width: 100%;
    padding: 0.75rem 0.5rem;
  }

  .site-nav .nav-cta {
    margin-left: 0;
    margin-top: 0.5rem;
    text-align: center;
  }

  .hero__headline {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }

  .process-steps {
    grid-template-columns: 1fr;
    max-width: 380px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .area-list { column-count: 1; }

  .form-row-2col {
    grid-template-columns: 1fr;
  }

  .top-bar .top-bar__area { display: none; }

  .hero__actions { flex-direction: column; align-items: flex-start; }

  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ── Scroll Animation ──────────────────── */

@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }

  .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; }
}
