/* ==========================================================================
   TrueNorth Heating & Air — the hot/cold split
   Night #15212b · Ember #e85d3a · Ice #4aa3d8 · Manrope
   The warm/cool divide runs through the whole design.
   ========================================================================== */

:root {
  --night: #15212b;
  --night-deep: #0d161e;
  --ember: #e85d3a;
  --ember-deep: #c44525;
  --ice: #4aa3d8;
  --ice-deep: #2f7fae;
  --frost: #eef3f7;
  --ink: #20303d;
  --sans: "Manrope", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: auto; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

[id] { scroll-margin-top: 5rem; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0425rem;
  line-height: 1.65;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--night);
  color: #fff;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  text-decoration: none;
}

.skip-link:focus { top: 0.5rem; }

:focus-visible {
  outline: 3px solid var(--ice-deep);
  outline-offset: 2px;
}

h1, h2, h3 {
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 0.6em;
  color: var(--night);
}

h2 { font-size: clamp(1.9rem, 4.2vw, 2.7rem); }
h3 { font-size: 1.12rem; }

p { margin: 0 0 1em; }

a { color: var(--ice-deep); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--night);
  /* the split, as a hairline */
  border-bottom: 3px solid;
  border-image: linear-gradient(90deg, var(--ember) 0 50%, var(--ice) 50% 100%) 3;
}

.header-inner {
  max-width: 68rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  margin-right: auto;
}

.brand-text {
  font-weight: 800;
  font-size: 1.3rem;
  color: #fff;
  letter-spacing: 0.01em;
}

.header-book {
  background: linear-gradient(90deg, var(--ember), var(--ice));
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
}

.header-book:hover { filter: brightness(1.12); }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.4rem;
}

.site-nav a {
  color: var(--frost);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.25rem 0;
}

.site-nav a:hover,
.site-nav a:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 6px; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--frost);
  border-radius: 8px;
  padding: 0.55rem;
  cursor: pointer;
}

.nav-bars {
  display: block;
  position: relative;
  width: 17px;
  height: 2px;
  background: var(--frost);
}

.nav-bars::before, .nav-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--frost);
}

.nav-bars::before { top: -5px; }
.nav-bars::after { top: 5px; }

.nav-toggle[aria-expanded="true"] .nav-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-bars::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 740px) {
  html.js .nav-toggle { display: inline-flex; }

  /* Two-column dropdown split along the warm/cool seam */
  html.js .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--night-deep);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-6px);
  }

  html.js .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  html.js .site-nav ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0.5rem 1.25rem 1.25rem;
  }

  html.js .site-nav a {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    padding: 0.85rem 0.5rem;
  }

  /* warm column left, cool column right */
  html.js .site-nav li:nth-child(odd) a { border-left: 4px solid var(--ember); padding-left: 0.8rem; }
  html.js .site-nav li:nth-child(even) a { border-left: 4px solid var(--ice); padding-left: 0.8rem; }

  .brand-text { font-size: 1.1rem; }

  .header-book { font-size: 0.84rem; padding: 0.5rem 0.9rem; }
}

@media (max-width: 740px) and (prefers-reduced-motion: no-preference) {
  html.js .site-nav {
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  }

  html.js .site-nav.is-open {
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s;
  }
}

/* ---------- Hero ---------- */

.hero {
  background: var(--night);
  color: var(--frost);
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 2rem;
  padding: clamp(3rem, 7vw, 5.5rem) 1.5rem;
}

.hero-copy { max-width: 38rem; margin-left: auto; }

.kicker {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  background: linear-gradient(90deg, var(--ember), var(--ice));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0 0 1rem;
}

.hero h1 { color: #fff; font-size: clamp(2.2rem, 5.5vw, 3.6rem); }

.hero-lede { color: #aebbc6; font-size: 1.1rem; margin-bottom: 1.75rem; }

.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 0.8rem; }

.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  color: #fff;
}

.btn-warm { background: var(--ember); }
.btn-warm:hover, .btn-warm:focus-visible { background: var(--ember-deep); }

.btn-cool { background: var(--ice); }
.btn-cool:hover, .btn-cool:focus-visible { background: var(--ice-deep); }

.hero-phone { color: #fff; font-weight: 700; }

/* the split thermometer panel */
.hero-split {
  display: grid;
  grid-template-rows: 1fr 1fr;
  border-radius: 18px;
  overflow: hidden;
  max-width: 16rem;
  width: 100%;
  align-self: center;
}

.split-warm, .split-cool {
  padding: 1.5rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.split-warm { background: linear-gradient(135deg, var(--ember), var(--ember-deep)); }
.split-cool { background: linear-gradient(135deg, var(--ice), var(--ice-deep)); }

.split-warm span, .split-cool span {
  display: block;
  font-size: 2.3rem;
  font-weight: 800;
  color: #fff;
}

@media (max-width: 740px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { margin-left: 0; }
  .hero-split { grid-template-rows: none; grid-template-columns: 1fr 1fr; max-width: none; }
}

/* ---------- Sections: warm-edged and cool-edged ---------- */

.section {
  max-width: 68rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem;
}

.side-warm { border-left: 8px solid var(--ember); }
.side-cool { border-left: 8px solid var(--ice); }

@media (min-width: 741px) {
  .side-warm, .side-cool { border-left-width: 12px; }
}

.section-lede { max-width: 44rem; color: #4d6071; margin-bottom: 2rem; }

/* ---------- Service cards ---------- */

.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem;
}

.svc {
  background: var(--frost);
  border-radius: 14px;
  padding: 1.3rem 1.4rem;
}

.svc h3 { margin-bottom: 0.15rem; }

.svc-price { font-weight: 800; font-size: 1.05rem; margin-bottom: 0.5rem; }

.svc-price.warm { color: var(--ember-deep); }
.svc-price.cool { color: var(--ice-deep); }

.svc p:last-child { margin: 0; font-size: 0.95rem; color: #4d6071; }

/* ---------- Club band ---------- */

.club-band {
  max-width: none;
  background: linear-gradient(100deg, var(--ember-deep) 0%, var(--night) 45% 55%, var(--ice-deep) 100%);
  color: var(--frost);
}

.club-band > * { max-width: 65rem; margin-left: auto; margin-right: auto; }

.club-band h2 { color: #fff; }

.club-list {
  list-style: none;
  margin: 0 auto 1.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.8rem 2rem;
}

.club-list li {
  padding-left: 1.6rem;
  position: relative;
  font-weight: 600;
}

.club-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.8em;
  height: 0.8em;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ember), var(--ice));
}

.club-note { color: #c4d2dd; max-width: 46rem; margin-bottom: 0; }

/* ---------- FAQ ---------- */

.faq-list { max-width: 52rem; }

.faq-list details { border-bottom: 1px solid #d7e2ea; }

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  padding: 0.95rem 0;
}

.faq-list summary:hover { color: var(--ice-deep); }

.faq-list details p { color: #4d6071; padding-bottom: 1rem; margin: 0; }

/* ---------- Contact ---------- */

.contact-band { background: var(--frost); max-width: none; }

.contact-band > * { max-width: 65rem; margin-left: auto; margin-right: auto; }

.book-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  max-width: 44rem;
}

.form-row { display: flex; flex-direction: column; gap: 0.3rem; }

.form-row-wide { grid-column: 1 / -1; }

.book-form label { font-weight: 700; font-size: 0.85rem; }

.book-form input[type="text"],
.book-form input[type="tel"] {
  border: 2px solid #c3d2de;
  border-radius: 10px;
  background: #fff;
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.65rem 0.8rem;
}

.service-pick {
  border: 2px solid #c3d2de;
  border-radius: 10px;
  background: #fff;
  padding: 0.9rem 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  flex-direction: row;
}

.service-pick legend { font-weight: 700; font-size: 0.85rem; padding: 0 0.4rem; }

.service-pick label { font-weight: 400; font-size: 0.97rem; display: inline-flex; gap: 0.4rem; align-items: center; }

.book-form button { grid-column: 1 / -1; justify-self: start; }

.form-note { grid-column: 1 / -1; font-size: 0.82rem; color: #4d6071; margin: 0; }

.address-line { margin-top: 2rem; font-size: 0.92rem; color: #4d6071; }

@media (max-width: 560px) {
  .book-form { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--night-deep);
  color: #aebbc6;
  text-align: center;
  padding: 2.5rem 1.5rem;
  font-size: 0.95rem;
  border-top: 3px solid;
  border-image: linear-gradient(90deg, var(--ember) 0 50%, var(--ice) 50% 100%) 3;
}

.site-footer a { color: var(--frost); }

.footer-fine { font-size: 0.82rem; opacity: 0.75; }

.social-links {
  display: flex;
  gap: 1.2rem;
  list-style: none;
  justify-content: center;
  padding: 0 1.5rem;
  margin: 1.5rem auto 0;
}

.social-links a { display: inline-flex; color: inherit; opacity: 0.85; }

.social-links a:hover, .social-links a:focus-visible { opacity: 1; }

.social-links svg { width: 1.3rem; height: 1.3rem; }
