/* --- GERAL E VARIÁVEIS --- */
:root {
  --color-white: #ffffff;
  --color-light-bg: #f9f9f9;
  --color-beige: #c8a97e;
  --color-dark-beige: #b1946a;
  --color-black-matte: #2d2d2d;
  --color-text: #555555;

  --font-primary: "Montserrat", sans-serif;
  --font-secondary: "Lato", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-secondary);
  background-color: var(--color-white);
  color: var(--color-text);
  line-height: 1.6;
  position: relative;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- COMPONENTES REUTILIZÁVEIS --- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-primary {
  background-color: var(--color-beige);
  color: var(--color-black-matte);
}

.btn-primary:hover {
  background-color: var(--color-dark-beige);
  transform: translateY(-2px);
}

.section-padded {
  padding: 80px 0;
}

.section-title {
  font-family: var(--font-primary);
  font-size: 2.5rem;
  color: var(--color-black-matte);
  margin-bottom: 40px;
}

.text-center {
  text-align: center;
}
.bg-light {
  background-color: var(--color-light-bg);
}
.bg-dark {
  background-color: rgb(177, 148, 106);
  --var(--color-black-matte);
}
.text-light {
  color: var(--color-black-matte);
}

.bg-beige-stylized {
  background-color: #f7eedeff; /* Um tom de bege bem claro para não cansar a vista */

  /* A linha abaixo cria um padrão de pontos repetidos */
  background-image: radial-gradient(
    rgba(202, 169, 126, 0.25) 1px,
    transparent 1.5px
  );

  /* A linha abaixo controla o espaçamento entre os pontos */
  background-size: 15px 15px;

  border-radius: 10px;
  margin: 20px 20px;
}

/* --- CABEÇALHO E NAVEGAÇÃO --- */
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #eee;
  transition: background-color 0.3s ease;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.nav-logo img {
  height: 50px; /* Ajuste o tamanho da sua logo */
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-link {
  text-decoration: none;
  color: var(--color-black-matte);
  font-weight: 600;
  font-family: var(--font-primary);
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--color-beige);
}

.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--color-black-matte);
  transition: all 0.3s ease-in-out;
}

.nav-btn {
  display: block;
}

/* --- SEÇÃO HERO --- */
.hero-section {
  background: url("imagens/fundo.jpg") no-repeat center center/cover;
  height: 100vh;
  display: flex;
  --align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-black-matte);
  border-radius: 10px;
  padding-top: 30vh;
}

.hero-content {
  max-width: 700px;
}

.hero-logo {
  height: 120px;
  margin-bottom: 20px;
}

.hero-section h1 {
  font-family: var(--font-primary);
  font-size: 3rem;
  margin-bottom: 40px;
}

.hero-section p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

/* --- SEÇÃO SOBRE --- */
.content-section {
  display: flex;
  align-items: center;
  gap: 60px;
}

.image-content img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.text-content p {
  margin-bottom: 15px;
}

/* --- SEÇÃO SERVIÇOS --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  text-align: center;
}

.service-card {
  background: var(--color-white);
  padding: 40px 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-icon {
  font-size: 3rem;
  color: var(--color-beige);
  margin-bottom: 20px;
}

.service-card h3 {
  font-family: var(--font-primary);
  color: var(--color-black-matte);
  margin-bottom: 15px;
}

/* --- SEÇÃO DEPOIMENTOS --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.testimonial-card {
  background-color: var(--color-light-bg);
  border-left: 5px solid var(--color-beige);
  padding: 30px;
  border-radius: 5px;
}

.testimonial-card p {
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-card h4 {
  font-family: var(--font-primary);
  color: var(--color-black-matte);
}

/* --- SEÇÃO CONTATO --- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  background: var(--color-white);
  padding: 40px;
  border-radius: 10px;
}

.contact-info h3,
.contact-form h3 {
  font-family: var(--font-primary);
  color: var(--color-black-matte);
  margin-bottom: 20px;
}

.contact-info p {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
}

.map-container {
  margin-top: 20px;
  border-radius: 5px;
  overflow: hidden;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: var(--color-text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: var(--font-secondary);
}

/* --- RODAPÉ --- */
.footer {
  background-color: var(--color-black-matte);
  color: #ccc;
  padding: 30px 0;
}

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

.social-links a {
  color: var(--color-white);
  font-size: 1.5rem;
  margin-left: 15px;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--color-beige);
}

/* --- BOTÃO FLUTUANTE --- */
.whatsapp-flutuante {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: white;
  padding: 12px 20px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-primary);
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 999;
  transition: transform 0.3s ease;
}
.whatsapp-flutuante:hover {
  transform: scale(1.05);
}
.whatsapp-flutuante i {
  font-size: 1.8rem;
}

.whatsapp-flutuante.parar-flutuacao {
  position: absolute; /* Deixa de ser fixo e passa a rolar com a página */
  transform: translateY(0); /* Reseta qualquer transformação */
}

/* --- ANIMAÇÕES DE ROLAGEM --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 992px) {
  .services-grid,
  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
  .hero-section h1 {
    font-size: 2.2rem;
  }

  .hero-section .hero-content {
    transform: translateY(-12vh);
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 80px;
    flex-direction: column;
    background-color: var(--color-white);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }
  .nav-menu.active {
    left: 0;
  }
  .nav-item {
    margin: 16px 0;
  }
  .hamburger {
    display: block;
  }
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-btn {
    display: none;
  }

  .content-section {
    flex-direction: column;
    text-align: center;
  }
  .image-content {
    margin-bottom: 30px;
  }

  .services-grid,
  .testimonials-grid,
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

/* --- SEÇÃO DE DÚVIDAS (FAQ) --- */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  border-top: 1px solid #ddd;
}

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

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  cursor: pointer;
}

.faq-question h3 {
  font-family: var(--font-primary);
  color: var(--color-black-matte);
  font-size: 1.2rem;
  margin: 0;
}

.faq-question i {
  color: var(--color-beige);
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-answer p {
  padding-bottom: 20px;
  margin: 0;
  line-height: 1.7;
}

/* Estilos para quando o item está ativo (aberto) */
.faq-item.active .faq-answer {
  max-height: 200px; /* Um valor alto o suficiente para caber a resposta */
}

.faq-item.active .faq-question i {
  transform: rotate(45deg); /* Gira o ícone de '+' para um 'x' */
}

/* --- CARROSSEL DE FOTOS (CONTATO) --- */
.photo-carousel {
  position: relative; /* Necessário para posicionar os botões */
  overflow: hidden; /* Garante que nada saia dos limites */
}

.photo-carousel h3 {
  font-family: var(--font-primary);
  color: var(--color-black-matte);
  margin-bottom: 20px;
}

.carousel-wrapper {
  overflow: hidden; /* Esconde os slides que não estão visíveis */
  border-radius: 8px;
}

.carousel-container {
  display: flex;
  transition: transform 0.5s ease-in-out; /* Animação de transição */
}

.carousel-item {
  flex: 1 0 100%; /* Cada item ocupa 100% da largura */
  box-sizing: border-box;
}

.carousel-item img {
  width: 100%;
  display: block;
  aspect-ratio: 21 / 9; /* Proporção da imagem */
  object-fit: cover;
}

/* Estilo dos botões (Setas) */
.carousel-button {
  position: absolute;
  top: 55%; /* Centraliza verticalmente */
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  z-index: 10;
  transition: background-color 0.3s ease;
}

.carousel-button:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.carousel-button.prev {
  left: 10px;
}

.carousel-button.next {
  right: 10px;
}

/* Estilo dos indicadores (Bolinhas) */
.carousel-indicators {
  text-align: center;
  padding-top: 15px;
}

.indicator-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 5px;
  background-color: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.indicator-dot.active {
  background-color: var(--color-beige);
}

/* --- ESTILOS DA PÁGINA DE BLOG / INSTAGRAM (VERSÃO TÍTULO VISÍVEL) --- */

.page-title-section {
  padding: 140px 0 60px 0;
  background-color: var(--color-light-bg);
  text-align: center;
}

.page-subtitle {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--color-text);
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.post-card {
  display: block;
  position: relative; /* Essencial para posicionar o título sobre a imagem */
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  aspect-ratio: 1 / 1;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.post-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

/* Opcional: Efeito de zoom na imagem ao passar o mouse */
.post-card:hover img {
  transform: scale(1.1);
}

/* NOVO: Estilo para o título que fica sempre visível */
.post-title {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  margin: 0;
  padding: 20px 15px 15px;
  font-family: var(--font-primary);
  font-size: 1.1rem;
  line-height: 1.3;
  color: var(--color-white);
  /* Gradiente para garantir que o texto seja legível em qualquer foto */
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  /* Garante que o título não seja afetado por outros efeitos de transição */
  transition: none;
}

/* O overlay agora fica sobre o título no hover */
.post-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(45, 45, 45, 0.75);
  color: var(--color-white);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.post-card:hover .post-overlay {
  opacity: 1;
}

.post-overlay p {
  font-family: var(--font-secondary);
  font-size: 1rem;
  margin: 0;
  padding: 8px 15px;
  border-radius: 50px;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
}

.post-overlay i {
  margin-left: 8px;
  font-size: 1.3rem;
}

/* --- Ajustes de Responsividade para a Galeria --- */

@media (max-width: 992px) {
  .instagram-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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