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

:root {
  --color-primary: #b99973;
  --color-secondary: #59493b;
  --color-black: #000000;
  --color-white: #ffffff;
  --color-whatsapp: #25d366;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", sans-serif;
  background-color: var(--color-white);
  color: var(--color-black);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Navbar com links visíveis no topo, vira apenas ícone ao rolar */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.4s ease;
  background-color: transparent;
}

#navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(185, 153, 115, 0.2);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

#navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

.logo-btn {
  background: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.3s;
}

.logo-btn:hover {
  opacity: 0.8;
}

.logo {
  height: 3.5rem;
  width: auto;
}

/* Nav links visíveis no topo, escondidos ao rolar */
.nav-links {
  display: flex;
  gap: 2rem;
  transition: all 0.4s ease;
}

#navbar:not(.scrolled) .nav-links {
  display: flex;
  opacity: 1;
}

#navbar.scrolled .nav-links {
  display: none;
  opacity: 0;
}

.nav-link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  padding: 0.5rem 1rem;
  transition: all 0.3s;
  border-radius: 0.5rem;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(185, 153, 115, 0.1);
}

/* Menu button só aparece quando rolado */
.menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: none;
  opacity: 0;
}

#navbar.scrolled .menu-btn {
  display: block;
  opacity: 1;
}

.menu-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
}

.menu-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 16rem;
  background-color: var(--color-white);
  border: 1px solid rgba(185, 153, 115, 0.2);
  border-radius: 0.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: all 0.3s ease;
}

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

.menu-dropdown a {
  display: block;
  width: 100%;
  text-align: left;
  padding: 1rem 1.5rem;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--color-primary);
  text-decoration: none;
  transition: background-color 0.3s;
}

.menu-dropdown a:last-child {
  border-bottom: none;
}

.menu-dropdown a:hover {
  background-color: rgba(185, 153, 115, 0.1);
}

/* Hero Section original */
.hero-section {
  position: relative;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.01),
    rgba(255, 255, 255, 0.03)
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 1rem;
  max-width: 56rem;
  margin: 0 auto;
}

.hero-title {
  font-size: 3rem;
  color: var(--color-primary);
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease;
}

.title-main {
  color: var(--color-primary);
  font-size: 3.5rem;
}

.title-sub {
  font-size: 2rem;
  color: var(--color-primary);
}

.hero-btn {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  background: transparent;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: fadeInUp 1s ease 0.4s backwards;
  margin-top: 1rem;
}

.hero-btn:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  transform: scale(1.08);
}

/* Carrossel de promoções abaixo do hero com altura de 50vh */
.promo-carousel {
  position: relative;
  height: 50vh;
  overflow: hidden;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  
}

.carousel-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--color-white);
  z-index: 10;
  width: 90%;
  max-width: 600px;
}

.carousel-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
}

.carousel-content p {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
}

.carousel-btn {
  background: var(--color-whatsapp);
  color: var(--color-white);
  border: none;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-btn:hover {
  background: #20ba5a;
  transform: scale(1.05);
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-primary);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  z-index: 20;
  transition: all 0.3s ease;
}

.carousel-control:hover {
  background: var(--color-white);
  transform: translateY(-50%) scale(1.1);
}

.carousel-control.prev {
  left: 20px;
}

.carousel-control.next {
  right: 20px;
}

.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 20;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: var(--color-white);
  transform: scale(1.3);
}

/* Benefits Section */
.benefits-section {
  padding: 3rem 0;
}

.section-title {
  color: var(--color-primary);
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.benefit-card {
  text-align: center;
  padding: 1.5rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  border-radius: 0.5rem;
}

.benefit-card:hover {
  border-color: var(--color-primary);
}

.benefit-card img {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  transition: transform 0.3s ease;
  border-radius: 0.5rem;
}

.benefit-card:hover img {
  transform: scale(1.1);
}

.benefit-card h3 {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.benefit-card p {
  color: var(--color-black);
  font-size: 0.875rem;
}

.about-gallery-section {
  padding: 4rem 0;
}

.about-gallery {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* ===================== */
/* GALERIA */
.gallery {
  display: flex;
  flex-direction: column;
}

/* IMAGEM GRANDE */
.gallery-main {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

/* LEGENDA */
.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;

  width: 100%;
  padding: 12px 16px;

  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 14px;
}

/* MINIATURAS */
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.gallery-thumbs img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  cursor: pointer;

  filter: brightness(0.7);
  transition: filter 0.3s ease;
}

.gallery-thumbs img:hover,
.gallery-thumbs img.active {
  filter: brightness(1);
}

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

  .gallery-main {
    height: 300px;
  }

  .about-text {
    text-align: center;
  }
}


/* Sobre página moderna */
.about-page-section {
  padding: 6rem 0 4rem;
}

.about-page-header {
  text-align: center;
  margin-bottom: 4rem;
}

.about-page-header h1 {
  color: var(--color-primary);
  font-size: 3rem;
  margin-bottom: 1rem;
}

.about-page-header .lead {
  color: var(--color-black);
  font-size: 1.5rem;
}

.about-page-content {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 4rem;
}

.about-page-image-small img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 10px 40px rgba(185, 153, 115, 0.2);
}

.about-page-text h2 {
  color: var(--color-primary);
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.about-page-text p {
  color: var(--color-black);
  margin-bottom: 1.2rem;
  line-height: 1.8;
  font-size: 1.05rem;
}

.smiling-people-banner {
  width: 100%;
  height: 300px;
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 4rem;
}

.smiling-people-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-values {
  margin-top: 4rem;
}

.about-values h2 {
  color: var(--color-primary);
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.value-card {
  text-align: center;
  padding: 2rem;
  background: rgba(185, 153, 115, 0.03);
  border-radius: 1rem;
  border: 1px solid rgba(185, 153, 115, 0.1);
  transition: all 0.3s ease;
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(185, 153, 115, 0.15);
  border-color: var(--color-primary);
}

.value-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.value-card h3 {
  color: var(--color-primary);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.value-card p {
  color: var(--color-black);
  line-height: 1.7;
}
.services-section {
  padding: 5rem 0;
}

.services-list {
  max-width: 1100px;
  margin: 0 auto;

  display: flex;
  flex-direction: column;
  gap: 4rem;
}
.services-container {
  max-width: 1100px;   /* controla a largura */
  margin: 0 auto;      /* centraliza */
  padding: 0 1.5rem;   /* respiro lateral */
}

/* ===================== */
/* CARD */
.service {
  display: flex;
  align-items: center;
  gap: 3rem;
}

/* alternância */
.service:nth-child(even) {
  flex-direction: row-reverse;
}

/* ===================== */
/* SVG */
.service-icon {
  flex-shrink: 0;
  width: 200px;
  height: 200px;

  background: rgba(185,153,115,0.08);
  border-radius: 20px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon img {
  width: 160px;
  height: auto;
}

/* ===================== */
/* TEXTO */
.service-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-content h3 {
  font-size: 24px;
  color: var(--color-secondary);
}

.service-content p {
  font-size: 16px;
  line-height: 1.5;
  max-width: max-content;
}

/* ===================== */
/* ANTES / DEPOIS */
.before-after {
  display: flex;
  gap: 16px;
}

.before-after span {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 20px;

  background: var(--color-primary);
  color: var(--color-black);
}

.animate-service {
  opacity: 0;
  transform: translateX(-40px);
  transition: 0.8s ease;
}

.service:nth-child(even).animate-service {
  transform: translateX(40px);
}

.animate-active {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 768px) {
  .service,
  .service:nth-child(even) {
    flex-direction: column;
    text-align: center;
  }

  .service-icon {
    width: 110px;
    height: 110px;
  }

  .service-icon img {
    width: 70px;
  }
}

.service {
  position: relative;
  padding-bottom: 3rem;
}

/* linha divisória */
.service::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);

  width: 60%;
  height: 1px;

  background: rgba(0, 0, 0, 0.08);
}

/* remove linha do último */
.service:last-child::after {
  display: none;
}

.service::after {
  background: linear-gradient(
    to right,
    transparent,
    rgba(0, 0, 0, 0.15),
    transparent
  );
}


/* Before After Section */
.before-after-section {
  padding: 2rem 0;
}

.before-after-section h2 {
  color: var(--color-primary);
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 2rem;
}

.before-after-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.comparison-slider {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
}

.comparison-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.before-image,
.after-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.after-image {
  clip-path: inset(0 50% 0 0);
}

.slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 10;
}

.slider-button {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: var(--color-white);
  border: 3px solid var(--color-primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: left 0.1s ease;
}

.slider-button::before,
.slider-button::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-style: solid;
}

.slider-button::before {
  left: 12px;
  border-width: 6px 8px 6px 0;
  border-color: transparent var(--color-primary) transparent transparent;
}

.slider-button::after {
  right: 12px;
  border-width: 6px 0 6px 8px;
  border-color: transparent transparent transparent var(--color-primary);
}

/* Linha divisória vertical que acompanha o controle do slider */
.comparison-container .slider-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--color-primary);
  transform: translateX(-50%);
  z-index: 4;
  pointer-events: none;
  transition: left 0.1s ease;
}

/* Testimonials Section */
.testimonials-section {
  padding: 2rem 0;
}

.testimonials-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.testimonials-image img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
}

.testimonials-slider h2 {
  color: var(--color-primary);
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.testimonials-wrapper {
  position: relative;
}

.testimonial-card {
  display: none;
  padding: 2rem;
  background: rgba(185, 153, 115, 0.05);
  border-radius: 1rem;
  border: 1px solid rgba(185, 153, 115, 0.2);
}

.testimonial-card.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

.quote-icon {
  font-size: 3rem;
  color: var(--color-primary);
  line-height: 1;
}

.testimonial-text {
  color: var(--color-black);
  font-size: 1rem;
  margin: 1rem 0;
  font-style: italic;
}

.testimonial-author {
  color: var(--color-primary);
  font-weight: 600;
  text-align: right;
}

.testimonial-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.testimonial-arrow:hover {
  background: var(--color-secondary);
  transform: translateY(-50%) scale(1.1);
}

.testimonial-arrow.prev {
  left: -60px;
}

.testimonial-arrow.next {
  right: -60px;
}

/* ===================== */
/* EMERGENCY SECTION */
.emergency-section {
  padding: 3rem 0;
  background: rgba(185, 153, 115, 0.06);
}

.emergency-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;

  display: flex;
  align-items: center;
  gap: 2.5rem;
}

/* IMAGEM */
.emergency-image img {
  width: 90px;
  height: auto;
}

/* TEXTO */
.emergency-content h3 {
  font-size: 22px;
  color: var(--color-secondary);
  margin-bottom: 8px;
}

.emergency-content p {
  font-size: 15px;
  line-height: 1.6;
  max-width: 500px;
  margin-bottom: 12px;
}

/* BOTÃO */
.emergency-button {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 20px;

  background: var(--color-primary);
  color: var(--color-black);
  font-size: 14px;
  text-decoration: none;

  transition: 0.3s ease;
}

.emergency-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
  .emergency-container {
    flex-direction: column;
    text-align: center;
  }

  .emergency-image img {
    width: 70px;
  }
}

/* Contact Section */
.contact-section {
  padding: 2rem 0;
}

.contact-section h2 {
  color: var(--color-primary);
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.map-container {
  height: 100%;
  min-height: 400px;
  border-radius: 0.5rem;
  overflow: hidden;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: space-between;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(185, 153, 115, 0.05);
  border: 1px solid rgba(185, 153, 115, 0.2);
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-card:hover {
  background: rgba(185, 153, 115, 0.1);
  transform: translateY(-2px);
}

.contact-icon {
  font-size: 2rem;
}

.contact-card h3 {
  color: var(--color-primary);
  margin-bottom: 0.25rem;
  font-size: 1.125rem;
}

.contact-card p {
  color: var(--color-black);
  font-size: 0.875rem;
}


/* Footer */
.footer {
  background: var(--color-white);
  padding: 3rem 0 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.footer-brand {
  text-align: left;
}

.footer-logo {
  height: 4rem;
  width: auto;
  margin-bottom: 0.5rem;
}

.footer-slogan {
  color: var(--color-black);
  font-size: 1.2rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(185, 153, 115, 0.1);
  color: var(--color-primary);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: scale(1.1);
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin: 2rem 0;
}

.footer-bottom {
  text-align: center;
}

.footer-copyright {
  color: var(--color-primary);
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.footer-dev {
  color: var(--color-black);
  font-size: 0.75rem;
}

/* ===================== */
/* RESPONSIVO */
@media (max-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .card {
    flex-direction: column;
    height: auto;
  }

  .card img {
    width: 100%;
    height: 180px;
  }
}


/* SECTION ocupa toda largura */
.dentist-section {
  width: 100%;
  background: #f8f6f3;
  padding: 80px 0; /* espaço vertical */
}

/* CONTEÚDO CENTRALIZADO */
.dentist-wrapper {
  max-width: 1200px; /* limita largura */
  margin: 0 auto; /* centraliza */
  padding: 0 40px; /* espaço nas laterais */

  display: flex;
  align-items: center;
  gap: 60px;
}

/* IMAGEM */
.dentist-image {
  flex: 1;
}

.dentist-image img {
  width: 100%;
  max-width: 500px; /* impede que fique gigante demais */
  border-radius: 12px;
}

/* TEXTO */
.dentist-content {
  flex: 1;
}

.dentist-content h3 {
  font-size: 32px;
  margin-bottom: 15px;
  color: var(--color-secondary);
}

.dentist-content p {
  font-size: 18px;
  margin-bottom: 15px;
  color: #59493b;
}

.dentist-content span {
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--color-primary);
}

@media (max-width: 900px) {
  .dentist-wrapper {
    flex-direction: column;
    text-align: center;
    padding: 0 20px;
  }

  .dentist-image img {
    max-width: 350px;
  }
}

/* ===================== */
/* SEÇÃO DE SERVIÇOS */
.services {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 120px; /* espaço entre serviços */
}

.services-title {
  text-align: center;
  font-size: 32px;
  color: var(--color-white);
  margin-bottom: 60px;
}

/* ===================== */
/* SERVIÇO */
.service {
  display: flex;
  align-items: center;
  gap: 60px;

  width: 100%;
  max-width: 1200px;
  margin: 0 auto;

  position: relative; /* importante */
}

/* ALTERNÂNCIA AUTOMÁTICA */
.service:nth-child(even) {
  flex-direction: row-reverse;
}

/* ===================== */
/* IMAGEM PRINCIPAL */
.service-image {
  flex: 1;
}

.service-image img {
  width: 100%;
  max-width: 520px;
  height: auto;

  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* ===================== */
/* CONTEÚDO */
.service-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.service-content h3 {
  font-size: 24px;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.service-content p {
  color: var(--color-black);
  opacity: 0.9;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* ===================== */
/* ANTES E DEPOIS */
.before-after {
  display: flex;
  gap: 16px;
}

.before-after img {
  width: 100%;
  max-width: 200px;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid var(--color-primary);
}

/* ===================== */
/* RESPONSIVO */
@media (max-width: 768px) {
  .service {
    flex-direction: column;
  }

  .service:nth-child(even) {
    flex-direction: column;
  }

  .service-image img {
    max-width: 100%;
  }
  .before-after {
    justify-content: center;
  }
}

/* ===================== */
/* ANIMAÇÕES DE SCROLL */
.animate-fade,
.animate-service {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Serviços alternados */
.service.animate-service {
  transform: translateX(-60px);
}

.service:nth-child(even).animate-service {
  transform: translateX(60px);
}

/* Ativo no scroll */
.animate-active {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

/* Imagem principal */
.service-image img {
  transition: transform 0.6s ease;
}

.animate-active .service-image img {
  transform: scale(1.03);
}

.section-title {
  text-align: center;
  font-size: 50px;
  font-weight: 500;

  color: var(--color-primary);

  margin-bottom: 5px;
  letter-spacing: 1px;
}

/* Versão mobile */
@media (max-width: 768px) {
  .section-title {
    font-size: 28px;
    margin-bottom: 50px;
  }
}

.before-after {
  display: flex;
  gap: 14px;
  margin-top: 12px;
}

.ba-item {
  position: relative;
  width: 120px;
  height: 80px;
  overflow: hidden;
  border-radius: 10px;
}

.ba-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Label */
.ba-item::after {
  content: attr(data-label);
  position: absolute;
  top: 4px;
  left: 4px;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 6px;

  background: rgba(0, 0, 0, 0.6);
  color: #fff;
}

@media (max-width: 768px) {
  .before-after {
    justify-content: center;
  }
}

