/* ===============================================
   CONFIGURAÇÕES GLOBAIS E VARIÁVEIS
   =============================================== */
:root {
  --cor-cinza-escuro: #505050;
  --cor-cinza-claro: #e5e5e5;
  --cor-laranja: #df6a19;
  --cor-verde-claro: #b9cb5f;
  --bs-primary-rgb: 223, 106, 19; /* Laranja para componentes Bootstrap */
  --bs-secondary-rgb: 185, 203, 95;/* Verde para componentes Bootstrap */
}

body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  color: #333;
  line-height: 1.7;
}

html {
  scroll-padding-top: 80px;
  scroll-behavior: smooth;
}

/* ===============================================
   TIPOGRAFIA E BOTÕES
   =============================================== */
.titulo-secao {
  font-weight: 700;
  color: var(--cor-cinza-escuro);
  font-size: clamp(2rem, 5vw, 2.8rem); /* Fonte responsiva */
  margin-bottom: 1rem;
}

.btn {
  padding: 12px 30px;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-instagram {
  background-color: var(--cor-laranja) !important;
  color: #fff !important;
  border: none;
}
.btn-instagram:hover {
  background-color: #c85e16 !important;
}

/* ===============================================
   NAVEGAÇÃO (NAVBAR)
   =============================================== */
.custom-nav {
  padding: 0.8rem 0;
  background-color: transparent;
  transition: background-color 0.4s ease, padding 0.4s ease;
}

.custom-nav.scrolled {
  background-color: var(--cor-cinza-escuro);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
}

.logo {
  width: 150px;
  height: auto;
  transition: width 0.4s ease;
}

.custom-nav.scrolled .logo {
  width: 130px;
}

.nav-link {
  font-size: 1rem;
  font-weight: 500;
  color: #fff !important;
  position: relative;
  padding: 0.5rem 1rem !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 1rem;
  bottom: 0;
  height: 2px;
  width: 0;
  background-color: var(--cor-verde-claro);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: calc(100% - 2rem);
}

.custom-toggler { border: none !important; }
.custom-toggler .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.navbar-collapse {
  background-color: var(--cor-cinza-escuro);
  padding: 1rem;
  border-radius: 8px;
}
@media (min-width: 992px) {
  .navbar-collapse {
    background-color: transparent;
    padding: 0;
  }
}

/* ===============================================
   SEÇÃO HERO
   =============================================== */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('foto1.jpg') no-repeat center center;
  background-size: cover;
  position: relative;
}

/* ===============================================
   GALERIA E LIGHTBOX
   =============================================== */
.gallery-item {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  position: relative;
}
.gallery-item img {
  transition: transform 0.4s ease;
}
.gallery-item:hover img {
  transform: scale(1.05);
}
.gallery-item::after {
  content: '\f00e'; /* Ícone de lupa do Font Awesome */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 2rem;
  opacity: 0;
  transition: opacity 0.4s ease;
  background-color: rgba(0,0,0,0.5);
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.gallery-item:hover::after {
  opacity: 1;
}

#gallery-modal .modal-content {
  background-color: transparent;
  border: none;
}
#gallery-modal .modal-body {
  padding: 0;
}
#gallery-modal .btn-close {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 10;
  filter: invert(1) grayscale(100%) brightness(200%);
}

/* --- Thumbnails sempre quadrados --------------------- */
.gallery-item {
  /* Mantém tudo o que já existia … */
  display: block;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  position: relative;

  /* NOVO: força proporção 1:1 (quadrado) */
  aspect-ratio: 1 / 1;      /* navegadores modernos */

  /* Fallback para navegadores antigos ↓ */
  /* width: 100%;            já é 100% pela grid/col      */
  /* padding-top: 100%;      descomente se precisar do hack */
}

/* Faz a imagem preencher o quadrado sem distorcer */
.gallery-item img {
  position: absolute;        /* cobre todo o bloco */
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;         /* centraliza e corta o excesso */
  transition: transform .4s ease;
}


/* ===============================================
   DEPOIMENTOS
   =============================================== */
.depoimentos-bg {
  background-color: var(--cor-cinza-escuro);
}

.card-depoimento {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  height: 100%;
  transition: background-color 0.3s ease;
}
.card-depoimento:hover {
  background-color: rgba(255, 255, 255, 0.1);
}
.card-depoimento footer {
  font-weight: 600;
  color: var(--cor-verde-claro);
}

/* ===============================================
   FORMULÁRIO
   =============================================== */
.form-label {
  font-weight: 600;
  color: var(--cor-cinza-escuro);
}
.form-control {
  background-color: #f8f9fa;
  border: 1px solid #c2c2c2;
  padding: 12px 15px;
  border-radius: 8px;
}
.form-control:focus {
  background-color: #fff;
  border-color: var(--cor-verde-claro);
  box-shadow: 0 0 0 0.25rem rgba(var(--bs-secondary-rgb), 0.25);
}

/* ===============================================
   FOOTER
   =============================================== */
.footer-bg {
  background-color: var(--cor-cinza-escuro);
}
.footer-logo {
  max-width: 150px;
}

.footer-links a, .footer-contact a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease, padding-left 0.3s ease;
  display: inline-block;
}
.footer-links a:hover, .footer-contact a:hover {
  color: #fff;
  padding-left: 5px;
}
.footer-contact li {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}
.footer-contact i {
  color: var(--cor-verde-claro);
  margin-right: 12px;
  width: 20px;
  text-align: center;
}

.whatsapp-float {
      position: fixed;
      width: 60px;
      height: 60px;
      bottom: 24px;
      right: 24px;
      background-color: #25D366;
      color: #fff;
      border-radius: 50%;
      display: flex;
      justify-content: center;
      align-items: center;
      box-shadow: 0 4px 16px rgba(0,0,0,0.2);
      z-index: 1000;
      text-decoration: none;
      transition: box-shadow 0.2s, transform 0.2s;
    }
    .whatsapp-float:hover {
      box-shadow: 0 6px 24px rgba(0,0,0,0.3);
      transform: scale(1.07);
    }
    .whatsapp-float img {
      width: 32px;
      height: 32px;
      display: block;
    }