/* ═══════════════════════════════════════════════════════════════════
   Hearts to Homes — Enhanced Animations
   animations.css  ·  loaded after page inline styles
═══════════════════════════════════════════════════════════════════ */

/* ─── ENHANCED SCROLL REVEALS ────────────────────────────────────── */
/* NOTE: No !important on opacity/transform — JS inline styles must win for hero entrance */
.reveal {
  opacity: 0;
  transform: translateY(56px);
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-64px);
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-right {
  opacity: 0;
  transform: translateX(64px);
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-left.revealed,
.reveal-right.revealed {
  opacity: 1;
  transform: translate(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* More delay steps */
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.18s; }
.reveal-delay-3 { transition-delay: 0.28s; }
.reveal-delay-4 { transition-delay: 0.38s; }
.reveal-delay-5 { transition-delay: 0.50s; }
.reveal-delay-6 { transition-delay: 0.62s; }

/* ─── ANIMATED GRADIENT HERO ORBS ────────────────────────────────── */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.hero-orb-1 {
  width: 700px;
  height: 700px;
  top: -200px;
  right: -120px;
  background: radial-gradient(circle,
    rgba(196, 120, 138, 0.38) 0%,
    rgba(232, 192, 203, 0.20) 40%,
    transparent 70%);
  filter: blur(60px);
  animation: orbDrift1 14s ease-in-out infinite;
}
.hero-orb-2 {
  width: 500px;
  height: 500px;
  bottom: -120px;
  left: -80px;
  background: radial-gradient(circle,
    rgba(253, 246, 248, 0.7) 0%,
    rgba(245, 224, 230, 0.35) 45%,
    transparent 70%);
  filter: blur(50px);
  animation: orbDrift2 18s ease-in-out infinite;
}
.hero-orb-3 {
  width: 350px;
  height: 350px;
  top: 30%;
  left: 38%;
  background: radial-gradient(circle,
    rgba(196, 120, 138, 0.15) 0%,
    transparent 65%);
  filter: blur(40px);
  animation: orbDrift3 22s ease-in-out infinite;
}

@keyframes orbDrift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25%  { transform: translate(-50px, 40px) scale(1.06); }
  50%  { transform: translate(-20px, 70px) scale(0.96); }
  75%  { transform: translate(30px, 20px) scale(1.03); }
}
@keyframes orbDrift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  30%  { transform: translate(40px, -50px) scale(1.08); }
  60%  { transform: translate(60px, -20px) scale(0.94); }
  80%  { transform: translate(20px, -60px) scale(1.04); }
}
@keyframes orbDrift3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40%  { transform: translate(-60px, -40px) scale(1.1); }
  70%  { transform: translate(40px, 30px) scale(0.92); }
}

/* ─── HERO GRADIENT BREATHE ──────────────────────────────────────── */
/* Applied to .page-hero (gradient heroes) for living warmth */
@keyframes heroBreathe {
  0%, 100% { filter: brightness(1) saturate(1); }
  50%       { filter: brightness(1.04) saturate(1.08); }
}
.page-hero:not(:has(.page-hero-bg)) {
  animation: heroBreathe 8s ease-in-out infinite;
}

/* ─── SHIMMER ON EM ITALIC TITLES ────────────────────────────────── */
@keyframes shimmerFlow {
  0%   { background-position: -200% center; }
  100% { background-position: 300% center; }
}
.page-hero-title em,
.hero-headline em,
.section-title em,
.cta-headline em {
  background: linear-gradient(
    110deg,
    #9e5a6a 0%,
    #c4788a 25%,
    #e8b4c0 50%,
    #c4788a 75%,
    #9e5a6a 100%
  ) !important;
  background-size: 250% auto !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: shimmerFlow 5s linear infinite !important;
}

/* ─── CARD HOVER LIFTS ───────────────────────────────────────────── */
.service-card,
.team-card,
.blog-card,
.vlog-card,
.process-step,
.testimonial-card,
.journey-card,
.contact-card,
.team-contact-card {
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.45s ease !important;
  will-change: transform;
}
.service-card:hover,
.team-card:hover,
.blog-card:hover,
.vlog-card:hover,
.process-step:hover,
.testimonial-card:hover,
.journey-card:hover,
.contact-card:hover,
.team-contact-card:hover {
  transform: translateY(-10px) scale(1.01) !important;
  box-shadow:
    0 28px 64px rgba(196, 120, 138, 0.20),
    0 8px 24px rgba(42, 37, 34, 0.10) !important;
  border-color: rgba(196, 120, 138, 0.40) !important;
}

/* ─── NAV SCROLL-GLASS EFFECT ────────────────────────────────────── */
nav,
.nav {
  transition:
    background 0.4s ease,
    box-shadow 0.4s ease,
    backdrop-filter 0.4s ease !important;
}
nav.scrolled,
.nav.scrolled {
  background: rgba(20, 10, 14, 0.92) !important;
  backdrop-filter: blur(18px) saturate(1.4) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.4) !important;
  box-shadow: 0 2px 48px rgba(0, 0, 0, 0.35) !important;
}

/* ─── BUTTON SHINE SWEEP ─────────────────────────────────────────── */
.btn-primary,
.btn-cta,
[class*="btn-primary"],
.nav-cta {
  position: relative;
  overflow: hidden;
}
.btn-primary::before,
.btn-cta::before,
[class*="btn-primary"]::before,
.nav-cta::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.25) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  pointer-events: none;
}
.btn-primary:hover::before,
.btn-cta:hover::before,
[class*="btn-primary"]:hover::before,
.nav-cta:hover::before {
  left: 150%;
}

/* ─── SECTION EYEBROW FADE-IN LINE ───────────────────────────────── */
@keyframes lineGrow {
  from { width: 0; opacity: 0; }
  to   { width: 40px; opacity: 1; }
}
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.section-eyebrow::before {
  content: '';
  display: inline-block;
  height: 1px;
  background: var(--rose, #c4788a);
  animation: lineGrow 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.3s;
  width: 0;
  opacity: 0;
}

/* ─── STAT NUMBER GLOW ───────────────────────────────────────────── */
.stat-number {
  transition: text-shadow 0.4s ease, color 0.4s ease;
}
.stat-number:hover {
  text-shadow: 0 0 40px rgba(196, 120, 138, 0.5);
}

/* ─── IMAGE HOVER ZOOM ────────────────────────────────────────────── */
.about-image-wrap,
.member-photo-wrap {
  overflow: hidden;
  border-radius: inherit;
}
.about-image-wrap img,
.member-photo-wrap img {
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
.about-image-wrap:hover img,
.member-photo-wrap:hover img {
  transform: scale(1.05) !important;
}

/* ─── FLOATING DECORATIVE DOTS ───────────────────────────────────── */
@keyframes floatDot {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.4; }
  50%       { transform: translateY(-18px) scale(1.15); opacity: 0.7; }
}
.hero-dot {
  position: absolute;
  border-radius: 50%;
  background: rgba(196, 120, 138, 0.45);
  pointer-events: none;
  z-index: 1;
  animation: floatDot var(--dot-dur, 6s) ease-in-out infinite;
  animation-delay: var(--dot-delay, 0s);
}

/* ─── PROGRESS BAR ───────────────────────────────────────────────── */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #c4788a, #e8b4c0, #c4788a);
  background-size: 200% auto;
  animation: shimmerFlow 2s linear infinite;
  z-index: 10000;
  transition: width 0.1s linear;
}

/* ─── MOBILE MENU SLIDE ──────────────────────────────────────────── */
.mobile-menu {
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
.mobile-menu:not(.open) {
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
}
.mobile-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}



