/* ================================================================
   AGENT 07 — Sections 06 (Difference) + 07 (Free Second Look)
   Texas Heat & Air Gold Master homepage reproduction — STAGING ONLY
   ----------------------------------------------------------------
   Geometry/colors: Agent 02 MEASUREMENT.md (native 699px capture,
   @1440 = native × 2.06). Sizes below are the @1440 desktop values;
   sections are fluid below that and stack per brief §08.
   Palette (Agent 02 §2, multi-point sampled):
     CTA red ........ #E00E29
     Second Look navy #01274B (near-flat — NOT the hero gradient navy,
                      NOT the bottom-band #002D54)
     Heading ink .... ≈ #243A52 (core ink of serif titles)
     Body gray ...... slate (sampled from crops)
   Type character (Agent 02 §3): Difference title = serif;
   Second Look title = bold sans; body = humanist sans.
   (Font family itself is ASSET GAP G-17 — no font files in either
   source tree; system stacks used, see BUILD-NOTES.md.)
   ================================================================ */

/* ---------- shared tokens (section-scoped, no global resets) --- */
.tha-difference,
.tha-secondlook {
  --tha-red: #E00E29;
  --tha-red-dark: #B80B21;
  --tha-heading: #243A52;
  --tha-body: #4E6072;
  --tha-sans: "Inter", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --tha-serif: "Playfair Display", Georgia, "Times New Roman", Times, serif;
  box-sizing: border-box;
  font-family: var(--tha-sans);
}
.tha-difference *,
.tha-secondlook * { box-sizing: inherit; }

/* ================================================================
   SECTION 06 — THE TEXAS HEAT & AIR DIFFERENCE
   Gold: y 717–887 native (170px ≈ 350px @1440), white bg.
   Photo bleeds to left edge, x 0–48% of width, full height.
   Content x 49.4%–99.4%; benefits in 3 columns, text centered.
   ================================================================ */
.tha-difference {
  display: grid;
  grid-template-columns: 48% 52%;
  min-height: 350px; /* 170 native × 2.06 */
  background: #FFFFFF;
  color: var(--tha-body);
}

.tha-difference__media {
  position: relative;
  overflow: hidden;
}
.tha-difference__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.tha-difference__content {
  padding: 16px 3% 18px 2%; /* title ink starts ≈13px below section top (native) */
  align-self: center;
}
.tha-difference__title {
  font-family: var(--tha-serif);
  font-weight: 700;
  font-size: 38px; /* ≈18–19 native × 2.06 */
  line-height: 1.15;
  color: var(--tha-heading);
  margin: 0 0 14px;
}
.tha-difference__intro {
  font-size: 19px; /* ≈9 native × 2.06 */
  line-height: 1.35; /* 2 lines at native pitch 12 */
  margin: 0 0 16px;
  max-width: 62ch;
}

.tha-difference__benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1.12fr 1.05fr; /* R-08 refinement: wider first/middle columns so the benefit titles wrap to gold's 2 lines (was 2/4/2) */
  gap: 24px;
}
.tha-benefit { text-align: center; }
.tha-benefit__icon {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}
.tha-benefit__icon svg {
  width: 48px;  /* gold icons ≈22–30 native → 45–62 @1440 */
  height: 48px;
  fill: var(--tha-red);
}
.tha-benefit__title {
  font-size: 19px; /* R-08 refinement: 23px wrapped the middle title to 4 lines; 19px + wider columns + balance restores gold's 2-line titles */
  font-weight: 700;
  line-height: 1.16;
  text-wrap: balance;
  color: var(--tha-heading);
  margin: 0 0 6px;
}
.tha-benefit__body {
  font-size: 16px; /* ≈8 native × 2.06 */
  line-height: 1.4; /* 3 lines at native pitch ≈11 */
  margin: 0;
}

/* ================================================================
   SECTION 07 — FREE SECOND LOOK. NO OBLIGATION.
   Gold: y 887–1007 native (120px ≈ 247px @1440).
   Near-flat navy #01274B; photo zone right ≈54% of width blending
   into the band (technician's navy shirt); text zone left.
   ================================================================ */
.tha-secondlook {
  position: relative;
  display: grid;
  grid-template-columns: 46% 54%;
  min-height: 247px; /* 120 native × 2.06 */
  background: #01274B;
  color: #FFFFFF;
  overflow: hidden;
}

.tha-secondlook__content {
  position: relative;
  z-index: 1;
  padding: 4px 24px 18px 13.5%; /* title ink starts x≈42 native (6%) of band,
                                   ≈3px below band top; left pad is relative
                                   to the content column, ≈ container edge */
  align-self: center;
}
.tha-secondlook__title {
  font-family: var(--tha-sans);
  font-weight: 800;
  font-size: 36px; /* ≈17.5 native × 2.06 */
  line-height: 1.2; /* native pitch 21 / 17.5 */
  margin: 0 0 12px;
  color: #FFFFFF;
}
.tha-secondlook__copy {
  font-size: 16px; /* ≈8 native × 2.06 */
  line-height: 1.55;
  margin: 0 0 8px;
  max-width: 62ch;
}
.tha-secondlook__qualifier {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 15px;
  line-height: 1.45;
  margin: 0 0 14px;
}
.tha-secondlook__info-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: #FFFFFF;
}

.tha-secondlook__cta-row { margin: 0; }
.tha-secondlook__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px; /* gold button 23 native ≈ 47 @1440 — also ≥44px target */
  padding: 12px 30px;
  background: var(--tha-red);
  color: #FFFFFF;
  font-size: 17px; /* button labels ≈8.5 native × 2.06 */
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  border-radius: 4px;
}
.tha-secondlook__cta:hover { background: var(--tha-red-dark); }
.tha-secondlook__cta-arrow { font-weight: 700; }

.tha-secondlook__media {
  position: relative;
  overflow: hidden;
}
.tha-secondlook__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
/* Gold blend: the photo's left edge dissolves into the band navy
   (technician's shirt is the same navy family). Fades the crop's
   hard left edge over ~18% of the photo zone. */
.tha-secondlook__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #01274B 0%, rgba(1, 39, 75, 0) 22%);
  pointer-events: none;
}

/* ---------- focus visibility (brief §08) ----------------------- */
.tha-secondlook__cta:focus-visible {
  outline: 3px solid #FFBF47;
  outline-offset: 3px;
}

/* ---------- responsive stacking (brief §08) --------------------
   Gold contains no small-width design information; stacking follows
   content order and preserves imagery, type character, and CTA. */
@media (max-width: 1024px) {
  .tha-difference__title { font-size: 32px; }
  .tha-secondlook__title { font-size: 31px; }
}
@media (max-width: 860px) {
  .tha-difference {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .tha-difference__media {
    order: -1;
    aspect-ratio: 2 / 1;
    max-height: 320px;
  }
  .tha-difference__photo { position: absolute; }
  .tha-difference__content { padding: 26px 24px 30px; }
  .tha-difference__benefits { gap: 18px; }

  .tha-secondlook {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .tha-secondlook__content { padding: 26px 24px 28px; }
  .tha-secondlook__media {
    aspect-ratio: 2.53 / 1; /* native placeholder proportion */
    max-height: 300px;
  }
}
@media (max-width: 560px) {
  .tha-difference__benefits { grid-template-columns: 1fr; gap: 22px; }
  .tha-difference__title { font-size: 28px; }
  .tha-secondlook__title { font-size: 28px; }
  .tha-secondlook__cta { width: 100%; justify-content: center; }
}

/* ---------- R-08 refinement: mobile type scale (R-03 TS table) ---------- */
@media (max-width: 767px) {
  .tha-difference__title { font-size: 27px; } /* R-03 TS: section H2 26–28px on mobile */
  .tha-benefit__title { font-size: 18px; line-height: 1.3; }
}

/* ---------- reduced motion (brief §08) ------------------------- */
@media (prefers-reduced-motion: reduce) {
  .tha-difference *,
  .tha-secondlook * {
    transition: none !important;
    animation: none !important;
  }
}
