/* ===================================================
   Riverwood Estate — UI overrides (riverwoodkharkhoda.com)
   =================================================== */

/* ── 0. PALETTE OVERRIDE — same green family, darker depth ── */
:root {
  --bg:          #060f0b;
  --bg-1:        #09140e;
  --bg-2:        #0c1912;
  --bg-3:        #101f16;
  --gold:        #c9a24b;
  --gold-dim:    rgba(201,162,75,0.35);
  --gold-bright: #e0bc6b;
  --sage:        #9fac9f;
  --bone:        #f4f1e6;
  --bone-dim:    #cdd3c9;
  --line:        rgba(244,241,232,0.12);
  --line-strong: rgba(244,241,232,0.22);
}

/* ── 1. NAV — dark green background + gold underline ────── */
.nav {
  background: rgba(6,15,11,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--gold);
  border-top: none;
}

/* ── 2. HERO — center aligned layout ──────────────── */
.hero {
  align-items: center;
}
.hero-content {
  text-align: center;
  max-width: 900px;
  margin-inline: auto;
  padding-bottom: 60px;
  padding-top: 40px;
}
.hero-ctas {
  justify-content: center;
}
.hero-rera-badge {
  margin-top: 28px;
  justify-content: center;
}
.hero .eyebrow::before {
  display: none;
}
.hero .eyebrow {
  justify-content: center;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  font-weight: 700;
}
.hero p {
  max-width: 56ch;
  margin-inline: auto;
}

/* ── 3. HERO gradient — deep green vignette ─────────── */
.hero-media::after {
  background:
    radial-gradient(ellipse at center, rgba(6,15,11,0.0) 15%, rgba(6,15,11,0.80) 100%),
    linear-gradient(180deg, rgba(6,15,11,0.60) 0%, rgba(6,15,11,0.05) 40%, rgba(6,15,11,0.96) 92%);
}

/* ── 4. BUTTONS — rounded rectangle ───────────────── */
.btn {
  border-radius: 8px;
}
.chip {
  border-radius: 8px;
}
.hero-rera-badge {
  border-radius: 8px;
}

/* ── 5. EYEBROW — square dot ──────────────────────── */
.eyebrow::before {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--gold);
}

/* ── 6. TRUST STRIP — dark green + gold bordered pills ─── */
.trust-strip {
  background: var(--bg-2);
  border-top: 1px solid rgba(201,162,75,0.25);
  border-bottom: 1px solid rgba(201,162,75,0.25);
}
.trust-strip .wrap {
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-block: 32px;
}
.trust-items {
  gap: 10px;
  justify-content: center;
}
.trust-item {
  background: rgba(201,162,75,0.07);
  border: 1px solid rgba(201,162,75,0.30);
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 0.85rem;
}

/* ── 7. SECTION HEADS — centered with gold underline ─ */
.section-head h2 {
  font-weight: 700;
}
.section-head.tight {
  text-align: center;
  margin-inline: auto;
}
.section-head.tight h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 18px auto 0;
  border-radius: 2px;
}

/* ── 8. FACT GRID — gold left-border cards ─────────── */
.fact-grid div {
  border-top: none;
  border-left: 2px solid var(--gold-dim);
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: 16px;
  background: rgba(201,162,75,0.03);
  border-radius: 0 6px 6px 0;
}
.fact-grid dt {
  color: var(--gold);
  font-size: 0.72rem;
}

/* ── 9. STAT CELLS — gold gradient numbers ─────────── */
.stat-cell {
  border-top: 2px solid var(--gold-dim);
}
.stat-cell .num {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── 10. LOCATION HIGHLIGHT icons — tinted bg ──────── */
.location-highlight .icon {
  background: rgba(201,162,75,0.10);
  border-radius: 6px;
  padding: 5px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── 11. DOWNLOAD CARDS — gold left accent ─────────── */
.download-card {
  border-left: 3px solid var(--gold-dim);
  border-radius: 0 var(--radius-m) var(--radius-m) 0;
}

/* ── 12. FAQ — gold left border on hover ────────────── */
.faq-item {
  border-left: 2px solid transparent;
  padding-left: 16px;
  margin-left: -18px;
  transition: border-color 0.25s;
}
.faq-item:hover,
.faq-item.is-open {
  border-left-color: var(--gold-dim);
}

/* ── 13. Section backgrounds follow the dark green palette ── */
.about-project {
  background: var(--bg-2);
}
.story {
  background: var(--bg-1);
}
.invest {
  background: var(--bg);
}

/* ── 14. Invest banner figures — bolder gold numbers ── */
.invest-figure .num {
  color: var(--gold-bright);
}

/* ===================================================
   PREMIUM MOTION LAYER
   Enhances the existing reveal/hover system — does not
   replace it. All effects respect prefers-reduced-motion.
   =================================================== */

/* ── 15. Reveal — cinematic blur-to-focus pull ─────── */
.reveal {
  filter: blur(6px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), filter 0.8s var(--ease);
}
.reveal.is-visible {
  filter: blur(0);
}
.reveal-stat {
  filter: blur(4px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), filter 0.6s var(--ease);
}
.reveal-stat.is-visible {
  filter: blur(0);
}
.reveal-x {
  filter: blur(4px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), filter 0.7s var(--ease);
}
.reveal-x.is-visible {
  filter: blur(0);
}

/* ── 16. BUTTONS — gold shine sweep on hover ───────── */
.btn-primary {
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 18px -6px rgba(201,162,75,0.0);
  transition: transform 0.35s var(--ease), background 0.25s var(--ease),
    border-color 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.35s var(--ease);
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.45), transparent);
  transform: skewX(-20deg);
  transition: left 0.65s var(--ease);
  pointer-events: none;
}
.btn-primary:hover {
  box-shadow: 0 10px 28px -8px rgba(201,162,75,0.45);
}
.btn-primary:hover::after {
  left: 130%;
}

/* ── 17. CARDS — gold glow lift on hover ───────────── */
.card-hover-lift {
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease),
    transform 0.25s var(--ease), box-shadow 0.3s var(--ease);
}
.card-hover-lift:hover {
  box-shadow: 0 14px 34px -14px rgba(201,162,75,0.35);
}

/* ── 18. SECTION UNDERLINE — slow shimmer sweep ────── */
.section-head.tight h2::after {
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-bright) 50%, var(--gold) 100%);
  background-size: 200% 100%;
  animation: rwShimmer 3.5s linear infinite;
}
@keyframes rwShimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* ── 19. HERO RERA BADGE — soft breathing glow ─────── */
.hero-rera-badge {
  border-radius: 8px;
  padding: 6px 4px;
  animation: rwBadgeGlow 3.2s ease-in-out infinite;
}
@keyframes rwBadgeGlow {
  0%, 100% { text-shadow: 0 0 0 rgba(201,162,75,0); }
  50%      { text-shadow: 0 0 14px rgba(201,162,75,0.55); }
}

/* ── 20. WHATSAPP FAB — pulsing invitation ring ────── */
.whatsapp-fab {
  position: fixed;
}
.whatsapp-fab::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--gold);
  animation: rwPulseRing 2.4s var(--ease) infinite;
  pointer-events: none;
}
@keyframes rwPulseRing {
  0%   { transform: scale(1);   opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ── 21. NAV BRAND MARK — micro interaction on hover ─ */
.brand-mark {
  transition: transform 0.45s var(--ease);
}
.brand:hover .brand-mark {
  transform: rotate(8deg) scale(1.08);
}

/* ── 22. Respect reduced motion for all premium FX ─── */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-stat,
  .reveal-x {
    filter: none !important;
    transition: none !important;
  }
  .btn-primary::after {
    display: none;
  }
  .section-head.tight h2::after {
    animation: none;
  }
  .hero-rera-badge {
    animation: none;
  }
  .whatsapp-fab::before {
    animation: none;
    display: none;
  }
  .brand:hover .brand-mark {
    transform: none;
  }
}
