/* Dallas TX AC Repair - site styles
   Palette: "blue norther" navy, frost, amber call button, heat red / cool teal for the dial.
   Type: Overpass (highway-sign gothic) for headings, Source Serif 4 for reading text. */

:root {
  --norther: #0f2a3a;
  --norther-2: #17394b;
  --deep: #0a1f2b;
  --paper: #f7fafb;
  --frost: #e6eff2;
  --line: #c5d5dc;
  --text: #12242e;
  --muted: #46606e;
  --teal: #176b82;
  --sky: #5fb4c9;
  --amber: #ffb81c;
  --amber-dark: #c98a00;
  --heat: #e8442b;
  --display: "Overpass", "Highway Gothic", "Franklin Gothic Medium", "Arial Narrow", system-ui, sans-serif;
  --body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 1.125rem/1.65 var(--body);
  padding-bottom: 84px;
}
@media (min-width: 820px) { body { padding-bottom: 0; } }

img, svg { max-width: 100%; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--norther); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -64px; z-index: 100;
  background: var(--amber); color: var(--norther);
  padding: 10px 16px; border-radius: 8px;
  font: 800 1rem var(--display); text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }

h1, h2, h3, h4 {
  font-family: var(--display);
  line-height: 1.08;
  margin: 0 0 .5em;
  color: var(--norther);
}
h1 { font-weight: 900; font-size: clamp(2.35rem, 6.4vw, 4.4rem); letter-spacing: -.015em; }
h1, h2 { text-wrap: balance; }
h2 { font-weight: 800; font-size: clamp(1.75rem, 3.6vw, 2.6rem); letter-spacing: -.01em; }
h3 { font-weight: 700; font-size: 1.35rem; line-height: 1.2; }
p { margin: 0 0 1em; }

.on-dark { color: #e4eff3; }
.on-dark h1, .on-dark h2, .on-dark h3 { color: #fff; }
.on-dark a { color: #9fd9ea; }
.on-dark a:hover { color: #fff; }
.on-dark :focus-visible { outline-color: #fff; }
.on-dark a.btn-call, .on-dark a.btn-call:hover, .on-dark a.btn-call:visited { color: var(--norther); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: .25em .6em; padding: .8em 1.3em; border: 0; border-radius: 12px;
  font: 800 1.05rem/1.1 var(--display); text-align: center; text-decoration: none; cursor: pointer;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-call {
  background: var(--amber); color: var(--norther);
  box-shadow: 0 3px 0 var(--amber-dark);
}
.btn-call:hover { background: #ffc83d; color: var(--norther); box-shadow: 0 4px 0 var(--amber-dark); transform: translateY(-1px); }
.btn-call:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--amber-dark); }
.btn-lg { font-size: clamp(1.1rem, 4.6vw, 1.3rem); padding: .85em 1.5em; }
.btn-num { font-weight: 700; }
.btn-lg .btn-num { padding-left: .7em; border-left: 2px solid rgba(15, 42, 58, .3); }
.nav-call .btn-num { display: none; }
@media (min-width: 1000px) { .nav-call .btn-num { display: inline; padding-left: .6em; border-left: 2px solid rgba(15, 42, 58, .3); } }

/* ---------- Header ---------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.bar {
  display: grid; grid-template-columns: 1fr auto;
  grid-template-areas: "brand call" "nav nav";
  align-items: center; gap: 4px 16px; padding-block: 12px 4px;
}
.brand { grid-area: brand; display: inline-flex; align-items: center; gap: 10px; color: var(--norther); text-decoration: none; font: 900 1.2rem/1 var(--display); letter-spacing: -.01em; }
.brand:hover { color: var(--norther); }
.brand svg { width: 34px; height: 34px; flex: none; }
.nav-call { grid-area: call; padding: .65em 1em; }
.nav { grid-area: nav; }
.nav ul { display: flex; flex-wrap: wrap; gap: 0 22px; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 10px 0 8px; color: var(--norther);
  font: 700 1rem/1.2 var(--display); text-decoration: none;
  border-bottom: 3px solid transparent;
}
.nav a:hover { border-bottom-color: var(--sky); }
.nav a[aria-current="page"] { border-bottom-color: var(--amber); }
@media (min-width: 860px) {
  .bar { grid-template-columns: auto 1fr auto; grid-template-areas: "brand nav call"; gap: 24px; padding-block: 14px; }
  .nav ul { justify-content: flex-end; }
  .nav a { padding-block: 8px 6px; }
}

/* ---------- Hero ---------- */
.hero { background: var(--norther); padding-block: clamp(36px, 6vw, 88px) clamp(36px, 5vw, 64px); }
.hero-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 860px) { .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 56px; } }
.hero h1 { margin-bottom: .35em; }
.lede { font-size: clamp(1.15rem, 2.2vw, 1.35rem); line-height: 1.55; max-width: 52ch; margin-bottom: 1.4em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; margin-bottom: 18px; }
.hero-note { font-size: 1rem; line-height: 1.5; max-width: 56ch; color: #b9d1da; margin: 0; }
.hero-areas { margin-top: clamp(32px, 5vw, 56px); }
.hero-areas h2 { font-size: 1.15rem; font-weight: 700; margin-bottom: 12px; color: #b9d1da; }

/* Thermostat dial: the one animated moment on the home page */
@property --t { syntax: "<integer>"; inherits: true; initial-value: 72; }
@property --fill { syntax: "<color>"; inherits: true; initial-value: #5fb4c9; }
.dial {
  --t: 72; --fill: #5fb4c9;
  position: relative; display: grid; place-items: center;
  width: min(100%, 340px); aspect-ratio: 1; margin-inline: auto;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, #1f4a5f 0%, #12303f 72%);
  box-shadow: 0 0 0 8px #0b2230, 0 0 0 10px #2b566b;
  animation: cool 3.4s cubic-bezier(.22, .8, .3, 1) .4s both;
}
.dial::before {
  content: ""; position: absolute; inset: 20px; border-radius: 50%;
  background: conic-gradient(
    from 220deg,
    var(--fill) 0deg calc((101 - var(--t)) * 9.655deg),
    #1d4458 calc((101 - var(--t)) * 9.655deg) 280deg,
    transparent 280deg 360deg
  );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 16px), #000 calc(100% - 15px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 16px), #000 calc(100% - 15px));
}
.dial-read { position: relative; text-align: center; }
.dial-num {
  display: block; color: var(--fill);
  font: 900 clamp(4.4rem, 17vw, 6.8rem)/1 var(--display); letter-spacing: -.03em;
  counter-reset: t var(--t);
}
.dial-num::before { content: counter(t); }
.dial-num::after { content: "\00b0"; font-size: .5em; vertical-align: top; position: relative; top: .12em; margin-left: .04em; }
.dial-label { display: block; margin-top: 6px; font: 700 1.05rem var(--display); color: #b9d1da; }
@keyframes cool {
  from { --t: 101; --fill: #e8442b; }
  to   { --t: 72;  --fill: #5fb4c9; }
}
@media (prefers-reduced-motion: reduce) { .dial { animation: none; } }
@media (max-width: 859px) { .dial { width: min(70vw, 260px); } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(48px, 7vw, 96px); }
.section-frost { background: var(--frost); }
.section-head { max-width: 62ch; margin-bottom: clamp(24px, 4vw, 44px); }
.section-head p { color: var(--muted); margin-bottom: 0; }
.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }

/* Service rows */
.svc-list { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--norther); }
.svc { position: relative; display: grid; gap: 6px 32px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.svc h3 { margin: 0; font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 800; }
.svc p { margin: 0; color: var(--muted); }
.svc a { color: inherit; text-decoration: none; }
.svc a::after { content: ""; position: absolute; inset: 0; }
.svc .more { color: var(--teal); font: 700 1rem var(--display); text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }
.svc:hover h3 { color: var(--teal); }
@media (min-width: 760px) {
  .svc { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) auto; align-items: baseline; }
}

/* Steps (a true sequence, so numbered) */
.steps { display: grid; gap: 28px; list-style: none; margin: 0; padding: 0; counter-reset: step; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { counter-increment: step; border-top: 4px solid var(--norther); padding-top: 14px; }
.steps li::before { content: counter(step); display: block; margin-bottom: 6px; font: 900 2.6rem/1 var(--display); color: var(--norther); }
.steps h3 { margin-bottom: .3em; }
.steps p { margin: 0; color: var(--muted); font-size: 1.02rem; line-height: 1.55; }

/* Local know-how columns */
.cols-3 { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.cols-3 > div { border-left: 4px solid var(--amber); padding-left: 18px; }
.cols-3 p { margin: 0; color: var(--muted); }

/* Street-sign plates for neighborhoods */
.plates { display: flex; flex-wrap: wrap; gap: 14px; list-style: none; margin: 0; padding: 0; }
.plate a {
  display: block; min-width: 150px; padding: 10px 16px 11px; border-radius: 8px;
  background: var(--norther-2); color: #fff; text-decoration: none;
  box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px var(--norther-2);
  font: 800 1.1rem/1.15 var(--display);
}
.plate a:hover { background: var(--teal); box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px var(--teal); color: #fff; }
.plate small { display: block; margin-top: 3px; font: 600 .88rem var(--display); color: #a8d8e6; }
.plates-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.plates-grid .plate a { min-width: 0; height: 100%; padding: 16px 18px 18px; }
.plates-grid .plate p { margin: 8px 0 0; font: 400 1rem/1.45 var(--body); color: #d3e5eb; }
.plates-static .plate span {
  display: block; padding: 8px 14px; border-radius: 8px; background: var(--norther-2); color: #fff;
  box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px var(--norther-2); font: 700 1rem/1.2 var(--display);
}

/* Callouts */
.callout { margin: 2em 0; padding: 20px 24px; background: var(--frost); border-left: 6px solid var(--amber); }
.callout.scenario { border-left-color: var(--teal); }
.callout h2, .callout h3 { font-size: 1.2rem; margin: 0 0 .4em; }
.callout p { margin: 0; }

/* Definition list of what a service covers */
.covers { display: grid; gap: 0 40px; margin: 0; }
.covers div { border-top: 1px solid var(--line); padding: 14px 0 16px; }
.covers dt { font: 800 1.12rem/1.25 var(--display); color: var(--norther); }
.covers dd { margin: 4px 0 0; color: var(--muted); font-size: 1.02rem; line-height: 1.55; }
@media (min-width: 720px) { .covers { grid-template-columns: 1fr 1fr; } }

.dots { list-style: none; padding: 0; margin: 0 0 1em; }
.dots li { position: relative; padding-left: 26px; margin-bottom: .55em; }
.dots li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 10px; height: 10px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 2px var(--norther); }

/* Two-column page layout with a sticky call panel */
.layout { display: grid; gap: 40px; }
@media (min-width: 980px) { .layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; align-items: start; } .side { position: sticky; top: 24px; } }
.side-box { background: var(--norther); color: #e4eff3; border-radius: 14px; padding: 24px; box-shadow: inset 0 0 0 2px #fff, 0 0 0 3px var(--norther); margin: 3px; }
.side-box h2 { color: #fff; font-size: 1.5rem; }
.side-box p { font-size: 1rem; line-height: 1.5; color: #c4d9e1; }
.side-box .btn { width: 100%; }
.side-links { list-style: none; margin: 20px 0 0; padding: 0; border-top: 1px solid #2b566b; }
.side-links li { border-bottom: 1px solid #2b566b; }
.side-links a { display: block; padding: 10px 0; color: #9fd9ea; font: 600 1rem var(--display); text-decoration: none; }
.side-links a:hover { color: #fff; }

/* Inner page hero */
.page-hero { background: var(--norther); padding-block: clamp(28px, 5vw, 60px) clamp(32px, 5vw, 64px); }
.page-hero h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); max-width: 20ch; }
.page-hero .lede { margin-bottom: 1.2em; }
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; margin: 0 0 18px; padding: 0; font: 600 .95rem var(--display); }
.crumbs li + li::before { content: "/"; margin: 0 .6em; color: #6f97a7; }
.crumbs a { color: #9fd9ea; }
.crumbs [aria-current] { color: #e4eff3; }

/* FAQ */
.faq { max-width: 760px; border-top: 3px solid var(--norther); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative; display: block; cursor: pointer; list-style: none;
  padding: 18px 44px 18px 0; font: 700 1.15rem/1.3 var(--display); color: var(--norther);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.7rem; font-weight: 700; color: var(--teal); }
.faq details[open] summary::after { content: "\2013"; }
.faq summary:hover { color: var(--teal); }
.faq details p { margin: 0 0 20px; max-width: 62ch; color: var(--text); }

.after-steps { margin-top: 28px; max-width: 62ch; }
.after-list { margin-top: 24px; }

/* Blog */
.post-list { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--norther); }
.post-list li { position: relative; padding: 22px 0; border-bottom: 1px solid var(--line); }
.post-list h3 { margin: 0 0 .25em; font-size: 1.5rem; font-weight: 800; }
.post-list a { color: var(--norther); text-decoration: none; }
.post-list a::after { content: ""; position: absolute; inset: 0; }
.post-list li:hover h3 { color: var(--teal); }
.post-list time { display: block; font: 600 .95rem var(--display); color: var(--muted); margin-bottom: 4px; }
.post-list p { margin: 0; color: var(--muted); max-width: 64ch; }
.article { max-width: 68ch; }
.article h2 { margin-top: 1.6em; font-size: clamp(1.5rem, 3vw, 2rem); }
.byline { font: 600 .95rem var(--display); color: #b9d1da; margin: 0; }

/* Contact */
.contact-list { display: grid; gap: 0; margin: 0 0 2em; max-width: 560px; }
.contact-list div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.contact-list div:last-child { border-bottom: 1px solid var(--line); }
.contact-list dt { font: 700 1rem var(--display); color: var(--muted); }
.contact-list dd { margin: 0; font-weight: 600; }

/* CTA band */
.cta-band { background: var(--norther); padding-block: clamp(44px, 6vw, 76px); }
.cta-inner { display: grid; gap: 22px; align-items: center; }
@media (min-width: 820px) { .cta-inner { grid-template-columns: 1fr auto; gap: 48px; } }
.cta-band h2 { margin-bottom: .25em; }
.cta-band p { margin: 0; color: #c4d9e1; max-width: 52ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); color: #c9dce3; padding-block: clamp(40px, 6vw, 64px) 28px; font-size: 1rem; line-height: 1.6; }
.site-footer a { color: #9fd9ea; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.site-footer h2 { font: 800 1.1rem var(--display); color: #fff; margin-bottom: .6em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .35em; }
.foot-brand p { margin: 0 0 .6em; max-width: 34ch; }
.disclaimer { margin-top: 40px; padding: 22px 24px; border: 2px solid #2b566b; border-radius: 12px; max-width: 920px; }
.disclaimer h2 { font-size: 1.05rem; margin-bottom: .4em; }
.disclaimer p { margin: 0; font-size: .98rem; line-height: 1.6; color: #dbe9ee; }
.legal { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; margin-top: 28px; padding-top: 18px; border-top: 1px solid #1d3a49; font-size: .95rem; color: #9db7c1; }
.legal ul { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.legal li { margin: 0; }

/* Sticky call bar on phones */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: var(--norther); box-shadow: 0 -6px 20px rgba(0, 0, 0, .25);
}
.callbar .btn { width: 100%; }
@media (min-width: 820px) { .callbar { display: none; } }

@media print { .callbar, .site-header .btn, .cta-band { display: none; } }
