/* Opulent Developers: additive enhancements for the existing static website. */
:root {
  --opulent-gold: #c4a46b;
  --opulent-ink: #1d211e;
}

.opulent-scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 10000;
  width: 100%;
  height: 3px;
  pointer-events: none;
  background: transparent;
}

.opulent-scroll-progress > span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--opulent-gold);
  transform-origin: left center;
}

/* Elements are only hidden after JavaScript successfully enhances the page. */
.opulent-reveal {
  opacity: 0;
  translate: 0 22px;
  transition: opacity 650ms ease, translate 650ms cubic-bezier(.2,.7,.2,1);
}

.opulent-reveal.opulent-visible {
  opacity: 1;
  translate: 0 0;
}

.opulent-card-hover {
  transition: box-shadow 260ms ease, border-color 260ms ease;
}

.opulent-card-hover:hover {
  box-shadow: 0 14px 38px rgba(24, 29, 24, .10);
}

.opulent-header-scrolled {
  box-shadow: 0 8px 28px rgba(20, 25, 20, .09);
  transition: box-shadow 240ms ease;
}

.opulent-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9998;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 17px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  background: #218653;
  color: #fff !important;
  font: 600 13px/1.2 Arial, sans-serif;
  text-decoration: none !important;
  box-shadow: 0 8px 26px rgba(0,0,0,.2);
  transition: transform 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.opulent-whatsapp:hover {
  transform: translateY(-3px);
  background: #176b41;
  box-shadow: 0 12px 30px rgba(0,0,0,.24);
}

.opulent-whatsapp svg { width: 19px; height: 19px; flex: 0 0 auto; }

@media (max-width: 600px) {
  .opulent-whatsapp {
    right: 14px;
    bottom: 14px;
    min-height: 46px;
    padding: 0 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .opulent-reveal,
  .opulent-card-hover,
  .opulent-whatsapp,
  .opulent-header-scrolled {
    transition: none !important;
    animation: none !important;
    translate: none !important;
  }
  .opulent-reveal { opacity: 1 !important; }
}

/* Remove duplicate pill-shaped WhatsApp button */
.opulent-whatsapp {
    display: none !important;
}
