/* Sampada v2.9.18 — Selective, visible motion. FAIL-SAFE design:
   .motion-reveal is VISIBLE by default. Only when JS runs and adds
   body.motion-on does it start hidden, so a failed script can never
   hide Why / Noida / Tools content. Motion is used in only 4 places:
   1) Hero image, 2) Featured cards, 3) Property-detail hero image,
   4) Calculator results. Everything else: hover lift or soft fade only.
   No external dependencies. */
:root {
  --sampada-gold: #CCA814;
  --sampada-gold-deep: #7A5F00;
}

/* 1) HERO — slow, always-visible zoom (CSS only, so it works even
   if JS is blocked). Desktop only; see media query below. */
.hero-visual img {
  animation: sampadaHeroZoom 18s ease-in-out infinite alternate;
}
@keyframes sampadaHeroZoom {
  from { transform: scale(1.02); }
  to { transform: scale(1.08); }
}
.page-property .property-detail-media img {
  animation: sampadaHeroZoom 18s ease-in-out infinite alternate;
}

/* 2) FEATURED CARDS — 3D tilt is applied by JS (max 10deg).
   CSS hover gives the visible lift + image zoom even without JS. */
.motion-tilt {
  transform-style: preserve-3d;
  transition: transform .3s ease, box-shadow .3s ease;
  will-change: transform;
}
.motion-tilt:hover {
  box-shadow: 0 24px 48px rgba(32, 33, 31, .16);
}
.motion-tilt:hover .property-image img {
  transform: scale(1.08);
}
.motion-tilt .property-image img {
  transition: transform .5s ease;
}

/* Hover lift only — categories, tools. No tilt, by design. */
.motion-lift {
  transition: transform .25s ease, box-shadow .25s ease;
}
.motion-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(32, 33, 31, .12);
}

/* Soft fade only — Why strip, Noida story. FAIL-SAFE: visible unless
   body.motion-on is present (JS adds it only when motion runs). */
.motion-reveal {
  opacity: 1;
  transform: none;
}
body.motion-on .motion-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s ease, transform .8s ease;
}
body.motion-on .motion-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 4) CALCULATOR RESULTS — pop on every recalculation (JS toggles
   .is-updated). This is functional motion: it shows the result changed. */
[data-result].is-updated {
  animation: sampadaResultPop .45s ease;
}
@keyframes sampadaResultPop {
  from { opacity: .4; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Golden button hover — CTA only, not decorative motion elsewhere. */
.page-home .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(146, 118, 0, .22);
}

/* Desktop only for hero zoom + tilt. Touch devices get lift/fade only. */
@media (hover: none), (max-width: 760px) {
  .hero-visual img,
  .page-property .property-detail-media img {
    animation: none;
  }
}

/* Reduced motion: keep everything calm and readable. */
@media (prefers-reduced-motion: reduce) {
  .hero-visual img,
  .page-property .property-detail-media img,
  [data-result].is-updated {
    animation: none;
  }
  body.motion-on .motion-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .motion-tilt:hover, .motion-lift:hover, .page-home .button:hover {
    transform: none;
  }
}

/* Alive pack v2.9.19 — CTA pulse ONLY on the main CTA band button.
   Soft golden glow, 4s cycle. Not on every button, not on forms. */
.cta-band .button {
  animation: sampadaCtaPulse 4s ease-in-out infinite;
}
@keyframes sampadaCtaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(204, 168, 20, 0); }
  50% { box-shadow: 0 0 0 7px rgba(204, 168, 20, .18); }
}
/* Alive stats — real DB counts rendered by PHP (see index.php). */
.alive-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 48px;
  padding: 8px 0 4px;
}
.alive-stat strong {
  display: block;
  font-size: 34px;
  line-height: 1.1;
  color: var(--sampada-gold-deep);
  letter-spacing: -.03em;
}
.alive-stat span {
  font-size: 11px;
  color: #64655f;
  letter-spacing: .06em;
  text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
  .cta-band .button { animation: none; }
}

/* v2.9.56 — alive stats: ONE row of 3 on mobile too (compact numbers +
   short labels, no vertical stacking). Desktop unchanged. */
@media (max-width:760px){
  .alive-stats{flex-wrap:nowrap;gap:16px}
  .alive-stat{flex:1 1 0;min-width:0;text-align:center}
  .alive-stat strong{font-size:26px}
  .alive-stat span{font-size:9px;letter-spacing:.04em}
}
