/* ==========================================================================
   Dra. Mariana Alencar — LP Endoscopia & Gastroenterologia
   Stack: HTML + CSS vanilla · Mobile-first · Performance-first
   Cores da marca: #811F85 (roxo) · #D2ECD1 (verde claro)
   ========================================================================== */

:root {
  --primary: #811F85;
  --primary-dark: #5e1660;
  --primary-soft: #f5e8f5;
  --accent: #D2ECD1;
  --accent-dark: #8fc88c;

  --bg: #FFFFFF;
  --bg-alt: #FAF7FA;
  --bg-soft: #F8F4F8;
  --bg-dark: #110a18;
  --bg-dark-2: #1c1024;
  --border: #ECE6E0;
  --border-dark: rgba(255,255,255,0.08);

  --text: #1F1A26;
  --text-medium: #5F5867;
  --text-light: #948D9C;
  --text-on-dark: #ECE5F0;
  --text-on-dark-medium: #9F94AC;

  --whatsapp: #25D366;
  --whatsapp-dark: #128C7E;
  --star: #FFB800;

  --font-title: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --section-pad: clamp(72px, 10vw, 120px);
  --container: 1200px;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(31,26,38,0.05);
  --shadow: 0 8px 28px rgba(129,31,133,0.08);
  --shadow-lg: 0 20px 56px rgba(129,31,133,0.14);
}

/* Reset mobile-safe */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
input, button, select, textarea { font: inherit; font-size: 16px; /* anti-zoom iOS */ }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-title); line-height: 1.15; letter-spacing: -0.02em; color: var(--text); }
em { font-style: italic; color: var(--primary); font-weight: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Botões
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
  text-align: center;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-lg { padding: 17px 32px; font-size: 16px; }
.btn-sm { padding: 10px 20px; font-size: 14px; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-light {
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow);
}
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); background: var(--accent); }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* ==========================================================================
   Header
   ========================================================================== */
header#header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
header#header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 2px 14px rgba(0,0,0,0.04);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 20px;
}
.logo img { width: auto; height: 56px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  margin: 0 auto;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-menu {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-menu a {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s ease;
}
.nav-menu a:hover { color: var(--primary); }

@media (max-width: 1024px) {
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .logo img { height: 48px; }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    padding: 24px;
    gap: 18px;
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

/* ==========================================================================
   Hero (split: conteúdo esquerda, foto fullbleed à direita)
   ========================================================================== */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  min-height: clamp(560px, 80vh, 760px);
  background: linear-gradient(180deg, #FCFAFC 0%, #fff 100%);
  position: relative;
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  left: -120px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(210,236,209,0.45) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.hero-content {
  display: flex;
  align-items: center;
  padding: 80px 56px 80px max(48px, calc((100vw - 1200px) / 2 + 24px));
  position: relative;
  z-index: 1;
}
.hero-content-inner { max-width: 560px; width: 100%; }
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  line-height: 1;
}
.hero-tag svg { width: 14px; height: 14px; flex-shrink: 0; }
.hero-tag-solid {
  background: linear-gradient(135deg, var(--primary) 0%, #a83eac 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(129,31,133,0.25);
}
.hero-tag-soft {
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid rgba(129, 31, 133, 0.14);
}
@media (max-width: 380px) {
  .hero-tag { font-size: 11px; padding: 8px 14px; letter-spacing: 0.14em; }
}
.hero h1 {
  font-size: clamp(40px, 5.5vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 20px;
  color: var(--text);
}
.hero h1 em {
  background: linear-gradient(135deg, var(--primary) 0%, #b04eb6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-text {
  font-size: 17px;
  color: var(--text-medium);
  margin-bottom: 28px;
  max-width: 480px;
  line-height: 1.7;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}
.hero-pills li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 9px 18px;
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.hero-pills svg { width: 16px; height: 16px; color: var(--primary); flex-shrink: 0; }
.hero-pills li:first-child svg { color: var(--star); }
.hero-pills strong { font-weight: 800; color: var(--text); }
.hero-pills li:first-child span { color: var(--text-medium); font-weight: 500; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-photo {
  position: relative;
  overflow: hidden;
  background: #f0e8f0;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 25%;
  display: block;
}
.hero-photo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 80px;
  background: linear-gradient(90deg, #fff 0%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

@media (max-width: 1100px) {
  .hero-content { padding: 64px 32px 64px max(32px, calc((100vw - 1200px) / 2 + 24px)); }
  .hero-photo img { object-position: 55% 25%; }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    min-height: 0;
  }
  .hero-photo {
    order: 1;
    aspect-ratio: 16/10;
    max-height: 56vh;
  }
  .hero-photo img { object-position: 60% 25%; }
  .hero-photo::before { display: none; }
  .hero-content {
    order: 2;
    padding: 40px 24px 64px;
    background: linear-gradient(180deg, #FCFAFC 0%, #fff 100%);
    margin-top: -28px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    position: relative;
    z-index: 2;
  }
  .hero-content-inner { max-width: 100%; }
  .hero-eyebrow { font-size: 11px; padding: 7px 14px; }
  .hero h1 { font-size: clamp(34px, 8.5vw, 44px); }
  .hero-text { font-size: 16px; }
}
@media (max-width: 540px) {
  .hero-cta .btn { flex: 1; min-width: 0; }
  .hero-photo { aspect-ratio: 4/3; max-height: 50vh; }
  .hero-pills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }
  .hero-pills li {
    width: 100%;
    justify-content: center;
    padding: 10px 12px;
    font-size: 13px;
  }
}
@media (max-width: 380px) {
  .hero-pills { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Trust bar (marquee contínuo)
   ========================================================================== */
.trust-bar {
  background: var(--primary);
  color: #fff;
  padding: 16px 0;
  overflow: hidden;
  position: relative;
}
.trust-bar::before,
.trust-bar::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}
.trust-bar::before {
  left: 0;
  background: linear-gradient(90deg, var(--primary), transparent);
}
.trust-bar::after {
  right: 0;
  background: linear-gradient(-90deg, var(--primary), transparent);
}
.trust-marquee {
  display: flex;
  width: max-content;
  animation: trust-marquee 38s linear infinite;
}
.trust-marquee:hover { animation-play-state: paused; }
.trust-list {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding-right: 0;
}
.trust-list li {
  position: relative;
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0 28px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
}
.trust-list li svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
}
.trust-list li::after {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-left: 14px;
}
.trust-list:last-child li:last-child::after { display: none; }

@keyframes trust-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .trust-marquee { animation: none; }
}

@media (max-width: 768px) {
  .trust-list li { font-size: 13px; padding: 0 18px; gap: 10px; }
  .trust-list li::after { margin-left: 10px; }
  .trust-marquee { animation-duration: 28s; }
}

/* ==========================================================================
   Section base
   ========================================================================== */
.section {
  padding: var(--section-pad) 0;
  position: relative;
}
.section-alt { background: var(--bg-alt); }

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 9px 18px 9px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(129, 31, 133, 0.14);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
  display: block;
}
.eyebrow-dot { display: none; } /* span legado, só pra compatibilidade — o ::before já é o dot */
.eyebrow-light {
  color: var(--accent);
  background: rgba(210, 236, 209, 0.12);
  border-color: rgba(210, 236, 209, 0.28);
}
.eyebrow-light::before { background: var(--accent); }
.section-head h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  margin-bottom: 16px;
}
.section-head p {
  font-size: 17px;
  color: var(--text-medium);
  line-height: 1.7;
}

.section-cta-wrapper { text-align: center; margin-top: 56px; }

/* ==========================================================================
   Condições (pills compactos)
   ========================================================================== */
.section-conditions { padding: clamp(56px, 8vw, 80px) 0; }
.conditions-scroll { width: 100%; }
.conditions-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 900px;
  margin: 0 auto;
}
.conditions-pills li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.conditions-pills li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}
.conditions-pills li:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary);
}

/* Marquee 2 fileiras opostas (mobile only) */
.conditions-marquee-rows {
  display: none;
}
.conditions-marquee-row {
  display: flex;
  width: max-content;
  gap: 10px;
  animation: cond-marquee-left 36s linear infinite;
}
.conditions-marquee-row + .conditions-marquee-row { margin-top: 12px; }
.conditions-marquee-row-reverse { animation-name: cond-marquee-right; }
.conditions-marquee-row .conditions-pills {
  flex-wrap: nowrap;
  width: max-content;
  max-width: none;
  gap: 10px;
  margin: 0;
  padding-right: 10px;
}
.conditions-marquee-row .conditions-pills li {
  white-space: nowrap;
  font-size: 13px;
  padding: 10px 16px;
}

@keyframes cond-marquee-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes cond-marquee-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .conditions-marquee-row { animation: none; }
}

@media (max-width: 768px) {
  .conditions-static { display: none; }
  .conditions-marquee-rows {
    display: block;
    margin: 0 -24px;
    padding: 8px 0;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  }
}

/* ==========================================================================
   Especialidades
   ========================================================================== */
.grid-specialties {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.specialty-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}
.specialty-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.specialty-card-featured {
  background: linear-gradient(180deg, var(--accent) 0%, #fff 65%);
  border-color: var(--accent-dark);
}
.featured-tag {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-title);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 5px 11px 5px 9px;
  border-radius: var(--radius-pill);
}
.featured-tag svg { width: 11px; height: 11px; color: var(--accent); }
.specialty-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  border-radius: var(--radius);
  margin-bottom: 20px;
}
.specialty-icon svg { width: 28px; height: 28px; color: var(--primary); }
.specialty-card-featured .specialty-icon { background: rgba(255,255,255,0.7); }
.specialty-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}
.specialty-card p {
  font-size: 15px;
  color: var(--text-medium);
  line-height: 1.65;
  flex-grow: 1;
}

/* ==========================================================================
   Sobre (com timeline de credenciais)
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 64px;
  align-items: center;
}
.about-image {
  position: relative;
}
.about-image img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.about-image-stat {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: #fff;
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 220px;
}
.about-image-stat strong {
  font-family: var(--font-title);
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.about-image-stat span { font-size: 12px; color: var(--text-medium); line-height: 1.4; }

.about-content h2 {
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 800;
  margin: 12px 0 20px;
}
.about-content > p {
  font-size: 16px;
  color: var(--text-medium);
  line-height: 1.7;
  margin-bottom: 14px;
}

.credentials {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 36px 0 32px;
  padding: 28px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  border-left: 3px solid var(--primary);
}
.credential-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.credential-text {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  flex: 1;
}
.credential-icon {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}
.credential-year {
  flex-shrink: 0;
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
  background: #fff;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  min-width: 64px;
  text-align: center;
  line-height: 1.2;
  letter-spacing: 0.02em;
}
.credential-item strong {
  display: block;
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.credential-item span {
  display: block;
  font-size: 13px;
  color: var(--text-medium);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-image { max-width: 460px; margin: 0 auto; }
  .credentials { padding: 22px; }
}

/* ==========================================================================
   Carrossel de depoimentos
   ========================================================================== */
.rating-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.rating-stars { display: flex; gap: 2px; color: var(--star); }
.rating-stars svg { width: 22px; height: 22px; }
.rating-summary strong { font-family: var(--font-title); font-size: 22px; font-weight: 800; color: var(--text); }
.rating-summary span { color: var(--text-medium); font-size: 15px; }

.carousel {
  position: relative;
  margin: 0 auto;
}
.carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 4px 32px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }

.testimonial-card {
  flex: 0 0 calc(33.333% - 14px);
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  min-height: 240px;
  box-shadow: var(--shadow-sm);
}
.testimonial-stars {
  color: var(--star);
  display: flex;
  gap: 3px;
  margin-bottom: 14px;
}
.testimonial-stars svg { width: 16px; height: 16px; }
.testimonial-card p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 20px;
  flex-grow: 1;
}
.testimonial-card > footer {
  background: transparent;
  color: inherit;
  padding: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid var(--border);
}
.testimonial-card strong { font-family: var(--font-title); font-size: 14px; color: var(--text); font-weight: 700; }
.testimonial-card span { font-size: 12px; color: var(--text-light); }

.carousel-arrow {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  z-index: 2;
}
.carousel-arrow:hover { background: var(--primary); color: #fff; transform: translateY(-50%) scale(1.05); }
.carousel-arrow:disabled { opacity: 0.4; cursor: not-allowed; }
.carousel-arrow svg { width: 22px; height: 22px; }
.carousel-arrow-prev { left: -24px; }
.carousel-arrow-next { right: -24px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}
.carousel-dot.active { background: var(--primary); transform: scale(1.3); }

.testimonials-note {
  text-align: center;
  font-size: 14px;
  color: var(--text-medium);
  margin-top: 24px;
}
.testimonials-note a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1024px) {
  .testimonial-card { flex: 0 0 calc(50% - 10px); }
  .carousel-arrow-prev { left: -8px; }
  .carousel-arrow-next { right: -8px; }
}
@media (max-width: 640px) {
  .testimonial-card { flex: 0 0 calc(100% - 8px); }
  .carousel-arrow { display: none; }
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  align-items: start;
}
.faq-head { position: sticky; top: 100px; }
.faq-head h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 800;
  margin: 12px 0 16px;
}
.faq-head p {
  font-size: 16px;
  color: var(--text-medium);
  line-height: 1.65;
  margin-bottom: 24px;
}
.faq-list { display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.faq-item:hover { border-color: var(--primary-soft); }
.faq-item[open] { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  position: relative;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '';
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--primary-soft);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23811F85' stroke-width='2.5' stroke-linecap='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 14px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}
.faq-item[open] summary::after {
  background-color: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E");
  transform: rotate(180deg);
}
.faq-item p {
  padding: 0 24px 24px;
  font-size: 15px;
  color: var(--text-medium);
  line-height: 1.7;
}

@media (max-width: 900px) {
  .faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .faq-head { position: static; }
}

/* ==========================================================================
   Artigos (carrossel)
   ========================================================================== */
.section-articles { background: var(--bg-alt); }
.articles-track .article-card {
  flex: 0 0 calc(33.333% - 14px);
  scroll-snap-align: start;
}
.article-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.article-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.article-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}
.article-card-img {
  aspect-ratio: 16/10;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}
.article-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(31,26,38,0.3) 100%);
}
.article-img-c1 { background-image: url('assets/images/hero-principal.webp'); background-position: center 20%; }
.article-img-c2 { background-image: url('assets/images/hero-bg.webp'); background-position: 60% center; }
.article-img-c3 { background-image: url('assets/images/diferenciais.webp'); background-position: center top; }
.article-img-c4 { background-image: url('assets/images/especialidades.webp'); background-position: center; }
.article-img-c5 { background-image: url('assets/images/como-funciona.webp'); background-position: center; }
.article-img-c6 { background-image: url('assets/images/sobre.webp'); background-position: center top; }

.article-card-body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.article-cluster {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--primary);
  align-self: flex-start;
}
.article-card h3 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  flex: 1;
}
.article-meta {
  font-size: 13px;
  color: var(--text-medium);
  font-family: var(--font-title);
  font-weight: 500;
}

@media (max-width: 1024px) {
  .articles-track .article-card { flex: 0 0 calc(50% - 10px); }
}
@media (max-width: 640px) {
  .articles-track .article-card { flex: 0 0 calc(100% - 8px); }
}

/* ==========================================================================
   Como chegar (seção do mapa)
   ========================================================================== */
.section-map {
  padding: clamp(72px, 9vw, 104px) 0;
  background: var(--bg-alt);
}
.map-section-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: center;
}
.map-info h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  margin: 12px 0 16px;
}
.map-info-text {
  font-size: 16px;
  color: var(--text-medium);
  line-height: 1.65;
  margin-bottom: 24px;
}
.map-info-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}
.map-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text);
  line-height: 1.5;
}
.map-info-list svg { width: 20px; height: 20px; color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.map-wrapper-large {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
  background: #fff;
}
.map-wrapper-large iframe { width: 100%; height: 100%; display: block; }

@media (max-width: 900px) {
  .map-section-grid { grid-template-columns: 1fr; gap: 32px; }
  .map-wrapper-large { aspect-ratio: 16/12; }
}

/* ==========================================================================
   CTA Final
   ========================================================================== */
.cta-final {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: var(--section-pad) 0;
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: '';
  position: absolute;
  top: -200px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(129,31,133,0.4) 0%, transparent 70%);
}
.cta-final::after {
  content: '';
  position: absolute;
  bottom: -200px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(210,236,209,0.15) 0%, transparent 70%);
}
.cta-final-inner {
  position: relative;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.cta-final h2 {
  color: #fff;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  margin: 16px 0;
}
.cta-final h2 em { color: var(--accent); }
.cta-final p {
  font-size: 17px;
  color: rgba(245,240,245,0.8);
  line-height: 1.6;
  margin-bottom: 32px;
}

/* ==========================================================================
   Footer (dark, simplificado: brand + contato | bottom + RD360)
   ========================================================================== */
.site-footer {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 72px 0 36px;
  position: relative;
}
.footer-main {
  display: grid;
  grid-template-columns: auto 1.3fr 1fr;
  gap: 56px;
  margin-bottom: 48px;
  align-items: start;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-dark);
}

.footer-col-logo { padding-top: 4px; }
.footer-brand-logo {
  display: inline-block;
  background: #fff;
  padding: 18px 24px;
  border-radius: var(--radius);
}
.footer-brand-logo img {
  width: 200px;
  height: auto;
  display: block;
}

.footer-col-identity { padding-top: 8px; }
.footer-name {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.footer-particular-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  background: rgba(210, 236, 209, 0.1);
  border: 1px solid rgba(210, 236, 209, 0.25);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}
.footer-particular-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.footer-tagline {
  font-size: 14px;
  color: var(--text-on-dark-medium);
  line-height: 1.6;
  margin-bottom: 16px;
  max-width: 380px;
}
.footer-crm {
  font-size: 12px;
  color: var(--text-on-dark-medium);
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}
.footer-copy {
  font-size: 12px;
  color: var(--text-light);
  opacity: 0.7;
  line-height: 1.5;
  max-width: 380px;
}

.footer-col-contact { padding-top: 8px; }
.footer-list { display: flex; flex-direction: column; gap: 16px; }
.footer-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15px;
  color: var(--text-on-dark-medium);
  line-height: 1.5;
}
.footer-list svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.footer-list a {
  color: var(--text-on-dark-medium);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: color 0.2s ease;
}
.footer-list a:hover { color: var(--accent); }

.footer-rd360 {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  padding-top: 8px;
}
.footer-rd360-label {
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-on-dark-medium);
}
.footer-rd360 a {
  display: inline-flex;
  align-items: center;
  color: #fff;
  transition: opacity 0.2s ease;
}
.footer-rd360 a:hover { opacity: 0.75; }
.footer-rd360-logo {
  height: 28px;
  width: auto;
  display: block;
}

@media (max-width: 1024px) {
  .footer-main { grid-template-columns: auto 1fr; gap: 40px 48px; }
  .footer-col-contact { grid-column: 1 / -1; padding-top: 0; border-top: 1px solid var(--border-dark); padding-top: 32px; }
  .footer-col-contact .footer-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 32px; }
}
@media (max-width: 900px) {
  .footer-main { grid-template-columns: 1fr; gap: 32px; }
  .footer-col-contact .footer-list { grid-template-columns: 1fr; }
  .footer-tagline, .footer-copy { max-width: 100%; }
}
@media (max-width: 540px) {
  .footer-rd360 { flex-direction: column; gap: 12px; }
  .footer-rd360-logo { height: 24px; }
}

/* ==========================================================================
   WhatsApp flutuante
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: pulse 2.5s ease-in-out infinite;
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 12px 32px rgba(37,211,102,0.5); animation: none; }
.whatsapp-float svg { width: 30px; height: 30px; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(37,211,102,0.4), 0 0 0 0 rgba(37,211,102,0.4); }
  70% { box-shadow: 0 8px 24px rgba(37,211,102,0.4), 0 0 0 16px rgba(37,211,102,0); }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float { animation: none; }
  html { scroll-behavior: auto; }
}
