/* =========================================
   Ana Pessoa — Estratégia de Imagem
   Custom Styles (complementa Tailwind)
   ========================================= */

/* --- Base --- */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: #6E3A8A;
  color: #fff;
}

/* --- Hero Overlay --- */
.hero-overlay {
  background: linear-gradient(180deg, rgba(21, 11, 9, 0.55) 0%, rgba(21, 11, 9, 0.88) 100%);
}

/* --- Gold Gradient Button --- */
.btn-gold {
  background: linear-gradient(135deg, #9F7A2F, #C6A25A, #E6C78B, #C6A25A);
  background-size: 200% 200%;
  color: #1A0F1F;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-gold::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: left 0.6s ease;
}

.btn-gold:hover::after {
  left: 100%;
}

.btn-gold:hover {
  box-shadow: 0 6px 28px rgba(198, 162, 90, 0.4);
  transform: translateY(-2px);
}

.btn-gold:active {
  transform: scale(0.97);
}

/* --- Ghost Button --- */
.btn-ghost {
  border: 1px solid #C6A25A;
  color: #C6A25A;
  background: transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-ghost:hover {
  background: rgba(198, 162, 90, 0.08);
  box-shadow: 0 2px 16px rgba(198, 162, 90, 0.15);
  transform: translateY(-2px);
}

.btn-ghost:active {
  transform: scale(0.97);
}

/* --- Purple Button --- */
.btn-purple {
  background: #4B1F5E;
  color: #fff;
  border: 1px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-purple:hover {
  background: #6E3A8A;
  border-color: #C6A25A;
  transform: translateY(-2px);
}

/* --- Card Premium Hover --- */
.card-premium {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}

.card-premium:hover {
  border-color: #C6A25A;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

/* --- Reveal on Scroll --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }
.reveal-delay-7 { transition-delay: 0.7s; }

/* --- Nav Scroll Effect --- */
.nav-scrolled {
  background: rgba(26, 15, 31, 0.97) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}

/* --- Mobile Menu --- */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu.active {
  transform: translateX(0);
}

.menu-overlay {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* --- Gold Divider --- */
.divider-gold {
  width: 64px;
  height: 2px;
  background: linear-gradient(90deg, #9F7A2F, #C6A25A, #E6C78B);
}

/* --- Gold Text Gradient --- */
.text-gradient-gold {
  background: linear-gradient(135deg, #9F7A2F, #C6A25A, #E6C78B, #C6A25A);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Video Gold Frame --- */
.video-gold-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

.video-gold-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 2px;
  background: linear-gradient(135deg, #9F7A2F, #C6A25A, #E6C78B, #C6A25A);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}

/* --- Play Button Pulse --- */
@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(198, 162, 90, 0.4); }
  50% { box-shadow: 0 0 0 24px rgba(198, 162, 90, 0); }
}

.play-pulse {
  animation: pulse-gold 2s ease-in-out infinite;
}

/* --- Float Animation --- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

/* --- Diamond Watermark --- */
.diamond-watermark {
  position: absolute;
  pointer-events: none;
  opacity: 0.03;
  z-index: 0;
}

/* --- Timeline Step Connector (Desktop) --- */
@media (min-width: 768px) {
  .timeline-step {
    position: relative;
  }

  .timeline-step::after {
    content: '';
    position: absolute;
    top: 28px;
    left: calc(50% + 28px);
    width: calc(100% - 56px);
    height: 1px;
    background: linear-gradient(90deg, #C6A25A, rgba(198, 162, 90, 0.15));
  }

  .timeline-step:last-child::after {
    display: none;
  }
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #1A0F1F;
}

::-webkit-scrollbar-thumb {
  background: #4B1F5E;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #C6A25A;
}

/* --- Focus Visible --- */
*:focus-visible {
  outline: 2px solid #C6A25A;
  outline-offset: 2px;
}

/* --- Testimonial Card Quote --- */
.quote-mark {
  font-family: Georgia, serif;
  font-size: 4rem;
  line-height: 1;
  color: #C6A25A;
  opacity: 0.3;
}

/* --- Number Counter Animation --- */
@keyframes count-fade {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.number-animate {
  animation: count-fade 0.6s ease forwards;
}

/* --- Subtle Grain Texture on dark sections --- */
.grain::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}
