/* All Repair Heat & Air. Brand colours from the logo (navy, red, white).
   Sizes follow the Tailwind type scale; spacing uses the 2/4/8/12/16/24/32/40/48/64/80/96 set. */

@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --navy: #1b2a6b;
  --navy-700: #142055;
  --navy-50: #eef1fa;
  --red: #c4202e;
  --red-700: #a51a26;
  --ink: #161a2b;
  --muted: #4a5068;
  --line: #dde1ec;
  --bg: #ffffff;
  --tint: #f5f7fb;
  --star: #f5a524;
  --radius: 16px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --bar-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px; line-height: 24px;
  color: var(--ink); background: var(--bg);
  padding-bottom: var(--bar-h);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { text-wrap: balance; margin: 0 0 12px; color: var(--navy); font-weight: 700; letter-spacing: -0.01em; }
p, li { text-wrap: pretty; }
p { margin: 0 0 16px; }
h1 { font-size: 36px; line-height: 40px; }
h2 { font-size: 30px; line-height: 36px; }
h3 { font-size: 18px; line-height: 28px; }
@media (min-width: 960px) {
  h1 { font-size: 48px; line-height: 1.05; }
  h2 { font-size: 36px; line-height: 40px; }
}
.i { width: 20px; height: 20px; flex: none; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }
.narrow { max-width: 760px; }
.narrow-text { max-width: 680px; }
.center { text-align: center; }
.small { font-size: 14px; line-height: 20px; color: var(--muted); }

.skip { position: absolute; left: 16px; top: -64px; z-index: 100; background: var(--navy); color: #fff; padding: 8px 12px; border-radius: 8px; }
.skip:focus { top: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font: inherit; font-size: 16px; font-weight: 700; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; user-select: none;
  transition: transform 160ms var(--ease), background-color 160ms var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn-call { background: var(--red); color: #fff; }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
@media (hover: hover) and (pointer: fine) {
  .btn-call:hover { background: var(--red-700); }
  .btn-ghost:hover { border-color: var(--navy); }
  .card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(20, 32, 85, 0.12); }
}
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 14px; line-height: 20px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 24px 0; }
.actions.center { justify-content: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; }
.link-arrow .i { width: 16px; height: 16px; transition: transform 160ms var(--ease); }
@media (hover: hover) { .link-arrow:hover .i { transform: translateX(4px); } }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(12px); } }
.header-row { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand img { width: 88px; }
@media (min-width: 768px) { .brand img { width: 104px; } .header-row { min-height: 80px; } }
.nav-desktop { display: none; margin-left: auto; gap: 32px; }
.nav-desktop a { font-weight: 600; text-decoration: none; color: var(--ink); padding: 8px 0; }
.nav-desktop a[aria-current] { color: var(--red); }
.header-row .btn-call { margin-left: auto; }
.call-full { display: none; }
@media (min-width: 960px) {
  .nav-desktop { display: flex; }
  .header-row .btn-call { margin-left: 16px; }
  .call-full { display: inline; } .call-short { display: none; }
  .nav-mobile { display: none; }
}
.nav-mobile { position: relative; }
.nav-mobile summary { list-style: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--navy); cursor: pointer; }
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile summary .i { width: 24px; height: 24px; }
.nav-mobile .close, .nav-mobile[open] .open { display: none; }
.nav-mobile[open] .close { display: block; }
.nav-mobile nav {
  position: absolute; right: 0; top: calc(100% + 8px); width: min(280px, calc(100vw - 32px));
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px;
  box-shadow: 0 16px 40px rgba(20, 32, 85, 0.16); display: grid;
  transform-origin: top right; animation: pop 180ms var(--ease);
}
.nav-mobile nav a { padding: 12px; border-radius: 8px; text-decoration: none; font-weight: 600; color: var(--ink); }
.nav-mobile nav a[aria-current] { color: var(--red); }
.nav-label { margin: 8px 12px 0; font-size: 12px; line-height: 16px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
@keyframes pop { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }

/* Mobile action bar: the obvious way to call on a phone */
.call-bar { display: none; }
@media (max-width: 767px) {
  :root { --bar-h: calc(72px + env(safe-area-inset-bottom)); }
  .call-bar {
    display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96); border-top: 1px solid var(--line);
  }
  .call-bar .btn { min-height: 48px; }
  .call-bar .btn-call { flex: 1; }
  .call-bar .btn-ghost { padding: 12px 16px; }
  .header-row .btn-call { display: none; }
  .nav-mobile { margin-left: auto; }
}

/* Sections */
.section { padding: 64px 0; }
@media (min-width: 960px) { .section { padding: 96px 0; } }
.tint { background: var(--tint); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 14px; line-height: 20px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--red); }
.eyebrow .i { width: 16px; height: 16px; }
.lead { font-size: 18px; line-height: 28px; color: var(--muted); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.section-head h2 { margin: 0; }

/* Hero */
.hero { padding: 32px 0 64px; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.hero h1 { max-width: 680px; }
.hero .lead { max-width: 680px; }
.hero-media img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
@media (min-width: 960px) { .hero { padding: 64px 0 96px; } .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 64px; } }
.proof { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 14px; line-height: 20px; color: var(--muted); }
.proof li, .proof a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: inherit; }
.proof strong { color: var(--ink); }
.stars { display: inline-flex; gap: 2px; color: var(--star); }
.stars .i { width: 16px; height: 16px; }

/* Repair or replace */
.split { display: grid; gap: 48px; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; } }
.two { display: grid; gap: 24px; margin: 24px 0; }
@media (min-width: 640px) { .two { grid-template-columns: 1fr 1fr; } }
.mini h3 { display: flex; align-items: center; gap: 8px; }
.mini h3 .i { color: var(--red); }
.mini p { color: var(--muted); margin: 0; }
.quotes { display: grid; gap: 16px; }

/* Reviews */
.review { margin: 0; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; gap: 12px; }
.review blockquote { margin: 0; }
.review blockquote p { margin: 0 0 8px; }
.review figcaption { display: flex; flex-direction: column; font-size: 14px; line-height: 20px; margin-top: auto; }
.review figcaption span { color: var(--muted); }
.masonry { columns: 1; column-gap: 24px; }
.masonry .review { break-inside: avoid; margin-bottom: 24px; }
@media (min-width: 768px) { .masonry { columns: 2; } }
@media (min-width: 1100px) { .masonry { columns: 3; } }

/* Grids and cards */
.grid-2, .grid-3, .grid-4 { display: grid; gap: 24px; }
@media (min-width: 768px) { .grid-2, .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.grid-4 { margin-top: 32px; }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-decoration: none; color: var(--ink); transition: transform 200ms var(--ease), box-shadow 200ms var(--ease); }
.card:active { transform: scale(0.99); }
.card p { color: var(--muted); }
.svc-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--navy-50); color: var(--navy); margin-bottom: 16px; }
.svc-icon .i { width: 24px; height: 24px; }
.more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy); font-size: 14px; line-height: 20px; }
.more .i { width: 16px; height: 16px; }
.svc-photo { padding: 0; overflow: hidden; }
.svc-photo .card-img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.svc-photo .card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.svc-photo h2 { font-size: 24px; line-height: 32px; }

/* Tagline reveal */
.tagline-reveal { padding: 80px 0; background: var(--navy); }
.reveal-text { margin: 0; max-width: 680px; font-size: 48px; line-height: 1.05; font-weight: 700; letter-spacing: -0.02em; color: #fff; text-wrap: balance; }
@media (min-width: 960px) { .tagline-reveal { padding: 96px 0; } .reveal-text { font-size: 60px; } }
.js .reveal-text .w { opacity: 0.3; transition: opacity 400ms var(--ease); }
.js .reveal-text .w.on { opacity: 1; }

/* Stats */
.stats-band { padding: 48px 0; border-bottom: 1px solid var(--line); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat-num { margin: 0; font-size: 48px; line-height: 1; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.stat-num::after { content: none; }
.stat-label { margin: 8px 0 0; color: var(--muted); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 24px; counter-reset: s; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.step-n { display: inline-block; margin-bottom: 12px; font-size: 14px; line-height: 20px; font-weight: 700; color: var(--red); }
.steps p { margin: 0; color: var(--muted); }

/* FAQ */
.faq { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 0; font-size: 18px; line-height: 28px; font-weight: 700; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--red); transition: transform 200ms var(--ease); }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 24px; color: var(--muted); }

/* CTA band */
.cta-band { padding: 64px 0; background: var(--navy); color: #fff; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #d6dbf0; }
.cta-band .small { color: #b9c0e0; }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }

/* Inner pages */
.page-head { padding: 48px 0 32px; background: var(--tint); }
@media (min-width: 960px) { .page-head { padding: 80px 0 48px; } }
.crumbs { font-size: 14px; line-height: 20px; color: var(--muted); margin-bottom: 16px; }
.article-grid { display: grid; gap: 48px; }
@media (min-width: 960px) { .article-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; } }
.prose { max-width: 680px; }
.prose h2 { font-size: 24px; line-height: 32px; margin-top: 40px; }
.prose h3 { margin-top: 24px; }
.prose p, .prose li { color: #2b3048; }
.prose ul { padding-left: 24px; }
.rounded { border-radius: var(--radius); width: 100%; }
.chips { list-style: none; padding: 0 !important; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: var(--navy-50); color: var(--navy) !important; font-size: 14px; line-height: 20px; font-weight: 600; }
.chips .i { width: 16px; height: 16px; }
.checks { list-style: none; padding: 0 !important; display: grid; gap: 12px; }
@media (min-width: 640px) { .checks { grid-template-columns: 1fr 1fr; } }
.checks li { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.checks .i, .chips .i { color: var(--red); }
.side { display: grid; gap: 24px; align-content: start; }
@media (min-width: 960px) { .side { position: sticky; top: 112px; } }
.side-card { padding: 24px; border-radius: var(--radius); background: var(--navy); color: #fff; }
.side-card h2 { color: #fff; font-size: 24px; line-height: 32px; }
.side-card p { color: #d6dbf0; }
.side-card .link-arrow { color: #fff; margin-top: 16px; }
.side-card .btn { width: 100%; }
.side-nav { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.side-nav h2 { font-size: 18px; line-height: 28px; }
.contact-card { gap: 4px; }
.contact-card h2 { font-size: 14px; line-height: 20px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 0; }
.contact-card .big { font-size: 20px; line-height: 28px; font-weight: 700; color: var(--navy); margin: 0; overflow-wrap: anywhere; }
.contact-cards { margin-bottom: 48px; }

/* Footer */
.site-footer { background: var(--navy-700); color: #c9cfe8; padding: 64px 0 0; font-size: 14px; line-height: 20px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer h2 { color: #fff; font-size: 16px; line-height: 24px; }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.2fr 1.3fr 1fr 1fr; } }
.footer-logo { width: 120px; background: #fff; border-radius: 12px; padding: 8px; margin-bottom: 16px; }
.footer-tag { color: #fff; font-weight: 600; }
.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.plain li, .plain a { display: flex; align-items: center; gap: 8px; }
.hours li { justify-content: space-between; gap: 24px; max-width: 320px; }
.hours-lg { font-size: 18px; line-height: 28px; margin-bottom: 16px; }
.hours-lg li { border-bottom: 1px solid var(--line); padding-bottom: 12px; max-width: none; }
.social { display: flex; gap: 12px; margin-top: 24px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.25); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; padding-bottom: 24px; border-top: 1px solid rgba(255, 255, 255, 0.15); }
.footer-base p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .js .reveal-text .w { opacity: 1; }
}
