/* Estilos Customizados de Alto Luxo & Ultra Otimização Mobile - Dr. Georgen Hauagge */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;800;900&family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --color-gold-light: #f7df94;
  --color-gold-main: #d4af37;
  --color-gold-dark: #aa820a;
  --color-bronze: #c59b27;
  --color-dark-bg: #0b0c10;
  --color-card-bg: #12141c;
  --color-card-border: rgba(212, 175, 55, 0.22);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  touch-action: manipulation;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--color-dark-bg);
  color: #e2e8f0;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

/* Evitar zoom automático no iPhone em inputs */
input, select, textarea {
  font-size: 16px !important;
}

.font-serif-title {
  font-family: 'Playfair Display', serif;
}

.font-cinzel {
  font-family: 'Cinzel', serif;
}

/* Efeito Gradiente Dourado */
.gold-gradient-text {
  background: linear-gradient(135deg, #fff2b2 0%, #d4af37 40%, #f3ce63 70%, #aa820a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gold-gradient-bg {
  background: linear-gradient(135deg, #d4af37 0%, #f3ce63 50%, #aa820a 100%);
}

.gold-gradient-btn {
  background: linear-gradient(135deg, #e5c158 0%, #d4af37 50%, #b88a1b 100%);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.35);
}

.gold-gradient-btn:active {
  transform: scale(0.96);
}

@media (hover: hover) {
  .gold-gradient-btn:hover {
    background: linear-gradient(135deg, #fceda6 0%, #e5c158 50%, #c99920 100%);
    box-shadow: 0 0 35px rgba(212, 175, 55, 0.6);
    transform: translateY(-2px) scale(1.01);
  }
}

/* Glassmorphism Cards */
.glass-card {
  background: rgba(18, 20, 28, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-card-border);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.6);
}

.glass-card-hover {
  transition: all 0.3s ease;
}

@media (hover: hover) {
  .glass-card-hover:hover {
    border-color: rgba(212, 175, 55, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 20px 45px -10px rgba(212, 175, 55, 0.15);
  }
}

/* Mockup 3D do Livro */
.book-container {
  perspective: 1000px;
}

.book-mockup {
  transform: rotateY(-8deg) rotateX(3deg);
  box-shadow: 
    -10px 10px 25px rgba(0, 0, 0, 0.8),
    -2px 2px 8px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(212, 175, 55, 0.2);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s ease;
  border-radius: 4px 10px 10px 4px;
}

@media (min-width: 768px) {
  .book-container {
    perspective: 1200px;
  }
  .book-mockup {
    transform: rotateY(-18deg) rotateX(8deg);
    box-shadow: 
      -20px 20px 40px rgba(0, 0, 0, 0.8),
      -5px 5px 15px rgba(0, 0, 0, 0.5),
      0 0 30px rgba(212, 175, 55, 0.25);
    border-radius: 4px 12px 12px 4px;
  }
  .book-mockup:hover {
    transform: rotateY(-8deg) rotateX(4deg) scale(1.04);
    box-shadow: 
      -25px 25px 50px rgba(0, 0, 0, 0.9),
      0 0 45px rgba(212, 175, 55, 0.4);
  }
}

.book-mockup::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 10px;
  background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(255,255,255,0.15) 50%, rgba(0,0,0,0.3) 100%);
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
  z-index: 10;
}

/* Background Glow Spots */
.glow-spot {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.14;
}

@media (min-width: 768px) {
  .glow-spot {
    filter: blur(120px);
    opacity: 0.18;
  }
}

.glow-gold {
  background: radial-gradient(circle, #d4af37 0%, rgba(212, 175, 55, 0) 70%);
}

/* FAQ Accordion */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out, opacity 0.25s ease-out;
  opacity: 0;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  opacity: 1;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--color-gold-main);
}

/* Toast Notifications */
.social-proof-toast {
  transform: translateY(-160%);
  transition: transform 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

.social-proof-toast.show {
  transform: translateY(0);
  opacity: 1;
}

@media (min-width: 640px) {
  .social-proof-toast {
    transform: translateY(160%);
  }
  .social-proof-toast.show {
    transform: translateY(0);
  }
}

/* Barra Fixa Flutuante Mobile */
.mobile-sticky-bar {
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: 100vw !important;
  box-sizing: border-box !important;
}

.mobile-sticky-bar.visible {
  transform: translateY(0);
}

/* Shimmer Light Animation */
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

.shimmer-effect {
  position: relative;
  overflow: hidden;
}

.shimmer-effect::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: skewX(-20deg);
  animation: shimmer 4s infinite;
}

/* Quote Borders */
.quote-veja {
  border-left: 3px solid #d4af37;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.08) 0%, rgba(18, 20, 28, 0) 100%);
}

@media (min-width: 768px) {
  .quote-veja {
    border-left-width: 4px;
  }
}
