/* ==========================================================================
   AGENT 05 — header-hero.css
   Texas Heat & Air — Gold Master Homepage Reproduction — PRIVATE STAGING
   Scope: .tha-header (Gold §01), .tha-hero (§02), .tha-trust (§03),
          shared .tha-container / .tha-btn primitives used by those sections.
   All measurements derived from Agent 02 MEASUREMENT.md (@1440 = native
   699px x 2.0601). Colors sampled from the gold PNG, not assumed.
   ========================================================================== */

:root {
  /* Gold-sampled palette (Agent 02 §2) */
  --tha-red: #E00E29;          /* CTA red, everywhere */
  --tha-red-dark: #B80B21;     /* hover shade of the same red (derived) */
  --tha-hero-navy-core: #042747;
  --tha-hero-navy-deep: #012241;
  --tha-hero-navy-high: #0C2947;
  --tha-heading-navy: #243A52; /* heading ink core (Agent 02 §2) */
  --tha-text-slate: #5A6B7D;   /* secondary/body text (triangulated, §3) */
  --tha-hairline: #E3EAF1;
  --tha-focus: #1B6AC9;        /* focus ring, visible on white and navy */
  --tha-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --tha-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
              Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Scoped reset for Agent 05 fragments (safe inside any host page) */
.tha-header, .tha-hero, .tha-trust,
.tha-header *, .tha-hero *, .tha-trust * {
  box-sizing: border-box;
}
.tha-header p, .tha-header address, .tha-hero p, .tha-trust p {
  margin: 0;
}
.tha-header ul, .tha-hero ul, .tha-trust ul {
  margin: 0; padding: 0; list-style: none;
}

/* Content container: 89.7% of width (Agent 02 §1) */
.tha-container {
  width: 89.7%;
  max-width: 1400px;
  margin-inline: auto;
}

/* Visible keyboard focus on every interactive element in scope */
.tha-header a:focus-visible,
.tha-hero a:focus-visible,
.tha-trust a:focus-visible {
  outline: 3px solid var(--tha-focus);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Shared buttons (hero geometry: Agent 02 §02 — 25px native ≈ 51px @1440,
   radius ≈ 6px @1440; labels bold ≈17px @1440)
   -------------------------------------------------------------------------- */
.tha-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 51px;
  padding: 12px 28px;
  border: 2px solid transparent;
  border-radius: 6px;
  font-family: var(--tha-sans);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.tha-btn--sm {
  min-height: 44px;
  padding: 9px 20px;
  font-size: 16px;
}
.tha-btn--red {
  background: var(--tha-red);
  color: #fff;
}
.tha-btn--red:hover { background: var(--tha-red-dark); }
.tha-btn--outline {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(255, 255, 255, .85);
  color: #fff;
}
.tha-btn--outline:hover {
  background: rgba(255, 255, 255, .14);
  border-color: #fff;
}
.tha-btn__icon { width: 20px; height: 20px; flex: none; fill: currentColor; }
.tha-btn__icon-cut { fill: var(--tha-red); } /* check cutout on the red button */
.tha-btn__arrow { width: 16px; height: 16px; flex: none; }

/* Inline icon defaults (header + trust) */
.tha-icon { width: 26px; height: 26px; flex: none; fill: currentColor; }
.tha-icon--red { color: var(--tha-red); fill: var(--tha-red); }
.tha-icon__cut { fill: #fff; } /* check cutout inside red shield/pin glyphs */

/* ==========================================================================
   01 — HEADER
   Gold: white, 52px native ≈ 107px @1440. Logo ink x 58–200 (starts RIGHT
   of the container edge — do not snap it to the container). Info row over
   nav row on the right; red Request Service button at nav-row right.
   ========================================================================== */
.tha-header {
  background: #fff;
  font-family: var(--tha-sans);
  color: var(--tha-heading-navy);
  border-bottom: 1px solid var(--tha-hairline);
}
.tha-header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-block: 1px 2px;
}

/* Logo: official master lockup (Agent 04). The master rasters carry ~3.5%
   transparent padding (measured: 800w file ink = 709×251 of 800×306), while
   the gold renders the ink at 142×49 native ≈ 292×101 @1440. The anchor is
   therefore an ink-sized window (292×103) with the image offset by its own
   padding — only transparent margin is clipped; the artwork itself is
   never cropped, stretched or recolored (Agent 04 QC rules). The old live
   logo's 1.84:1 slot must NOT be reused for this 2.61:1 master. */
.tha-header__logo {
  flex: none;
  display: block;
  width: 292px;
  height: 103px;
  overflow: hidden;
  /* Gold logo ink starts ≈ x58 native (8.3%) vs container edge x38 (5.4%);
     the file padding (~12px at this size) accounts for part of the offset */
  margin-left: clamp(0px, 2.1vw, 30px);
}
.tha-header__logo picture { display: block; }
.tha-header__logo img {
  display: block;
  width: 330px;
  max-width: none;
  height: auto;
  margin: -12px 0 0 -12px;
}

.tha-header__main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

/* --- Info row --- */
.tha-header__info {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: clamp(20px, 3vw, 46px);
}
.tha-header__info-block {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.tha-header__info-text {
  font-style: normal;
  font-size: 13.5px;
  line-height: 1.38;
  color: var(--tha-text-slate);
}
.tha-header__info-text strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--tha-heading-navy);
}
.tha-header__call-text { line-height: 1.25; }
.tha-header__call-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--tha-heading-navy);
}
.tha-header__phone {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--tha-red);
  text-decoration: none;
}
.tha-header__phone:hover { text-decoration: underline; }

/* --- Nav row --- */
.tha-header__nav { }
.tha-nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px clamp(11px, 1.35vw, 20px);
}
.tha-nav__item { position: relative; }
.tha-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 2px;
  font-size: 15px;
  font-weight: 500;
  color: var(--tha-heading-navy);
  text-decoration: none;
  white-space: nowrap;
}
.tha-nav__link:hover { color: var(--tha-red); }
.tha-nav__caret { width: 11px; height: 11px; color: var(--tha-text-slate); }
.tha-nav__item--cta { margin-left: auto; }

/* Dropdown menus: CSS-only reveal on hover / focus-within, so every menu
   link stays keyboard-reachable with no JavaScript (Agent 09 verifies).
   Menus open below the nav row; z-index sits above the hero. */
.tha-nav__menu {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  z-index: 60;
  min-width: 250px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--tha-hairline);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(4, 39, 71, .16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.tha-nav__item--has-menu:hover .tha-nav__menu,
.tha-nav__item--has-menu:focus-within .tha-nav__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.tha-nav__menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 5px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--tha-heading-navy);
  text-decoration: none;
  white-space: nowrap;
}
.tha-nav__menu a:hover,
.tha-nav__menu a:focus-visible {
  background: #EEF4FA;
  color: var(--tha-red);
}

/* ==========================================================================
   02 — HERO
   Gold: y 52–284 (232 native ≈ 478 @1440), full-bleed. Photo right ≈60%;
   navy GRADIENT overlay (Agent 02 §2) — NOT a flat fill. Text-safe zone
   x 38–300 native (container-left → ≈43% of width). CTA row y 246–271.
   ========================================================================== */
.tha-hero {
  position: relative;
  overflow: hidden;
  background: var(--tha-hero-navy-core);
  font-family: var(--tha-sans);
  color: #fff;
}
/* Photo layer: full-height, anchored right. object-fit cover preserves
   the composition; object-position keeps the handshake + van in frame.
   R-06: layout geometry lives on the <picture> frame so the hero image
   itself is a swappable slot (see index.html); the img fills the frame. */
.tha-hero__photo-frame {
  display: block;
  margin: 0;
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 64%;
  height: 100%;
}
.tha-hero__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
}
/* Gradient: solid navy at left → transparent over the photo, with the
   sampled vertical deepening (#012241 top-left). */
.tha-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(1, 34, 65, .38) 0%, rgba(1, 34, 65, 0) 34%),
    linear-gradient(90deg,
      var(--tha-hero-navy-deep) 0%,
      var(--tha-hero-navy-core) 26%,
      rgba(4, 39, 71, .88) 40%,
      rgba(4, 39, 71, .34) 54%,
      rgba(12, 41, 71, 0) 70%);
}
.tha-hero__inner {
  position: relative;
  z-index: 1;
}
.tha-hero__content {
  max-width: 920px; /* widened for the one-row CTA strip (U-4); H1/support keep gold widths */
  padding-block: 38px 34px;
}
.tha-hero__eyebrow {
  margin-bottom: 12px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .10em;
  white-space: nowrap;
  text-transform: uppercase;
  color: #fff;
}
.tha-hero__title {
  max-width: 560px; /* gold text-safe zone ≈ 43% of page width */
  margin: 0 0 16px;
  font-size: 43px; /* Agent 02: ≈21 native ≈ 43 @1440, pitch 26 native */
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.01em;
  color: #fff;
}
.tha-hero__support {
  max-width: 480px;
  font-size: 18.5px;
  line-height: 1.42;
  color: rgba(255, 255, 255, .92);
}
/* Gold line-break replication at desktop; spans go inline when stacked */
.tha-line { display: block; }

.tha-hero__ctas {
  display: flex;
  flex-wrap: nowrap;
  gap: 14px;
  margin-top: 20px;
}

/* ==========================================================================
   03 — TRUST BAR
   Gold: white, y 284–321 (37 native ≈ 76 @1440). Four items in one row.
   Icon centers at 9.7% / 29.8% / 54.4% / 76.8% of PAGE width — deliberately
   uneven (widths follow text length), so this is a space-between flex row,
   NOT an even 4-column grid. Icons solid red ≈ 23 native ≈ 47 @1440.
   ========================================================================== */
.tha-trust {
  background: #fff;
  font-family: var(--tha-sans);
  border-bottom: 1px solid var(--tha-hairline);
}
.tha-trust__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 15px;
  /* Gold item 1 icon sits ≈18 native px inside the container edge */
  padding-inline: clamp(0px, 2vw, 30px);
}
.tha-trust__item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.tha-trust__icon {
  width: 46px;
  height: 46px;
  flex: none;
  color: var(--tha-red);
  fill: var(--tha-red);
}
.tha-trust__text {
  font-size: 14px;
  line-height: 1.4;
  color: var(--tha-text-slate);
}
.tha-trust__text strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--tha-heading-navy);
}
.tha-trust__text span { display: block; }

/* ==========================================================================
   RESPONSIVE
   Gold contains no small-width design (Agent 02 §5): below desktop the
   brief §08 governs — logical stacking in content order, branding and
   primary CTAs preserved, targets ≥44px (buttons do NOT scale down
   proportionally — documented deviation required by the brief).
   ========================================================================== */

/* Narrow desktop / large tablet: compress header before stacking */
@media (max-width: 1180px) {
  .tha-header__logo { width: 248px; height: 88px; }
  .tha-header__logo img { width: 280px; margin: -10px 0 0 -10px; }
  .tha-header__phone { font-size: 22px; }
  .tha-header__info { gap: 22px; }
  .tha-hero__content { max-width: 500px; }
  .tha-hero__title { font-size: 37px; }
}

/* Tablet: header stacks (logo+call row, info row, nav row);
   hero keeps two-zone composition with a narrower text zone */
@media (max-width: 900px) {
  .tha-header__inner {
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 20px;
  }
  .tha-header__logo { margin-left: 0; width: 228px; height: 81px; }
  .tha-header__logo img { width: 257px; margin: -9px 0 0 -9px; }
  /* Flatten the main column so the info row can sit beside the logo and
     the nav takes its own full-width row (DOM order is unchanged). */
  .tha-header__main { display: contents; }
  .tha-header__info {
    order: 2;
    margin-left: auto;
    justify-content: flex-end;
  }
  .tha-header__nav { order: 3; flex-basis: 100%; overflow-x: auto; padding-bottom: 4px; }
  .tha-nav { flex-wrap: nowrap; }
  .tha-nav__item--cta { margin-left: 12px; }

  .tha-hero__photo-frame { width: 100%; opacity: .38; }
  .tha-hero__photo { object-position: 70% 50%; }
  .tha-hero__overlay {
    background:
      linear-gradient(180deg, rgba(1, 34, 65, .55) 0%, rgba(1, 34, 65, .18) 40%),
      linear-gradient(90deg, rgba(1, 34, 65, .88) 0%, rgba(4, 39, 71, .55) 62%, rgba(12, 41, 71, .25) 100%);
  }
  .tha-hero__content { max-width: 600px; padding-block: 38px 40px; }
  .tha-hero__ctas { flex-wrap: wrap; }
  .tha-hero__title { font-size: 34px; }
  .tha-hero__support { font-size: 17px; }
  .tha-line { display: inline; }

  .tha-trust__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
    padding-inline: 0;
  }
}

/* Mobile: hero stacks text first, photo as a full-width band BELOW the
   content (content order per brief §08); CTAs full-width so the primary
   Request Service stays in the first screen at 390/360/320. */
@media (max-width: 640px) {
  .tha-container { width: auto; margin-inline: 18px; }

  .tha-header__inner { padding-block: 8px; }
  .tha-header__logo { width: 192px; height: 68px; }
  .tha-header__logo img { width: 217px; margin: -8px 0 0 -8px; }
  .tha-header__info { gap: 14px; }
  .tha-header__info-block .tha-icon { width: 20px; height: 20px; }
  .tha-header__info-text { font-size: 12.5px; }
  .tha-header__info-text strong { font-size: 13px; }
  .tha-header__phone { font-size: 19px; }
  .tha-header__call-label { font-size: 12px; }
  /* License block wraps under the logo row instead of crowding the call
     block — content preserved, order unchanged (DOM order is kept). */
  .tha-header__info { flex-wrap: wrap; }

  .tha-hero { display: flex; flex-direction: column; }
  .tha-hero__inner { order: 1; }
  .tha-hero__overlay { display: none; }
  .tha-hero__photo-frame {
    order: 2;
    position: static;
    width: 100%;
    height: 220px;
    opacity: 1;
  }
  .tha-hero__photo { object-position: 60% 45%; }
  .tha-hero__content { max-width: none; padding-block: 28px 26px; }
  .tha-hero__eyebrow { font-size: 12px; letter-spacing: .12em; }
  .tha-hero__title { font-size: 29px; line-height: 1.22; }
  .tha-hero__support { font-size: 16px; }
  .tha-hero__ctas { flex-direction: column; align-items: stretch; margin-top: 22px; }
  .tha-hero__ctas .tha-btn { width: 100%; min-height: 50px; }

  .tha-trust__inner { gap: 14px 16px; padding-block: 14px; }
  .tha-trust__icon { width: 36px; height: 36px; }
  .tha-trust__text { font-size: 13px; }
  .tha-trust__text strong { font-size: 13.5px; }
}

/* Small phones: keep type legible; nothing scales below readable sizes */
@media (max-width: 360px) {
  .tha-hero__title { font-size: 26px; }
  .tha-header__logo { width: 170px; height: 60px; }
  .tha-header__logo img { width: 192px; margin: -7px 0 0 -7px; }
  .tha-header__phone { font-size: 17px; }
}

/* Reduced motion (brief §08) */
@media (prefers-reduced-motion: reduce) {
  .tha-btn, .tha-nav__menu { transition: none; }
}

/* ==== Gate 4 fix round 2 (staging only) ====
/* P10: header license shield is navy in gold (trust-bar shield stays red). */
.tha-icon--navy { color: var(--tha-heading-navy); fill: var(--tha-heading-navy); }
/* A-2: skip link — off-screen until focused; zero visual change at rest. */
.tha-skip-link { position: absolute; left: 16px; top: -64px; z-index: 200; background: #fff; color: var(--tha-heading-navy); font-family: var(--tha-sans); font-size: 15px; font-weight: 600; padding: 10px 18px; border-radius: 6px; text-decoration: none; box-shadow: 0 6px 20px rgba(4, 39, 71, .25); }
.tha-skip-link:focus-visible { top: 10px; outline: 3px solid var(--tha-focus); outline-offset: 2px; }
/* P5: hero photo — anchor the crop's right edge so the van wrap block
   ('WE FIX BOTH.') and the printed phone number are never clipped. */
.tha-hero__photo { object-position: 100% 50%; }
/* P9: hero CTA row widened toward gold's extent (row ends x≈944 @1440). */
.tha-hero__ctas { gap: 16px; }
.tha-hero__ctas .tha-btn { padding-inline: 42px; font-size: 18px; }
/* R-1: compressed single-row header for 1181–1439px; the QC-verified
   1440px geometry above is untouched. */
@media (min-width: 1181px) and (max-width: 1439px) {
  .tha-header__inner { gap: 14px; }
  .tha-header__logo { width: 248px; height: 88px; margin-left: 0; }
  .tha-header__logo img { width: 280px; margin: -10px 0 0 -10px; }
  .tha-nav { gap: 4px clamp(7px, 0.85vw, 12px); }
  .tha-nav__link { font-size: 13.5px; padding: 7px 0; }
  .tha-btn--sm { padding: 9px 14px; font-size: 14.5px; }
}
/* R-1: the stacked header with scrollable nav takes over at ≤1180px
   (previously ≤900px), so the CTA is never pushed off-screen.
   Scoped to >=641px so the original small-phone header rules
   (smaller logo at <=640/<=360px) keep governing phones. */
@media (min-width: 641px) and (max-width: 1180px) {
  .tha-header__inner { flex-wrap: wrap; align-items: center; gap: 10px 20px; }
  .tha-header__logo { margin-left: 0; width: 228px; height: 81px; }
  .tha-header__logo img { width: 257px; margin: -9px 0 0 -9px; }
  .tha-header__main { display: contents; }
  .tha-header__info { order: 2; margin-left: auto; justify-content: flex-end; }
  .tha-header__nav { order: 3; flex-basis: 100%; overflow-x: auto; padding-bottom: 4px; }
  .tha-nav__item--cta { margin-left: 12px; }
}
/* R-3: hero eyebrow wraps on phones instead of clipping mid-phrase
   (desktop keeps the single line). */
@media (max-width: 640px) {
  .tha-hero__eyebrow { white-space: normal; }
}
/* R-5: trust bar fits 320px — item 2's license line stays inside the edge. */
@media (max-width: 360px) {
  .tha-trust__inner { gap: 12px; }
  .tha-trust__item { gap: 9px; }
  .tha-trust__icon { width: 32px; height: 32px; }
  .tha-trust__text { font-size: 12.5px; }
  .tha-trust__text strong { font-size: 13px; }
  .tha-trust__text span { overflow-wrap: anywhere; }
}

/* ==========================================================================
   R-06 — REFINEMENT ROUND: compact mobile header + accessible menu +
   two-part mobile hero (R-03 spec MH/MN/HR). Everything in this block is
   ≤767px-only EXCEPT the two base rules directly below, which merely keep
   the new mobile markup invisible at ≥768px. Desktop (≥768) header/hero
   rendering is frozen (refinement/r01/FREEZE.md §1) and untouched: the
   desktop info row, desktop nav and hero composition rules above are not
   modified by this block.
   ========================================================================== */

/* Base: mobile-only markup stays hidden wherever the desktop header runs. */
.tha-header__mobile-actions { display: none; }
.tha-mobile-menu { display: none; }

/* Visible focus for the new button controls (links are already covered by
   the .tha-header a:focus-visible rule at the top of this file). */
.tha-header__menu-btn:focus-visible,
.tha-mm-toggle:focus-visible {
  outline: 3px solid var(--tha-focus);
  outline-offset: 2px;
  border-radius: 4px;
}
/* The panel container is a programmatic focus landing point (MN-6), not a
   tab stop; its outline is suppressed, panel links keep the 3px outline. */
.tha-mobile-menu:focus { outline: none; }

@media (max-width: 767px) {

  /* ---- MH-1: one compact bar — logo + call + Menu, nothing else ------- */
  /* The owner's real device wrapped the old number via Android font
     boosting; pin text scaling inside the header so the bar's measured
     geometry is the shipped geometry. */
  .tha-header { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  .tha-header__main { display: none; } /* desktop info row + nav: ≥768 only */
  .tha-header__inner {
    width: auto;
    margin-inline: 12px;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    padding-block: 10px;
  }
  /* Logo displayed ink height 46px (MH-1 range 44–56); same ink-window
     technique as desktop — only the master's transparent padding is
     clipped, the artwork is never cropped or stretched. */
  .tha-header__logo { width: 130px; height: 46px; margin-left: 0; }
  .tha-header__logo img { width: 147px; margin: -5px 0 0 -8px; }

  .tha-header__mobile-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    min-width: 0;
  }
  /* Neither action may be flex-shrunk: a shrunk button lets its label
     spill past the border box and widen the document (measured round 1). */
  .tha-header__mobile-call, .tha-header__menu-btn { flex: none; }
  /* MH-5: the number never wraps mid-number — nowrap, one line at every
     width; the whole link is a ≥44px tel: target. */
  .tha-header__mobile-call {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 6px 4px;
    color: var(--tha-red);
    text-decoration: none;
  }
  .tha-header__mobile-call .tha-icon {
    width: 19px; height: 19px;
    color: var(--tha-red); fill: var(--tha-red);
  }
  .tha-header__mobile-number {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -.01em;
    white-space: nowrap;
  }
  /* MN-1: real button, visible "Menu" label, ≥44×44. */
  .tha-header__menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 44px;
    min-height: 44px;
    padding: 9px 12px;
    background: #fff;
    border: 1.5px solid var(--tha-heading-navy);
    border-radius: 6px;
    color: var(--tha-heading-navy);
    font-family: var(--tha-sans);
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
  }
  .tha-menu-btn__icon { width: 20px; height: 20px; flex: none; }

  /* ---- MN: expandable panel (in-flow, full width, own vertical scroll) - */
  .tha-mobile-menu {
    display: block;
    border-top: 1px solid var(--tha-hairline);
    background: #fff;
    max-height: calc(100dvh - 67px);
    overflow-y: auto;
  }
  .tha-mobile-menu[hidden] { display: none; }
  .tha-mm-list > li { border-bottom: 1px solid var(--tha-hairline); }
  .tha-mm-row { display: flex; align-items: stretch; }
  .tha-mm-link {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 48px;
    padding: 10px 18px;
    font-size: 16px;
    font-weight: 600;
    color: var(--tha-heading-navy);
    text-decoration: none;
  }
  .tha-mm-toggle {
    flex: none;
    width: 52px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-left: 1px solid var(--tha-hairline);
    color: var(--tha-text-slate);
    cursor: pointer;
  }
  .tha-mm-toggle svg { width: 16px; height: 16px; transition: transform .15s ease; }
  .tha-mm-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .tha-mm-sub { background: #F4F8FC; }
  .tha-mm-sub a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 9px 18px 9px 32px;
    font-size: 15px;
    font-weight: 500;
    color: var(--tha-heading-navy);
    text-decoration: none;
  }
  .tha-mm-cta { border-bottom: none; padding: 14px 18px 8px; }
  .tha-mm-request { width: 100%; min-height: 50px; }
  /* MH-3 location (i): address + license, character-exact, at the panel foot */
  .tha-mobile-menu__details { padding: 10px 18px 16px; }
  .tha-mm-detail {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 0 0 7px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--tha-text-slate);
  }
  .tha-mm-detail .tha-icon { width: 16px; height: 16px; margin-top: 2px; }

  /* ---- HR: two-part mobile hero — navy text block, then photo band ---- */
  .tha-hero { display: flex; flex-direction: column; }
  .tha-hero__inner { order: 1; }
  .tha-hero__overlay { display: none; }
  .tha-hero__photo-frame {
    order: 2;
    position: static;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9; /* HR-4 window (16:10–16:9); the 16:9 end serves
                             HR-5's hero-height target */
    opacity: 1;
  }
  .tha-hero__content { max-width: none; padding-block: 22px 20px; }
  .tha-hero__eyebrow {
    font-size: 12px;
    letter-spacing: .12em;
    white-space: normal; /* HR-3: may wrap, never clipped */
    margin-bottom: 10px;
  }
  .tha-hero__title {
    max-width: none;
    /* SPEC TENSION, resolved toward HR-1's line counts (probe data in
       r06/BUILD-NOTES.md): the TS table's clamp(27px, 7.8vw, 32px) renders
       this headline at 4 lines at 390 and 5 lines at 320 in Inter — its
       own ≤3/≤4-line musts are unattainable at those sizes in this
       measure. 25px at 390 is the largest size that produces 3 lines
       (and 4 at 320); the 32px cap keeps ≥500px viewports at table size. */
    font-size: clamp(25px, 6.4vw, 32px);
    line-height: 1.15;
    letter-spacing: -.01em;
    margin-bottom: 12px;
  }
  .tha-hero__support {
    max-width: none;
    font-size: 16px;
    line-height: 1.5; /* HR-2 */
  }
  .tha-hero__ctas {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 11px; /* HR-5: 10–12px */
    margin-top: 16px;
  }
  .tha-hero__ctas .tha-btn {
    width: 100%;
    padding-inline: 20px;
    font-size: 16px;
  }
  .tha-hero__ctas .tha-btn--red { min-height: 50px; font-size: 17px; }   /* HR-5: 48–52 */
  .tha-hero__ctas .tha-btn--outline { min-height: 46px; }               /* HR-5: 44–48 */
}

/* ≤360px: tighten the bar so logo + unbroken number + Menu still fit one
   row (MH-1/MH-5 hold at 320). Logo ink height 44px — the MH-1 floor. */
@media (max-width: 360px) {
  .tha-header__inner { margin-inline: 10px; gap: 6px; }
  .tha-header__logo { width: 124px; height: 44px; }
  .tha-header__logo img { width: 140px; margin: -5px 0 0 -8px; }
  .tha-header__mobile-actions { gap: 6px; }
  .tha-header__mobile-number { font-size: 14px; }
  .tha-header__menu-btn { padding: 9px 10px; }
}

/* ≤430px: the single row no longer fits honestly. Measured natural widths
   (flex:none): logo 124–130 + call 137–147 + Menu ≈94 + gaps/margins ≈ 390px
   at best — at ≤430 the row only "fit" by flex-shrinking the button until
   its label spilled past the border box (the round-1 overflow source).
   So the two actions stack in a right-hand column inside the same single
   bar: call over Menu, each a full 44px target, the number still on one
   line. Bar height: 2 + 44 + 2 + 44 + 2 + 1 border = 95px ≤ MH-1's 96. */
@media (max-width: 430px) {
  .tha-header__inner { padding-block: 2px; }
  .tha-header__mobile-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  .tha-header__mobile-call { justify-content: flex-end; }
  .tha-header__menu-btn { justify-content: center; }
}

/* MN-9: panel motion is instant by design (no show/hide animation); the
   one transition in this lane (toggle chevron) is disabled on request. */
@media (prefers-reduced-motion: reduce) {
  .tha-mm-toggle svg { transition: none; }
}

/* ==== REFINEMENT FIX-2 (staging only) — R-11 finding F-2, trust-bar
   contributor. At 200% text scaling the license item's unbreakable word
   "TACLB00051450E" set the 2-column trust grid track's min-content to
   ~474px at 390 -> horizontal page overflow (masked in R-11's isolation
   behind the larger reviews maximum). R-5 already applied this exact
   treatment to the span at <=360px; extend it to the whole trust text at
   <=767px. Inert at 100%: every word fits its track unbroken there, so
   the 100% render is unchanged. Desktop >=768px is untouched. */
@media (max-width: 767px) {
  .tha-trust__text { overflow-wrap: anywhere; }
}

/* ==== V-02 OWNER-CORRECTED VISUAL ROUND (staging only) — WS A hero CTAs ====
   Secondary (navy) + tertiary (quiet outline) treatments for the call-first
   hero order. Desktop button geometry (padding/font from .tha-hero__ctas
   .tha-btn) is unchanged; the <=767px rules only add wrap permission (the
   FIX-2 min-content lesson: nowrap labels overflow at 200% text scaling)
   and explicit >=44px floors for the two new treatments. */
.tha-btn--navy {
  background: #0A2D52;
  border-color: rgba(255, 255, 255, .55);
  color: #fff;
}
.tha-btn--navy:hover { background: #0E3A68; border-color: #fff; }
.tha-btn--quiet {
  background: transparent;
  border-color: rgba(255, 255, 255, .45);
}
.tha-btn--quiet:hover { background: rgba(255, 255, 255, .10); border-color: rgba(255, 255, 255, .75); }
@media (max-width: 767px) {
  .tha-hero__ctas .tha-btn { white-space: normal; text-align: center; }
  .tha-hero__ctas .tha-btn--navy { min-height: 48px; }
  .tha-hero__ctas .tha-btn--quiet { min-height: 46px; }
}

/* === NAV FIX (2026-11-19): homepage Service Areas menu lists all 11 city
   hubs — two columns so the 11-item menu stays compact. The mobile
   tha-mm-areas sub-list stays a single vertical list. === */
.tha-nav__menu--areas { min-width: 350px; column-count: 2; column-gap: 6px; }
.tha-nav__menu--areas li { break-inside: avoid; }

/* === SERVICE AREAS PANEL (2026-11-19): on the homepage the Service Areas
   menu becomes a full-width band directly under the header, replacing
   the narrow two-column drop-down from the NAV FIX above. The item is
   made static and .tha-header becomes the positioning anchor, so the
   menu stretches left:0 / right:0 at top:100% (the full width of the
   header) and the 11 city hubs lay out ACROSS it in a wide grid —
   4-across at tablet widths, 6-across (two rows, 6 + 5) on wide
   desktops. A ::before bridge keeps hover alive across the small gap
   below the nav row, so the panel keeps the menu's existing hover /
   focus-within behaviour. At <=767px the desktop nav is hidden and the
   tha-mm-areas mobile sub-list is unchanged. The Services and HVAC
   Help menus are untouched. === */
@media (min-width: 768px) {
  .tha-header { position: relative; }
  .tha-nav__item:has(> .tha-nav__menu--areas) { position: static; }
  .tha-nav__menu--areas {
    left: 0;
    right: 0;
    top: 100%;
    min-width: 0;
    column-count: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px 16px;
    padding: 18px max(20px, 4vw) 22px;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }
  .tha-nav__menu--areas::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -14px;
    height: 14px;
  }
  .tha-nav__menu--areas a {
    white-space: normal;
    font-size: 15.5px;
    padding: 11px 14px;
  }
}
@media (min-width: 1200px) {
  .tha-nav__menu--areas { grid-template-columns: repeat(6, 1fr); }
}
/* === VISIBLE BAR (2026-11-19): always-visible bar directly under the
   header, at every width — the homepage form of the site-wide bar (see
   the matching block in styles.css). Below 768px, where this header
   otherwise collapses to logo + call + Menu button, the bar keeps the
   six main items (Home, Services, Service Areas, Help Center, Reviews,
   Contact) on screen with NO hamburger interaction: a compact 3-across
   grid, two rows, every item >=44px tall. From 768px it is a single
   row spread across the container. Service Areas is a toggle button:
   its first tap/click opens the city band (it never navigates); the
   band lays all 11 city hubs ACROSS the full width under the bar —
   3-across on phones, 4-across at tablet widths, 6-across (two rows,
   6 + 5) on wide desktops — in-flow, identical at every width.
   Behaviour lives in mobile-nav.js. The desktop .tha-nav menus and
   the mobile menu panel are untouched. === */
.vbar {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--tha-hero-navy-core);
  border-bottom: 1px solid var(--tha-hero-navy-deep);
  font-family: var(--tha-sans);
}
.vbar__bar {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.vbar__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 44px;
  padding: 9px 4px;
  background: none;
  border: 0;
  border-radius: 0;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}
.vbar__link:hover { color: #fff; background: rgba(255, 255, 255, .13); }
.vbar__link:focus-visible { outline: 3px solid var(--tha-focus); outline-offset: -3px; }
.vbar__toggle[aria-expanded="true"] { background: rgba(255, 255, 255, .16); }
.vbar__caret { font-size: .68em; display: inline-block; transition: transform .15s ease; }
.vbar--open .vbar__caret { transform: rotate(180deg); }
.vbar__band {
  background: #fff;
  border-bottom: 1px solid var(--tha-hairline);
  box-shadow: 0 18px 30px rgba(4, 39, 71, .14);
}
.vbar__band[hidden] { display: none; }
.vbar__grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 16px 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px 12px;
}
.vbar__grid a {
  display: block;
  padding: 11px 10px;
  border-radius: 6px;
  font-size: .98rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--tha-heading-navy);
  text-decoration: none;
}
.vbar__grid a:hover { background: #F4F8FC; color: var(--tha-red); }
@media (min-width: 768px) {
  .vbar__bar { display: flex; justify-content: space-between; padding: 0 20px; }
  .vbar__link { font-size: 16px; padding: 11px 10px; }
  .vbar__grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1200px) {
  .vbar__grid { grid-template-columns: repeat(6, 1fr); }
}
