/* hvacrepairrockwall.net — single stylesheet, mobile-first, no framework.
   Palette: graphite + cool blue (the cooling side) with a warm orange CTA
   (the heating side). Deliberately distinct from the other sites in the
   portfolio so the builds don't share a visual fingerprint. */

:root {
  --ink: #17212b;
  --ink-deep: #0e161d;
  --steel: #26536b;
  --cool: #37a3cf;
  --cool-soft: #8fcde6;
  /* CTA orange. Deepened from #ef6c1a so WHITE TEXT on it clears WCAG AA
     4.5:1 — the original read 3.07:1, which failed on the sticky mobile call
     bar, i.e. the one element the whole site exists to get tapped. */
  --accent: #c25109;
  --accent-dark: #9e4107;
  --text: #202b36;
  --text-mute: #58697a;
  --bg: #ffffff;
  --bg-alt: #f2f6f9;
  --border: #dae3ea;
  --radius: 10px;
  --max: 1120px;
  --prose: 740px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  /* clearance for the fixed mobile call bar */
  padding-bottom: 66px;
}

img, svg.figure { max-width: 100%; height: auto; display: block; }

a { color: var(--steel); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.max-prose { max-width: var(--prose); margin-left: auto; margin-right: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #fff; padding: 10px 16px;
  z-index: 300; font-weight: 700;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- Header ---------- */

.site-header {
  background: var(--ink);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,.28);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 20px;
  max-width: var(--max);
  margin: 0 auto;
}

/* The brand name must be allowed to shrink and wrap. On
   water-damage-restoration-san-antonio.net, `flex-shrink: 0` here forced the
   document to 442px on a 375px viewport, and because the document overflowed
   the position:fixed call bar stretched off-screen with it — taking the money
   element out of reach. Do not restore flex-shrink: 0. */
.logo {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 1;
  min-width: 0;
}

.logo svg { width: 27px; height: 27px; fill: var(--cool); flex-shrink: 0; }

.logo small {
  display: block;
  font-weight: 500;
  font-size: .68rem;
  color: var(--cool-soft);
  letter-spacing: .04em;
}

@media (max-width: 620px) {
  .logo { font-size: .95rem; }
  .header-inner { gap: 10px; padding: 10px 16px; }
}

.nav-toggle {
  background: none;
  border: 2px solid rgba(255,255,255,.38);
  border-radius: 7px;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  padding: 7px 11px;
  cursor: pointer;
  flex-shrink: 0;
  /* 44x44 minimum touch target. Measured at 37px before this was added. */
  min-width: 44px;
  min-height: 44px;
}

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--ink-deep);
  padding: 8px 0;
}

.site-nav.open { display: block; }

.site-nav a {
  display: block;
  color: #e4edf3;
  text-decoration: none;
  padding: 11px 20px;
  font-weight: 600;
}

.site-nav a:hover { background: var(--steel); }
.site-nav a[aria-current="page"] { color: var(--cool); }

.header-call {
  display: none;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  padding: 10px 18px;
  border-radius: var(--radius);
  white-space: nowrap;
}

.header-call:hover { background: var(--accent-dark); }

@media (min-width: 880px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex;
    position: static;
    background: none;
    padding: 0;
    gap: 2px;
  }
  .site-nav a { padding: 8px 11px; border-radius: 6px; font-size: .93rem; }
  .header-call { display: inline-block; }
}

/* ---------- Hero ----------
   Gradient only — no hero image anywhere on this site. That is deliberate:
   it removes the LCP-image problem entirely rather than managing it, and it
   means no page depends on photography the site doesn't own. */

.hero {
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(55,163,207,.30), transparent 65%),
    linear-gradient(140deg, var(--ink-deep) 0%, var(--ink) 45%, var(--steel) 100%);
  color: #fff;
  padding: 52px 0 58px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.65rem, 5vw, 2.6rem);
  line-height: 1.18;
  margin-bottom: 14px;
  letter-spacing: -.01em;
}

.hero .sub {
  font-size: clamp(1rem, 2.4vw, 1.18rem);
  color: #c6d9e4;
  max-width: 660px;
  margin: 0 auto 26px;
}

.hero .hours { margin-top: 14px; font-size: .88rem; color: #b9cdd8; }

.btn-call {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.14rem;
  padding: 16px 32px;
  border-radius: var(--radius);
  box-shadow: 0 5px 16px rgba(194,81,9,.38);
}

.btn-call:hover { background: var(--accent-dark); }

/* ---------- Trust bar ---------- */

.trust-bar { background: var(--bg-alt); border-bottom: 1px solid var(--border); }

.trust-bar ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 26px;
  padding: 13px 20px;
  max-width: var(--max);
  margin: 0 auto;
  font-weight: 700;
  font-size: .87rem;
  color: var(--steel);
}

.trust-bar li { display: flex; align-items: center; gap: 7px; }
.trust-bar svg { width: 17px; height: 17px; fill: var(--cool); flex-shrink: 0; }

/* ---------- Sections ---------- */

section { padding: 50px 0; }
section.alt { background: var(--bg-alt); }

.section-title {
  text-align: center;
  font-size: clamp(1.4rem, 4vw, 1.95rem);
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.25;
}

.section-lead {
  text-align: center;
  color: var(--text-mute);
  max-width: 680px;
  margin: 0 auto 34px;
}

/* ---------- Cards ---------- */

.cards { display: grid; grid-template-columns: 1fr; gap: 17px; }
@media (min-width: 620px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 940px) { .cards { grid-template-columns: 1fr 1fr 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  text-decoration: none;
  color: var(--text);
  display: block;
  transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}

.card:hover {
  box-shadow: 0 7px 20px rgba(23,33,43,.12);
  transform: translateY(-2px);
  border-color: var(--cool);
}

.card svg { width: 34px; height: 34px; fill: var(--cool); margin-bottom: 11px; }
.card h3 { color: var(--ink); font-size: 1.06rem; margin-bottom: 6px; }
.card p { font-size: .92rem; color: var(--text-mute); }
.card .more { display: inline-block; margin-top: 10px; font-weight: 700; color: var(--accent-dark); font-size: .89rem; }

/* ---------- Prose ---------- */

.prose h2 { color: var(--ink); font-size: 1.42rem; margin: 34px 0 12px; line-height: 1.3; }
.prose h3 { color: var(--steel); font-size: 1.12rem; margin: 24px 0 8px; }
.prose p { margin-bottom: 14px; }
.prose ul, .prose ol { margin: 0 0 15px 22px; }
.prose li { margin-bottom: 7px; }
.prose > .max-prose > p:first-child { font-size: 1.05rem; }

.lede {
  border-left: 4px solid var(--cool);
  background: var(--bg-alt);
  padding: 16px 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 22px;
}

.callout {
  background: #fff6ef;
  border: 1px solid #f6d4b8;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 17px 19px;
  margin: 22px 0;
}

.note {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 22px 0;
  font-size: .93rem;
  color: var(--text-mute);
}

.byline { font-size: .85rem; color: var(--text-mute); margin-bottom: 20px; }
.byline a { color: var(--steel); }

/* ---------- Symptom list ---------- */

.symptoms { list-style: none; margin: 0 0 18px 0; display: grid; gap: 10px; }
@media (min-width: 700px) { .symptoms { grid-template-columns: 1fr 1fr; } }

.symptoms li {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 3px solid var(--cool);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 11px 14px;
  font-size: .93rem;
  margin: 0;
}

/* ---------- Tables ---------- */

.table-wrap { overflow-x: auto; margin: 18px 0; }

.data-table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 460px; }
.data-table th, .data-table td { text-align: left; padding: 10px 13px; border-bottom: 1px solid var(--border); vertical-align: top; }
.data-table th { background: var(--steel); color: #fff; font-weight: 700; }
.data-table tr:nth-child(even) td { background: var(--bg-alt); }
.data-table caption { caption-side: bottom; padding-top: 10px; font-size: .84rem; color: var(--text-mute); text-align: left; }

/* ---------- Steps ---------- */

.steps { display: grid; gap: 17px; grid-template-columns: 1fr; }
@media (min-width: 780px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
}

.step .num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 11px;
}

.step h3 { color: var(--ink); margin-bottom: 6px; font-size: 1.02rem; }
.step p { font-size: .91rem; color: var(--text-mute); }

/* ---------- Area links ---------- */

.area-links { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 720px) { .area-links { grid-template-columns: repeat(5, 1fr); } }

.area-links a {
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 10px;
  text-decoration: none;
  font-weight: 600;
  color: var(--steel);
  text-align: center;
  font-size: .94rem;
}

.area-links a:hover { border-color: var(--accent); color: var(--accent-dark); }

/* ---------- Related links ---------- */

.related-links { list-style: none; display: grid; gap: 10px; grid-template-columns: 1fr; margin-left: 0 !important; }
@media (min-width: 700px) { .related-links { grid-template-columns: 1fr 1fr; } }

.related-links li { margin: 0; }

.related-links a {
  display: block;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 15px;
  text-decoration: none;
  font-weight: 600;
  color: var(--steel);
  font-size: .94rem;
}

.related-links a:hover { border-color: var(--accent); }

/* ---------- FAQ ---------- */

.faq-list { max-width: var(--prose); margin: 0 auto; }

.faq-list details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  padding: 15px 42px 15px 18px;
  list-style: none;
  position: relative;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 18px; top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
}

.faq-list details[open] summary::after { content: "\2212"; }
.faq-list details p { padding: 0 18px 16px; color: var(--text-mute); }

/* ---------- Figures / diagrams ---------- */

figure { margin: 24px 0; }

figure svg {
  width: 100%;
  height: auto;
  max-width: 680px;
  margin: 0 auto;
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* Prose belongs in the caption, never inside the SVG. SVG text does not survive
   mobile downscaling — a 720-unit canvas in a 350px column renders 12px labels
   at roughly 6px. Caption text is real text at real size, selectable and
   crawlable. (Lesson from the sacramentohvaccontractor.net diagram build.) */
figcaption {
  font-size: .88rem;
  color: var(--text-mute);
  max-width: 680px;
  margin: 10px auto 0;
  line-height: 1.55;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: linear-gradient(140deg, var(--ink) 0%, var(--steel) 100%);
  color: #fff;
  text-align: center;
  padding: 46px 20px;
}

.cta-band h2 { font-size: clamp(1.3rem, 4vw, 1.85rem); margin-bottom: 10px; }
.cta-band p { color: #c6d9e4; margin-bottom: 20px; max-width: 620px; margin-left: auto; margin-right: auto; }

/* ---------- Breadcrumb ---------- */

.breadcrumb { font-size: .85rem; padding: 12px 0 4px; }
.breadcrumb a { color: #b9cdd8; }
.breadcrumb { color: #b9cdd8; }

/* ---------- Guide index ---------- */

.guide-list { list-style: none; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .guide-list { grid-template-columns: 1fr 1fr; } }

.guide-list li { margin: 0; }

.guide-list a {
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  color: var(--text);
}

.guide-list a:hover { border-color: var(--cool); box-shadow: 0 6px 18px rgba(23,33,43,.10); }
.guide-list h3 { color: var(--ink); font-size: 1.05rem; margin-bottom: 6px; }
.guide-list p { font-size: .92rem; color: var(--text-mute); }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink-deep); color: #adc2ce; padding: 42px 0 24px; font-size: .9rem; }

.footer-grid {
  display: grid; gap: 26px; grid-template-columns: 1fr;
  max-width: var(--max); margin: 0 auto; padding: 0 20px;
}
@media (min-width: 620px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; } }

.site-footer h2 { color: #fff; margin-bottom: 12px; font-size: .98rem; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #adc2ce; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

.footer-phone { color: #ff9a52 !important; font-weight: 800; font-size: 1.12rem; text-decoration: none; }

/* Legible, not hidden fine print. This is the site's compliance disclosure and
   it appears on every page — 0.8rem at 92ch, not 10px gray-on-gray. */
.disclosure {
  max-width: var(--max);
  margin: 26px auto 0;
  padding: 18px 20px 0;
  border-top: 1px solid rgba(255,255,255,.13);
  font-size: .8rem;
  color: #93a9b6;
  line-height: 1.6;
}

.disclosure a { color: var(--cool-soft); text-decoration: underline; }

/* ---------- Sticky mobile call bar ---------- */

.mobile-call-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--accent);
  text-align: center;
  box-shadow: 0 -2px 12px rgba(0,0,0,.22);
}

.mobile-call-bar a {
  display: block;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 17px 12px;
  letter-spacing: .01em;
}

@media (min-width: 880px) {
  .mobile-call-bar { display: none; }
  body { padding-bottom: 0; }
}

/* ---------- 404 ---------- */

.err { text-align: center; padding: 70px 20px; }
.err h1 { font-size: clamp(1.6rem, 5vw, 2.3rem); color: var(--ink); margin-bottom: 12px; }
.err p { color: var(--text-mute); max-width: 520px; margin: 0 auto 22px; }
