/* =====================================================
   Dra. Ana Galvão — Landing Page Premium v2
   Custom Styles
   ===================================================== */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: rgba(201, 169, 98, 0.25);
  color: #F5F2EA;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #050505;
}

::-webkit-scrollbar-thumb {
  background: rgba(201, 169, 98, 0.35);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(201, 169, 98, 0.55);
}

/* Radial gradient utility */
.bg-gradient-radial {
  background: radial-gradient(circle, var(--tw-gradient-stops));
}

/* Preloader */
#preloader {
  will-change: opacity;
}

.preloader-text {
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(20px);
}

.preloader-line {
  animation: expandWidth 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
  width: 0;
}

@keyframes slideUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes expandWidth {
  to { width: 100%; }
}

/* Navigation */
#navbar {
  will-change: transform, opacity;
}

#navbar.visible {
  opacity: 1;
  transform: translateY(0);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #C5A059;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover::after {
  width: 100%;
}

/* Gradient Gold */
.bg-gradient-gold {
  background: linear-gradient(135deg, #C5A059 0%, #E8D5A3 50%, #C5A059 100%);
  background-size: 200% 200%;
  transition: background-position 0.5s ease, box-shadow 0.3s ease;
}

.bg-gradient-gold:hover {
  background-position: 100% 0;
  box-shadow: 0 10px 40px -10px rgba(197, 160, 89, 0.4);
}

/* Hero */
#hero {
  min-height: 100svh;
}

.hero-image {
  will-change: transform;
}

/* Marquee */
.marquee-track {
  animation: marquee 30s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Magnetic Button */
.magnetic-btn {
  position: relative;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Cards */
.procedure-card,
.testimonial-card,
.method-step,
.faq-item,
.why-card {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.procedure-card:hover,
.testimonial-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 169, 98, 0.35);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* FAQ */
.faq-item.active {
  border-color: rgba(201, 169, 98, 0.3);
}

.faq-icon {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background: rgba(201, 169, 98, 0.12);
  border-color: rgba(201, 169, 98, 0.5);
}

.faq-content {
  transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* CTA */
.cta-image {
  will-change: transform;
}

/* WhatsApp Float */
.fixed.bottom-5.right-5 {
  animation: float 4s ease-in-out infinite;
}

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

/* Before/After Slider */
.ba-slider {
  touch-action: pan-y;
}

.ba-overlay {
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
}

.ba-overlay img {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.ba-handle {
  transform: translateX(-50%);
}

/* Image hover */
.case-card img {
  will-change: transform;
}

/* Focus */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #C5A059;
  outline-offset: 3px;
}

/* Responsive */
@media (max-width: 1024px) {
  .marquee-track {
    animation-duration: 22s;
  }
}

@media (max-width: 768px) {
  #hero h1 {
    font-size: 2.75rem;
    line-height: 0.95;
  }

  .about-image-wrapper {
    margin: 0 auto;
    max-width: 420px;
  }

  .about-image-wrapper > div:first-child {
    display: none;
  }

  .about-image {
    height: auto;
    max-height: 520px;
  }
}

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