/* ==========================================================================
   Design System & Variáveis (LIGHT THEME)
   ========================================================================== */
:root {
  /* Colors */
  --bg-color: #F8F9FA;
  --bg-darker: #E9ECEF;
  --bg-glass: rgba(255, 255, 255, 0.7);
  --border-glass: rgba(0, 0, 0, 0.08);

  --text-main: #1F2937;
  --text-muted: #4B5563;

  --gold: #B8860B;
  /* Ouro mais escuro para melhor contraste */
  --gold-hover: #D4AF37;
  --gold-dim: rgba(184, 134, 11, 0.15);

  /* Typography */
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Archivo', sans-serif;
  --font-mono: var(--font-body);

  /* Shadows & Transitions */
  --glow: 0 0 20px rgba(184, 134, 11, 0.3);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.06);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Ambient Glow Background */
.ambient-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(184, 134, 11, 0.08) 0%, rgba(248, 249, 250, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

.glow-1 {
  top: -100px;
  left: -200px;
}

.glow-2 {
  top: 40%;
  right: -300px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-main);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* ==========================================================================
   Layout Helpers
   ========================================================================== */
.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-center {
  text-align: center;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.align-center {
  align-items: center;
}

.gap-md {
  gap: 24px;
}

.mt-4 {
  margin-top: 32px;
}

/* Preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-color);
  /* Fundo branco/gelo do site */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  transition: opacity 0.6s ease-out, visibility 0.6s ease-out;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-logo {
  height: 70px;
  animation: preloader-breathe 1.5s ease-in-out infinite alternate;
}

@keyframes preloader-breathe {
  from {
    opacity: 0.5;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1.05);
  }
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.section-dark {
  background-color: var(--bg-darker);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
}

/* ==========================================================================
   UI Components
   ========================================================================== */
/* Tags / Eyebrow */
.tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-dim);
  padding: 6px 12px;
  border-radius: 2px;
  margin-bottom: 16px;
  border: 1px solid rgba(184, 134, 11, 0.3);
}

/* Glass Panel */
.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: 2px;
  box-shadow: var(--shadow-lg);
}

/* Hover Effects */
.hover-lift {
  transition: var(--transition);
}

.hover-lift:hover {
  transform: translateY(-8px);
  border-color: rgba(184, 134, 11, 0.4);
  box-shadow: var(--glow);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: 2px;
  cursor: pointer;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.1rem;
}

.btn-gold {
  background: var(--gold);
  color: #FFFFFF;
  /* Garante leitura no botão dourado */
  border: none;
}

.btn-gold:hover {
  background: var(--gold-hover);
}

.btn-whatsapp {
  background: #25D366;
  color: #FFFFFF;
  border: 2px solid #25D366;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  animation: pulse-green 2s infinite;
}

.btn-whatsapp:hover {
  background: #1ebf58;
  color: #FFFFFF;
  border-color: #1ebf58;
  animation: none;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.btn-glow {
  box-shadow: 0 0 15px rgba(184, 134, 11, 0.4);
}

.btn-glow:hover {
  box-shadow: 0 0 25px rgba(184, 134, 11, 0.7);
  transform: translateY(-2px);
}



/* Navbar */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 16px 0;
  transition: var(--transition);
}

nav.scrolled {
  background: rgba(248, 249, 250, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  padding: 12px 0;
}

.brand-logo {
  height: 56px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 32px;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--gold);
}

/* Float CTA Container */
.float-wrapper {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

/* Float Popup */
.wpp-popup {
  background: #FFFFFF;
  color: var(--text-main);
  padding: 12px 16px;
  border-radius: 2px;
  font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-glass);
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  position: relative;
  max-width: 250px;
}

.wpp-popup.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Triangle pointing to button */
.wpp-popup::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 32px;
  width: 12px;
  height: 12px;
  background: #FFFFFF;
  transform: rotate(45deg);
  border-right: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
}

/* Float CTA Button */
.float-cta {
  background: #25D366;
  /* Verde WhatsApp */
  color: #FFFFFF;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  z-index: 1000;
  animation: pulse-green 2s infinite;
}

@keyframes float-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-green {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }

  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.float-cta svg {
  width: 32px;
  height: 32px;
  fill: #FFFFFF;
}

.float-cta:hover {
  transform: scale(1.1) !important;
  animation: none;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Hero */
.hero {
  margin-top: 88px;
  padding-top: 140px;
  padding-bottom: 100px;
  background-image: linear-gradient(rgba(8, 10, 12, 0.5), rgba(8, 10, 12, 0.85)), url('assets/hero.jpg');
  background-size: cover;
  background-position: center bottom;
  background-attachment: fixed;
  /* Efeito Parallax */
}

.hero .tag {
  background: rgba(212, 175, 55, 0.15);
  border-color: rgba(212, 175, 55, 0.3);
  color: #D4AF37;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 24px;
  color: #FFFFFF;
}

.highlight {
  color: #D4AF37;
  position: relative;
  display: inline-block;
}

.highlight::after {
  content: '';
  position: absolute;
  bottom: 10%;
  left: 0;
  width: 100%;
  height: 30%;
  background: rgba(212, 175, 55, 0.15);
  z-index: -1;
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 620px;
  margin: 0 auto;
}

/* Trust Bar */
.trust {
  padding: 30px 0;
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  background: rgba(0, 0, 0, 0.02);
}

.trust-item.dup {
  display: none;
}

.trust-item {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.trust-item strong {
  color: var(--text-main);
}

.star {
  color: var(--gold);
}

/* Section Head */
.section-head {
  max-width: 860px;
  margin: 0 auto 40px;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Video Section */
.video-container {
  max-width: 356px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: none;
  background: #000;
}

.video-container iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 316%;
  /* Proporção para preencher horizontalmente e cortar topo/fundo */
  transform: translate(-50%, -50%);
  pointer-events: auto;
}

.video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.play-icon {
  width: 64px;
  height: 64px;
  fill: var(--gold);
  margin-bottom: 16px;
  opacity: 0.8;
  transition: var(--transition);
}

.video-container:hover .play-icon {
  transform: scale(1.1);
  opacity: 1;
}

/* Doctor */
.flex-grid {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 60px;
  align-items: center;
}

.doctor-photo {
  aspect-ratio: 3/4;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.doc-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  filter: grayscale(20%);
  transition: var(--transition);
}

.doctor-photo:hover .doc-img {
  filter: grayscale(0%);
  transform: scale(1.03);
}

.doctor-name {
  font-size: 2.5rem;
  margin-bottom: 24px;
}

.doctor-bio {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* About / Cards */
.card {
  padding: 40px 30px;
  position: relative;
  overflow: hidden;
}

.card-icon {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold-dim);
  position: absolute;
  top: 20px;
  right: 20px;
  line-height: 1;
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.card p {
  color: var(--text-muted);
  position: relative;
  z-index: 2;
}

/* Results Before/After (SLIDER INTERATIVO) */
.ba-card {
  display: flex;
  flex-direction: column;
}

.ba-pair {
  position: relative;
  height: 250px;
  border-bottom: 1px solid var(--border-glass);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.05);
  /* Placeholder */
}

/* A Imagem de Fundo (ANTES) */
.ba-img-before {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  background-color: #E9ECEF;
  background-size: cover;
  background-position: center;
}

/* A Imagem Sobreposta (DEPOIS) */
.ba-img-after {
  width: 50%;
  /* Começa na metade */
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  border-right: 2px solid var(--gold);
  background-color: #D4AF37;
  background-size: cover;
  background-position: center;
}

/* Etiquetas (Labels) */
.ba-label {
  position: absolute;
  bottom: 12px;
  z-index: 5;
  background: rgba(0, 0, 0, 0.65);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 2px;
  pointer-events: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.label-before {
  left: 12px;
}

.label-after {
  right: 12px;
}

/* Controle Deslizante */
.ba-slider {
  position: absolute;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 100%;
  background: transparent;
  outline: none;
  margin: 0;
  top: 0;
  left: 0;
  z-index: 10;
}

.ba-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 44px;
  height: 44px;
  background-color: #FFFFFF;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%23B8860B" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="9 18 3 12 9 6"/><polyline points="15 6 21 12 15 18"/></svg>');
  background-position: center;
  background-repeat: no-repeat;
  border: 2px solid var(--gold);
  border-radius: 2px;
  cursor: ew-resize;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 10;
}

.ba-slider::-moz-range-thumb {
  width: 44px;
  height: 44px;
  background-color: #FFFFFF;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%23B8860B" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="9 18 3 12 9 6"/><polyline points="15 6 21 12 15 18"/></svg>');
  background-position: center;
  background-repeat: no-repeat;
  border: 2px solid var(--gold);
  border-radius: 2px;
  cursor: ew-resize;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 10;
}

.ba-content {
  padding: 24px;
}

.badge {
  display: inline-block;
  background: var(--gold);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 2px;
  margin-bottom: 12px;
}

/* Post-op */
.list-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px;
}

.postop-list li {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-glass);
  font-size: 1.1rem;
}

.postop-list li:last-child {
  border-bottom: none;
}

.icon-check {
  width: 32px;
  height: 32px;
  background: var(--gold-dim);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-check svg {
  width: 20px;
  height: 20px;
  fill: var(--gold);
}

/* Final CTA (Mantido Escuro para Destaque Dramático) */
.final-cta {
  padding: 120px 0;
  background-color: #080A0C !important;
  border-top: none;
}

.final-cta h2,
.final-cta p,
.final-cta .tag {
  /* Força cores claras nessa seção escurecida */
}

.final-cta h2 {
  color: #FFFFFF;
  max-width: 700px;
  margin: 0 auto;
}

.final-cta .tag {
  background: rgba(212, 175, 55, 0.15);
  border-color: rgba(212, 175, 55, 0.3);
  color: #D4AF37;
}

.final-cta-note {
  margin-top: 24px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-mono);
}

/* Footer - Escuro (Contraste) */
footer {
  background: #050608;
  padding-top: 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
}

.footer-desc {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin-top: 16px;
  max-width: 300px;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 24px;
}

.footer-text,
.footer-link {
  display: block;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 12px;
  opacity: 0.8;
}

.footer-link:hover {
  opacity: 1;
  color: #D4AF37;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.social-link {
  color: rgba(255, 255, 255, 0.5);
}

.social-link:hover {
  color: #D4AF37;
}

/* ==========================================================================
   Animations & Responsive
   ========================================================================== */
/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* FAQ Section */
.faq-section {
  padding: 100px 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
}

.faq-item.active {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  border-color: rgba(184, 134, 11, 0.3);
  /* Dourado */
}

.faq-question {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: transparent;
  user-select: none;
}

.faq-question h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  color: var(--text-main);
}

.faq-icon {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--gold);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  /* Transforma o + em um x */
}

.faq-answer {
  max-height: 0;
  padding: 0 24px;
  opacity: 0;
  transition: all 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 250px;
  padding: 0 24px 24px 24px;
  opacity: 1;
}

.faq-answer p {
  margin: 0;
  color: var(--text-light);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .flex-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .doctor-photo {
    max-width: 350px;
    margin: 0 auto;
  }

  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  nav {
    background: rgba(248, 249, 250, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
  }

  .hero {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .nav-links {
    display: none;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .section-head h2 {
    font-size: 2rem;
  }

  section {
    padding: 60px 0;
  }

  /* Ajustes do Header Mobile */
  .brand-logo {
    height: 42px;
  }

  .btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
    gap: 6px !important;
  }

  .btn-sm svg {
    width: 14px;
    height: 14px;
  }

  .hero {
    margin-top: 74px;
  }

  /* Marquee Mobile (Trust Bar) */
  .trust {
    overflow: hidden;
    padding: 20px 0;
  }

  .marquee-mobile {
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    width: max-content;
    animation: scroll-marquee 15s linear infinite;
  }

  .trust-item.dup {
    display: block;
  }

  .trust-item {
    white-space: nowrap;
  }
}

@keyframes scroll-marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-50% - 12px));
  }
}