/* ==========================================================
   PREMIUM.CSS — Glassmorphism · Scroll Animations · Polish
   Loaded after style.css; overrides are intentional.
   ========================================================== */

:root {
  --ease-expo: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --glass-white: rgba(255,255,255,0.08);
  --glass-border: rgba(255,255,255,0.13);
  --gold-glow: rgba(200,169,107,0.22);
}

/* ─────────────────────────────────────────────────────────
   NAV — refined glass on scroll
   ───────────────────────────────────────────────────────── */
nav {
  background: linear-gradient(180deg, rgba(0,0,0,0.28) 0%, transparent 100%);
}
nav.scrolled {
  background: rgba(248,247,245,0.84) !important;
  backdrop-filter: blur(28px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
  border-bottom: 1px solid rgba(200,169,107,0.1) !important;
  box-shadow: 0 1px 32px rgba(0,0,0,0.05) !important;
}

/* ─────────────────────────────────────────────────────────
   HERO BADGE — frosted glass
   ───────────────────────────────────────────────────────── */
.hero-badge {
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  background: rgba(200,169,107,0.09) !important;
  border-color: rgba(200,169,107,0.28) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 4px 20px rgba(0,0,0,0.18);
}

/* ─────────────────────────────────────────────────────────
   STATS STRIP — deep glass with gold accent line
   ───────────────────────────────────────────────────────── */
.stats-strip {
  position: relative;
  background: rgba(14,14,12,0.95) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
}
.stats-strip::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(200,169,107,0.45) 50%, transparent 100%);
  pointer-events: none;
}
.stat {
  position: relative;
  transition: background 0.4s var(--ease-expo);
}
.stat::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 100%, rgba(200,169,107,0.07), transparent);
  opacity: 0;
  transition: opacity 0.45s;
  pointer-events: none;
}
.stat:hover::after { opacity: 1; }
.stat-n {
  display: block;
  text-shadow: 0 0 48px rgba(200,169,107,0.25);
  will-change: contents;
}

/* ─────────────────────────────────────────────────────────
   TRUST BAR — subtle glass
   ───────────────────────────────────────────────────────── */
.trust {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.97) !important;
}

/* ─────────────────────────────────────────────────────────
   REVIEW CARDS — frosted white glass
   ───────────────────────────────────────────────────────── */
.review-card {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.94) !important;
  border: 1px solid rgba(226,221,213,0.55) !important;
  border-bottom: 3px solid transparent !important;
  box-shadow: 0 2px 24px rgba(0,0,0,0.05), inset 0 1px 0 rgba(255,255,255,0.85) !important;
  transition: transform 0.45s var(--ease-expo), box-shadow 0.45s, border-bottom-color 0.3s !important;
}
.review-card:hover {
  border-bottom-color: var(--gold) !important;
  transform: translateY(-7px);
  box-shadow: 0 24px 56px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.9) !important;
}

/* ─────────────────────────────────────────────────────────
   AREA CARDS — shimmer overlay on hover
   ───────────────────────────────────────────────────────── */
.ac {
  transition: transform 0.45s var(--ease-expo), box-shadow 0.45s, border-color 0.3s !important;
}
.ac::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(255,255,255,0.08) 0%, transparent 55%, rgba(200,169,107,0.05) 100%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.ac:hover { box-shadow: 0 28px 72px rgba(0,0,0,0.45) !important; }
.ac:hover::after { opacity: 1; }

/* ─────────────────────────────────────────────────────────
   BUTTONS — sheen sweep on hover
   ───────────────────────────────────────────────────────── */
.btn {
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  top: 0; left: -115%;
  width: 75%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.16), transparent);
  transition: left 0.55s var(--ease-expo);
  pointer-events: none;
}
.btn:hover::before { left: 135%; }

/* ─────────────────────────────────────────────────────────
   CTA STRIP — radial glow from top
   ───────────────────────────────────────────────────────── */
.cta-strip {
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% -10%, rgba(255,255,255,0.07), transparent 65%);
  pointer-events: none;
}

/* ─────────────────────────────────────────────────────────
   CONTACT FORM PANEL — glass card
   ───────────────────────────────────────────────────────── */
.cf {
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  background: rgba(255,255,255,0.96) !important;
  border: 1px solid rgba(255,255,255,0.45) !important;
  box-shadow: 0 48px 110px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.9) !important;
}

/* ─────────────────────────────────────────────────────────
   MOBILE MENU — deep glass overlay
   ───────────────────────────────────────────────────────── */
.mob {
  background: rgba(10,10,10,0.96) !important;
  backdrop-filter: blur(32px) saturate(120%) !important;
  -webkit-backdrop-filter: blur(32px) saturate(120%) !important;
}

/* ─────────────────────────────────────────────────────────
   JPANEL (jade strip center panel) — deeper glass
   ───────────────────────────────────────────────────────── */
.jpanel-overlay {
  background: rgba(8,8,8,0.76) !important;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

/* ─────────────────────────────────────────────────────────
   FOOTER — gold hairline at top
   ───────────────────────────────────────────────────────── */
footer {
  position: relative;
}
footer::before {
  content: '';
  position: absolute;
  top: 0; left: 80px; right: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,169,107,0.28), transparent);
}

/* ─────────────────────────────────────────────────────────
   ENHANCED SCROLL ANIMATIONS
   All base classes start invisible and transition to visible.
   ───────────────────────────────────────────────────────── */

/* Smoother ease override for existing fade-up */
.fade-up {
  transition: opacity 0.9s var(--ease-expo), transform 0.9s var(--ease-expo) !important;
}

/* Slide from left */
.slide-left {
  opacity: 0;
  transform: translateX(-38px);
  transition: opacity 0.85s var(--ease-expo), transform 0.85s var(--ease-expo);
}
.slide-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Slide from right */
.slide-right {
  opacity: 0;
  transform: translateX(38px);
  transition: opacity 0.85s var(--ease-expo), transform 0.85s var(--ease-expo);
}
.slide-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Scale + fade (cards) */
.fade-scale {
  opacity: 0;
  transform: scale(0.94) translateY(22px);
  transition: opacity 0.72s var(--ease-expo), transform 0.72s var(--ease-expo);
}
.fade-scale.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* ─────────────────────────────────────────────────────────
   STAGGER DELAYS — applied via data-delay="N" attribute
   ───────────────────────────────────────────────────────── */
[data-delay="1"] { transition-delay: 0.07s !important; }
[data-delay="2"] { transition-delay: 0.14s !important; }
[data-delay="3"] { transition-delay: 0.21s !important; }
[data-delay="4"] { transition-delay: 0.28s !important; }
[data-delay="5"] { transition-delay: 0.35s !important; }
[data-delay="6"] { transition-delay: 0.42s !important; }
[data-delay="7"] { transition-delay: 0.49s !important; }
[data-delay="8"] { transition-delay: 0.56s !important; }

/* ─────────────────────────────────────────────────────────
   GOLD REVEAL LINE — animated horizontal rule
   ───────────────────────────────────────────────────────── */
.gold-line {
  display: block;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), rgba(200,169,107,0));
  margin-bottom: 22px;
  transition: width 1.1s var(--ease-expo);
}
.gold-line.visible { width: 56px; }

/* ─────────────────────────────────────────────────────────
   PROCESS STEP — border-top reveal animation
   ───────────────────────────────────────────────────────── */
.ps {
  position: relative;
  overflow: hidden;
  border-top: 1px solid transparent !important;
  transition: background 0.3s;
}
.ps::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 1px;
  background: linear-gradient(90deg, rgba(200,169,107,0.65), transparent);
  transition: width 0.85s var(--ease-expo);
}
.ps.visible::before { width: 100%; }

/* ─────────────────────────────────────────────────────────
   TESTIMONIAL CARDS — premium lift
   ───────────────────────────────────────────────────────── */
.tcard {
  border-top: 1px solid rgba(200,169,107,0.1) !important;
  transition: transform 0.45s var(--ease-expo), box-shadow 0.45s !important;
}
.tcard:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 28px 64px rgba(0,0,0,0.11) !important;
}

/* ─────────────────────────────────────────────────────────
   PAGE HERO EYEBROW — inline glass pill
   ───────────────────────────────────────────────────────── */
.page-hero-content .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  background: rgba(200,169,107,0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(200,169,107,0.22);
  border-radius: 2px;
  margin-bottom: 18px;
}

/* ─────────────────────────────────────────────────────────
   WHY-JADE FEATURE GRID — glass divider lines reveal
   ───────────────────────────────────────────────────────── */
.why-cell {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s var(--ease-expo), transform 0.65s var(--ease-expo);
}
.why-cell.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─────────────────────────────────────────────────────────
   HERO PARALLAX CONTAINER
   ───────────────────────────────────────────────────────── */
.hero-bg {
  will-change: transform;
}

/* ─────────────────────────────────────────────────────────
   SCROLL-INDICATOR — pulse ring
   ───────────────────────────────────────────────────────── */
.hero-scroll {
  position: relative;
  padding: 9px 18px 9px 14px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 2px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

/* ─────────────────────────────────────────────────────────
   SERVICE CARDS (.card) — premium glass lift
   ───────────────────────────────────────────────────────── */
.card {
  border: 1px solid rgba(226,221,213,0.45) !important;
  box-shadow: 0 2px 20px rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,0.9) !important;
  transition: transform 0.45s var(--ease-expo), box-shadow 0.45s, border-bottom-color 0.3s !important;
}
.card:hover {
  box-shadow: 0 20px 56px rgba(0,0,0,0.09), inset 0 1px 0 rgba(255,255,255,0.95) !important;
}

/* ─────────────────────────────────────────────────────────
   TRUST STRIP ITEMS — subtle glass row
   ───────────────────────────────────────────────────────── */
.trust-strip-item {
  padding-left: 20px !important;
  padding-right: 20px !important;
  border-radius: 3px;
  transition: background 0.25s;
}

/* ─────────────────────────────────────────────────────────
   SELLING/BUYING FORM PANEL — glass card
   ───────────────────────────────────────────────────────── */
[style*="background:var(--white)"][style*="padding:40px"] {
  border: 1px solid rgba(226,221,213,0.5) !important;
  box-shadow: 0 8px 40px rgba(0,0,0,0.07), inset 0 1px 0 rgba(255,255,255,0.9) !important;
}

/* ─────────────────────────────────────────────────────────
   SECTION TRANSITIONS — cream sections get subtle top shadow
   ───────────────────────────────────────────────────────── */
.sec-cream {
  position: relative;
}

/* ─────────────────────────────────────────────────────────
   BREADCRUMB — refined styling
   ───────────────────────────────────────────────────────── */
.breadcrumb {
  border-bottom: 1px solid rgba(226,221,213,0.5) !important;
}

/* ─────────────────────────────────────────────────────────
   MOBILE ADJUSTMENTS
   ───────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  footer::before { left: 20px; right: 20px; }

  .slide-left,
  .slide-right {
    transform: translateY(22px);
  }
  .slide-left.visible,
  .slide-right.visible {
    transform: translateY(0);
  }

  .btn::before { display: none; }
}

/* ─────────────────────────────────────────────────────────
   REDUCE MOTION — respect user preference
   ───────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .fade-up, .fade-scale, .slide-left, .slide-right,
  .gold-line, .ps::before, .why-cell {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .gold-line { width: 56px !important; }
  .ps::before { width: 100% !important; }
  .btn::before { display: none !important; }
}
