:root {
  --color-blue-dark: #0B2248;
  --color-brown-dark: #835321;
  --color-gold: #A67D55;
  --color-beige: #F1D7BD;
  --color-white: #ffffff;
  --color-light-gray: #f9f9f9;
  --font-main: 'Montserrat', sans-serif;
  --font-display: 'Playfair Display', serif;
}

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

body {
  font-family: var(--font-main);
  color: #333;
  line-height: 1.6;
  background-color: var(--color-white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}

/* Header */
.header {
  background-color: var(--color-blue-dark);
  padding: 16px 0;
  color: var(--color-white);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo-container {
  flex-shrink: 0;
}

.logo {
  height: 80px; /* Aumentado para melhor visibilidade */
  width: auto;
  display: block;
}

.header-address-container {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 16px;
}

.header-address-container .icon-location {
  color: var(--color-white);
  flex-shrink: 0; /* Impede que o ícone encolha */
}

.header-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.header-text strong {
  font-size: 1.1rem; /* Reduzido levemente */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.header-text span {
  font-size: 0.85rem; /* Reduzido para ficar mais discreto */
  font-weight: 400;
  opacity: 0.9;
  display: block; /* Garante quebras de linha se necessário */
}

/* Hero */
.hero {
  background-color: var(--color-white);
  padding: 32px 0 0 0;
  position: relative;
  overflow: hidden;
  /* Garante que o hero ocupe pelo menos a altura da tela menos o cabeçalho */
  min-height: calc(100vh - 112px); 
  display: flex;
  flex-direction: column;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background-image: url('bg-watermark.png');
  background-repeat: repeat;
  background-size: 180px;
  opacity: 0.12;
  transform: rotate(-15deg);
  z-index: 0;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  position: relative;
  z-index: 1;
  flex-grow: 1; /* Permite expandir para preencher o espaço vertical */
}

.hero-left {
  text-align: left;
  padding-bottom: 32px;
}

/* Hero Typography Classes (New) */
.hero-tagline {
  color: var(--color-gold);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--color-blue-dark);
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.5;
  margin-bottom: 32px;
  color: #555;
}

.hero-right {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.dentist-photo {
  max-width: 100%;
  max-height: 80vh; /* Permite crescer mais para ocupar a tela */
  width: auto;
  height: auto;
  position: relative;
  z-index: 2;
  margin-bottom: -4px;
  object-fit: contain;
  align-self: flex-end; /* Garante que fique alinhado na base */
}

.watermark-bg {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  max-width: 500px;
  opacity: 0.3;
  z-index: -1;
  pointer-events: none;
}

.hero-footer-scrolling {
  width: 100%;
  background-color: var(--color-blue-dark);
  height: 48px;
  margin-top: -1px; /* Avoid gap */
  overflow: hidden;
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
}

.scrolling-track {
  display: flex;
  width: max-content;
  animation: scroll-left 40s linear infinite;
}

.scrolling-text {
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.scrolling-text span {
  color: var(--color-white);
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 3px;
  padding: 0 24px;
  text-transform: uppercase;
  display: inline-block;
  line-height: 48px;
}

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Buttons */
.cta-whatsapp {
  display: inline-flex;
  align-items: center;
  background-color: #25D366;
  color: white;
  padding: 10px 20px; /* Reduzido levemente */
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem; /* Reduzido de 1.1rem */
  transition: transform 0.2s, background-color 0.2s;
}

.cta-whatsapp:hover {
  transform: scale(1.05);
  background-color: #1ebc57;
}

.cta-whatsapp i {
  margin-right: 8px;
  font-size: 1.4rem;
}

/* Sections */
.section {
  padding: 64px 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--color-blue-dark);
  text-align: center;
  margin-bottom: 48px;
}

/* Carousel Generic */
.carousel {
  position: relative;
  width: 100%;
  max-width: 100%; /* Permite ocupar toda a largura do container pai */
  margin: 0 auto;
  overflow: visible; /* Permite ver os botões fora se necessário, mas track tem overflow hidden */
}

.carousel-track-container {
  overflow: hidden;
  margin: 0; /* Remove margem lateral para aproveitar 100% da largura */
  width: 100%;
}

.carousel-track {
  display: flex;
  list-style: none;
  transition: transform 0.4s ease-in-out;
  padding: 0;
}

.carousel-item {
  min-width: unset;
  flex: 0 0 50%; /* Desktop: 50% de largura */
  max-width: 50%;
  padding: 0 8px; /* Padding reduzido entre itens */
  box-sizing: border-box;
  display: flex;
  justify-content: center;
}

.result-img, .testimonial-img {
  width: 100%;
  height: auto;
  max-width: none; /* Remove limite de pixel para preencher o espaço disponível */
  border-radius: 8px;
  object-fit: cover; /* Garante que preencha bem */
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8); /* Fundo semi-transparente para legibilidade sobre imagem */
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--color-blue-dark);
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.carousel-btn.prev { left: 16px; }
.carousel-btn.next { right: 16px; }

/* Benefits Section */
.benefits-section {
  padding: 80px 0;
  background-color: var(--color-white); /* Fundo branco padrão */
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.benefit-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 24px;
  height: 100%;
}

.benefit-icon {
  font-size: 3.5rem;
  color: var(--color-blue-dark); /* Azul da paleta */
  margin-bottom: 24px;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-blue-dark); /* Azul da paleta */
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 16px;
}

.benefit-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background-color: var(--color-blue-dark);
}

.benefit-text {
  font-family: var(--font-main); /* Montserrat */
  font-size: 1rem;
  line-height: 1.6;
  color: #666;
}

/* Transform Section Specifics */
.transform-section {
  background-color: var(--color-white); /* Alterado para branco padrão conforme pedido */
}

.case-card-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

.result-img {
  max-width: 85%; /* Aumentado de 45% para 85% */
  max-height: 700px; /* Aumentado de 500px para 700px */
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  object-fit: contain;
}

.transform-content {
  max-width: 800px;
  margin: 48px auto 0;
  text-align: center;
}

.final-text {
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--color-blue-dark);
  margin-top: 16px;
}

.transform-cta {
  margin-top: 32px;
}

/* About Service Section */
.about-service-section {
  background-color: var(--color-white);
  padding: 80px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-image-container {
  display: flex;
  justify-content: center;
  position: relative;
}

.about-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  /* Efeito de sombra suave para destacar a imagem no fundo branco */
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
}

.about-content {
  text-align: left;
  background-color: var(--color-blue-dark);
  padding: 48px;
  border-radius: 24px;
  color: var(--color-white);
}

.about-title {
  color: var(--color-white);
  text-align: left;
  margin-bottom: 48px;
  white-space: nowrap;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.feature-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.feature-icon-wrapper {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  background-color: rgba(255, 255, 255, 0.1); /* Translúcido para fundo azul */
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white); /* Alterado para branco conforme pedido */
  transition: transform 0.3s ease, background-color 0.3s;
}

.feature-item:hover .feature-icon-wrapper {
  transform: scale(1.05);
  background-color: rgba(255, 255, 255, 0.2);
}

.feature-svg {
  width: 28px;
  height: 28px;
}

.feature-info h3 {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-white);
  margin-bottom: 8px;
}

.feature-info p {
  font-family: var(--font-main);
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

.about-cta {
  margin-top: 48px;
}

/* Testimonials Section */
.testimonials-section {
  background-color: var(--color-blue-dark);
  color: var(--color-white);
  padding: 32px 0;
  position: relative;
  overflow: hidden;
}

.testimonials-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background-image: url('icone_branco_1_-removebg-preview.webp');
  background-repeat: repeat;
  background-size: 150px; /* Tamanho ajustado para o ícone */
  opacity: 0.05; /* Bem sutil sobre o azul escuro */
  transform: rotate(-15deg);
  z-index: 0;
  pointer-events: none;
}

.testimonials-section .container {
  position: relative;
  z-index: 1;
  max-width: 98vw; /* Expandido para quase largura total da tela */
  padding: 0; /* Remove padding para maximizar espaço */
}

.testimonials-section .section-title {
  color: var(--color-white);
  margin-bottom: 24px;
  /* Mantém o título centralizado e não tão largo quanto o carrossel */
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 16px;
}

.testimonials-section .carousel-btn {
  color: var(--color-white);
}

.testimonials-section .google-rating-text {
  color: var(--color-white);
}

.testimonial-pair {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.testimonial-img {
  max-width: 100%; /* Garante que use todo o espaço disponível na célula do grid/flex */
  border-radius: 0;
  box-shadow: none;
}

.google-rating-container {
  text-align: center;
  margin-top: 0;
  transform: translateY(-8px); /* Sobe um pouco visualmente para aproximar mais */
  font-size: 1rem;
}

/* WhatsApp Short Section */
.whatsapp-cta-section {
  background-color: var(--color-light-gray);
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.whatsapp-cta-center {
  margin-top: 64px;
  text-align: center;
}

/* FAQ Section */
.faq-section {
  padding: 64px 0;
  text-align: left;
}

.faq-title {
  color: var(--color-blue-dark);
  font-weight: 600;
  margin-bottom: 48px;
  font-size: 2rem;
  text-transform: capitalize;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid #e0e0e0;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  text-align: left;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  color: #999; /* Cinza claro para perguntas inativas */
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: color 0.3s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.faq-question:hover,
.faq-question.active {
  color: var(--color-blue-dark); /* Azul escuro ativo */
}

.faq-question .arrow-icon {
  margin-right: 16px;
  font-size: 0.8rem;
  transition: transform 0.3s ease;
  color: var(--color-blue-dark); /* Azul escuro */
}

.faq-question.active .arrow-icon {
  transform: rotate(90deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-answer p {
  padding-bottom: 24px;
  padding-left: 28px; /* Alinhado com o texto da pergunta */
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Location Section (Now Footer) */
.location-section {
  background: linear-gradient(170deg, #835321 60%, #A67D55 100%);
  color: var(--color-white);
  padding: 32px 0 64px 0; /* Aumentado padding inferior para 64px para evitar cortes */
}

.location-title {
  color: var(--color-white);
  text-align: left;
  margin-bottom: 16px;
  font-size: 1.8rem;
}

.location-text {
  line-height: 1.5;
  margin-bottom: 16px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}

.map-wrapper iframe {
  width: 100%;
  height: 250px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Footer Branding inside Location Section */
.footer-branding {
  text-align: center;
  margin-top: 48px; /* Aumentado espaçamento superior */
  padding: 0 24px; /* Adicionado padding lateral para evitar corte nas bordas */
}

.footer-logo {
  height: 40px;
  width: auto;
  display: block;
  margin: 0 auto 16px auto; /* Aumentado espaçamento abaixo da logo */
}

.footer-branding span {
  font-size: 0.85rem; /* Reduzido levemente para caber melhor em mobile */
  letter-spacing: 0.5px;
  line-height: 1.5;
  display: block; /* Garante quebras de linha limpas */
}

/* 
   ==========================================================================
   RESPONSIVE DESIGN (MOBILE & TABLET)
   ==========================================================================
*/

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .about-image-container {
    order: 1;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .about-content {
    order: 2;
  }
  
  .about-title {
    white-space: normal; /* Permite quebra em mobile */
  }
}

@media (max-width: 768px) {
  /* Header Mobile */
  .header {
    padding: 12px 0;
  }

  .header-content {
    flex-direction: column;
    gap: 16px;
  }

  .logo {
    height: 100px; /* Logo aumentada em mobile */
  }

  .header-address-container {
    text-align: center;
    justify-content: center;
    width: 100%;
    transform: scale(0.9); /* Reduz visualmente todo o bloco de endereço */
    margin-top: -8px; /* Compensa o espaço extra criado pelo scale */
  }

  .header-address-container .icon-location {
    width: 24px;
    height: 24px;
  }
  
  .header-text strong {
    font-size: 0.9rem; /* Reduzido */
  }
  
  .header-text span {
    font-size: 0.75rem; /* Reduzido */
  }

  /* Hero Mobile */
  .hero {
    min-height: auto; /* Altura automática em mobile */
    padding-top: 24px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  
  .hero-left {
    padding-bottom: 0;
    order: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center; /* Centraliza todo o texto */
  }

  .cta-whatsapp {
    /* Garante centralização se comportar como bloco ou flex item */
    margin: 0 auto; 
  }

  .hero-tagline {
    font-size: 0.9rem;
    margin-bottom: 12px;
  }

  .hero-title {
    font-size: 1.75rem; /* Levemente menor para ganhar espaço */
    margin-bottom: 12px;
  }

  .hero-description {
    font-size: 0.95rem;
    margin-bottom: 20px;
    padding: 0 16px; /* Evita que o texto toque as bordas da tela */
  }
  
  .hero-right {
    order: 2;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-bottom: -1px; /* Remove qualquer gap com a faixa azul */
  }

  .dentist-photo {
    max-height: 550px; /* Aumentado significativamente para mostrar mais do corpo */
    width: auto;
    max-width: 100%;
    object-position: bottom; /* Garante alinhamento pela base */
  }

  /* Benefits Mobile */
  .benefits-section {
    padding: 48px 0;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .benefit-item {
    padding: 0;
  }

  .benefit-icon {
    width: 60px; /* Reduzido de 80px */
    height: 60px;
    margin-bottom: 16px;
  }

  .benefit-icon svg {
    width: 40px; /* Reduzido visualmente o ícone */
    height: 40px;
  }

  /* Transform & Carousel Mobile */
  .section {
    padding: 48px 0;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 32px;
  }
  
  .result-img {
    max-width: 100%; /* Imagem ocupa largura total */
    max-height: 500px; /* Mantém limite de altura original no mobile */
  }

  /* Carousel Mobile */
  .carousel-item {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .carousel-track-container {
    margin: 0 32px; /* Menos margem lateral para botões */
  }

  /* About Service Mobile */
  .about-service-section {
    padding: 48px 0;
  }

  .about-content {
    padding: 32px 24px; /* Padding reduzido */
  }

  .about-title {
    font-size: 1.8rem;
    margin-bottom: 32px;
    text-align: center;
  }

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

  .feature-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }

  .feature-icon-wrapper {
    width: 56px;
    height: 56px;
  }

  .feature-info h3 {
    margin-bottom: 4px;
  }

  /* Testimonials Mobile */
  .testimonials-section {
    width: 100%;
    overflow: hidden; /* Evita faixa branca por overflow */
  }

  .testimonials-section .container {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }

  .carousel-track-container {
    margin: 0; /* Remove margem para usar largura total */
    width: 100%;
    overflow: hidden;
  }

  .carousel-item {
    padding: 0 40px; /* Espaço para os botões não ficarem em cima do conteúdo */
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .testimonial-img {
    max-width: 100%;
    width: auto; /* Permite tamanho natural limitado pelo container */
    height: auto;
    display: block;
    margin: 0 auto;
  }

  /* FAQ Mobile */
  .faq-section {
    padding: 48px 0;
  }

  .faq-title {
    font-size: 1.8rem;
    margin-bottom: 32px;
  }

  /* Footer / Location Mobile */
  .location-section {
    padding: 40px 0 64px 0; /* Aumentado padding inferior para mobile também */
  }

  .two-col {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .location-title {
    text-align: center;
    font-size: 1.8rem;
  }

  .map-wrapper iframe {
    height: 250px;
  }

  /* Ajuste para garantir visibilidade do rodapé */
  .footer-branding {
    margin-top: 32px;
    padding: 0 16px;
    display: block; /* Garante que seja exibido */
  }

  .footer-branding span {
    font-size: 1rem; /* Aumentado para 1rem no mobile */
  }
}

@media (max-width: 480px) {
  /* Ajustes finos para telas muito pequenas */
  .hero-title {
    font-size: 1.8rem;
  }

  .carousel-btn {
    padding: 4px;
    font-size: 1.5rem;
  }


  .header-address-container {
    flex-direction: row; /* Mantém ícone e texto lado a lado se possível, ou stack */
    font-size: 0.9rem;
  }
  
  .header-text strong {
    font-size: 1rem;
  }
}
