/* ============================================================
   home.css — HOME PAGE ONLY (scoped under body.home)
   Design system: "Smokehouse Steel & Ember"
   Loaded last, only on index.php. Every rule is scoped under
   .home so it cannot affect about.php / schedule.php, which
   share many of these class/id names.
   ============================================================ */

.home {
  /* Palette — warm char, ember heat, brushed steel */
  --h-char:   #14110f;   /* warm near-black (char, not void) */
  --h-char-2: #211c19;   /* panel charcoal */
  --h-ember:  #f74040;   /* brand red (kept) */
  --h-flame:  #ff7a1a;   /* ember orange */
  --h-ash:    #f6f3ef;   /* warm off-white page bg */
  --h-steel:  #e6e2dc;   /* light brushed steel */
  --h-line:   #dcd6ce;   /* hairline on light */
  --h-ink:    #1c1a18;   /* primary text */
  --h-muted:  #6c655e;   /* secondary text */
  --h-glow:   0 18px 40px -18px rgba(247, 64, 64, .45);

  --h-ember-grad: linear-gradient(100deg, var(--h-flame), var(--h-ember));
  --h-font-display: "Oswald", "Raleway", system-ui, sans-serif;
  --h-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 Helvetica, Arial, sans-serif;

  background-color: var(--h-char);
  font-family: var(--h-font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.home main {
  background-color: var(--h-char);
}

/* Brand wordmark: brushed-silver gradient (near-white → darker silver) */
.home .logo-text {
  background: linear-gradient(177deg, #ffffff 0%, #eceef1 34%, #c4c7cd 66%, #a9adb4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: none;
}

/* ---- Section rhythm — no gaps between the dark bands -------- */
.home main > section {
  margin-bottom: 0;
}
.home #contact-info,
.home #contact-info-large,
.home #contact-info2 { margin-bottom: 0 !important; }

/* ---- Header embers: let the sparks climb + glow like coals -- */
.home #header-fire-container { height: 76px; }
.home #header-fire-container .particle {
  animation-name: riseHeaderHome;
  mix-blend-mode: screen;
  background-image: radial-gradient(#ffc061 12%, #ff6a00 48%, rgba(255, 69, 0, 0) 74%);
  box-shadow: 0 0 10px 2px rgba(255, 120, 0, .5);
}
@keyframes riseHeaderHome {
  0%   { opacity: 0;   transform: translateY(8px) scale(1); }
  18%  { opacity: 1; }
  100% { opacity: 0;   transform: translateY(-70px) scale(.2); }
}

/* Header embers on mobile too — the shared header-fire.js only runs at
   >=769px, and header.css hides the container below that. Show it here and
   feed it from a mobile-only generator in index.php's inline script. */
@media (max-width: 768px) {
  .home #header-fire-container {
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 52px;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
  }
  .home #header-fire-container .particle {
    position: absolute;
    bottom: -8px;
    border-radius: 50%;
    opacity: 0;
  }
}

/* ---- Section headings + signature ember rule --------------- */
.home #benefits h2,
.home #before-after h2,
.home #process h2,
.home .reviews-slider h3 {
  font-family: var(--h-font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #fff;
  line-height: 1.05;
  position: relative;
  padding-bottom: .7rem;
  margin-bottom: 2.2rem;
}

/* the glowing "ember rule" — the page signature; flickers like coals */
.home #benefits h2::after,
.home #before-after h2::after,
.home #process h2::after,
.home .reviews-slider h3::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 64px;
  height: 3px;
  border-radius: 3px;
  background: var(--h-ember-grad);
  box-shadow: 0 0 12px 0 rgba(247, 64, 64, .55);
  animation: emberFlicker 2.6s ease-in-out infinite;
}

@keyframes emberFlicker {
  0%, 100% { opacity: .82; box-shadow: 0 0 10px 0 rgba(247, 64, 64, .5); }
  45%      { opacity: 1;   box-shadow: 0 0 20px 2px rgba(255, 122, 26, .8); }
  70%      { opacity: .9;  box-shadow: 0 0 14px 1px rgba(247, 64, 64, .65); }
}

/* =============================================================
   HERO — desktop dark band (#contact-info-large)
   Deepen to glowing coals behind the logo; float steel panels.
   ============================================================= */
@media (min-width: 769px) {
  .home #contact-info-large {
    background-color: var(--h-char);
    background-image:
      radial-gradient(60% 120% at 50% 12%, rgba(255, 122, 26, .22), rgba(247, 64, 64, 0) 60%),
      url('../images/logo.webp');
    background-size: auto, 440px;
    background-repeat: no-repeat, no-repeat;
    background-position: center top, center;
    padding: 4.5rem 2rem 3.5rem;
    position: relative;
  }

  /* ember hairline glow along the top edge */
  .home #contact-info-large::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--h-ember-grad);
    opacity: .9;
  }

  .home #contact-info-large .contact-container {
    align-items: stretch;
    gap: 2rem;
  }

  /* steel-glass panels */
  .home #contact-info-large .contact-info {
    background: linear-gradient(180deg, rgba(38, 33, 29, .82), rgba(20, 17, 15, .82));
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 16px;
    box-shadow: 0 22px 45px -24px rgba(0, 0, 0, .8);
    backdrop-filter: blur(3px);
    padding: 2rem 1.6rem;
    color: #efe9e3;
    position: relative;
    overflow: hidden;
    transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
  }

  .home #contact-info-large .contact-info::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--h-ember-grad);
  }

  .home #contact-info-large .contact-info:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 122, 26, .4);
    box-shadow: 0 30px 55px -26px rgba(0, 0, 0, .9);
  }

  /* keep the empty middle column as pure watermark space */
  .home #contact-info-large .contact-info[style*="none"] {
    background: none !important;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
  }
  .home #contact-info-large .contact-info[style*="none"]::before { display: none; }

  .home #contact-info-large .phone-number {
    font-family: var(--h-font-display);
    font-weight: 600;
    color: #fff;
    letter-spacing: .01em;
  }
  .home #contact-info-large .phone-number i { color: var(--h-ember); }

  .home #contact-info-large .service-area {
    color: var(--h-flame);
    font-weight: 500;
  }
  .home #contact-info-large .contact-info p:last-child {
    color: #cfc7bf;
    font-size: 1.02rem;
    line-height: 1.6;
  }

  .home #contact-info-large .yeah { margin-bottom: 1.2rem; }
}

/* =============================================================
   HERO — mobile contact card (#contact-info)
   ============================================================= */
@media (max-width: 768px) {
  .home #contact-info {
    background: var(--h-char) !important;
    background-image:
      radial-gradient(80% 100% at 50% 0%, rgba(255, 122, 26, .2), rgba(247, 64, 64, 0) 70%) !important;
    color: #efe9e3;
    border-radius: 0 0 20px 20px !important;
    box-shadow: 0 12px 30px -18px rgba(0, 0, 0, .7) !important;
    padding: 1.8rem 1.2rem 2rem !important;
    border-bottom: 2px solid transparent;
    border-image: var(--h-ember-grad) 1;
  }
  .home #contact-info .text-or-call {
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: .72rem;
    color: var(--h-flame);
    margin-bottom: .1rem;
  }
  .home #contact-info .phone-number {
    font-family: var(--h-font-display);
    font-weight: 600;
    color: #fff !important;
    font-size: 2rem;
  }
  .home #contact-info .phone-number i,
  .home #contact-info .phone-number a { color: #fff !important; }
  .home #contact-info .slots-container h4 {
    font-family: var(--h-font-display);
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #fff;
    font-size: 1.15rem;
    margin-top: .6rem;
  }
  .home #contact-info .slots-container p { color: #cbc3bb; font-size: .95rem; }
  .home #contact-info .contact-container i { color: var(--h-flame); }
}

/* =============================================================
   BEFORE / AFTER
   ============================================================= */
.home #before-after {
  background-color: var(--h-char);
  padding: 3rem 1rem 4rem;
  border-top: none;
}
.home #before-after h2 { text-align: center; margin-bottom: 1.8rem; }

.home #before-after .reveal-container { max-width: 960px; }

.home #before-after .img-container {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 36px 72px -30px rgba(0, 0, 0, .85),
              0 0 0 1px rgba(255, 122, 26, .12),
              0 0 46px -20px rgba(247, 64, 64, .5);
}

/* Before/After labels: lifted out of the dead strip below the image
   and floated as chips in the top corners, over their own halves. */
.home #before-after .slider-labels {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  padding: 14px 16px;
  margin: 0;
  z-index: 11;
  pointer-events: none;
}
.home #before-after .before-label,
.home #before-after .after-label {
  font-family: var(--h-font-display);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .74rem;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(18, 15, 13, .68);
  border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}
.home #before-after .before-label { color: #d8d0c8; }
.home #before-after .after-label {
  color: #fff;
  border-color: rgba(255, 122, 26, .55);
  box-shadow: 0 0 16px -4px rgba(247, 64, 64, .7);
}

/* =============================================================
   BENEFITS — sleek steel cards with ember icon chips
   ============================================================= */
.home #benefits {
  background: var(--h-char);
  padding: 5rem 2rem;
  position: relative;
}
.home #benefits h2 { color: #fff; }

.home #benefits .benefit-card {
  background: linear-gradient(180deg, rgba(38, 33, 29, .9), rgba(24, 20, 18, .9));
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
  padding: 2.2rem 1.6rem;
  box-shadow: 0 20px 40px -28px rgba(0, 0, 0, .8);
}
.home #benefits .benefit-card h3 {
  color: #fff;
  font-family: var(--h-font-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: 1.2rem;
}
.home #benefits .benefit-card p { color: #b9b1a9; }

/* ember icon chip */
.home #benefits .benefit-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1.4rem;
}
.home #benefits .benefit-icon i {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  color: #fff;
  font-size: 1.6rem;
  background: radial-gradient(circle at 30% 25%, rgba(255, 122, 26, .35), rgba(247, 64, 64, .12));
  border: 1px solid rgba(255, 122, 26, .45);
  box-shadow: inset 0 0 18px -6px rgba(255, 122, 26, .8), 0 8px 22px -10px rgba(247, 64, 64, .6);
  transition: transform .35s ease, box-shadow .35s ease;
}
@media (min-width: 769px) {
  .home #benefits .benefit-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 55px -26px rgba(0, 0, 0, .9), var(--h-glow);
    border-color: rgba(255, 122, 26, .4);
  }
  .home #benefits .benefit-card:hover .benefit-icon i {
    transform: translateY(-2px) scale(1.06);
    box-shadow: inset 0 0 22px -4px rgba(255, 122, 26, .95), 0 12px 28px -8px rgba(247, 64, 64, .8);
  }
}

/* =============================================================
   PROCESS — warm content cards + ember step numbers
   ============================================================= */
.home #process {
  background-color: var(--h-char);
  padding: 5rem 2rem;
}
.home #process h2 { text-align: center; }

.home #process .process-content {
  background: linear-gradient(180deg, rgba(38, 33, 29, .92), rgba(24, 20, 18, .92));
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
  box-shadow: 0 24px 48px -30px rgba(0, 0, 0, .8);
}
.home #process .process-content h3 {
  font-family: var(--h-font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--h-flame);
}
.home #process .process-content p { color: #cbc3bb; }
.home #process .process-content li { color: #aaa199; }
.home #process .process-image-container {
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 24px 48px -30px rgba(0, 0, 0, .8);
}

/* =============================================================
   REVIEWS — quiet steel card, ember quote mark
   ============================================================= */
.home #contact-info2 {
  background: var(--h-char);
  padding: 5rem 2rem;
}
.home #contact-info2 .reviews-slider {
  background: linear-gradient(180deg, rgba(38, 33, 29, .92), rgba(24, 20, 18, .92));
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
  border-radius: 18px;
  position: relative;
  overflow: hidden;
}
.home #contact-info2 .reviews-slider::before {
  content: "\201C";
  position: absolute;
  top: -1.4rem; left: 1.2rem;
  font-family: Georgia, serif;
  font-size: 8rem;
  line-height: 1;
  color: rgba(255, 122, 26, .16);
  pointer-events: none;
}
.home #contact-info2 .reviews-slider h3 { color: #fff; text-align: center; }
.home #contact-info2 .review-text { color: #d9d2ca; }
.home #contact-info2 .reviewer,
.home #contact-info2 .review-meta { color: #a79f97; }
.home #contact-info2 .stars { color: #ffb43a; }
.home #contact-info2 .slider-btn {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .16);
  color: #fff;
  box-shadow: none;
}
.home #contact-info2 .slider-btn:hover {
  background: var(--h-ember);
  border-color: var(--h-ember);
}
/* inset the track so the prev/next arrows never sit over the review text */
.home #contact-info2 .reviews-container { padding: 0 3rem; }
.home #contact-info2 .slider-btn.prev { left: 0; }
.home #contact-info2 .slider-btn.next { right: 0; }
@media (max-width: 768px) {
  .home #contact-info2 .reviews-container { padding: 0 2.2rem; }
}
.home #contact-info2 .dot { background: rgba(255, 255, 255, .28); }
.home #contact-info2 .dot.active { background: var(--h-ember); }

.home #contact-info2 .text-or-call {
  color: var(--h-flame);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  margin-top: 2.5rem;
}
.home #contact-info2 .phone-number { color: #fff !important; font-family: var(--h-font-display); }
.home #contact-info2 .phone-number i,
.home #contact-info2 .phone-number a { color: #fff !important; }
.home #contact-info2 .service-area { color: #cbc3bb; }
.home #contact-info2 .service-area i { color: var(--h-flame); }
.home #contact-info2 > .contact-container > p[style*="666"] { color: #9d958d !important; }

/* =============================================================
   BUTTONS — ember gradient (scoped; keeps fire-particle sizing)
   ============================================================= */
.home .cta-button {
  background: var(--h-ember-grad);
  color: #fff;
  box-shadow: 0 10px 26px -10px rgba(247, 64, 64, .7);
  font-family: var(--h-font-display);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.home .cta-button:hover { color: #14110f; }
.home .schedule-button {
  background: #fff;
  color: var(--h-ink);
  border: 1px solid rgba(255, 255, 255, .25);
  box-shadow: 0 10px 26px -12px rgba(0, 0, 0, .6);
  font-family: var(--h-font-display);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Button particles: fire on the red CTAs, smoke on the white schedule button.
   The stock smoke is near-black (invisible on our dark sections) — lift it to a
   soft light-grey plume. On hover the smoke warms toward embers (live CSS var
   drives the existing particles via their background-image transition). */
.home {
  --smogColor1: rgba(214, 210, 205, .85);
  --smogColor2: rgba(214, 210, 205, 0);
}
.home #nah:hover,
.home #nah:focus-within {
  --smogColor1: rgba(255, 138, 42, .9);
  --smogColor2: rgba(255, 138, 42, 0);
}

/* Hero "Book Now" flame — #fire-container-2 was never styled (body.css
   only matches the dash-less #fire-container2). Restore it here, scoped,
   mirroring the working footer flame. Particles are injected by the
   home-only init call at the bottom of index.php. */
.home #fire-container-2 {
  font-size: 24px;
  filter: blur(var(--blur));
  -webkit-filter: blur(var(--blur));
  position: absolute;
  /* Match the 180px button width (NOT 100% of the 287px-wide .yeah panel),
     so the JS particle spread — which reads offsetWidth — stays centered on
     the button instead of fanning out to the left. */
  width: 180px;
  height: 150%;
  top: -25%;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  opacity: 1;
  overflow: hidden;
  transition: all 0.3s ease;
}
.home #fire-container-2 .particle {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
  opacity: 0;
  animation: rise var(--fireDuration) ease-in infinite;
  margin-left: 80px;
  margin-right: 20px;
  transition: background-image 0.2s ease;
}
.home #fire-container-2 .particle:not(.blue-particle) {
  background-image: radial-gradient(var(--fireColor1) 30%, var(--fireColor2) 70%);
}

/* =============================================================
   SMS COMPLIANCE — quiet footer note on char
   ============================================================= */
.home #sms-compliance {
  background: var(--h-char);
  color: #8a827a;
  padding: 2.5rem 1.5rem 3rem;
  border-top: 1px solid rgba(255, 255, 255, .06);
}
.home #sms-compliance .compliance-container {
  max-width: 900px;
  margin: 0 auto;
  font-size: .85rem;
  line-height: 1.7;
}
.home #sms-compliance a { color: var(--h-flame); }

/* =============================================================
   MOTION / ACCESSIBILITY
   ============================================================= */
.home a:focus-visible,
.home button:focus-visible,
.home input:focus-visible {
  outline: 2px solid var(--h-flame);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  /* Calm the large scroll-reveal + hover motion for accessibility. NOTE: we
     deliberately do NOT blanket-kill animations here — the rising fire/ember/
     smoke IS the brand and must keep burning on every device (an earlier
     `.home *` reset silently froze the header flames and button embers). */
  .home .benefit-card,
  .home .process-step {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .home #benefits h2::after,
  .home #before-after h2::after,
  .home #process h2::after,
  .home .reviews-slider h3::after { animation: none !important; }
}
