/* ================================================================
   DIGITAL DIVA — PREMIUM DESIGN UPGRADE v1.1
   Animations, polish, premium agency feel
   Color scheme: Navy #0C013A + Gold #D4A843 (refined)
   ================================================================ */

/* --- 1. DESIGN TOKENS ----------------------------------------- */
:root {
  --dd-gold:        #D4A843;
  --dd-gold-light:  #F0C866;
  --dd-gold-dark:   #A8832E;
  --dd-navy:        #0C013A;
  --dd-navy-mid:    #1A1A2E;
  --dd-navy-card:   #141428;
  --dd-white:       #FFFFFF;
  --dd-text-muted:  rgba(255,255,255,0.72);
  --dd-border:      rgba(212,168,67,0.20);
  --dd-ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --dd-ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- 2. FONT SMOOTHING ---------------------------------------- */
body {
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
}

/* --- 3. GOLD SHIMMER on hero headline ------------------------- */
@keyframes ddGoldShimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Target the hero section first heading only */
.elementor-element-f061350 .elementor-heading-title {
  background: linear-gradient(
    125deg,
    #F0C866 0%,
    #D4A843 22%,
    #FFFFFF 48%,
    #D4A843 72%,
    #F0C866 100%
  ) !important;
  background-size: 280% 280% !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  animation: ddGoldShimmer 4.5s ease infinite !important;
  color: transparent !important;
}

/* --- 4. HERO BACKGROUND ENHANCEMENTS -------------------------- */
/* Animated dot-grid overlay on the navy hero */
.elementor-element-ccb554b {
  position: relative;
  overflow: hidden;
}

.elementor-element-ccb554b::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle,
    rgba(212, 168, 67, 0.07) 1px,
    transparent 1px
  );
  background-size: 36px 36px;
  pointer-events: none;
  z-index: 0;
  animation: ddDotFadeIn 1.8s ease forwards;
}

@keyframes ddDotFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Gold glow orb — top-left */
.elementor-element-ccb554b::after {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(212, 168, 67, 0.07) 0%,
    transparent 68%
  );
  top: -280px;
  left: -150px;
  pointer-events: none;
  z-index: 0;
}

/* Ensure hero content sits above the pseudo-elements */
.elementor-element-ccb554b > .elementor-container,
.elementor-element-ccb554b > .elementor-column-wrap {
  position: relative;
  z-index: 1;
}

/* --- 5. HERO LOTTIE — floating animation ---------------------- */
.elementor-element-6ad09d2 {
  animation: ddFloat 5.5s ease-in-out infinite !important;
}

@keyframes ddFloat {
  0%, 100% { transform: translateY(0px);  }
  50%       { transform: translateY(-14px); }
}

/* --- 6. CLOUD IMAGES — HIDE ----------------------------------- */
/* By widget element ID (most reliable) */
.elementor-element-2310e91,
.elementor-element-4a2ac185,
.elementor-element-18100e09 {
  display: none !important;
}

/* Fallback: by image filename */
img[src*="hero-cloud"],
img[src*="cloud-1"],
img[alt*="cloud" i],
img[alt*="Cloud" i] {
  display: none !important;
}

/* --- 7. LOGO SIZE FIX ----------------------------------------- */
.elementor-element-ccb554b ~ * .elementor-widget-image img[src*="Diva-Logo"],
header .elementor-widget-image img[src*="Diva-Logo"],
.elementor-location-header .elementor-widget-image img[src*="Diva-Logo"] {
  max-height: 54px !important;
  width: auto !important;
  object-fit: contain !important;
}

/* --- 8. NAV HOVER UNDERLINE ----------------------------------- */
.elementor-nav-menu a {
  position: relative;
  transition: color 0.2s ease !important;
}

.elementor-nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--dd-gold);
  border-radius: 2px;
  transition: width 0.3s var(--dd-ease-out);
}

.elementor-nav-menu a:hover::after,
.elementor-nav-menu .current-menu-item > a::after {
  width: 100%;
}

/* --- 9. BUTTON ENHANCEMENTS ----------------------------------- */
@keyframes ddButtonPulse {
  0%   { box-shadow: 0 0 0 0 rgba(212,168,67,0.55); }
  70%  { box-shadow: 0 0 0 14px rgba(212,168,67,0); }
  100% { box-shadow: 0 0 0 0 rgba(212,168,67,0); }
}

.elementor-button {
  border-radius: 50px !important;
  font-weight: 600 !important;
  letter-spacing: 0.025em !important;
  transition:
    transform 0.25s var(--dd-ease-out),
    box-shadow 0.25s ease,
    background-color 0.25s ease !important;
  position: relative;
  overflow: hidden;
}

/* Gloss sheen overlay */
.elementor-button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.13) 0%,
    rgba(255,255,255,0) 55%
  );
  border-radius: inherit;
  pointer-events: none;
}

.elementor-button:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 14px 36px rgba(212,168,67,0.38) !important;
}

/* Pulse on hero CTA button only */
.elementor-element-ccb554b .elementor-button,
.elementor-element-5ad4a729 .elementor-button {
  animation: ddButtonPulse 2.8s ease-out 2.5s infinite;
}

/* --- 10. SERVICE ICON-BOX CARDS — hover lift + gold glow ------ */
.elementor-widget-icon-box .elementor-icon-box-wrapper {
  transition:
    transform 0.35s var(--dd-ease-out),
    box-shadow 0.35s ease,
    border-color 0.35s ease !important;
  border-radius: 12px !important;
  padding: 24px !important;
}

.elementor-widget-icon-box .elementor-icon-box-wrapper:hover {
  transform: translateY(-7px) !important;
  box-shadow:
    0 20px 56px rgba(0,0,0,0.28),
    0 0 0 1px rgba(212,168,67,0.3) !important;
}

/* Icon colour refinement — gold icons */
.elementor-widget-icon-box .elementor-icon i,
.elementor-widget-icon-box .elementor-icon svg {
  transition: color 0.25s ease, filter 0.25s ease !important;
}
.elementor-widget-icon-box:hover .elementor-icon i {
  color: var(--dd-gold) !important;
  filter: drop-shadow(0 0 8px rgba(212,168,67,0.5)) !important;
}

/* --- 11. SECTION HEADINGS — remove ALL CAPS ------------------- */
.elementor-widget-heading .elementor-heading-title {
  text-transform: none !important;
  letter-spacing: -0.02em !important;
  font-weight: 700 !important;
}

/* Re-apply caps ONLY to the small eyebrow labels */
.elementor-widget-heading .elementor-size-small.elementor-heading-title {
  text-transform: uppercase !important;
  letter-spacing: 0.10em !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

/* --- 12. GOLD TONE REFINEMENT ---------------------------------- */
/* Correct the "mustard" gold to the richer #D4A843 */
.elementor-widget-heading .elementor-heading-title[style*="color: rgb(230, 166, 23)"],
.elementor-widget-heading .elementor-heading-title[style*="color: rgb(245, 166, 35)"],
.elementor-widget-heading .elementor-heading-title[style*="color: rgb(234, 170, 0)"],
.elementor-widget-heading .elementor-heading-title[style*="color: #e6a617"],
.elementor-widget-heading .elementor-heading-title[style*="color: #f5a623"],
.elementor-widget-heading .elementor-heading-title[style*="color: #eaa600"] {
  color: var(--dd-gold) !important;
}

/* --- 13. BODY TEXT POLISH -------------------------------------- */
p,
.elementor-widget-text-editor p {
  line-height: 1.78 !important;
}

/* Text on dark sections */
.elementor-section[data-settings*='"background_color":"#0C013A"'] p,
.elementor-section[data-settings*='"background_color":"#0D0D1A"'] p,
.elementor-section[data-settings*='"background_color":"#1A1A2E"'] p {
  color: var(--dd-text-muted) !important;
}

/* --- 14. COUNTER / STATS ENTRANCE ----------------------------- */
@keyframes ddCountUp {
  from { opacity: 0; transform: scale(0.75); }
  to   { opacity: 1; transform: scale(1); }
}

.elementor-counter .elementor-counter-number-wrapper {
  animation: ddCountUp 0.65s var(--dd-ease-bounce) forwards;
}

/* --- 15. FOOTER POLISH ---------------------------------------- */
.elementor-location-footer,
footer.elementor-location-footer {
  border-top: 1px solid rgba(212,168,67,0.15) !important;
}

/* --- 16. SCROLL REVEAL BASE STATES (JS sets opacity/transform) - */
/* These are applied by dd-animations.js — defined here for safety */
.dd-will-reveal {
  opacity: 0;
  transform: translateY(28px);
}

/* --- 17. HONEYCOMB / DECORATIVE IMAGES — HIDE ----------------- */
img[src*="honey"],
img[src*="hexagon"],
img[src*="hex-"],
img[src*="-hex"],
img[src*="group-158"],
img[alt*="honey" i],
img[alt*="hexagon" i] {
  opacity: 0.04 !important;
  pointer-events: none !important;
}

/* Actually hide if truly decorative noise */
.elementor-element-62100075 {
  opacity: 0.04 !important;
  pointer-events: none !important;
}

/* --- 18. MOBILE — disable heavy animations -------------------- */
@media (max-width: 767px) {
  .elementor-element-ccb554b::before,
  .elementor-element-ccb554b::after {
    display: none;
  }

  .elementor-element-6ad09d2 {
    animation: none !important;
  }

  .elementor-widget-icon-box .elementor-icon-box-wrapper:hover {
    transform: none !important;
  }

  .elementor-element-f061350 .elementor-heading-title {
    background-size: 200% 200% !important;
  }
}

/* --- 19. REDUCE MOTION (accessibility) ------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
