/* ═══════════════════════════════════════════════════
   Dra. Martha Zenatti — Estilos principais
   Paleta: rose #FFC2BF · dark rose #855251 · blush #E0C3BF · cream #E2D4C7
   ═══════════════════════════════════════════════════ */

:root {
  --rose:       #FFC2BF;
  --rose-dark:  #855251;
  --rose-med:   #B77F7E;
  --blush:      #E0C3BF;
  --cream:      #E2D4C7;
  --bg:         #faf8f7;
  --white:      #ffffff;
  --text:       #2d2d2d;
  --text-light: #6b6b6b;
  --text-muted: #9a9a9a;

  --font-head:  'Montserrat', sans-serif;
  --font-body:  'Montserrat', sans-serif;

  --nav-h:      88px;
  --radius:     4px;
  --shadow:     0 4px 24px rgba(133, 82, 81, 0.12);
  --shadow-sm:  0 2px 8px rgba(133, 82, 81, 0.08);

  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
address { font-style: normal; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ─── Container ─── */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Sections ─── */
.section { padding: 90px 0; }
.section--light  { background: var(--bg); }
.section--cream  { background: var(--cream); }
.section--rose   { background: #fdf0ef; }
.section--dark   { background: var(--rose-dark); }
.section--doctoralia { background: #e0f2f0; }
.section--hero   { position: relative; overflow: hidden; padding: 120px 0; }

.section-header  { text-align: center; margin-bottom: 56px; }
.section-header--light .section-title { color: var(--white); }

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  color: var(--rose-dark);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.section-divider {
  width: 60px;
  height: 2px;
  background: var(--rose-med);
  margin: 18px auto 0;
  border-radius: 1px;
}
.section-divider--light { background: var(--blush); }

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

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 32px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.22s var(--ease);
  cursor: pointer;
}
.btn--rose {
  background: var(--rose-dark);
  color: var(--white);
}
.btn--rose:hover { background: #6e3f3e; transform: translateY(-1px); box-shadow: var(--shadow); }

.btn--outline {
  background: transparent;
  color: var(--rose-dark);
  border: 2px solid var(--rose-dark);
}
.btn--outline:hover { background: var(--rose-dark); color: var(--white); }

.btn--whatsapp {
  background: #25D366;
  color: var(--white);
  font-size: 1rem;
  padding: 16px 40px;
  border-radius: 50px !important;
}
.btn--whatsapp:hover { background: #1eb857; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,211,102,0.35); }

.btn--lg { font-size: 1rem; padding: 16px 48px; }
.btn--full { width: 100%; justify-content: center; }

/* ══════════════════════════════════════
   HEADER / NAV
   ══════════════════════════════════════ */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--nav-h);
  background: #ffffff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(176, 127, 126, 0.15);
  transition: box-shadow 0.3s var(--ease), height 0.3s var(--ease), background 0.3s var(--ease);
}
#header.scrolled { box-shadow: 0 2px 20px rgba(133,82,81,0.12); }


.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo img {
  width: auto;
  height: 72px;
  max-height: calc(var(--nav-h) - 16px);
  object-fit: contain;
  transition: height 0.3s var(--ease), opacity 0.2s;
}
.nav-logo:hover img { opacity: 0.85; }

.hero-prev { left: 24px; }
.hero-next { right: 24px; }

/* Hero single-slide variant — hides arrows/dots for static hero */
.hero--single .hero-arrow,
.hero--single .hero-dots { display: none !important; }

/* ══════════════════════════════════════
   HERO TRUST — Doctoralia + Google inline no hero
   ══════════════════════════════════════ */
.hero-trust {
  display: inline-flex;
  align-items: stretch;
  gap: 18px;
  margin-top: 38px;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  text-decoration: none;
  color: var(--white);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.22);
  transition: transform 0.22s var(--ease), background 0.22s var(--ease), border-color 0.22s var(--ease);
}
.hero-trust-item:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.26);
  border-color: rgba(255, 255, 255, 0.45);
}

.hero-trust-logo {
  height: 22px;
  width: auto;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
.hero-trust-logo--google svg { height: 22px; width: auto; display: block; }

/* Card Doctoralia — fundo verde semi-transparente */
.hero-trust-item:first-child {
  background: rgba(0, 179, 155, 0.55);
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}
.hero-trust-item:first-child:hover {
  background: rgba(0, 179, 155, 0.72);
  border-color: rgba(255, 255, 255, 0.55);
}
.hero-trust-item:first-child .hero-trust-logo {
  filter: brightness(0) invert(1);
}
.hero-trust-item:first-child .hero-trust-stars { color: var(--white); }
.hero-trust-item:first-child .hero-trust-score,
.hero-trust-item:first-child .hero-trust-score strong { color: var(--white); }
.hero-trust-item:first-child .hero-trust-score em { color: rgba(255, 255, 255, 0.8); }

/* Card Google — fundo branco semi-transparente */
.hero-trust-item:last-child {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--text);
}
.hero-trust-item:last-child:hover {
  background: rgba(255, 255, 255, 0.78);
  border-color: var(--white);
}
.hero-trust-item:last-child .hero-trust-stars { color: #f5a623; }
.hero-trust-item:last-child .hero-trust-score,
.hero-trust-item:last-child .hero-trust-score strong { color: var(--text); }
.hero-trust-item:last-child .hero-trust-score em { color: var(--text-light); }

.hero-trust-rating {
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1;
}
.hero-trust-stars {
  display: flex;
  gap: 2px;
  font-size: 0.82rem;
  color: #ffc945;
}
.hero-trust-item:first-child .hero-trust-stars { color: #2bdcbb; }

.hero-trust-score {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.01em;
}
.hero-trust-score strong {
  font-weight: 700;
  color: var(--white);
  font-size: 0.95rem;
}
.hero-trust-score em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 400;
}

.hero-trust-sep { display: none; }

@media (max-width: 640px) {
  .hero-trust {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    max-width: 320px;
  }
  .hero-trust-item { justify-content: flex-start; padding: 12px 18px; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  position: relative;
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--rose-dark);
  transform: scaleX(0);
  transition: transform 0.25s var(--ease);
}
.nav-links a:hover { color: var(--rose-dark); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
  background: var(--rose-dark);
  color: var(--white) !important;
  padding: 9px 22px;
  border-radius: var(--radius);
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: #6e3f3e; color: var(--white) !important; }

/* Ícones sociais no header */
.nav-social {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 20px;
  padding-left: 20px;
  border-left: 1px solid rgba(176, 127, 126, 0.25);
}
.nav-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--rose-dark);
  font-size: 0.95rem;
  transition: background 0.22s var(--ease), color 0.22s var(--ease), transform 0.22s var(--ease);
}
.nav-social a:hover {
  background: var(--rose-dark);
  color: var(--white);
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--rose-dark);
  border-radius: 1px;
  transition: all 0.25s;
}
.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); }

/* ══════════════════════════════════════
   HERO
   ══════════════════════════════════════ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero-slides { position: absolute; inset: 0; }

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.9s var(--ease);
}
.hero-slide.active { opacity: 1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(133, 82, 81, 0.72) 0%,
    rgba(133, 82, 81, 0.45) 50%,
    rgba(0, 0, 0, 0.35) 100%
  );
  pointer-events: none; /* Let clicks pass through */
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--white);
  padding: 0 24px;
  width: 100%;
  max-width: 760px;
  opacity: 0;
  transition: opacity 0.6s 0.5s var(--ease), transform 0.6s 0.5s var(--ease);
  transform: translate(-50%, calc(-50% + 20px));
}
.hero-slide.active .hero-content {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.hero-tagline {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--rose);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}
.hero-content h1 {
  font-family: var(--font-head);
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 20px;
}
.hero-content p {
  font-size: 1.35rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 32px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
  padding: 13px 36px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.25s var(--ease);
}
.hero-btn:hover {
  background: var(--white);
  color: var(--rose-dark);
}
.hero-btn--whatsapp {
  border-color: #25D366;
  background: #25D366;
  color: var(--white);
  border-radius: 50px !important;
}
.hero-btn--whatsapp:hover {
  background: #25D366;
  border-color: #25D366;
  color: var(--white);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.4);
  color: var(--white);
  padding: 12px 16px;
  cursor: pointer;
  border-radius: 50%;
  backdrop-filter: blur(4px);
  transition: all 0.3s var(--ease);
  pointer-events: auto;
}
.carousel-arrow:hover { background: rgba(0, 0, 0, 0.05); }
.carousel-prev { left: -16px; }
.carousel-next { right: -16px; }

#avaliacoes .carousel-arrow {
  background: rgba(0, 179, 155, 0.1);
  color: #00b39b;
  border: 1px solid rgba(0, 179, 155, 0.3);
}
#avaliacoes .carousel-arrow:hover {
  background: #00b39b;
  color: #ffffff;
}

.hero-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
}
.hero-dots .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  transition: background 0.25s, transform 0.25s;
}
.hero-dots .dot.active {
  background: var(--white);
  transform: scale(1.3);
}

/* ══════════════════════════════════════
   SERVIÇOS
   ══════════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  border-radius: 8px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(224, 195, 191, 0.3);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--rose);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border: 2px solid var(--blush);
}
.service-icon i, .service-icon svg {
  font-size: 1.6rem;
  color: var(--rose-dark);
  width: 32px;
  height: 32px;
}
.service-card h3 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--rose-dark);
  margin-bottom: 10px;
}
.service-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ══════════════════════════════════════
   DOCTORALIA BLOCK
   ══════════════════════════════════════ */
.doctoralia-header-block {
  background: var(--white);
  border-radius: 12px;
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  box-shadow: 0 4px 20px rgba(0, 179, 155, 0.1);
  border-left: 6px solid #00b39b;
}

.doctoralia-logo-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.doctoralia-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  margin-bottom: 4px;
}

.doctoralia-text {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 700;
  color: #00b39b;
  letter-spacing: -0.03em;
}

.doctoralia-verified {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  color: #6b6b6b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.doctoralia-verified i {
  color: #00b39b;
  font-size: 1.1rem;
}

.doctoralia-score-wrap {
  text-align: right;
}

.doctoralia-stars {
  color: #00b39b;
  font-size: 1.5rem;
  margin-bottom: 8px;
  display: flex;
  justify-content: flex-end;
  gap: 4px;
}

.doctoralia-score-text {
  color: var(--text);
  font-size: 1rem;
}
.doctoralia-score-text strong {
  font-size: 1.8rem;
  font-weight: 700;
  color: #00b39b;
}
.doctoralia-score-text span {
  display: block;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 4px;
}

.doc-review-card {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 24px;
  min-height: 320px;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  text-align: left;
}
@media (min-width: 768px) {
  .doc-review-card {
    padding: 32px;
  }
}
.doc-stars {
  color: #00b39b;
  margin-bottom: 16px;
  font-size: 1.1rem;
  display: flex;
  gap: 3px;
}
.doc-body {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.5;
  font-style: italic;
  flex-grow: 1;
  margin-bottom: 24px;
}

.header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.header-logo img {
  width: auto;
  max-height: 90px;
  object-fit: contain;
  transform: scale(2.2); /* Bypasses embedded transparent whitespace */
  transform-origin: left center;
}

.doc-author-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.doc-avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #00b39b;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}
.doc-author-meta {
  display: flex;
  flex-direction: column;
}
.doc-author {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}
.doc-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.btn--doctoralia {
  background: #00b39b;
  color: #ffffff;
  border-radius: 50px !important;
  font-weight: 600;
  padding: 16px 40px;
  border: 1px solid transparent;
}
.btn--doctoralia:hover {
  background: #009984;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 179, 155, 0.35);
  color: #ffffff;
}

/* ══════════════════════════════════════
   CARROSSEL GENÉRICO
   ══════════════════════════════════════ */
.carousel-wrapper {
  position: relative;
  display: block;
}

.carousel {
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
}

.carousel-track {
  display: flex;
  gap: 16px;
  width: 100%;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none;    /* Firefox */
}
.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  scroll-snap-align: start;
}

@media (min-width: 768px) {
  .carousel-slide {
    width: calc((100% - 16px) / 2); /* 2 per view */
  }
  .clinic-carousel .carousel-slide {
    width: calc((100% - 32px) / 3); /* 3 per view */
  }
}
@media (min-width: 1024px) {
  .carousel-slide {
    width: calc((100% - 16px) / 2);
  }
  .clinic-carousel .carousel-slide {
    width: calc((100% - 16px) / 2); /* Changed from /3 to /2 to make images much bigger */
  }
}

.carousel-slide img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
  display: block;
}

/* Moldura elegante para a galeria "A Clínica" */
.clinic-carousel .carousel-slide {
  position: relative;
  padding: 12px 12px 14px;
  background: linear-gradient(180deg, #fffdfc 0%, #f6edea 100%);
  border: 1px solid rgba(133, 82, 81, 0.2);
  border-radius: 4px;
  box-shadow:
    0 1px 2px rgba(133, 82, 81, 0.06),
    0 6px 20px rgba(133, 82, 81, 0.1);
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    border-color 0.4s var(--ease);
}
.clinic-carousel .carousel-slide::after {
  content: '';
  position: absolute;
  inset: 12px 12px 14px;
  border-radius: 2px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.5),
    inset 0 2px 6px rgba(0, 0, 0, 0.12);
  pointer-events: none;
}
.clinic-carousel .carousel-slide:hover {
  transform: translateY(-6px);
  border-color: var(--rose-med);
  box-shadow:
    0 2px 4px rgba(133, 82, 81, 0.08),
    0 16px 36px rgba(133, 82, 81, 0.2);
}
.clinic-carousel .carousel-slide img {
  border-radius: 2px;
  box-shadow: none;
  aspect-ratio: 4 / 3;
}

.reviews-carousel .carousel-slide img {
  aspect-ratio: auto;
  height: 480px;
  object-fit: contain;
  background: var(--white);
}

.clinic-carousel .carousel-slide img {
  aspect-ratio: auto;
  height: 480px; /* Reduced for mobile but increased per user feedback */
  object-fit: contain;
  background: transparent;
}

@media (min-width: 768px) {
  .carousel-slide {
    flex: 0 0 calc((100% - 16px) / 2);
    width: calc((100% - 16px) / 2); /* 2 per view */
    max-width: calc((100% - 16px) / 2);
  }
  .clinic-carousel .carousel-slide img {
    height: 540px; /* Restored for desktop */
  }
}

@media (max-width: 500px) {
  .carousel-arrow {
    width: 36px;
    height: 36px;
  }
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--rose-dark);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.2s;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.carousel-arrow:hover { background: #6e3f3e; transform: translateY(-50%) scale(1.08); }
.carousel-arrow--light { background: rgba(255,255,255,0.2); color: var(--white); border: 1px solid rgba(255,255,255,0.3); }
.carousel-arrow--light:hover { background: rgba(255,255,255,0.35); transform: translateY(-50%) scale(1.08); }
.carousel-arrow:active { transform: translateY(-50%) scale(0.95); }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.carousel-dots .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blush);
  transition: background 0.25s, transform 0.25s;
  cursor: pointer;
}
.carousel-dots .dot.active { background: var(--rose-dark); transform: scale(1.3); }

/* Dots on dark section */
.section--dark .carousel-dots .dot { background: rgba(255,255,255,0.3); }
.section--dark .carousel-dots .dot.active { background: var(--rose); }

/* ══════════════════════════════════════
   SCROLL REVEAL — entrada suave das seções
   Estado "hidden" só é aplicado quando JS confirma via .js-reveal no <html>
   (assim, se o JS falhar, conteúdo fica visível por padrão)
   ══════════════════════════════════════ */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .js-reveal [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ══════════════════════════════════════
   SECTION EYEBROW (rótulo acima do título)
   ══════════════════════════════════════ */
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose-med);
  margin-bottom: 12px;
}
.section-divider--left { margin-left: 0; }

/* ══════════════════════════════════════
   SOBRE A DRA.
   ══════════════════════════════════════ */
.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: center;
}
.sobre-photo {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
}
.sobre-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.sobre-photo-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--rose-dark);
  letter-spacing: 0.04em;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}
.sobre-photo-badge i { color: var(--rose-med); }

.sobre-text .section-title { text-align: left; }
.sobre-text p {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 18px;
}

.sobre-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(176, 127, 126, 0.2);
}
.sobre-stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--rose-dark);
  line-height: 1;
  letter-spacing: -0.01em;
}
.sobre-stat span {
  display: block;
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 6px;
  line-height: 1.4;
}

/* ══════════════════════════════════════
   DIFERENCIAIS
   ══════════════════════════════════════ */
.diferenciais-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.diferencial-item {
  text-align: center;
  padding: 32px 22px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid rgba(176, 127, 126, 0.22);
  box-shadow: 0 4px 16px rgba(133, 82, 81, 0.08);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
}
.diferencial-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 34px rgba(133, 82, 81, 0.16);
  border-color: var(--rose-med);
}
.diferencial-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--rose-dark);
  box-shadow: 0 4px 14px rgba(133,82,81,0.12);
}
.diferencial-item h3 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--rose-dark);
  margin-bottom: 8px;
}
.diferencial-item p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ══════════════════════════════════════
   FAQ
   ══════════════════════════════════════ */
.faq-container { max-width: 820px; }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--white);
  border: 1px solid rgba(176, 127, 126, 0.2);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.faq-item[open] {
  border-color: var(--rose-med);
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--rose-dark); }
.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--rose-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  transition: transform 0.3s var(--ease), background 0.25s, color 0.25s;
}
.faq-item[open] .faq-icon {
  transform: rotate(45deg);
  background: var(--rose-dark);
  color: var(--white);
}
.faq-answer {
  padding: 0 24px 22px;
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--text-light);
}

/* ══════════════════════════════════════
   CONTATO
   ══════════════════════════════════════ */
/* Card de WhatsApp acima do formulário — versão discreta */
.contato-whatsapp-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 24px;
  margin-bottom: 36px;
  background: var(--white);
  border: 1px solid rgba(176, 127, 126, 0.2);
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.contato-whatsapp-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--rose-med);
}
.contato-whatsapp-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--white);
}
.contato-whatsapp-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.contato-whatsapp-text strong {
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
}
.contato-whatsapp-text span {
  font-size: 0.85rem;
  color: var(--text-light);
}
.contato-whatsapp-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rose-dark);
  transition: color 0.2s, gap 0.2s;
}
.contato-whatsapp-cta i { font-size: 0.7rem; transition: transform 0.2s; }
.contato-whatsapp-card:hover .contato-whatsapp-cta { gap: 10px; }
.contato-whatsapp-card:hover .contato-whatsapp-cta i { transform: translateX(3px); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-form-wrapper { width: 100%; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.form-group label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rose-dark);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--blush);
  border-radius: var(--radius);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--rose-dark);
  box-shadow: 0 0 0 3px rgba(133,82,81,0.1);
}
.form-group textarea { resize: vertical; min-height: 130px; }

.form-status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  display: none;
}
.form-status.is-success { display: block; background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }
.form-status.is-error   { display: block; background: #fde8e8; color: #c62828; border: 1px solid #f9c8c8; }

.contact-map {
  height: 460px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.contact-map iframe { width: 100%; height: 100%; border: 0; }

/* ══════════════════════════════════════
   INSTAGRAM
   ══════════════════════════════════════ */
.instagram-container {
  display: flex;
  justify-content: center;
}

.instagram-card {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 48px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  max-width: 800px;
  width: 100%;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.instagram-card:hover { transform: translateY(-4px); box-shadow: 0 8px 40px rgba(133,82,81,0.18); }

.instagram-photo {
  position: relative;
  flex-shrink: 0;
  width: 240px;
  height: 280px;
  border-radius: 8px;
  overflow: hidden;
}
.instagram-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.instagram-overlay {
  position: absolute;
  inset: 0;
  background: rgba(133,82,81,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s;
}
.instagram-card:hover .instagram-overlay { background: rgba(133,82,81,0.55); }
.instagram-overlay i { font-size: 3rem; color: var(--white); opacity: 0; transition: opacity 0.25s; }
.instagram-card:hover .instagram-overlay i { opacity: 1; }

.instagram-text h3 {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 400;
  color: var(--rose-dark);
  margin-bottom: 6px;
}
.instagram-text p {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 28px;
}

/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */
.footer {
  background: #855251;
  color: var(--cream);
  padding: 56px 0 0;
}

  .doctoralia-header-block {
    flex-direction: column;
    text-align: center;
    gap: 24px;
    padding: 24px;
  }
  .doctoralia-score-wrap {
    text-align: center;
  }
  .doctoralia-stars {
    justify-content: center;
  }

  .footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.footer-logo { margin-bottom: 24px; display: block; }
.footer-logo img { 
  width: 170px; 
  opacity: 1; 
  transform: scale(1.9); /* ~20% smaller than previous 2.4 */
  transform-origin: center;
}

.section--agendar-unused-legacy {
  background: var(--cream);
  text-align: center;
  padding: 100px 0;
}
.section--agendar h2 { color: var(--rose-dark); }
.section--agendar .section-divider { background: var(--rose-dark); }
.section--agendar p { color: var(--text); padding-bottom: 30px; }

.footer-address {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--cream);
}

.footer-contacts {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-contacts a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-size: 1.15rem;
  transition: color 0.2s;
}
.footer-contacts a:hover { color: var(--rose); }
.footer-contacts i { font-size: 1.4rem; }

.footer-copy {
  margin-top: 40px;
  padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,0.2);
  text-align: center;
  width: 100%;
}
.footer-copy p { font-size: 1rem; color: rgba(255,255,255,0.8); letter-spacing: 0.04em; }

/* ══════════════════════════════════════
   WHATSAPP FLOAT
   ══════════════════════════════════════ */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 64px;
  height: 64px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.whatsapp-float:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,211,102,0.55);
}
.whatsapp-float svg { display: block; width: 40px; height: 40px; }

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-map { height: 320px; }
  .instagram-card { flex-direction: column; gap: 28px; text-align: center; }
  .instagram-photo {
    width: 100%;
    max-width: 360px;
    height: auto;
    aspect-ratio: 4 / 5;
    margin: 0 auto;
  }

  /* Novas seções */
  .sobre-grid { grid-template-columns: 1fr; gap: 36px; }
  .sobre-photo { max-width: 420px; margin: 0 auto; }
  .sobre-text .section-title { text-align: center; }
  .sobre-text .section-eyebrow { display: block; text-align: center; }
  .section-divider--left { margin: 18px auto 0; }
  .diferenciais-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-h: 96px; }
  .nav-logo img { width: auto; height: 76px; }
  .nav-container { padding: 0 24px; }
  .nav-social { display: none; }

  .contato-whatsapp-card {
    flex-direction: column;
    text-align: center;
    padding: 22px;
    gap: 14px;
  }
  .contato-whatsapp-cta { padding: 10px 20px; }

  /* Ao rolar: header menor e semi-transparente */
  #header.scrolled {
    height: 64px;
    background: rgba(255, 255, 255, 0.72);
  }
  #header.scrolled .nav-logo img { height: 48px; }
  /* Mantém o menu mobile aberto grudado no header reduzido */
  #header.scrolled .nav-links { top: 64px; }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 12px 0 24px;
    border-bottom: 2px solid var(--rose);
    box-shadow: 0 8px 24px rgba(133,82,81,0.15);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links li a { display: block; padding: 13px 28px; font-size: 0.85rem; }
  .nav-cta { margin: 8px 28px 0; border-radius: var(--radius); }

  .nav-toggle { display: flex; }

  .section { padding: 64px 0; }
  .services-grid { grid-template-columns: 1fr; gap: 18px; }

  /* No mobile cada slide ocupa a viewport quase toda */
  .carousel-slide,
  .clinic-carousel .carousel-slide {
    flex: 0 0 calc(100vw - 48px);
    width: calc(100vw - 48px);
    max-width: 520px;
  }
  .carousel-slide img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }
  .reviews-carousel .carousel-slide img {
    aspect-ratio: auto;
    height: 360px;
    object-fit: contain;
  }

  .hero-arrow { display: none; }
  .hero-content h1 { font-size: 2.4rem; }

  .footer-contacts { flex-direction: column; gap: 16px; }
}

@media (max-width: 600px) {
  .diferenciais-grid { grid-template-columns: 1fr; }
  .sobre-stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .sobre-stat strong { font-size: 1.6rem; }
  .sobre-stat span { font-size: 0.72rem; }
  .faq-item summary { padding: 16px 18px; font-size: 0.92rem; }
  .faq-answer { padding: 0 18px 18px; font-size: 0.88rem; }
}

@media (max-width: 480px) {
  .instagram-card { padding: 28px 20px; }
}

/* ─── Utilities ─── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
