/* Motion + reveal — respects reduced motion */

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .hero-animate,
  .trust-stat-value,
  .hero-bg,
  .hero-bg::before,
  .media-marquee-track,
  .social-proof-toast {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ── Scroll progress ── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 200;
  background: linear-gradient(90deg, var(--gold) 0%, #e8c96a 100%);
  box-shadow: 0 0 12px rgba(201, 162, 39, 0.45);
  pointer-events: none;
}

/* ── Hero photo: Ken Burns zoom + scroll parallax ──
   Parallax translate lives on .hero-bg (set via JS), the zoom lives on the
   ::before image layer so the two transforms never overwrite each other. */
.hero-bg::before {
  content: "";
  position: absolute;
  inset: -20% -4%;
  background: url("../images/hero-header.png") center center / cover no-repeat;
  transform: scale(1);
  will-change: transform;
  animation: ken-burns 24s ease-in-out infinite alternate;
}

@keyframes ken-burns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.08);
  }
}

.hero-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 75% 40%, rgba(201, 162, 39, 0.12) 0%, transparent 55%);
  pointer-events: none;
}

/* ── Hero entrance ── */
.hero-animate {
  opacity: 0;
  transform: translateY(18px);
  animation: hero-in 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-animate.delay-1 {
  animation-delay: 0.12s;
}
.hero-animate.delay-2 {
  animation-delay: 0.24s;
}
.hero-animate.delay-3 {
  animation-delay: 0.36s;
}

@keyframes hero-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-mesh {
  display: none;
}

/* ── Media logo marquee ── */
.media-marquee {
  width: min(100%, 640px);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.media-marquee-track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  animation: marquee 28s linear infinite;
  padding: 0.25rem 0;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ── Sticky mobile CTA ── */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 0.75rem 0 calc(0.75rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
  transform: translateY(110%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.sticky-cta.is-visible {
  transform: translateY(0);
}

.sticky-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.sticky-cta-text {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.3;
}

.sticky-cta .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

/* ── Social proof toast ── */
.social-proof-toast {
  position: fixed;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  left: 1rem;
  z-index: 85;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  max-width: min(320px, calc(100vw - 2rem));
  padding: 0.65rem 0.9rem;
  background: rgba(26, 26, 26, 0.92);
  color: #fff;
  font-size: 0.78rem;
  line-height: 1.35;
  border-radius: 10px;
  border: 1px solid rgba(201, 162, 39, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
  pointer-events: none;
}

.social-proof-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.social-proof-toast.is-hidden {
  opacity: 0;
  transform: translateY(8px);
}

.social-proof-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

@media (min-width: 768px) {
  .sticky-cta {
    display: none;
  }

  .social-proof-toast {
    bottom: 1.5rem;
    left: 1.5rem;
  }
}

/* ── Review cards subtle lift ── */
.reviews-marquee .review-card:hover {
  border-color: rgba(201, 162, 39, 0.45);
}

.compare-card--highlight {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.25), var(--shadow-lg, 0 12px 32px rgba(0, 0, 0, 0.1));
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.is-visible > *:nth-child(1) {
  transition-delay: 0.05s;
}
.reveal-stagger.is-visible > *:nth-child(2) {
  transition-delay: 0.1s;
}
.reveal-stagger.is-visible > *:nth-child(3) {
  transition-delay: 0.15s;
}
.reveal-stagger.is-visible > *:nth-child(4) {
  transition-delay: 0.2s;
}
.reveal-stagger.is-visible > *:nth-child(5) {
  transition-delay: 0.25s;
}
.reveal-stagger.is-visible > *:nth-child(6) {
  transition-delay: 0.3s;
}
.reveal-stagger.is-visible > *:nth-child(7) {
  transition-delay: 0.35s;
}
.reveal-stagger.is-visible > *:nth-child(8) {
  transition-delay: 0.4s;
}

/* ── Trust stats bar ── */
.trust-bar {
  background: linear-gradient(180deg, #0f0f0f 0%, #1a1a1a 100%);
  border-bottom: 1px solid rgba(201, 162, 39, 0.25);
  padding: 1.35rem 0;
}

.trust-bar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem 1.5rem;
}

@media (min-width: 768px) {
  .trust-bar-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-stat {
  text-align: center;
  color: #fff;
}

.trust-stat-value {
  display: block;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--gold);
  line-height: 1.1;
}

.trust-stat-label {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Interactive polish ── */
.site-header.is-scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  border-bottom-color: transparent;
}

.offer-card {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.offer-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.12),
    0 28px 56px rgba(0, 0, 0, 0.22);
}

.situation-pill,
.feature-box,
.service-card,
.step-card,
.review-card {
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.situation-pill:hover,
.feature-box:hover,
.service-card:hover,
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg, 0 12px 32px rgba(0, 0, 0, 0.1));
}

.btn-gold {
  position: relative;
  overflow: hidden;
  transition:
    transform 0.18s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s ease;
}

/* Magnetic buttons: JS sets --mx/--my on pointer move (desktop only) */
@media (hover: hover) and (pointer: fine) {
  .btn-gold.is-magnetic {
    transform: translate(var(--mx, 0), var(--my, 0));
  }

  .btn-gold.is-magnetic:hover {
    box-shadow: 0 10px 28px rgba(201, 162, 39, 0.4);
  }
}

.btn-gold::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 60%
  );
  transform: translateX(-120%);
  transition: transform 0.55s ease;
}

.btn-gold:hover::after {
  transform: translateX(120%);
}

/* Service visual placeholders (no stock photos required) */
.service-visual {
  aspect-ratio: 16 / 10;
  width: 100%;
  background-size: cover;
  background-position: center;
}

.service-visual--foreclosure {
  background-image: linear-gradient(135deg, #2c3e50 0%, #4a6741 100%);
}
.service-visual--inherited {
  background-image: linear-gradient(135deg, #5c4d3c 0%, #8b7355 100%);
}
.service-visual--landlord {
  background-image: linear-gradient(135deg, #3d4f5f 0%, #2d5a4a 100%);
}
.service-visual--relocation {
  background-image: linear-gradient(135deg, #1e3a5f 0%, #3d6b8c 100%);
}
.service-visual--divorce {
  background-image: linear-gradient(135deg, #4a3f55 0%, #6b5b7a 100%);
}
.service-visual--hardship {
  background-image: linear-gradient(135deg, #3a3a3a 0%, #5c4a3a 100%);
}

.step-visual {
  aspect-ratio: 4 / 3;
  width: 100%;
  border-radius: 0 0 var(--radius) var(--radius);
  background-size: cover;
  background-position: center;
}

.step-visual--contact {
  background-image: linear-gradient(160deg, #1a2a3a 0%, #c9a227 120%);
}
.step-visual--assess {
  background-image: linear-gradient(160deg, #2a2520 0%, #6b8f71 100%);
}
.step-visual--close {
  background-image: linear-gradient(160deg, #1f2937 0%, #b8921f 100%);
}

.display-serif {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-style: italic;
}
