/* =========================================================================
   Washington DC HVAC Repair — design system
   Conversion-focused local-service site. No frameworks, no web fonts
   (system stack) for fast Core Web Vitals.
   ========================================================================= */

:root {
  /* Brand palette — navy (trust) + blue (cooling) + orange (heat / CTA) */
  --navy: #0a2540;
  --navy-700: #0e2f53;
  --navy-600: #143a63;
  --blue: #1763c6;
  --blue-600: #135bb8;
  --blue-700: #0f4d9e;
  --blue-50: #eef5fd;
  --blue-100: #d8e8fb;
  --orange: #f47321;
  --orange-600: #e25c0c;
  --orange-700: #c44f0a;
  --orange-50: #fff3ea;

  --green: #1ba672;
  --green-50: #e9f8f1;

  --ink: #16222e;
  --body: #41505c;
  --muted: #6b7884;
  --line: #e2e8ee;
  --line-2: #eef2f6;
  --bg: #ffffff;
  --surface: #f6f9fc;
  --surface-2: #eef3f8;

  --star: #f5a623;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(16, 36, 56, .06), 0 1px 3px rgba(16, 36, 56, .08);
  --shadow: 0 6px 20px rgba(16, 36, 56, .08), 0 2px 6px rgba(16, 36, 56, .05);
  --shadow-lg: 0 22px 50px rgba(10, 37, 64, .16);

  --maxw: 1140px;
  --gap: clamp(1.5rem, 4vw, 4rem);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-700); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.18; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.15rem); }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.35rem); }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
strong { color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.section--tight { padding: clamp(2rem, 4vw, 3.25rem) 0; }
.section--surface { background: var(--surface); }
.section--navy { background: var(--navy); color: #cdd9e6; }
.section--navy h2, .section--navy h3 { color: #fff; }
.center { text-align: center; }
.lead { font-size: 1.18rem; color: var(--body); }
.eyebrow {
  display: inline-block; font-size: .82rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blue-700); margin-bottom: .6rem;
}
.section--navy .eyebrow { color: #7fb2f0; }
.muted { color: var(--muted); }
.maxch { max-width: 720px; }
.center .maxch { margin-left: auto; margin-right: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font: inherit; font-weight: 700; font-size: 1.02rem; line-height: 1;
  padding: .95rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .12s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--orange); color: #fff; box-shadow: 0 8px 18px rgba(226, 92, 12, .28); }
.btn--primary:hover { background: var(--orange-600); }
.btn--call { background: var(--green); color: #fff; box-shadow: 0 8px 18px rgba(27, 166, 114, .28); }
.btn--call:hover { background: #178c60; }
.btn--ghost { background: #fff; color: var(--navy); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue-700); }
.btn--lg { font-size: 1.1rem; padding: 1.1rem 1.9rem; }
.btn--block { width: 100%; }
.btn svg { width: 1.1em; height: 1.1em; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid var(--line);
}
.topbar { background: var(--navy); color: #cfe0f2; font-size: .86rem; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 38px; padding-top: 6px; padding-bottom: 6px; }
.topbar a { color: #fff; }
.topbar__left { display: flex; gap: 1.3rem; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: .4rem; }
.topbar__item svg { width: 15px; height: 15px; opacity: .85; }
@media (max-width: 760px) { .topbar { display: none; } }

.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand__logo { width: 40px; height: 40px; flex: none; }
.brand__name { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name b { font-size: 1.12rem; color: var(--navy); }
.brand__name span { font-size: .72rem; font-weight: 700; letter-spacing: .04em; color: var(--blue-700); text-transform: uppercase; }

.nav__links { display: flex; align-items: center; gap: 1.4rem; }
.nav__links a { color: var(--ink); font-weight: 600; font-size: .98rem; }
.nav__links a:hover { color: var(--blue-700); text-decoration: none; }
.nav__cta { display: flex; align-items: center; gap: .7rem; }
.nav__phone { display: inline-flex; align-items: center; gap: .45rem; font-weight: 800; color: var(--navy); font-size: 1.05rem; }
.nav__phone svg { width: 18px; height: 18px; color: var(--green); }
.nav__phone:hover { color: var(--blue-700); text-decoration: none; }

/* mobile nav */
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; color: var(--navy); }
.nav__toggle svg { width: 28px; height: 28px; }
.nav__call-mini { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: #fff; flex: none; }
.nav__call-mini svg { width: 20px; height: 20px; }
.nav__call-mini:hover { background: #178c60; text-decoration: none; }
@media (max-width: 940px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle, .nav__call-mini { display: inline-flex; }
}
.mobile-menu { display: none; border-top: 1px solid var(--line); background: #fff; }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 14px 20px; border-bottom: 1px solid var(--line-2); color: var(--ink); font-weight: 600; }
.mobile-menu .btn { margin: 14px 20px; }

/* ---------- hero ---------- */
.hero { position: relative; background: linear-gradient(160deg, var(--navy) 0%, #103458 55%, #0f4d9e 100%); color: #e7eef6; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background:
    radial-gradient(900px 420px at 88% -8%, rgba(244, 115, 33, .22), transparent 60%),
    radial-gradient(700px 500px at 6% 110%, rgba(23, 99, 198, .35), transparent 60%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding: clamp(2.5rem, 5vw, 4.5rem) 0; }
.hero h1 { color: #fff; }
.hero__sub { font-size: 1.2rem; color: #cfdcea; max-width: 36ch; margin: 1rem 0 1.6rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.5rem; }
.hero__badges { display: flex; flex-wrap: wrap; gap: .55rem 1.4rem; font-size: .95rem; color: #d6e2f0; }
.hero__badges span { display: inline-flex; align-items: center; gap: .45rem; }
.hero__badges svg { width: 18px; height: 18px; color: #5fd0a0; flex: none; }
.hero__rating { display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1.1rem; font-weight: 600; color: #fff; }
.stars { display: inline-flex; gap: 2px; color: var(--star); }
.stars svg { width: 18px; height: 18px; }
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__sub { max-width: none; }
}

/* lead form card */
.lead-card { background: #fff; color: var(--body); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: clamp(1.4rem, 2.5vw, 1.9rem); }
.lead-card h2 { font-size: 1.4rem; margin-bottom: .25rem; }
.lead-card__note { font-size: .92rem; color: var(--muted); margin-bottom: 1.1rem; }
.lead-card__urgent { display: inline-flex; align-items: center; gap: .4rem; background: var(--orange-50); color: var(--orange-700); font-weight: 700; font-size: .82rem; padding: .3rem .7rem; border-radius: 999px; margin-bottom: .8rem; }

.field { margin-bottom: .8rem; }
.field label { display: block; font-size: .85rem; font-weight: 700; color: var(--ink); margin-bottom: .3rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); padding: .8rem .9rem;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-100); }
.field textarea { min-height: 84px; resize: vertical; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin-top: .7rem; padding: .8rem 1rem; border-radius: var(--radius-sm); font-size: .95rem; display: none; }
.form-msg.show { display: block; }
.form-msg.ok { background: var(--green-50); color: #11704c; }
.form-msg.err { background: #fdecea; color: #b3261e; }
.form-fineprint { font-size: .78rem; color: var(--muted); margin-top: .7rem; }

/* ---------- trust bar ---------- */
.trustbar { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trustbar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 2.4rem; padding: 1.1rem 20px; }
.trustbar__item { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; color: var(--navy); font-size: .98rem; }
.trustbar__item svg { width: 22px; height: 22px; color: var(--blue); flex: none; }

/* ---------- cards / grids ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 940px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow-sm); transition: transform .14s ease, box-shadow .16s ease, border-color .16s ease; height: 100%;
}
a.card:hover { text-decoration: none; }
.card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--blue-100); }
.card__icon { width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-700); margin-bottom: 1rem; }
.card__icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: .35rem; }
.card p { margin-bottom: .75rem; font-size: .98rem; }
.card__more { font-weight: 700; color: var(--blue-700); font-size: .95rem; display: inline-flex; align-items: center; gap: .35rem; }
.card--link:hover .card__more { gap: .55rem; }

/* feature list */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem 2rem; list-style: none; padding: 0; }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }
.features li { display: flex; gap: .8rem; }
.features svg { width: 26px; height: 26px; color: var(--green); flex: none; margin-top: 2px; }
.features b { display: block; color: var(--ink); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: step; }
@media (max-width: 780px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-left: 0; }
.step__num { width: 46px; height: 46px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 800; font-size: 1.2rem; display: grid; place-items: center; margin-bottom: .9rem; }

/* ---------- reviews ---------- */
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); height: 100%; display: flex; flex-direction: column; }
.review .stars { margin-bottom: .7rem; }
.review p { font-size: 1.02rem; color: var(--ink); }
.review__by { margin-top: auto; display: flex; align-items: center; gap: .7rem; padding-top: .9rem; }
.review__avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.review__by b { color: var(--ink); display: block; font-size: .96rem; }
.review__by span { color: var(--muted); font-size: .85rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: .8rem; background: #fff; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; list-style: none; padding: 1.05rem 1.2rem; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: 1.04rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--blue); transition: transform .2s; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 1.2rem 1.15rem; color: var(--body); }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- areas ---------- */
.arealist { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem 1.2rem; list-style: none; padding: 0; }
@media (max-width: 780px) { .arealist { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .arealist { grid-template-columns: 1fr; } }
.arealist a { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem 0; color: var(--ink); font-weight: 600; font-size: .97rem; }
.arealist a:hover { color: var(--blue-700); }
.arealist svg { width: 15px; height: 15px; color: var(--blue); flex: none; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--orange) 0%, var(--orange-600) 100%); color: #fff; border-radius: var(--radius-lg); padding: clamp(2rem, 4vw, 3rem); text-align: center; box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #fff; opacity: .96; font-size: 1.12rem; max-width: 50ch; margin: 0 auto 1.4rem; }
.cta-band .btn--ghost { background: #fff; color: var(--orange-700); border-color: #fff; }
.cta-band .btn--ghost:hover { color: var(--orange-700); background: #fff8f3; }
.cta-band .btn--call { background: var(--navy); box-shadow: 0 8px 18px rgba(10,37,64,.3); }
.cta-band .btn--call:hover { background: var(--navy-700); }
.cta-band__row { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }

/* ---------- page hero (interior) ---------- */
.pagehero { background: linear-gradient(160deg, var(--navy), #134) ; color: #dce7f2; padding: clamp(2.2rem, 5vw, 3.6rem) 0; }
.pagehero h1 { color: #fff; max-width: 22ch; }
.pagehero p { color: #cfdcea; font-size: 1.15rem; max-width: 60ch; }
.pagehero .btn { margin-top: 1.2rem; }
.breadcrumbs { font-size: .85rem; color: #9db6d2; margin-bottom: .9rem; }
.breadcrumbs a { color: #cfe0f2; }
.breadcrumbs span { opacity: .6; margin: 0 .4rem; }

/* article / prose */
.prose { max-width: 760px; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.5rem; }
.prose ul li { margin-bottom: .4rem; }
.prose--wide { max-width: 860px; }

/* split content */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* callout box */
.callout { background: var(--blue-50); border: 1px solid var(--blue-100); border-left: 4px solid var(--blue); border-radius: var(--radius-sm); padding: 1.2rem 1.4rem; }
.callout--warn { background: var(--orange-50); border-color: #f8d3b8; border-left-color: var(--orange); }
.callout p:last-child { margin-bottom: 0; }

/* price table */
.pricetable { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.pricetable th, .pricetable td { text-align: left; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line-2); }
.pricetable th { background: var(--surface); color: var(--ink); font-weight: 700; }
.pricetable tr:last-child td { border-bottom: 0; }
.pricetable td:last-child { font-weight: 700; color: var(--navy); white-space: nowrap; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #b7c6d6; font-size: .95rem; }
.site-footer .wrap { padding-top: 3.2rem; padding-bottom: 1.5rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 1.8rem; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: .9rem; }
.site-footer a { color: #b7c6d6; }
.site-footer a:hover { color: #fff; }
.footer__links { list-style: none; padding: 0; margin: 0; }
.footer__links li { margin-bottom: .5rem; }
.footer__brand .brand__name b { color: #fff; }
.footer__brand p { margin-top: .8rem; max-width: 34ch; color: #91a4b8; }
.footer__contact li { display: flex; gap: .6rem; margin-bottom: .6rem; }
.footer__contact svg { width: 18px; height: 18px; color: #5fb0f0; flex: none; margin-top: 3px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.4rem; padding-top: 1.3rem; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: space-between; color: #8195aa; font-size: .85rem; }
.footer__bottom a { color: #8195aa; }
.footer__disclaimer { font-size: .78rem; color: #6f829a; margin-top: .8rem; line-height: 1.5; }

/* ---------- floating mobile call bar ---------- */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: none; gap: .6rem; padding: .55rem .7rem calc(.55rem + env(safe-area-inset-bottom)); background: rgba(10,37,64,.97); backdrop-filter: blur(6px); box-shadow: 0 -4px 18px rgba(0,0,0,.2); }
.callbar .btn { flex: 1; padding: .85rem 1rem; font-size: 1rem; }
@media (max-width: 760px) { .callbar { display: flex; } body { padding-bottom: 72px; } }

/* ---------- utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 1rem; }
.pill { display: inline-flex; align-items: center; gap: .4rem; background: var(--blue-50); color: var(--blue-700); font-weight: 700; font-size: .8rem; padding: .3rem .7rem; border-radius: 999px; }
.divider { height: 1px; background: var(--line); border: 0; margin: 2.5rem 0; }
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; color: var(--blue-700); padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }
