/* ScreenMan wow layer — BA slider, 3D, reviews, kinetic, smart form, call pulse, map */

/* —— 1. Before/After compare —— */
.ba-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  background: #0a0a0a;
  touch-action: none;
  user-select: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 24px 60px rgba(0, 0, 0, 0.45);
}
.ba-slider__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.ba-slider__before-clip {
  position: absolute;
  inset: 0 auto 0 0;
  width: 50%;
  overflow: hidden;
  z-index: 2;
}
.ba-slider__before-clip .ba-slider__img {
  max-width: none;
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  object-fit: cover;
  object-position: left center;
}
.ba-slider__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  margin-left: -1.5px;
  background: #fff;
  z-index: 4;
  box-shadow: 0 0 18px rgba(249, 115, 22, 0.55);
  pointer-events: none;
}
.ba-slider__knob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: linear-gradient(135deg, #fff, #ff8a2a);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  display: grid;
  place-items: center;
  color: #111;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.ba-slider__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 5;
}
.ba-slider__tag {
  position: absolute;
  top: 14px;
  z-index: 3;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  pointer-events: none;
}
.ba-slider__tag--b {
  left: 14px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
}
.ba-slider__tag--a {
  right: 14px;
  background: rgba(249, 115, 22, 0.92);
  color: #111;
}
.ba-hero {
  margin: 0 auto 1.5rem;
  max-width: 920px;
}
.ba-hero__lead {
  text-align: center;
  margin: 0 auto 1.25rem;
  max-width: 40rem;
}
.proof-grid .ba-slider {
  aspect-ratio: 16 / 11;
  border-radius: 12px;
}
.proof-card--slider .proof-pair { display: none; }

/* —— 2. 3D patio configurator —— */
.sm-3d {
  padding-block: clamp(48px, 8vw, 88px);
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(249, 115, 22, 0.1), transparent 60%),
    #080808;
}
.sm-3d__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 28px;
  align-items: center;
}
.sm-3d__stage {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #0c0c0e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  aspect-ratio: 4 / 3;
  min-height: 280px;
}
.sm-3d__stage canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
.sm-3d__hint {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.55);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  pointer-events: none;
}
.sm-3d__controls {
  display: grid;
  gap: 14px;
}
.sm-3d__swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sm-3d__swatch {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: #f5f5f7;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.sm-3d__swatch.is-on,
.sm-3d__swatch:hover {
  border-color: #f97316;
  background: rgba(249, 115, 22, 0.14);
  transform: translateY(-1px);
}
.sm-3d__meta {
  color: rgba(235, 235, 245, 0.62);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}
@media (max-width: 900px) {
  .sm-3d__grid { grid-template-columns: 1fr; }
}

/* —— 3. Live reviews —— */
.sm-live-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
}
.sm-live-chip {
  position: relative;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #f5f5f7;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.sm-live-chip:hover,
.sm-live-chip:focus-visible,
.sm-live-chip.is-open {
  border-color: #f97316;
  background: rgba(249, 115, 22, 0.12);
  outline: none;
}
.sm-live-pop {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(6px);
  width: min(280px, 78vw);
  padding: 14px;
  border-radius: 12px;
  background: #121214;
  border: 1px solid rgba(249, 115, 22, 0.45);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 20;
  text-align: left;
}
.sm-live-chip.is-open .sm-live-pop,
.sm-live-chip:hover .sm-live-pop,
.sm-live-chip:focus-within .sm-live-pop {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.sm-live-pop strong { display: block; color: #fff; margin-bottom: 4px; }
.sm-live-pop span { display: block; color: rgba(235, 235, 245, 0.62); font-size: 0.78rem; margin-bottom: 8px; }
.sm-live-pop p { margin: 0; color: rgba(235, 235, 245, 0.84); font-size: 0.88rem; line-height: 1.45; }

/* —— 4. Kinetic narrative —— */
.sm-kinetic-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35em 0.55em;
  margin: 0 0 1rem;
  font-family: var(--luxe-serif, Georgia, serif);
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.2;
  color: #f5f5f7;
}
.sm-kinetic-line b {
  display: inline-block;
  opacity: 0.22;
  transform: translateY(0.45em);
  filter: blur(2px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), filter 0.55s ease, color 0.35s;
}
.sm-kinetic-line.is-in b {
  opacity: 1;
  transform: none;
  filter: none;
}
.sm-kinetic-line b.accent { color: #f97316; }
.sm-kinetic-line.is-in b:nth-child(1) { transition-delay: 0.02s; }
.sm-kinetic-line.is-in b:nth-child(2) { transition-delay: 0.08s; }
.sm-kinetic-line.is-in b:nth-child(3) { transition-delay: 0.14s; }
.sm-kinetic-line.is-in b:nth-child(4) { transition-delay: 0.2s; }
.sm-kinetic-line.is-in b:nth-child(5) { transition-delay: 0.26s; }
.sm-kinetic-line.is-in b:nth-child(6) { transition-delay: 0.32s; }

/* —— 5–7. Smart form + confirm —— */
.sm-slot {
  display: none;
  margin: 10px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(249, 115, 22, 0.35);
  background: rgba(249, 115, 22, 0.1);
  color: #ffe8d4;
  font-size: 0.9rem;
  line-height: 1.4;
}
.sm-slot.is-on { display: block; }
.sm-slot strong { color: #fff; }

.sm-confirm {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.sm-confirm.is-on {
  opacity: 1;
  pointer-events: auto;
}
.sm-confirm__card {
  width: min(420px, 100%);
  padding: 28px 24px;
  border-radius: 16px;
  background: #121214;
  border: 1px solid rgba(249, 115, 22, 0.45);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  text-align: center;
}
.sm-confirm__card h3 {
  margin: 0 0 8px;
  font-family: var(--luxe-serif, Georgia, serif);
  font-weight: 400;
  font-size: 1.6rem;
  color: #fff;
}
.sm-confirm__card p {
  margin: 0 0 16px;
  color: rgba(235, 235, 245, 0.7);
}
.sm-confirm__timer {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #f97316;
  margin: 0 0 18px;
  font-variant-numeric: tabular-nums;
}
.sm-confirm__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* —— 6. Pulsing call —— */
.sticky-call a.sm-call-pulse,
.dock a.hot.sm-call-pulse,
.nav a.call.sm-call-pulse {
  animation: sm-call-pulse 2.2s ease-in-out infinite;
}
.sticky-call.is-hot a {
  box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.55), 0 10px 28px rgba(249, 115, 22, 0.35);
}
@keyframes sm-call-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.45), 0 8px 22px rgba(0, 0, 0, 0.35); }
  50% { box-shadow: 0 0 0 10px rgba(249, 115, 22, 0), 0 12px 28px rgba(249, 115, 22, 0.35); }
}

/* —— 8. Coverage map —— */
.sm-cover {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  margin-top: 1.5rem;
}
.sm-cover__svg {
  width: 100%;
  height: auto;
  display: block;
}
.sm-cover__zone {
  fill: rgba(249, 115, 22, 0.22);
  stroke: #f97316;
  stroke-width: 1.5;
  cursor: pointer;
  transition: fill 0.25s;
}
.sm-cover__zone:hover,
.sm-cover__zone.is-on {
  fill: rgba(249, 115, 22, 0.42);
}
.sm-cover__tip {
  min-height: 4.5rem;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(235, 235, 245, 0.78);
  font-size: 0.95rem;
  line-height: 1.45;
}
.sm-cover__tip strong { color: #fff; display: block; margin-bottom: 4px; }
@media (max-width: 820px) {
  .sm-cover { grid-template-columns: 1fr; }
}

/* —— 9. License verify —— */
.sm-license {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
  font-size: 0.85rem;
  color: rgba(235, 235, 245, 0.7);
}
.sm-license a {
  color: #fbbf24;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* —— Header phones: bright orange on desktop only (mobile uses head-mob) —— */
@media (min-width: 981px) {
  .head-phone,
  .site-head .nav a.call,
  .site-head a[data-sm-phone="display"],
  .site-head a[data-sm-phone="label"] {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 42px;
    padding: 0 16px !important;
    border-radius: 999px !important;
    background: rgba(249, 115, 22, 0.12) !important;
    color: #ff6a00 !important;
    font-weight: 800 !important;
    font-size: 0.95rem !important;
    letter-spacing: -0.02em !important;
    text-decoration: none !important;
    border: 1.5px solid rgba(255, 106, 0, 0.55) !important;
    box-shadow: 0 0 18px rgba(255, 106, 0, 0.28) !important;
    white-space: nowrap;
    text-shadow: 0 0 12px rgba(255, 106, 0, 0.35);
  }
  .head-phone:hover,
  .site-head .nav a.call:hover,
  .site-head a[data-sm-phone="display"]:hover,
  .site-head a[data-sm-phone="label"]:hover {
    color: #ff8a3d !important;
    background: rgba(249, 115, 22, 0.22) !important;
    border-color: #ff6a00 !important;
    transform: translateY(-1px);
  }
}

.head-mob__btn--call {
  order: -1;
  min-height: 40px !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #fff 0%, #ffb060 45%, #ff6a00 100%) !important;
  color: #0a0a0a !important;
  font-weight: 800 !important;
  font-size: 0.82rem !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 4px #ff6a00,
    0 10px 28px rgba(255, 106, 0, 0.65) !important;
  animation: sm-call-pulse 1.8s ease-in-out infinite;
  z-index: 2;
}
.head-mob__btn--call:hover,
.head-mob__btn--call:active {
  filter: brightness(1.05);
  transform: scale(1.03);
}

/* Mobile: sticky header stays up; Call Now is the hero CTA */
@media (max-width: 980px) {
  .site-head {
    position: sticky !important;
    top: 0;
    z-index: 80 !important;
    background: rgba(8, 8, 8, 0.94) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55) !important;
  }
  /* Desktop phone pill is higher-specificity — kill every variant on mobile */
  .head-phone,
  .site-head .head-phone,
  .site-head a[data-sm-phone="display"],
  .site-head a[data-sm-phone="label"] {
    display: none !important;
  }
  .head-mob {
    display: inline-flex !important;
    gap: 6px;
    margin-left: auto;
    flex: 0 1 auto;
    min-width: 0;
    max-width: calc(100% - 56px);
    flex-wrap: nowrap;
  }
  .head-mob__btn--quiz,
  .head-mob__btn--calc {
    opacity: 0.72;
    box-shadow: none !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #f5f5f7 !important;
  }
  /* Desktop nav (incl. long Call label) fights head-mob — hide whole nav */
  .site-head .nav {
    display: none !important;
  }
  /* One bottom call strip is enough: dock. Sticky-call + assist pile on top of it. */
  .sticky-call {
    display: none !important;
  }
  .dock {
    display: grid !important;
    bottom: 12px !important;
    left: 12px !important;
    right: 12px !important;
    padding: 4px !important;
    min-height: 0 !important;
    height: auto !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    align-items: stretch;
    gap: 2px !important;
  }
  .dock a {
    min-height: 44px !important;
    max-height: 48px !important;
    padding: 10px 6px !important;
    font-size: 12px !important;
    line-height: 1.1 !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    border-radius: 999px !important;
  }
  .dock a.hot {
    font-size: 12px !important;
  }
  .sm-assist {
    bottom: calc(68px + env(safe-area-inset-bottom, 0px)) !important;
  }
  body {
    padding-bottom: 72px !important;
  }
}

@media (max-width: 430px) {
  .logo-name { display: none; }
  .head-mob {
    gap: 4px !important;
    max-width: calc(100% - 48px) !important;
  }
  .head-mob__btn--call {
    min-height: 36px !important;
    padding: 0 10px !important;
    font-size: 0.78rem !important;
    box-shadow: 0 0 0 2px #fff, 0 4px 12px rgba(255, 106, 0, 0.45) !important;
  }
  .head-mob__btn--quiz,
  .head-mob__btn--calc {
    min-height: 36px;
    padding: 0 8px !important;
    font-size: 0.68rem !important;
  }
}
@media (max-width: 360px) {
  .head-mob__btn--calc { display: none !important; }
}

/* Bottom sticky bar — full-bleed neon orange */
.sticky-call {
  display: none;
  z-index: 90 !important;
  padding: 12px 12px calc(12px + env(safe-area-inset-bottom, 0px)) !important;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.75) 22%, rgba(0, 0, 0, 0.95)) !important;
}
.sticky-call a {
  min-height: 56px !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, #fff 0%, #ffb060 35%, #ff6a00 100%) !important;
  color: #0a0a0a !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
  text-shadow: none !important;
  border: 2px solid #fff !important;
  box-shadow:
    0 0 0 3px #ff6a00,
    0 14px 40px rgba(255, 106, 0, 0.65) !important;
  animation: sm-call-pulse 1.8s ease-in-out infinite;
}
.sticky-call a:active {
  transform: scale(0.98);
}
@media (max-width: 900px) {
  /* sticky-call stays off — see max-width 980 block above */
  .dock a.hot {
    background: linear-gradient(135deg, #fff, #ff6a00) !important;
    color: #0a0a0a !important;
    font-weight: 800 !important;
    box-shadow: 0 0 0 2px #fff, 0 6px 18px rgba(255, 106, 0, 0.55) !important;
  }
}

@media (min-width: 981px) {
  .head-mob__btn--call { display: none !important; }
  .head-phone,
  .site-head .nav a.call,
  .site-head a[data-sm-phone="display"],
  .site-head a[data-sm-phone="label"] {
    font-size: 1.05rem !important;
    min-height: 44px !important;
    padding: 0 18px !important;
    color: #ff6a00 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sm-kinetic-line b,
  .sticky-call a.sm-call-pulse,
  .dock a.hot.sm-call-pulse,
  .nav a.call.sm-call-pulse,
  .head-mob__btn--call,
  .sticky-call a,
  .ba-slider__handle,
  .sm-live-pop {
    animation: none !important;
    transition: none !important;
  }
}
