/* ================================================================
   1. VARIÁVEIS CSS — PALETA APRIMORADA
   ================================================================ */

:root {
  --bg-primary: #edf2f8;
  --bg-secondary: #dde5ee;
  --bg-tertiary: #c9d3df;

  --color-primary: #0d1b2a;
  --color-primary-light: #1a2f46;
  --color-primary-lighter: #2d4d6d;

  --color-accent: #d7b96d;
  --color-accent-dark: #b89449;

  --text-primary: #152332;
  --text-secondary: #53657a;
  --text-tertiary: #7d8fa4;

  --border-light: #d7deea;
  --border-medium: #c0c9d7;
  --divider-subtle: rgba(21, 35, 50, 0.08);

  --shadow-xs: 0 1px 2px rgba(13, 27, 42, 0.06);
  --shadow-sm: 0 2px 6px rgba(13, 27, 42, 0.10);
  --shadow-md: 0 4px 12px rgba(13, 27, 42, 0.14);
  --shadow-lg: 0 8px 24px rgba(13, 27, 42, 0.18);
  --shadow-xl: 0 16px 40px rgba(13, 27, 42, 0.20);
  --shadow-2xl: 0 24px 60px rgba(13, 27, 42, 0.22);

  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-subtle: cubic-bezier(0.35, 0, 0.25, 1);
}

html[data-theme="dark"] {
  --bg-primary: #07131d;
  --bg-secondary: #0e1d2c;
  --bg-tertiary: #14263b;

  --color-primary: #10263f;
  --color-primary-light: #163d5e;
  --color-primary-lighter: #2b5b8b;

  --color-accent: #d7b96d;
  --color-accent-dark: #b89449;

  --text-primary: #edf3f8;
  --text-secondary: #b9c7d6;
  --text-tertiary: #8ea0b3;

  --border-light: #233a51;
  --border-medium: #2f4868;
  --divider-subtle: rgba(237, 243, 248, 0.08);

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.24);
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.30);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.42);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.52);
  --shadow-xl: 0 16px 40px rgba(0, 0, 0, 0.60);
  --shadow-2xl: 0 24px 60px rgba(0, 0, 0, 0.72);
}

/* ================================================================
   2. RESET E BASE TIPOGRÁFICA
   ================================================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  /* Transição suave do tema (200-300ms) */
  transition: background-color 0.25s var(--ease-subtle), 
              color 0.25s var(--ease-subtle);
}

body {
  font-family: 'Bricolage Grotesque', 'Segoe UI', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.25px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.8rem, 7vw, 4.2rem);
  letter-spacing: -0.025em;
  font-weight: 800;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.2px;
}

strong {
  font-weight: 600;
  color: var(--text-primary);
}

a {
  color: var(--color-primary-light);
  text-decoration: none;
  transition: all 0.3s var(--ease-in-out);
}

a:hover {
  color: var(--color-accent);
}

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* ================================================================
   3. NAVBAR — ELEGANT CLINICAL NAVIGATION
   ================================================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(237, 242, 248, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--divider-subtle);
  transition: all 0.4s var(--ease-in-out);
  padding: 0;
}

html[data-theme="dark"] .navbar {
  background: rgba(7, 19, 29, 0.96);
}

/* Estado scrollado da navbar com sombra elegante */
.navbar.scrolled {
  box-shadow: var(--shadow-lg);
  border-bottom-color: var(--border-light);
  padding: 0.5rem 0;
}

.navbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  position: relative;
}

/* Logo com Cajado de Asclépio */
.navbar-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s var(--ease-in-out);
  position: relative;
}

.navbar-brand:hover {
  transform: translateY(-2px);
}

.navbar-logo {
  width: 170px;
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(13, 27, 42, 0.10));
}

/* Menu de Navegação */
.navbar-menu {
  display: flex;
  gap: 4rem;
  align-items: center;
  list-style: none;
}

.navbar-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.8rem 0;
  transition: all 0.3s var(--ease-in-out);
  letter-spacing: 0.3px;
}

/* Underline animado com gradiente refinado */
.navbar-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2.5px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  transition: width 0.4s var(--ease-out);
  border-radius: 2px;
}

.navbar-link:hover,
.navbar-link.active {
  color: var(--color-primary);
}

.navbar-link:hover::after,
.navbar-link.active::after {
  width: 100%;
}

/* Toggle Mobile Hamburger */
.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  transition: all 0.3s var(--ease-in-out);
}

.toggle-line {
  width: 26px;
  height: 2.5px;
  background: var(--text-primary);
  border-radius: 3px;
  transition: all 0.35s var(--ease-in-out);
}

.navbar-toggle.active .toggle-line:nth-child(1) {
  transform: rotate(45deg) translateY(10px);
}

.navbar-toggle.active .toggle-line:nth-child(2) {
  opacity: 0;
}

.navbar-toggle.active .toggle-line:nth-child(3) {
  transform: rotate(-45deg) translateY(-10px);
}

/* Theme Toggle Button */
.theme-toggle {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  cursor: pointer;
  padding: 0.7rem 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  border-radius: 8px;
  transition: all 0.3s var(--ease-in-out);
  margin-left: 2rem;
  position: relative;
}

.theme-toggle:hover {
  background: var(--border-light);
  border-color: var(--color-accent);
  transform: rotate(15deg);
  box-shadow: var(--shadow-sm);
}

.theme-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  opacity: 0;
  position: absolute;
  transition: opacity 0.3s var(--ease-in-out);
}

.theme-icon.moon {
  opacity: 1;
}

html[data-theme="dark"] .theme-icon.moon {
  opacity: 0;
}

html[data-theme="dark"] .theme-icon.sun {
  opacity: 1;
}

/* ================================================================
   4. HERO SECTION — PARALLAX ULTRA REFINADO
   ================================================================ */

.hero {
  min-height: 100vh;
  padding-top: 80px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-image: linear-gradient(90deg, rgba(9, 17, 28, 0.80), rgba(9, 17, 28, 0.52)), url('imagens/_TLM3147.jpg');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
}

html[data-theme="dark"] .hero {
  background-image: linear-gradient(90deg, rgba(7, 19, 29, 0.82), rgba(7, 19, 29, 0.58)), url('imagens/_TLM3147.jpg');
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(0deg, rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.4;
  z-index: 0;
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2.5rem;
  width: 100%;
  display: grid;
  grid-template-columns: 1.15fr;
  gap: 4rem;
  align-items: center;
  min-height: calc(100vh - 80px);
}

.hero-content {
  color: white;
  max-width: 680px;
}

/* Animações de entrada do hero */
@keyframes slideInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Títulos com timing de entrada escalonado */
.hero-title {
  font-size: clamp(3.2rem, 8vw, 5rem);
  margin-bottom: 1rem;
  line-height: 0.95;
  color: white;
  animation: slideInUp 0.7s var(--ease-out) 0.1s both;
  font-weight: 700;
}

.hero-subtitle {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
  animation: slideInUp 0.7s var(--ease-out) 0.2s both;
}

.hero-description {
  font-size: 1.05rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 2.5rem;
  max-width: 560px;
  font-weight: 300;
  letter-spacing: 0.4px;
  animation: slideInUp 0.7s var(--ease-out) 0.3s both;
}

.hero-cta-wrap {
  margin-bottom: 2rem;
  animation: slideInUp 0.7s var(--ease-out) 0.3s both;
}

.hero-cta {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  color: var(--color-primary);
  box-shadow: 0 18px 36px rgba(215, 185, 109, 0.25);
}

.hero-credentials {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  animation: slideInUp 0.7s var(--ease-out) 0.4s both;
}

.credential-badge {
  display: inline-block;
  font-size: 0.85rem;
  padding: 0.6rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: all 0.3s var(--ease-in-out);
}

.credential-badge:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(191, 161, 110, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(191, 161, 110, 0.15);
}

/* Seção de Imagem com Parallax */
.hero-image-section {
  position: relative;
  animation: slideInRight 0.7s var(--ease-out) 0.2s both;
}

.hero-frame-wrapper {
  position: relative;
}

/* Pulsação sutil na moldura */
.frame-pulse {
  position: absolute;
  inset: -15px;
  background: radial-gradient(circle, rgba(191, 161, 110, 0.15), transparent);
  border-radius: 20px;
  animation: pulse-ring 3s ease-in-out infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.1); opacity: 0; }
}

/* Moldura da imagem com sombra profunda */
.hero-image-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.6s var(--ease-in-out);
}

.hero-image-frame:hover {
  transform: scale(1.02) translateY(-8px);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 2.5 / 3.5;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s var(--ease-in-out);
}

.hero-image-frame:hover .hero-image {
  transform: scale(1.03);
}

/* Overlay com gradiente de profundidade técnica */
.frame-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 25%, rgba(255,255,255,0) 0%, rgba(6, 48, 45, 0.09) 100%);
  pointer-events: none;
  border-radius: 20px;
}

/* Gradiente de brilho no hover */
.frame-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 50%);
  pointer-events: none;
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.6s var(--ease-in-out);
}

.hero-image-frame:hover .frame-gradient {
  opacity: 1;
}

/* Brilho animado na moldura */
.frame-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent 60%);
  pointer-events: none;
  border-radius: 20px;
  animation: shimmer 4s infinite;
}

@keyframes shimmer {
  0%, 100% { opacity: 0; }
  50% { opacity: 0.6; }
}

/* ================================================================
   5. SECTIONS — LAYOUT E STYLING
   ================================================================ */

.section {
  padding: 6rem 0;
  position: relative;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s var(--ease-in-out) 0.2s, transform 0.8s var(--ease-in-out) 0.2s;
}

.section.in-view {
  opacity: 1;
  transform: translateY(0);
}

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

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

/* Section de Contato com gradiente elegante */
.section-contact {
  background: linear-gradient(135deg, #06302D 0%, #041F1D 50%, #052C29 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

html[data-theme="dark"] .section-contact {
  background: linear-gradient(135deg, #0C2E2B 0%, #072F2A 50%, #0A4A42 100%);
}

.section-contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(0deg, rgba(255,255,255,0.01) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.01) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: 0;
  pointer-events: none;
}

.section-contact > * {
  position: relative;
  z-index: 1;
}

/* Labels das sections */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding: 0.5rem 0;
  transition: all 0.3s var(--ease-in-out);
}

.section-contact .section-label {
  color: rgba(191, 161, 110, 0.9);
}

/* Divisor decorativo animável */
.section-divider {
  width: 70px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: 3px;
  margin-bottom: 3rem;
  transition: all 0.3s var(--ease-in-out);
}

.section-contact .section-divider {
  background: linear-gradient(90deg, rgba(255,255,255,0.3), var(--color-accent));
}

.section-divider-centered {
  margin-left: auto;
  margin-right: auto;
}

/* Grid para seções com imagem + texto */
.section-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5rem;
  align-items: stretch;
}

.section-grid-reverse {
  grid-auto-flow: dense;
}

.section-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Subtítulo das sections */
.section-subtitle {
  font-size: 1.05rem;
  text-align: center;
  color: var(--text-secondary);
  margin-top: 1rem;
}

.section-contact .section-subtitle {
  color: rgba(255, 255, 255, 0.85);
}

/* Imagens responsivas com proporções luxuosas */
.section-image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all 0.5s var(--ease-in-out);
}

.section-image:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.image-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
}

.image-responsive {
  width: 100%;
  height: 100%;
  display: block;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s var(--ease-in-out);
}

.section-image:hover .image-responsive {
  transform: scale(1.05);
}

/* Máscara de imagem com gradiente */
.image-mask {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 35% 30%, transparent 0%, rgba(6, 48, 45, 0.12) 100%);
  pointer-events: none;
  border-radius: 16px;
}

/* ================================================================
   6. SOBRE SECTION — EXPERIENCE BOXES
   ================================================================ */

.experience-box {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  padding: 2.5rem;
  background: linear-gradient(135deg, rgba(6, 48, 45, 0.08), rgba(191, 161, 110, 0.03));
  border-left: 4px solid var(--color-primary);
  border-radius: 12px;
  margin: 2.5rem 0;
  transition: all 0.4s var(--ease-in-out);
}

html[data-theme="dark"] .experience-box {
  background: linear-gradient(135deg, rgba(14, 90, 83, 0.12), rgba(191, 161, 110, 0.05));
}

.experience-box:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
}

.experience-number {
  font-family: 'Playfair Display', serif;
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}

.experience-label {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  font-weight: 500;
}

.credentials-list {
  list-style: none;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--divider-subtle);
}

.credentials-list li {
  padding: 1rem 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  transition: all 0.3s var(--ease-in-out);
}

.credentials-list li:hover {
  color: var(--text-primary);
  padding-left: 0.8rem;
}

/* ================================================================
   7. BENEFITS LIST — CHECKMARK STYLE
   ================================================================ */

.benefits-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.8rem;
  margin-top: 3rem;
}

.benefit-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.8rem;
  background: linear-gradient(135deg, rgba(6, 48, 45, 0.05), rgba(191, 161, 110, 0.02));
  border-left: 3px solid var(--color-primary);
  border-radius: 10px;
  transition: all 0.4s var(--ease-in-out);
}

html[data-theme="dark"] .benefit-item {
  background: linear-gradient(135deg, rgba(14, 90, 83, 0.1), rgba(191, 161, 110, 0.04));
}

.benefit-item:hover {
  background: linear-gradient(135deg, rgba(6, 48, 45, 0.1), rgba(191, 161, 110, 0.05));
  transform: translateX(12px);
  box-shadow: var(--shadow-md);
}

.benefit-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: white;
  border-radius: 50%;
  font-weight: 700;
  flex-shrink: 0;
  transition: all 0.3s var(--ease-in-out);
  font-size: 0.8rem;
}

.benefit-item:hover .benefit-icon {
  background: linear-gradient(135deg, var(--color-accent-dark), var(--color-accent));
  transform: scale(1.15);
}

.benefit-item strong {
  display: block;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.benefit-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.65;
  font-weight: 300;
}

/* ================================================================
   8. PROCEDIMENTOS TIMELINE — PREMIUM VERTICAL DESIGN
   ================================================================ */

.procedures-timeline {
  position: relative;
  margin-top: 3rem;
  padding: 1rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.timeline-line {
  display: none;
}

.procedure-card {
  margin: 0;
  opacity: 1;
  transform: none !important;
  transition: all 0.4s var(--ease-out);
  position: relative;
}

.procedure-card.even,
.procedure-card.odd,
.procedure-card.visible {
  opacity: 1;
  transform: none !important;
}

.card-marker {
  display: none;
}

.card-content {
  margin-left: 0;
  padding: 1.5rem 1.25rem;
  background: linear-gradient(135deg, rgba(13, 27, 42, 0.04), rgba(215, 185, 109, 0.05));
  border-left: 3px solid var(--color-primary);
  border-radius: 12px;
  transition: all 0.4s var(--ease-in-out);
  box-shadow: var(--shadow-sm);
  min-height: 200px;
}

.procedure-card:hover .card-content {
  background: linear-gradient(135deg, rgba(13, 27, 42, 0.08), rgba(215, 185, 109, 0.08));
  border-left-color: var(--color-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-6px);
}

.card-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0.4rem;
  opacity: 0.9;
}

.card-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.7rem;
  transition: all 0.3s var(--ease-in-out);
  color: var(--text-primary);
}

.procedure-card:hover .card-content h3 {
  color: var(--color-primary);
}

.card-content p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

/* ================================================================
   9. CONTATO SECTION
   ================================================================ */

.contact-subtitle {
  text-align: center;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 1.5rem auto 3rem;
  max-width: 600px;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin: 4rem 0;
}

.contact-card {
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  text-align: center;
  transition: all 0.5s var(--ease-in-out);
  animation: slideInUp 0.7s var(--ease-out) both;
}

.contact-card-map {
  padding: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.10);
}

.contact-card:nth-child(1) { animation-delay: 0s; }
.contact-card:nth-child(2) { animation-delay: 0.1s; }
.contact-card:nth-child(3) { animation-delay: 0.2s; }

.contact-card:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(191, 161, 110, 0.3);
  transform: translateY(-12px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
}

.contact-map-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.contact-map-link:hover {
  color: inherit;
}

.contact-map-preview {
  width: 100%;
  height: 220px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  background: #dfeae8;
}

.contact-map-preview iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: grayscale(0.2) contrast(1.08) saturate(0.8);
}

.contact-map-meta {
  padding: 2rem 1.5rem 1.5rem;
}

.contact-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  transition: all 0.3s var(--ease-in-out);
}

.contact-card:hover .contact-icon {
  transform: scale(1.2) rotate(5deg);
}

.contact-card h3 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.contact-card p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.75;
}

.contact-link {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: underline;
  transition: all 0.3s var(--ease-in-out);
}

.contact-link:hover {
  color: white;
}

.contact-cta {
  text-align: center;
  margin-top: 3.5rem;
}

/* Botão CTA premium */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 3.5rem;
  background: white;
  color: var(--color-primary);
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: all 0.4s var(--ease-out);
  text-decoration: none;
  letter-spacing: 0.3px;
}

.cta-button:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.cta-button:active {
  transform: translateY(-2px);
}

/* ================================================================
   10. FOOTER
   ================================================================ */

.footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.7);
  padding: 3.5rem 0 2.5rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
}

.footer p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  margin: 0.5rem 0;
  font-weight: 300;
  letter-spacing: 0.3px;
}

/* ================================================================
   11. WHATSAPP BUTTON — FLOATING ACTION
   ================================================================ */

.whatsapp-btn {
  position: fixed;
  bottom: 2.5rem;
  right: 2.5rem;
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #25D366, #1FA855);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xl);
  color: white;
  z-index: 999;
  text-decoration: none;
  transition: all 0.4s var(--ease-out);
  opacity: 0;
  transform: scale(0);
  border: none;
  cursor: pointer;
  animation: float 3s ease-in-out infinite;
}

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

.whatsapp-btn.show {
  opacity: 1;
  transform: scale(1);
  animation: float 3s ease-in-out infinite;
}

.whatsapp-btn:hover {
  transform: scale(1.15);
  box-shadow: 0 28px 64px rgba(37, 211, 102, 0.4);
  animation: none;
}

.whatsapp-btn svg {
  width: 36px;
  height: 36px;
  fill: currentColor;
}

/* ================================================================
   12. AOS ANIMATIONS — Scroll Reveal Refinado
   ================================================================ */

[data-aos] {
  opacity: 0;
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

[data-aos="fade-down"] {
  transform: translateY(-30px);
}

[data-aos="fade-up"] {
  transform: translateY(30px);
}

[data-aos="fade-left"] {
  transform: translateX(-30px);
}

[data-aos="fade-right"] {
  transform: translateX(30px);
}

[data-aos].aos-animate {
  opacity: 1;
  transform: none !important;
}

/* ================================================================
   13. RESPONSIVO — Mobile & Tablet
   ================================================================ */

@media (max-width: 1024px) {
  .hero {
    background-image: linear-gradient(180deg, rgba(9,17,28,0.68), rgba(9,17,28,0.48)), url('imagens/_TLM3407.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .section-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .procedures-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-grid-reverse {
    grid-auto-flow: unset;
  }

  .navbar-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-light);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.35s var(--ease-in-out), opacity 0.25s var(--ease-in-out);
    z-index: 999;
  }

  html[data-theme="dark"] .navbar-menu {
    background: var(--bg-secondary);
  }

  .navbar-menu.active {
    max-height: 420px;
    opacity: 1;
    pointer-events: auto;
  }

  .navbar-link {
    padding: 1.2rem 2.5rem;
    border-bottom: 1px solid var(--border-light);
    width: 100%;
  }

  .navbar-link::after {
    display: none;
  }

  .navbar-toggle {
    display: flex;
  }
}

@media (max-width: 768px) {
  .procedures-timeline {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .section {
    padding: 3rem 0;
  }

  .hero {
    padding-bottom: 2rem;
    background-image: none;
    background-attachment: scroll;
    background-position: center top;
  }

  .hero-mobile-bg {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image: url('imagens/_TLM3147.jpg');
    background-size: cover;
    background-position: center 40%;
    transform: translateY(0);
    will-change: transform;
    transition: transform 0.15s linear;
  }

  .hero-mobile-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(9,17,28,0.55), rgba(9,17,28,0.45));
    pointer-events: none;
  }

  #sobre,
  #especialidade {
    background-image: none !important;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    color: var(--text-primary);
  }

  #sobre .section-image,
  #especialidade .section-image {
    display: block;
    margin: 0 auto 1rem auto;
    width: 100%;
    max-width: 720px;
  }

  #sobre .image-frame,
  #especialidade .image-frame {
    max-height: 420px;
    overflow: hidden;
    border-radius: 12px;
  }

  #sobre .image-responsive,
  #especialidade .image-responsive {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
  }

  #sobre .section-grid,
  #especialidade .section-grid {
    display: flex;
    flex-direction: column-reverse;
    gap: 1rem;
  }

  #sobre .image-responsive,
  #especialidade .image-responsive {
    object-fit: contain;
    object-position: center 25%;
    max-height: 380px;
  }

  #especialidade.use-bg {
    background-image: linear-gradient(180deg, rgba(9,17,28,0.62), rgba(9,17,28,0.42)), url('imagens/_TLM3407.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    color: rgba(255,255,255,0.98);
  }

  #especialidade.use-bg .section-image,
  #especialidade.use-bg .image-frame,
  #especialidade.use-bg .image-responsive,
  #especialidade.use-bg .image-mask {
    display: none !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
  }

  #sobre .section-content,
  #especialidade .section-content {
    background: transparent;
    padding: 0.5rem 0;
    color: var(--text-primary);
    position: relative;
    z-index: 2;
  }

  .container {
    padding: 0 1.25rem;
  }

  .hero-container {
    padding: 0 1.25rem;
    gap: 1.5rem;
  }

  .contact-cards {
    grid-template-columns: 1fr;
  }

  .contact-card-map {
    min-height: 0;
  }

  .contact-map-preview {
    height: 180px;
  }

  .section-grid {
    gap: 2rem;
  }

  .theme-toggle {
    margin-left: 0.75rem;
  }

  .experience-box {
    padding: 1.6rem;
  }

  .benefit-item {
    padding: 1.2rem;
    gap: 1rem;
  }

  .navbar-inner {
    padding: 0.8rem 1.25rem;
    height: 64px;
  }

  .navbar-logo {
    width: 140px;
  }

  .navbar-menu {
    top: 64px;
  }

  .navbar-link {
    font-size: 1.05rem;
    padding: 1rem 1.25rem;
    touch-action: manipulation;
  }

  .cta-button {
    width: 100%;
    padding: 0.95rem 1.25rem;
    font-size: 1rem;
    border-radius: 10px;
    display: inline-block;
    text-align: center;
  }

  .hero-title {
    font-size: clamp(1.8rem, 7vw, 2.6rem);
    line-height: 1.05;
  }

  .hero-description {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .hero-credentials {
    display: none;
  }

  .card-content {
    min-height: 150px;
    padding: 1.25rem;
  }

  .whatsapp-btn {
    bottom: 1.2rem;
    right: 1.2rem;
    width: 60px;
    height: 60px;
  }

  .whatsapp-btn svg {
    width: 28px;
    height: 28px;
  }

  #sobre .section-image {
    display: none;
  }

  .section-image .image-frame {
    max-height: 320px;
    overflow: hidden;
  }
}

@media (max-width: 640px) {
  .brand-text {
    font-size: 1.05rem;
  }

  .asclepius-icon {
    width: 32px;
    height: 42px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero-description {
    font-size: 0.95rem;
    margin-bottom: 2rem;
  }

  .hero-credentials {
    gap: 0.8rem;
  }

  .credential-badge {
    font-size: 0.75rem;
    padding: 0.5rem 0.9rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .experience-box {
    grid-template-columns: auto 1fr;
    padding: 1.5rem;
    gap: 1rem;
  }

  .experience-number {
    font-size: 2.2rem;
  }

  .experience-label {
    font-size: 0.85rem;
  }

  .contact-card {
    padding: 2rem;
  }

  .contact-icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
  }

  .cta-button {
    width: 100%;
    padding: 1rem 2rem;
  }

  .whatsapp-btn {
    width: 64px;
    height: 64px;
    bottom: 1.5rem;
    right: 1.5rem;
  }

  .whatsapp-btn svg {
    width: 32px;
    height: 32px;
  }

  .card-content {
    margin-left: 0;
    margin-top: 1rem;
  }
}

@media (max-width: 480px) {
  .navbar-inner {
    padding: 1rem 1.5rem;
  }

  .hero-label {
    font-size: 0.7rem;
    padding: 0.5rem 1rem;
    margin-bottom: 1.5rem;
  }

  .section-label {
    font-size: 0.7rem;
  }

  .section-divider {
    width: 50px;
    margin-bottom: 2rem;
  }

  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
  }

  p {
    font-size: 0.9rem;
    line-height: 1.7;
  }

  .credentials-list li {
    padding: 0.7rem 0;
    font-size: 0.85rem;
  }

  .benefits-list {
    gap: 1.2rem;
  }

  .benefit-item {
    padding: 1.2rem;
    grid-template-columns: 28px 1fr;
    gap: 1rem;
  }

  .benefit-icon {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }

  .card-number {
    font-size: 1.5rem;
  }

  .card-content h3 {
    font-size: 1rem;
  }

  .footer {
    padding: 2.5rem 0 2rem;
  }

  .footer p {
    font-size: 0.8rem;
  }

  .timeline-line {
    left: 16px;
  }

  .card-marker {
    left: 16px;
  }

  .procedure-card {
    transform: translateY(30px) translateX(0) !important;
  }

  .procedure-card.even,
  .procedure-card.odd {
    transform: translateY(30px) translateX(0) !important;
  }

  .card-content {
    margin-left: 0;
    margin-top: 1rem;
    padding-left: 2.5rem;
  }
}

@media (max-width: 768px) {
  #especialidade.use-bg {
    background-image: linear-gradient(180deg, rgba(9,17,28,0.68), rgba(9,17,28,0.48)), url('imagens/_TLM3407.jpg') !important;
    background-size: cover !important;
    background-position: center 0% !important;
    background-repeat: no-repeat !important;
    background-color: transparent !important;
    padding-top: 2.0rem !important;
    padding-bottom: 2.0rem !important;
    min-height: 180px !important;
    color: rgba(255,255,255,0.98) !important;
  }

  #especialidade.use-bg .section-image,
  #especialidade.use-bg .image-frame,
  #especialidade.use-bg .image-responsive,
  #especialidade.use-bg .image-mask {
    display: none !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
  }

  #especialidade.use-bg .section-content {
    background: #ffffff !important;
    color: var(--color-primary) !important;
    backdrop-filter: none !important;
    padding: 1rem 1.25rem !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 30px rgba(13,27,42,0.12) !important;
    position: relative !important;
    z-index: 20 !important;
    max-width: 96% !important;
    margin: 0 auto !important;
  }

  #especialidade.use-bg .section-content .section-label,
  #especialidade.use-bg .section-content .section-title,
  #especialidade.use-bg .section-content p,
  #especialidade.use-bg .section-content .benefit-item strong,
  #especialidade.use-bg .section-content .benefit-item p {
    color: var(--color-primary) !important;
    opacity: 1 !important;
  }

  #especialidade.use-bg .benefit-icon {
    color: var(--color-accent) !important;
    background: rgba(215,185,109,0.08) !important;
    border-radius: 999px !important;
    padding: 0.4rem !important;
    line-height: 1 !important;
  }
}

#especialidade.use-bg .section-content {
  margin-top: 70vh !important;
}

@media (max-width: 768px) {
  #especialidade.use-bg .section-content {
    margin-top: 130vh !important;
  }
}