/* ==========================================================================
   home.css — Untapped HVAC one-pager sections (Untapped Agents visual system):
   video hero, Sarah band, service card field, makes wall, dark visit band,
   closing CTA. Shared primitives live in global.css.
   ========================================================================== */

/* ----------------------------------------------------------------- Hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--dark) url('../img/hero-loop-poster.png') center 40% / cover no-repeat;
  color: #fff;
  display: flex;
  align-items: center;
  min-height: 86vh;
  padding-block: clamp(2.25rem, 4vw, 3.25rem);
  border-bottom: none;
}
.hero-video {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 40%;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(11,10,26,.78) 0%, rgba(11,10,26,.55) 42%, rgba(11,10,26,.82) 100%),
    radial-gradient(ellipse 90% 70% at 50% 115%, rgba(158,82,97,.28), transparent 62%);
}
.hero::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; z-index: 2;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.1), transparent);
}
.hero__inner { width: 100%; }
.hero-box { width: 760px; max-width: 100%; margin: 0 auto; text-align: center; }
.hero-box > * { animation: riseIn .9s var(--ease-out) both; }
.hero-title {
  font-family: var(--font-body);
  font-weight: 700;
  color: #F5F5F7;
  text-transform: none;
  animation-delay: .1s;
}
.hero-line {
  display: block;
  font-size: clamp(2.7rem, 6.4vw, 4.9rem);
  line-height: 1.04;
  letter-spacing: -.055em;
}
.hero-amp {
  display: block;
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.7rem, 3.6vw, 2.8rem);
  line-height: 1.1;
  color: var(--accent-300);
  text-shadow: 0 0 24px rgba(158,82,97,.45);
  margin: .06em 0;
}
.hero-btn { margin-top: 2.5rem; animation-delay: .28s; }

@media (max-width: 860px){
  .hero { min-height: 74vh; }
  .hero-line { font-size: clamp(2.1rem, 9vw, 2.9rem); }
  .hero-amp { font-size: clamp(1.3rem, 5vw, 1.7rem); }
}
@media (prefers-reduced-motion: reduce){ .hero-video { display: none; } }

/* ------------------------------------------------- Sarah — animated call demo */
.section--sarah { padding-top: clamp(3.25rem, 6vw, 5.5rem); }
.section--sarah .section-head { margin-bottom: 0; }
.sarah-demo {
  width: 100%;
  max-width: 1100px;
  margin: clamp(1.75rem, 3.5vw, 2.75rem) auto 0;
}
.sarah-demo iframe {
  display: block;
  width: 100%;
  height: 620px;
  border: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

/* How-steps — quiet ghost numbers */
.how-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.5vw, 2rem); margin-top: clamp(2.2rem, 4vw, 3.25rem); }
@media (max-width: 760px){ .how-steps { grid-template-columns: 1fr; } }
.how-step { position: relative; padding: 0; background: none; border: none; border-radius: 0; }
.how-steps .how-step:not(:last-child) { border-right: .5px solid rgba(0,0,0,.05); padding-right: clamp(1.2rem, 2.5vw, 2rem); }
@media (max-width: 760px){
  .how-steps .how-step:not(:last-child) { border-right: none; border-bottom: .5px solid rgba(0,0,0,.05); padding-right: 0; padding-bottom: 1.5rem; }
}
.how-step__n {
  width: auto; height: auto; border-radius: 0; background: none; color: var(--ink);
  font-family: var(--font-body); font-weight: 800; font-size: 2.6rem; line-height: 1;
  display: block; opacity: .15; margin-bottom: .9rem; place-items: unset;
}
.how-step h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: -.01em; margin-bottom: .4rem; }
.how-step p { color: var(--ink-2); font-size: .9rem; line-height: 1.65; }
.how-step__arrow { display: none; }

.sarah-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: clamp(1.6rem, 3vw, 2.2rem); }
.sarah-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 1.6rem; }

/* ------------------------------------------------- Services band (grey field, glass cards) */
.svc-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
@media (max-width: 1100px){ .svc-tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px){ .svc-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .svc-tiles { grid-template-columns: 1fr; } }
.svc-tile {
  background: rgba(255,255,255,.65);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(0,0,0,.04);
  border-radius: 20px;
  box-shadow: var(--shadow-1);
  padding: 1.4rem 1.25rem 1.2rem;
  display: flex; flex-direction: column; gap: 0;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), background .45s var(--ease);
}
.svc-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-pop); background: rgba(255,255,255,.92); border-color: rgba(0,0,0,.04); }
@media (max-width: 860px){ .svc-tile { border-radius: 18px; } }
.svc-tile__icon { width: 40px; height: 40px; border-radius: 0; background: none; color: var(--accent); display: block; margin-bottom: 0; }
.svc-tile__icon img { width: 40px; height: 40px; object-fit: contain; }
/* Icons are true-transparency PNGs (white backgrounds removed at the pixel level) */
img[src*="cat-general"], img[src*="cat-repairs"] { filter: grayscale(1); }
.svc-tile__icon .ic { width: 34px; height: 34px; }
.svc-tile h3 { margin-top: 1rem; font-size: .95rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; color: var(--ink-hd); }
.svc-tile p { margin-top: .4rem; font-size: .8rem; line-height: 1.55; color: var(--ink-3); flex-grow: 1; }
.svc-tile p b { color: var(--ink-hd); font-weight: 700; }

/* Structured card anatomy: price line → tier rows → note → arrow */
.svc-tile__price { margin-top: .3rem; font-size: .72rem; font-weight: 500; color: var(--ink-4); }
.svc-tile__price b { font-size: 1.2rem; font-weight: 700; letter-spacing: -.02em; color: var(--ink-hd); margin-left: .15rem; }
.svc-tile__tiers { list-style: none; padding: 0; margin: .65rem 0 0; }
.svc-tile__tiers li {
  display: flex; align-items: baseline; justify-content: space-between; gap: .6rem;
  padding: .32rem 0; border-top: .5px solid rgba(0,0,0,.05);
  font-size: .72rem; line-height: 1.4; color: var(--ink-3);
}
.svc-tile__tiers li span { min-width: 0; }
.svc-tile__tiers li b { font-weight: 600; color: var(--ink-hd); white-space: nowrap; }
.svc-tile__note { margin-top: .65rem; font-size: .72rem; line-height: 1.55; color: var(--ink-4); flex-grow: 1; }
.svc-tile .tile-cta { margin-top: 1rem; }
.tile-cta {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 1rem; padding: 0;
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid rgba(0,0,0,.08);
  color: var(--accent);
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}
.tile-cta .ic { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.tile-cta:hover { color: #fff; border-color: var(--accent); background: var(--accent); transform: translateX(2px); }

.svc-more { text-align: center; margin-top: clamp(2rem, 3.6vw, 3rem); position: relative; }
.svc-more__label { font-weight: 600; font-size: .95rem; color: var(--ink-hd); margin-bottom: .9rem; }
.svc-more .chip-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.svc-more .tag-chip { background: rgba(255,255,255,.75); border-color: rgba(0,0,0,.06); color: var(--ink-2); font-weight: 500; }
.svc-more__hint { margin-top: 1rem; color: var(--ink-3); font-size: .88rem; max-width: 62ch; margin-inline: auto; }

/* ------------------------------------------------- Makes wall */
.makes { background: var(--bg); border-top: .5px solid rgba(0,0,0,.04); text-align: center; }
.makes-title {
  font-family: var(--font-body); font-weight: 700;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem); line-height: 1.3; letter-spacing: -.025em;
  color: var(--ink-hd);
  max-width: 760px; margin: 0 auto;
}
.makes-row {
  list-style: none; padding: 0;
  margin: 1.9rem auto 0; max-width: 1020px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: clamp(18px, 2.4vw, 34px) clamp(24px, 3.4vw, 48px);
}
.makes-row:first-of-type { margin-top: 4rem; }
.makes-row li { display: inline-flex; align-items: center; }
.makes-row img {
  height: clamp(24px, 1.2rem + 1.2vw, 38px); width: auto; max-width: 140px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .35;
  transition: opacity .3s var(--ease), filter .3s var(--ease), transform .3s var(--ease);
}
.makes-row li:hover img { opacity: .85; filter: grayscale(0); transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce){
  .makes-row li:hover img { transform: none; }
}
@media (max-width: 640px){
  .makes-row { gap: 1.1rem 1.5rem; }
  .makes-row img { height: clamp(22px, 6vw, 30px); opacity: .4; }
}
.many-more { margin-top: 3.5rem; display: inline-flex; align-items: center; gap: 12px; color: var(--ink-3); }
.many-more .amp { font-family: var(--font-serif); font-style: italic; font-size: 2rem; line-height: 1; color: var(--accent); }
.many-more .mm {
  font-family: var(--font-body); font-size: .75rem; font-weight: 600; line-height: 1.3;
  letter-spacing: .08em; text-transform: uppercase; text-align: left; color: var(--ink-3);
}

/* ------------------------------------------------- Visit band (dark CTA) */
.visit-band {
  background: var(--dark-cta);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.visit-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 55% 45% at 50% 100%, rgba(158,82,97,.09), transparent 55%),
    radial-gradient(ellipse 40% 30% at 50% 0%, rgba(158,82,97,.04), transparent 45%);
}
.visit-band .section-head h2 { color: #F5F5F7; }
.visit-band .section-head p { color: rgba(255,255,255,.55); }
.visit-band .form-card { border-color: rgba(255,255,255,.06); box-shadow: var(--shadow-pop); }
.visit-side { display: grid; gap: 1.1rem; align-content: start; }
.form-layout--visit { grid-template-columns: 1.15fr .95fr; }
@media (max-width: 880px) { .form-layout--visit { grid-template-columns: 1fr; } }
.visit-band .info-card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); box-shadow: none; }
.visit-band .info-card h3 { color: #F5F5F7; }
.visit-band .info-card h3 .ic { color: var(--accent-300); }
.visit-band .hours-table th, .visit-band .hours-table td:first-child { color: rgba(255,255,255,.55); }
.visit-band .hours-table td { color: rgba(255,255,255,.85); }
.visit-band .hours-table b { color: #fff; }
.visit-band .hours-table tr + tr th, .visit-band .hours-table tr + tr td { border-top: 1px solid rgba(255,255,255,.06); }
.visit-band .hours-table .accent-text { color: var(--accent-300); }
.visit-band .open-pill span { background: rgba(255,255,255,.06); color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.14); }
.visit-band .open-pill span.is-open { background: rgba(26,138,90,.15); color: #6FDCA5; border-color: rgba(111,220,165,.3); }
.visit-band .map-card { border-color: rgba(255,255,255,.1); }

/* ------------------------------------------------- CTA closer (light band) */
.cta-closer {
  background: var(--bg-inset);
  border-top: .5px solid rgba(0,0,0,.04);
  color: var(--ink-2); text-align: center; position: relative; overflow: hidden;
}
.cta-closer h2 { color: var(--ink-hd); font-size: var(--step-3); margin: .7rem 0 1rem; }
.cta-closer .lede { max-width: 52ch; margin-inline: auto; color: var(--ink-2); }
.cta-closer p { max-width: 54ch; margin-inline: auto; }
.cta-closer__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 2rem; }

/* Aurora effect on the Get-your-own-agent band: keep this section's own
   layout (left-aligned, .section rhythm) — the aurora-cta class only
   brings the canvas/stars/overlays; content rides above them. */
.visit-band.aurora-cta { text-align: left; padding: 0; padding-block: clamp(4rem, 8vw, 7.5rem); }
.visit-band.aurora-cta > .container { position: relative; z-index: 10; }
.visit-band.aurora-cta .section-head p { margin: .8rem 0 0; max-width: 56ch; }
/* Same treatment as the main site's "Always answering." line */
.hero-line--accent { color: #fff; text-shadow: 0 0 8px #ffffff; margin-top: .08em; }
.svc-tile__rule { margin-top: .8rem; border-top: .5px solid rgba(0,0,0,.05); }
