/* ============================================
   Site-wide luxury enhancements
   ============================================ */

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

/* --- Hero cinematic --- */
.hero-bg img,
.page-hero .hero-bg img {
  animation: heroKenBurns 22s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes heroKenBurns {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

.hero-content .hero-badge,
.hero-content h1,
.hero-content .hero-subtitle,
.hero-content .button-group {
  opacity: 0;
  animation: heroReveal 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-content .hero-badge { animation-delay: 0.15s; }
.hero-content h1 { animation-delay: 0.35s; }
.hero-content .hero-subtitle { animation-delay: 0.55s; }
.hero-content .button-group { animation-delay: 0.75s; }

@keyframes heroReveal {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-overlay {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.55) 45%,
    rgba(250, 248, 244, 0.88) 100%
  );
}

[data-theme="dark"] .hero-overlay {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.25) 0%,
    rgba(0, 0, 0, 0.55) 50%,
    rgba(10, 10, 10, 0.92) 100%
  );
}

/* --- Button shine --- */
.gold-button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.gold-button::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 65%
  );
  transform: translateX(-120%);
  transition: transform 0.65s ease;
  pointer-events: none;
}

.gold-button:hover::after {
  transform: translateX(120%);
}

.gold-button:active,
.outline-button:active {
  transform: translateY(1px);
}

/* --- Card micro-interactions --- */
.service-card,
.venture-card,
.value-card,
.luxury-card,
.feature-item,
.capability-item,
.benefit-card,
.contact-info-item {
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.service-card:hover,
.venture-card:hover,
.value-card:hover,
.luxury-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(184, 148, 47, 0.14), var(--shadow-card);
  border-color: rgba(184, 148, 47, 0.45);
}

.service-card-icon,
.venture-card-icon,
.value-card i,
.feature-item i,
.capability-item i {
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    color var(--transition);
}

.service-card:hover .service-card-icon,
.venture-card:hover .venture-card-icon,
.value-card:hover i {
  transform: scale(1.08);
  box-shadow: 0 0 20px rgba(184, 148, 47, 0.25);
}

/* --- Section titles polish --- */
.section-title {
  position: relative;
}

.section-title::after {
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.section.in-view .section-title::after,
.section--dark.in-view .section-title::after {
  width: 80px;
}

/* --- CTA ambient glow --- */
.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-section::after {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 148, 47, 0.12) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: ctaPulse 6s ease-in-out infinite;
}

@keyframes ctaPulse {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

/* --- Footer link hover --- */
.footer-links a,
.footer-nav a {
  position: relative;
  display: inline-block;
}

.footer-links a::after,
.footer-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--color-gold);
  transition: width var(--transition);
}

.footer-links a:hover::after,
.footer-nav a:hover::after {
  width: 100%;
}

/* --- Back to top enhanced --- */
.back-to-top {
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    opacity var(--transition),
    visibility var(--transition);
}

.back-to-top.visible:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(184, 148, 47, 0.35);
}

/* --- Page hero subtle depth --- */
.page-hero .hero-content {
  animation: heroReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* --- Form focus glow --- */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  box-shadow: 0 0 0 3px rgba(184, 148, 47, 0.15);
}

/* --- Nav link underline --- */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-gold);
  border-radius: 1px;
  transform: translateX(-50%);
  transition: width var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: calc(100% - 1.25rem);
}

:root:not([data-theme="dark"]) .site-header:not(.scrolled) .nav-link::after {
  background: linear-gradient(90deg, var(--color-gold-dark), var(--color-gold-light));
}
