/* ═══════════════════════════════════════════════
   Dr. Carlos Bautzer — Design System
   Luxo Médico · Sofisticação Cirúrgica · Naturalidade Premium
   ═══════════════════════════════════════════════ */

/* ═══ CUSTOM PROPERTIES ═════════════════════════ */
:root {
  /* Paleta */
  --cream:       #F4F8E6;
  --champagne:   #DEC0BE;
  --gold:        #C8A34B;
  --gold-hover:  #D4B35E;
  --blue-vivo:   #1C3F8A;
  --blue-deep:   #0E1E4A;
  --blue-accent: #2E5FCC;
  --bg-escuro:   #090C14;
  --bg-section:  #0D1220;
  --whatsapp:    #25D366;

  /* Tipografia */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', -apple-system, sans-serif;
  --font-mono:    'DM Mono', 'Courier New', monospace;

  /* Tamanhos */
  --text-xs:   0.625rem;
  --text-sm:   0.75rem;
  --text-base: 0.9375rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  2rem;
  --text-4xl:  2.75rem;
  --text-5xl:  3.5rem;
  --text-6xl:  4.5rem;

  /* Espaçamento */
  --space-xs:   0.25rem;
  --space-sm:   0.5rem;
  --space-md:   1rem;
  --space-lg:   1.5rem;
  --space-xl:   2rem;
  --space-2xl:  3rem;
  --space-3xl:  4rem;
  --space-4xl:  6rem;
  --space-5xl:  8rem;

  /* Transições */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-sm: 200ms;
  --duration-md: 400ms;
  --duration-lg: 700ms;

  /* Layout */
  --container:  1200px;
  --nav-height: 80px;
}

/* ─── RESET & BASE ──────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: auto; /* Lenis handles smooth scroll */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--cream);
  background-color: var(--bg-escuro);
  overflow-x: hidden;
  cursor: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  cursor: none;
}

button {
  cursor: none;
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
}

ul, ol {
  list-style: none;
}

/* ─── CURSOR PERSONALIZADO ──────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--bg-escuro);
  padding: var(--space-md) var(--space-xl);
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: 4px;
  z-index: 10001;
  transition: top var(--duration-sm) ease;
}

.skip-link:focus {
  top: var(--space-md);
}

/* ─── CURSOR PERSONALIZADO ──────────────────── */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--cream);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  mix-blend-mode: difference;
  transition: width var(--duration-md) var(--ease-out),
              height var(--duration-md) var(--ease-out),
              border-color var(--duration-sm) ease;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.cursor.expanded {
  width: 80px;
  height: 80px;
  border-color: var(--gold);
}

/* ─── PROGRESS BAR ──────────────────────────── */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gold);
  z-index: 9999;
  will-change: width;
  transition: none;
}

/* ─── CURTAIN OVERLAY ───────────────────────── */
.curtain {
  position: fixed;
  inset: 0;
  background: var(--bg-escuro);
  z-index: 9998;
  will-change: transform;
}

/* ─── CONTAINER ─────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ─── TIPOGRAFIA ────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.15;
  color: var(--cream);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

.text-gold { color: var(--gold); }
.text-champagne { color: var(--champagne); }

.tag {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

.quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-2xl);
  color: var(--champagne);
  line-height: 1.5;
  position: relative;
  padding-left: var(--space-xl);
  border-left: 2px solid var(--gold);
}

/* ─── BOTÕES ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-2xl);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  letter-spacing: 0.03em;
  border-radius: 4px;
  transition: background var(--duration-md) var(--ease-out), color var(--duration-md) var(--ease-out), border-color var(--duration-md) var(--ease-out), transform var(--duration-md) var(--ease-out), box-shadow var(--duration-md) var(--ease-out);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--bg-escuro);
  font-weight: 500;
  padding: 1rem 2.5rem;
  font-size: var(--text-base);
}
.btn-primary:hover {
  background: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(200, 163, 75, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(244, 248, 230, 0.3);
}
.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
  font-weight: 500;
  padding: var(--space-md) var(--space-3xl);
  font-size: var(--text-lg);
  border-radius: 6px;
}
.btn-whatsapp:hover {
  background: #1EBE57;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.3);
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}
.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--bg-escuro);
}

/* ─── SEÇÕES ────────────────────────────────── */
.section {
  padding: var(--space-5xl) 0;
  position: relative;
}

.section-alt {
  background: var(--bg-section);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-4xl);
}

.section-header .tag {
  display: block;
  margin-bottom: var(--space-md);
}

.section-header h2 {
  margin-bottom: var(--space-lg);
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
  color: rgba(244, 248, 230, 0.6);
}

/* Hero text mask reveal */
.hero-line {
  overflow: hidden;
  display: block;
  will-change: transform;
}


/* ═══════════════════════════════════════════════
   01 — NAVBAR
   ═══════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-2xl);
  z-index: 1000;
  transition: transform var(--duration-md) var(--ease-out),
              background var(--duration-md) ease;
  will-change: transform;
}

.navbar.scrolled {
  background: rgba(9, 12, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(200, 163, 75, 0.15);
}

.navbar.hidden {
  transform: translateY(-100%);
}

.navbar-logo {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 300;
  color: var(--cream);
  letter-spacing: 0.02em;
}

.navbar-logo strong {
  font-weight: 400;
  color: var(--gold);
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
}

.navbar-nav a {
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 248, 230, 0.7);
  transition: color var(--duration-sm) ease;
  position: relative;
}

.navbar-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--duration-md) var(--ease-out);
}

.navbar-nav a:hover {
  color: var(--gold);
}
.navbar-nav a:hover::after {
  width: 100%;
}

.navbar-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.5rem 1.25rem;
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 3px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all var(--duration-md) var(--ease-out);
}

.navbar-cta:hover {
  background: var(--gold);
  color: var(--bg-escuro);
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border: none;
  background: transparent;
}

.navbar-toggle:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 4px;
}

.navbar-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--cream);
  transition: all var(--duration-md) var(--ease-out);
}

/* ═══════════════════════════════════════════════
   02 — HERO
   ═══════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--bg-escuro) 0%,
    rgba(9, 12, 20, 0.7) 40%,
    rgba(9, 12, 20, 0.5) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 var(--space-lg);
}

.hero-content h1 {
  font-size: var(--text-6xl);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-3xl);
}

.hero-ctas {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-3xl);
}

.hero-badges {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0.7;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--champagne);
  padding: var(--space-sm) var(--space-md);
  border: 1px solid rgba(222, 192, 190, 0.2);
  border-radius: 3px;
}

.hero-badge svg {
  width: 14px;
  height: 14px;
  stroke: var(--gold);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-indicator .line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

@keyframes scrollLine {
  0% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.5); }
  100% { opacity: 1; transform: scaleY(1); }
}

/* ═══════════════════════════════════════════════
   PAGE HERO (Páginas Internas)
   ═══════════════════════════════════════════════ */
.page-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--nav-height);
  overflow: hidden;
  background-color: var(--bg-escuro);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(9, 12, 20, 0.7) 0%,
    rgba(14, 30, 74, 0.6) 50%,
    var(--bg-escuro) 100%
  );
  z-index: 1;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  color: var(--cream);
  max-width: 800px;
  padding: var(--space-xl) var(--space-md);
}

.page-hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  color: var(--gold);
  margin-top: var(--space-sm);
  margin-bottom: var(--space-md);
}

.page-hero-content p {
  font-size: var(--text-lg);
  color: rgba(244, 248, 230, 0.9);
}

/* ═══════════════════════════════════════════════
   03 — AUTORIDADE NUMÉRICA
   ═══════════════════════════════════════════════ */
.authority {
  padding: var(--space-4xl) 0;
  border-top: 1px solid rgba(200, 163, 75, 0.15);
  border-bottom: 1px solid rgba(200, 163, 75, 0.15);
  background: var(--bg-section);
}

.authority-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  text-align: center;
}

.authority-item {
  position: relative;
  padding: var(--space-xl) 0;
}

.authority-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
}

.authority-number {
  font-family: var(--font-display);
  font-size: var(--text-6xl);
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.authority-label {
  font-size: var(--text-sm);
  color: rgba(244, 248, 230, 0.6);
  letter-spacing: 0.03em;
}

/* ═══════════════════════════════════════════════
   04 — ESPECIALIDADES
   ═══════════════════════════════════════════════ */
.specialties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.specialty-card {
  background: rgba(14, 30, 74, 0.3);
  border: 1px solid rgba(46, 95, 204, 0.15);
  border-radius: 6px;
  padding: var(--space-2xl);
  transition: background var(--duration-md) var(--ease-out), box-shadow var(--duration-md) var(--ease-out), translate var(--duration-md) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.specialty-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 6px;
  border: 1px solid var(--gold);
  opacity: 0;
  transition: opacity var(--duration-md) var(--ease-out);
}

.specialty-card:hover::before {
  opacity: 1;
}

.specialty-card:hover {
  translate: 0 -4px;
  background: rgba(14, 30, 74, 0.5);
  box-shadow: 0 20px 60px rgba(9, 12, 20, 0.5);
}

.specialty-icon {
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-lg);
  color: var(--gold);
}

.specialty-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--gold);
  stroke-width: 1.5;
  fill: none;
}

.specialty-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-md);
}

.specialty-card p {
  font-size: var(--text-sm);
  color: rgba(244, 248, 230, 0.6);
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

.specialty-cta {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid transparent;
  transition: all var(--duration-md) var(--ease-out);
}

.specialty-card:hover .specialty-cta {
  border-bottom-color: var(--gold);
}

.more-procedures {
  text-align: center;
  margin-top: var(--space-3xl);
}

/* ═══════════════════════════════════════════════
   05 — SOBRE O DR. CARLOS
   ═══════════════════════════════════════════════ */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.about-image {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.about-image img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  filter: grayscale(100%);
  will-change: transform;
}

.about-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(to top, var(--bg-escuro), transparent);
}

.about-text h2 {
  margin-bottom: var(--space-xl);
}

.about-text > p {
  margin-bottom: var(--space-xl);
  color: rgba(244, 248, 230, 0.8);
}

.about-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.credential-badge {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-accent);
  padding: var(--space-sm) var(--space-md);
  border: 1px solid rgba(46, 95, 204, 0.3);
  border-radius: 3px;
}

.about-ctas {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════
   06 — MÉTODO KEYPOINTS
   ═══════════════════════════════════════════════ */
.keypoints-carousel {
  position: relative;
  overflow: hidden;
  margin-bottom: var(--space-3xl);
}

.keypoints-track {
  display: flex;
  gap: var(--space-xl);
  transition: transform var(--duration-lg) var(--ease-out);
  will-change: transform;
}

.keypoint-card {
  flex: 0 0 340px;
  background: rgba(14, 30, 74, 0.25);
  border: 1px solid rgba(46, 95, 204, 0.15);
  border-radius: 6px;
  padding: var(--space-2xl);
  position: relative;
}

.keypoint-card::before {
  content: '';
  position: absolute;
  top: var(--space-lg);
  left: var(--space-xl);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(200, 163, 75, 0.5);
}

.keypoint-number {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: rgba(200, 163, 75, 0.2);
  line-height: 1;
  margin-bottom: var(--space-md);
}

.keypoint-card h3 {
  font-size: var(--text-lg);
  color: var(--gold);
  margin-bottom: var(--space-md);
}

.keypoint-card p {
  font-size: var(--text-sm);
  color: rgba(244, 248, 230, 0.6);
  line-height: 1.7;
}

.keypoints-indicators {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-3xl);
}

.keypoints-indicator {
  width: 24px;
  height: 2px;
  background: rgba(200, 163, 75, 0.3);
  border-radius: 2px;
  transition: all var(--duration-md) ease;
}

.keypoints-indicator.active {
  width: 48px;
  background: var(--gold);
}

.keypoints-connector {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: -1;
}

.keypoints-connector line {
  stroke: var(--gold);
  stroke-width: 1;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}

.keypoints-ctas {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════
   07 — RESULTADOS
   ═══════════════════════════════════════════════ */
.results-filters {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 248, 230, 0.5);
  padding: var(--space-sm) var(--space-lg);
  border: 1px solid rgba(244, 248, 230, 0.1);
  border-radius: 3px;
  transition: all var(--duration-md) ease;
}

.filter-btn:hover,
.filter-btn.active {
  color: var(--gold);
  border-color: var(--gold);
}

.results-grid {
  columns: 3;
  column-gap: var(--space-lg);
}

.result-item {
  break-inside: avoid;
  margin-bottom: var(--space-lg);
  border-radius: 6px;
  overflow: hidden;
  background: rgba(14, 30, 74, 0.25);
  border: 1px solid rgba(46, 95, 204, 0.1);
  transition: border-color var(--duration-md) var(--ease-out), translate var(--duration-md) var(--ease-out);
}

.result-item:hover {
  border-color: rgba(200, 163, 75, 0.3);
  translate: 0 -2px;
}

.result-footer {
  padding: var(--space-md) var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.result-footer span {
  font-size: var(--text-sm);
  color: rgba(244, 248, 230, 0.5);
}

.result-footer a {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cfm-notice {
  text-align: center;
  margin-top: var(--space-2xl);
  font-size: var(--text-xs);
  color: rgba(244, 248, 230, 0.3);
  font-style: italic;
}

/* ═══════════════════════════════════════════════
   08 — DEPOIMENTOS
   ═══════════════════════════════════════════════ */
.testimonials-slider {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  overflow: hidden;
}

.testimonial-slide {
  display: none;
  opacity: 0;
  transition: opacity var(--duration-md) ease;
}

.testimonial-slide.active {
  display: block;
  opacity: 1;
}

.testimonial-stars {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: var(--space-xl);
}

.testimonial-stars svg {
  width: 18px;
  height: 18px;
  fill: var(--gold);
}

.testimonial-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-2xl);
  color: var(--champagne);
  line-height: 1.6;
  margin-bottom: var(--space-xl);
}

.testimonial-author {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(244, 248, 230, 0.5);
}

.testimonial-procedure {
  color: var(--gold);
}

.testimonials-nav {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
}

.testimonials-nav button {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(200, 163, 75, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-md) ease;
  color: var(--gold);
}

.testimonials-nav button:hover {
  background: var(--gold);
  color: var(--bg-escuro);
}

.testimonials-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.testimonial-dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  appearance: none;
  cursor: pointer;
  background: rgba(200, 163, 75, 0.3);
  transition: all var(--duration-sm) ease;
}

.testimonial-dot.active {
  background: var(--gold);
  width: 20px;
  border-radius: 3px;
}

/* ═══════════════════════════════════════════════
   09 — CTA FINAL
   ═══════════════════════════════════════════════ */
.cta-final {
  position: relative;
  padding: var(--space-5xl) 0;
  text-align: center;
  overflow: hidden;
}

.cta-final-bg {
  position: absolute;
  inset: 0;
}

.cta-final-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  filter: grayscale(100%);
}

.cta-final-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    var(--bg-escuro) 0%,
    rgba(9, 12, 20, 0.85) 50%,
    var(--bg-escuro) 100%
  );
}

.cta-final-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
}

.cta-final h2 {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-lg);
}

.cta-final p {
  color: rgba(244, 248, 230, 0.6);
  margin-bottom: var(--space-2xl);
}

.cta-response-info {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: rgba(244, 248, 230, 0.4);
  letter-spacing: 0.08em;
  margin-top: var(--space-xl);
}

/* ═══════════════════════════════════════════════
   10 — FOOTER
   ═══════════════════════════════════════════════ */
.footer {
  padding: var(--space-4xl) 0 var(--space-2xl);
  border-top: 1px solid rgba(200, 163, 75, 0.1);
  background: var(--bg-escuro);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer-brand {
  max-width: 300px;
}

.footer-brand h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-bottom: var(--space-md);
}

.footer-brand p {
  font-size: var(--text-sm);
  color: rgba(244, 248, 230, 0.5);
  line-height: 1.7;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-lg);
}

.footer-col a {
  display: block;
  font-size: var(--text-sm);
  color: rgba(244, 248, 230, 0.5);
  margin-bottom: var(--space-sm);
  transition: color var(--duration-sm) ease;
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-2xl);
  border-top: 1px solid rgba(200, 163, 75, 0.08);
  font-size: var(--text-xs);
  color: rgba(244, 248, 230, 0.3);
}

.footer-crm {
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
}

/* ═══════════════════════════════════════════════
   11 — WHATSAPP FLOATING BUTTON
   ═══════════════════════════════════════════════ */
.whatsapp-float {
  position: fixed;
  bottom: var(--space-2xl);
  right: var(--space-2xl);
  z-index: 900;
  width: 60px;
  height: 60px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform var(--duration-md) var(--ease-out);
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

.whatsapp-float-text {
  display: none;
}

.whatsapp-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--whatsapp);
  animation: whatsappPulse 3s ease-out infinite;
}

@keyframes whatsappPulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
  :root {
    --text-6xl: 3.5rem;
    --text-5xl: 2.75rem;
    --text-4xl: 2.25rem;
  }

  .navbar-nav {
    display: none;
  }

  .navbar-toggle {
    display: flex;
  }

  .specialties-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .about-image img {
    height: 400px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }

  .authority-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .authority-item:nth-child(2)::after {
    display: none;
  }

  .results-grid {
    columns: 2;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --text-6xl: 2.5rem;
    --text-5xl: 2rem;
    --text-4xl: 1.75rem;
    --text-3xl: 1.5rem;
    --nav-height: 64px;
  }

  body {
    cursor: auto;
  }

  .cursor {
    display: none;
  }

  .section {
    padding: var(--space-3xl) 0;
  }

  .navbar {
    padding: 0 var(--space-lg);
  }

  .hero-content h1 {
    font-size: var(--text-4xl);
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .hero-badges {
    flex-direction: column;
    align-items: center;
  }

  .specialties-grid {
    grid-template-columns: 1fr;
  }

  .keypoint-card {
    flex: 0 0 280px;
  }

  .results-grid {
    columns: 1;
  }

  .testimonial-text {
    font-size: var(--text-xl);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  /* WhatsApp mobile bar */
  .whatsapp-float {
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: 56px;
    border-radius: 0;
    gap: var(--space-sm);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    color: #fff;
  }

  .whatsapp-float-text {
    display: inline;
  }

  .whatsapp-pulse {
    display: none;
  }

  .whatsapp-float svg {
    width: 22px;
    height: 22px;
  }

  .footer {
    padding-bottom: 80px; /* space for mobile whatsapp bar */
  }
}

/* Small mobile */
@media (max-width: 375px) {
  :root {
    --text-6xl: 2rem;
    --text-5xl: 1.75rem;
    --text-4xl: 1.5rem;
  }

  .container {
    padding: 0 var(--space-md);
  }
}

/* Mobile nav open */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: rgba(9, 12, 20, 0.96);
  backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xl);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-md) ease, transform var(--duration-md) ease;
  transform: translateY(-20px);
}

.mobile-nav.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.mobile-nav a {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--cream);
  transition: color var(--duration-sm) ease;
}

.mobile-nav a:hover,
.mobile-nav a:focus {
  color: var(--gold);
  outline: none;
}

.mobile-nav a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 8px;
}

.mobile-nav-close {
  position: absolute;
  top: var(--space-xl);
  right: var(--space-xl);
  font-size: var(--text-2xl);
  color: var(--cream);
}

/* ─── PREFERS 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;
  }

  .cursor {
    display: none;
  }

  body {
    cursor: auto;
  }

  .scroll-indicator {
    animation: none;
  }

  .whatsapp-pulse {
    animation: none;
  }
}

/* ─── NOSCRIPT FALLBACK ─────────────────────── */
/* If JS fails, everything should still be visible */
noscript ~ .curtain,
.no-js .curtain {
  display: none !important;
}
