/* San Antonio Heating & Air Conditioning — Design DNA
   Mood: Clinical HVAC precision — a thermostat readout, not a toolbox on
   a truck bed. Calm, exact, dual-temperature.
   Color: ice-white canvas, deep navy ink, cyan "cool" accent paired with
   an ember-orange "heat" accent (dual-tone hot/cold, literal to the trade —
   distinct cool-lane palette from every warm/earthy build in this pool)
   Type: Sora (display, geometric technical) + Manrope (body, humanist sans)
   Layout: centered stacked hero with a horizontal split gauge visual (not a
   split-screen hero, not a sidebar rail), spec strip beneath, card-grid
   services on inner pages
   Motion: calm fades, plus a slow-draw semicircle gauge sweep
   Signature element: animated semicircle temperature gauge that sweeps
   from ember-orange (heat) through to cyan (cool) beneath the hero headline
*/

:root {
  --canvas: oklch(97% 0.006 240);
  --canvas-alt: oklch(93% 0.008 240);
  --panel: oklch(99% 0.003 240);
  --ink: oklch(22% 0.02 255);
  --ink-soft: oklch(44% 0.016 255);
  --navy: oklch(30% 0.05 255);
  --navy-dark: oklch(22% 0.045 255);
  --cyan: oklch(70% 0.12 205);
  --cyan-light: oklch(92% 0.03 205);
  --ember: oklch(65% 0.16 45);
  --ember-light: oklch(93% 0.04 45);
  --line: oklch(88% 0.008 240);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', sans-serif;
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.6;
}

h1, h2, h3, .display {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

a { color: inherit; text-decoration: none; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 32px; }

/* ---- Nav ---- */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 32px;
  max-width: 1120px;
  margin: 0 auto;
}
.nav-brand { font-family: 'Sora', sans-serif; font-size: 18px; font-weight: 700; }
.nav-brand span { color: var(--navy); }
.nav-links { display: flex; gap: 30px; font-size: 15px; }
.nav-links a { color: var(--ink-soft); transition: color 0.25s ease; }
.nav-links a:hover { color: var(--navy); }
.nav-cta {
  background: var(--navy);
  color: white !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}

/* ---- Hero: centered stacked ---- */
.hero {
  max-width: 820px;
  margin: 30px auto 0;
  padding: 30px 32px 0;
  text-align: center;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 50px);
  line-height: 1.1;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.9s cubic-bezier(0.22,1,0.36,1) forwards;
}
.hero .sub {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 auto 28px;
  opacity: 0;
  animation: fadeUp 0.9s cubic-bezier(0.22,1,0.36,1) 0.18s forwards;
}
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; opacity: 0; animation: fadeUp 0.9s cubic-bezier(0.22,1,0.36,1) 0.34s forwards; }

.btn-primary {
  background: var(--navy);
  color: white;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  display: inline-block;
  transition: background 0.25s ease;
}
.btn-primary:hover { background: var(--navy-dark); }
.btn-secondary {
  border: 1.5px solid var(--line);
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.25s ease;
}
.btn-secondary:hover { border-color: var(--navy); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Signature element: gauge sweep */
.gauge-band {
  max-width: 620px;
  margin: 44px auto 0;
  padding: 0 32px;
}
.gauge-svg { width: 100%; height: auto; display: block; }
.gauge-track { stroke: var(--line); stroke-width: 14; fill: none; }
.gauge-sweep {
  stroke-width: 14;
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 440;
  stroke-dashoffset: 440;
  animation: gaugeSweep 1.8s cubic-bezier(0.22,1,0.36,1) 0.4s forwards;
}
@keyframes gaugeSweep { to { stroke-dashoffset: 0; } }
.gauge-labels { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-soft); margin-top: 10px; font-weight: 600; }
.gauge-labels .heat { color: var(--ember); }
.gauge-labels .cool { color: var(--cyan); }

/* ---- Spec strip ---- */
.spec-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 1120px;
  margin: 60px auto 0;
  padding: 0 32px;
}
.spec-strip .stat { padding: 22px 24px; border-top: 2px solid var(--navy); text-align: center; }
.spec-strip .stat strong { font-family: 'Sora', sans-serif; font-size: 22px; display: block; color: var(--navy); margin-bottom: 6px; }
.spec-strip .stat span { font-size: 13.5px; color: var(--ink-soft); }

/* ---- Sections ---- */
section { padding: 76px 0; }
.section-alt { background: var(--canvas-alt); }
.section-head { text-align: center; }
.section-label {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 13px;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(27px, 3.4vw, 38px); margin-bottom: 16px; max-width: 640px; margin-left: auto; margin-right: auto; }
.section-head p { color: var(--ink-soft); font-size: 16.5px; max-width: 560px; margin: 0 auto; }

/* ---- Services card grid ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 44px;
}
.service-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.service-card:hover { border-color: var(--cyan); transform: translateY(-2px); }
.service-card .icon-dot { width: 34px; height: 34px; border-radius: 999px; background: var(--cyan-light); margin-bottom: 16px; position: relative; }
.service-card .icon-dot::after { content: ''; position: absolute; inset: 9px; border-radius: 999px; background: var(--cyan); }
.service-card h3 { font-size: 18px; margin-bottom: 8px; }
.service-card p { font-size: 14.5px; color: var(--ink-soft); }

.spec-list { margin-top: 20px; }
.spec-row {
  display: grid;
  grid-template-columns: 60px 1fr 1.4fr;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.spec-row .num { font-family: 'Sora', sans-serif; color: var(--navy); font-weight: 700; }
.spec-row h3 { font-size: 19px; margin-bottom: 6px; }
.spec-row p { color: var(--ink-soft); font-size: 15px; }

/* ---- CTA band ---- */
.cta-band {
  background: var(--navy);
  color: white;
  text-align: center;
  padding: 68px 32px;
  border-radius: 20px;
}
.cta-band h2 { color: white; font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 14px; }
.cta-band p { color: var(--cyan-light); margin-bottom: 26px; }
.cta-band .btn-primary { background: var(--ember); color: white; }
.cta-band .btn-primary:hover { background: oklch(58% 0.16 45); }

/* ---- Footer ---- */
footer {
  padding: 38px 32px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-soft);
  text-align: center;
}

/* ---- Inner pages ---- */
.page-header { padding: 56px 32px 36px; max-width: 780px; margin: 0 auto; text-align: center; }
.page-header h1 { font-size: clamp(30px, 4.2vw, 42px); margin-bottom: 14px; }
.page-header p { font-size: 17px; color: var(--ink-soft); }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  max-width: 1120px;
  margin: 0 auto 76px;
  padding: 0 32px;
}
.contact-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 34px;
  background: var(--panel);
}
.contact-card a.phone { font-family: 'Sora', sans-serif; font-size: 25px; color: var(--navy); display: block; margin: 8px 0 22px; }
.contact-row { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.contact-row:last-child { border-bottom: none; }

form.light-form { display: flex; flex-direction: column; gap: 15px; }
form.light-form label { font-size: 14px; font-weight: 600; color: var(--ink); }
form.light-form input, form.light-form select, form.light-form textarea {
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  background: var(--canvas);
}
form.light-form textarea { resize: vertical; min-height: 88px; }
form.light-form button {
  background: var(--navy);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  margin-top: 6px;
  transition: background 0.25s ease;
}
form.light-form button:hover { background: var(--navy-dark); }

@media (max-width: 780px) {
  .services-grid, .spec-strip, .contact-layout { grid-template-columns: 1fr; }
  .spec-row { grid-template-columns: 1fr; gap: 8px; }
  .nav-links { display: none; }
}
