:root {
  --bg: #fbf7f2;
  --surface: #ffffff;
  --primary: #8f6b52;
  --primary-dark: #644432;
  --accent: #d9c3ae;
  --text: #2e2a27;
  --muted: #70675f;
  --border: #eaded3;
  --shadow: 0 20px 50px rgba(60, 42, 32, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-content {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.nav-menu {
  display: flex;
  gap: 22px;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-menu a:hover { color: var(--primary); }

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text);
  margin: 6px auto;
}

.hero {
  padding: 80px 0 60px;
}

.hero-grid, .two-columns, .appointment-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 52px;
  align-items: center;
}

.eyebrow, .section-label {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  line-height: 1.15;
  margin: 0 0 18px;
  color: var(--primary-dark);
}

h1 { font-size: clamp(1.85rem, 3.6vw, 3.15rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.45rem; }

.hero-text p, .section-intro, .appointment p {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 650px;
}

.hero-actions, .contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn.primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 12px 30px rgba(143, 107, 82, 0.25);
}

.btn.secondary {
  background: transparent;
  color: var(--primary-dark);
  border-color: var(--accent);
}

.hero-image-card {
  padding: 14px;
  background: var(--surface);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero-image-card img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
}

.section { padding: 76px 0; }
.about, .testimonials { background: var(--surface); }

.info-card, .service-card, .testimonial-card, .contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.info-card ul, .service-card ul {
  padding-left: 20px;
  margin: 16px 0 0;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 30px;
}

.testimonial-wrapper {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.testimonial-card { display: none; text-align: center; }
.testimonial-card.active { display: block; }
.testimonial-card p { font-size: 1.18rem; color: var(--text); }
.testimonial-card span { color: var(--muted); font-weight: 700; }

.carousel-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--primary-dark);
  font-size: 2rem;
  cursor: pointer;
}

.contact-links a {
  color: var(--primary-dark);
  border-bottom: 2px solid var(--accent);
  font-weight: 700;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  font-weight: 700;
  color: var(--primary-dark);
}

input, textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 15px;
  font: inherit;
  background: #fffdfb;
  color: var(--text);
}

input:focus, textarea:focus {
  outline: 2px solid var(--accent);
  border-color: var(--primary);
}

small { color: var(--muted); }

.site-footer {
  padding: 32px 0;
  background: #f3e9df;
  color: var(--text);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-content p { margin: 4px 0 0; opacity: 0.78; }

.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  background: #25d366;
  color: white;
  font-weight: 800;
  padding: 13px 18px;
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.22);
}

@media (max-width: 860px) {
  .menu-toggle { display: block; }

  .nav-menu {
    position: absolute;
    top: 76px;
    left: 0;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 24px 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    transform: translateY(-130%);
    opacity: 0;
    pointer-events: none;
    transition: 0.25s ease;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-menu a { padding: 12px 0; width: 100%; }

  .hero { padding-top: 44px; }
  .hero-grid, .two-columns, .appointment-grid, .cards-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-image-card { order: -1; }
  .section { padding: 54px 0; }

  .testimonial-wrapper {
    grid-template-columns: 1fr;
  }

  .carousel-btn {
    display: none;
  }
}

@media (max-width: 480px) {
  .container { width: min(100% - 24px, 1120px); }
  .hero-actions .btn { width: 100%; }
  .info-card, .service-card, .testimonial-card, .contact-form { padding: 22px; }
  .floating-whatsapp { left: 12px; right: 12px; text-align: center; }
}

/* Ajustes: depoimentos menores, com estilo semelhante a posts/perfis do Instagram */
.testimonial-wrapper.compact {
  grid-template-columns: 44px 1fr 44px;
}

.testimonial-viewport {
  overflow: hidden;
  width: 100%;
}

.testimonial-carousel {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 18px;
  scrollbar-width: none;
}

.testimonial-carousel::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  display: block;
  flex: 0 0 calc((100% - 36px) / 3);
  min-height: 210px;
  padding: 20px;
  text-align: left;
  scroll-snap-align: start;
}

.testimonial-card p {
  font-size: 0.96rem;
  line-height: 1.55;
  margin: 16px 0 0;
}

.patient-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.patient-header img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  padding: 2px;
  border: 2px solid var(--accent);
  background: white;
}

.patient-header strong {
  display: block;
  color: var(--primary-dark);
  line-height: 1.1;
}

.patient-header span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.privacy-note {
  display: block;
  margin-top: 8px;
}

/* Ajustes: botões com imagens na área Solicite sua consulta */
.contact-links.icon-links {
  align-items: stretch;
}

.contact-links.icon-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 12px 26px rgba(60, 42, 32, 0.08);
  border-bottom: 1px solid var(--border);
}

.contact-links.icon-links img {
  width: 30px;
  height: 30px;
}

@media (max-width: 980px) {
  .testimonial-card {
    flex-basis: calc((100% - 18px) / 2);
  }
}

@media (max-width: 620px) {
  .testimonial-wrapper.compact {
    grid-template-columns: 1fr;
  }

  .testimonial-card {
    flex-basis: 84%;
  }

  .contact-links.icon-links a {
    width: 100%;
  }
}

/* Ajustes finais solicitados: capa mais ampla e três cards de atuação */
@media (min-width: 981px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.hero-image-card img {
  aspect-ratio: 16/11;
  object-position: center;
}

.hero-grid {
  grid-template-columns: 0.9fr 1.1fr;
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

/* Mensagem de retorno do formulário sem sair da página */
.form-status {
  display: none;
  padding: 13px 15px;
  border-radius: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.form-status.sending,
.form-status.success,
.form-status.error {
  display: block;
}

.form-status.sending {
  background: #f8f1e9;
  color: var(--primary-dark);
  border: 1px solid var(--border);
}

.form-status.success {
  background: #eef8f3;
  color: #27634f;
  border: 1px solid #bfe3d2;
}

.form-status.error {
  background: #fff1f1;
  color: #8a3434;
  border: 1px solid #efc8c8;
}

.contact-form button:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}
