
/* Reset e configurações base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #fff;
  color: #333;
  text-align: center;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Top bar melhorada */
.top-bar {
  background: linear-gradient(135deg, #2C6EBF 0%, #1e4a8a 100%);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 20px;
  flex-wrap: wrap;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.top-bar .top-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  font-size: 14px;
}

.top-bar .top-info span {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

/* Botão de orçamento */
.btn-orcamento {
  background: var(--gradient-green) !important;
  color: white !important;
  border: none !important;
  padding: 12px 24px !important;
  cursor: pointer !important;
  font-weight: 600 !important;
  border-radius: 25px !important;
  transition: all 0.3s ease !important;
  text-decoration: none !important;
  display: inline-block !important;
  flex-shrink: 0 !important;
}

.btn-orcamento:hover {
  background: linear-gradient(135deg, #68A040 0%, #5a8a35 100%) !important;
  box-shadow: 0 6px 20px rgba(118, 185, 71, 0.4) !important;
}

/* Hover com transform apenas no desktop */
@media (min-width: 769px) {
  .btn-orcamento:hover {
    transform: translateY(-2px) !important;
  }
}

/* Menu principal */
.menu {
  background: var(--gradient-blue);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm) var(--spacing-lg);
  flex-wrap: wrap;
  gap: var(--spacing-md);
  position: relative;
  box-shadow: var(--shadow-medium);
  min-height: 80px;
}

/* Logo */
.menu .logo .logo-img-redonda {
  border: none; /* Garante que não há borda */
  border-radius: 0; /* Remove qualquer arredondamento, tornando-a quadrada/retangular */
  width: 100px; /* Define uma largura fixa (ajuste conforme necessário) */
  height: 100px; /* Define a mesma altura da largura para que fique quadrada */
  object-fit: contain; /* Garante que a imagem se ajuste dentro das dimensões sem ser cortada */
  max-width: 100%; /* Garante que não exceda o contêiner pai */
  box-shadow: none; /* Remove o quadrado atrás da logo */
  background: none; /* Remove qualquer fundo */
  transition: none; /* Remove transições */
}

.menu .logo .logo-img-redonda:hover {
  transform: none; /* Remove efeito de hover */
  box-shadow: none; /* Remove sombra no hover */
}

.menu .logo {
  height: 120px; /* Ajuste a altura do contêiner 'a' para corresponder à altura da logo */
  width: 120px; /* Ajuste a largura do contêiner 'a' para corresponder à largura da logo */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden; /* Use hidden para cortar o que exceder, se desejar um corte exato no quadrado */
  color: var(--white);
  font-size: 24px;
  font-weight: bold;
  text-decoration: none;
  flex-shrink: 0; /* Impede que a logo encolha */
}

/* Navegação */
.menu ul {
  display: flex;
  list-style: none;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;
  flex: 1;
  justify-content: center;
}

.menu ul li a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-fast);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-xl);
  position: relative;
  font-size: 19px;
}

.menu ul li a:hover {
  color: var(--primary-green);
  background: rgba(118, 185, 71, 0.1);
}
/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dropdown-toggle i {
  margin-left: 5px;
  font-size: 0.8em;
  transition: transform 0.3s ease;
}

.dropdown-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s ease;
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 10px;
  background: var(--gradient-blue);
  list-style: none;
  padding: 15px 0;
  min-width: 250px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.dropdown-menu li a {
  padding: 12px 25px;
  display: block;
  white-space: nowrap;
  text-align: left;
  color: #fff;
  transition: all 0.3s ease;
  border-radius: 0;
  margin: 0;
  font-size: 16px;
}

.dropdown-menu li a:hover {
  background: var(--gradient-green);
  color: #fff;
  transform: translateX(5px);
}

.dropdown:hover .dropdown-menu,
.dropdown .dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown:hover .dropdown-toggle i,
.dropdown .dropdown-toggle.open i {
  transform: rotate(180deg);
}

/* Menu mobile */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  gap: 4px;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* SLIDESHOW */
.slideshow {
  position: relative;
  height: 90vh;
  overflow: hidden;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s;
}

.slide.active {
  opacity: 1;
}

.overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  width: 90%;
  max-width: 800px;
  padding: 40px 20px;
  /* A linha abaixo foi removida para tirar o fundo preto */
  /* background: rgba(0, 0, 0, 0.6); */
  border-radius: 10px;
    z-index: 5;
}

.overlay h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.overlay p {
  margin-bottom: 25px;
  font-size: 1.1rem;
}

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

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.dot.active {
  background: #76B947;
}

/* BOTÕES */
/* BOTÕES */
.btn,
.btn-quote {
  display: inline-block;
  background: transparent;
  color: #fff;
  padding: 14px 28px;
  border: 2px solid #fff;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.2s;
  text-decoration: none;
}

.btn:hover,
.btn-quote:hover {
  background: #76B947;
  color: #fff;
  border-color: #76B947;
  transform: translateY(-2px);
}

.btn:hover,
.btn-quote:hover {
  background: #76B947;
  color: #fff;
  transform: translateY(-2px);
}
/* GALERIA - Versão Desktop */
.gallery-section {
  padding: 60px 20px;
  text-align: center;
}

.gallery-section h2 {
  font-size: 2.2rem;
  margin-bottom: 40px;
}

.gallery-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 colunas para desktop */
  gap: 15px;
}

.gallery-images img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* COMO FUNCIONA - Versão Desktop */
.how-it-works {
  background: var(--gradient-blue);
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  color: #fff;
}

.how-it-works::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
  z-index: 1;
}

.how-it-works > * {
  position: relative;
  z-index: 2;
}

.how-it-works h2 {
  font-size: 32px;
  font-weight: 600;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
  display: inline-block;
  background: var(--gradient-green);
  padding: 15px 50px;
  border-radius: 30px;
  margin-bottom: 30px;
  box-shadow: 0 6px 25px rgba(118, 185, 71, 0.3);
  color: #fff;
}

.how-it-works p {
  color: #fff;
  font-size: 20px;
  margin-bottom: 50px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

.steps {
  max-width: 1000px; /* Versão Desktop */
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 colunas para desktop */
  gap: 30px;
}

.step {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 25px;
  border: 2px solid #76B947;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: #fff;
  text-align: left;
  transition: all 0.3s ease;
}

.step:hover {
  transform: translateY(-5px);
  background: rgba(118, 185, 71, 0.2);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.step .number {
  background: var(--gradient-green);
  color: #fff;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  margin-right: 20px;
  font-size: 20px;
  box-shadow: 0 4px 15px rgba(118, 185, 71, 0.3);
}

.step .text {
  color: #fff;
  margin: 0;
  font-size: 18px;
  font-weight: 500;
}

/* FORMULÁRIO */
/* CORREÇÃO PARA O FORMULÁRIO */

.form-section {
  /* ADICIONE AS 3 LINHAS ABAIXO: */
  display: flex;
  flex-direction: column; /* <-- Esta é a linha mais importante */
  align-items: center;

  /* Suas propriedades existentes (mantenha como estão) */
  padding: 80px 20px;
  background: var(--gradient-blue);
  text-align: center;
  color: #fff;
}

/* Garanta que o H2 também esteja centralizado (opcional, mas recomendado) */
.form-section h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.2rem;
}
.form-section form {
  max-width: 450px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: rgba(255, 255, 255, 0.05);
  padding: 25px;
  border-radius: 10px;
}

.form-group {
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #76B947;
  font-weight: 600;
}

.form-section input,
.form-section textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid #555;
  border-radius: 8px;
  font-size: 1rem;
}

.form-section input:focus,
.form-section textarea:focus {
  border-color: #76B947;
  outline: none;
  box-shadow: 0 0 8px rgba(118, 185, 71, 0.6);
}

/* RODAPÉ */
.footer {
  background: var(--gradient-blue);
  color: #f4f4f4;
  padding: 40px 20px;
  text-align: center;
}

.site-footer {
  background: var(--gradient-blue);
  color: #fff;
  padding: 60px 20px 30px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.footer-logo {
  text-align: center;
  margin-bottom: 30px;
}

.footer-logo img {
  width: 180px;
  margin: 0 auto 15px;
  display: block;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.footer-logo p {
  color: #76B947;
  font-size: 18px;
  font-weight: 600;
}

.footer-menu h3,
.footer-hours h3,
.footer-contact h3 {
  color: #76B947;
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: 600;
}

.footer-menu ul {
  list-style: none;
  padding: 0;
}

.footer-menu ul li {
  margin-bottom: 12px;
}

.footer-menu ul li a {
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 5px 0;
  display: inline-block;
}

.footer-menu ul li a:hover {
  color: #76B947;
  transform: translateX(5px);
}

.footer-contact p {
  margin: 8px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 20px;
  font-size: 14px;
  color: #ccc;
}

/* Responsividade */
@media (max-width: 992px) {
  .mobile-menu-toggle {
    display: flex;
  }
  
  .menu {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
    padding: 15px 20px;
  }
  
  .menu ul {
    flex-direction: column;
    width: 100%;
    gap: 0;
    display: none;
  }
  
  .menu.mobile-open ul {
    display: flex;
  }
  
  .menu ul li {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  
  .menu ul li:last-child {
    border-bottom: none;
  }
  
  .menu ul li a {
    display: block;
    width: 100%;
    padding: 15px 20px;
    border-radius: 0;
    text-align: left;
  }
  
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    background: rgba(255,255,255,0.1);
    display: none;
  }
  
  .dropdown-menu.show {
    display: block;
  }
  
  .dropdown-menu li a {
    padding: 12px 40px;
    border-radius: 0;
    margin: 0;
  }
  
  /* FORMULÁRIO MOBILE E TABLET */
  .form-section {
    padding: 60px 15px !important;
    margin: 20px 0 !important;
  }
  
  .form-section h2 {
    font-size: 1.8rem !important;
    margin-bottom: 30px !important;
  }
  
  .form-section form {
    max-width: 100% !important;
    padding: 20px !important;
    gap: 15px !important;
  }
  
  .form-section input,
  .form-section textarea {
    padding: 12px !important;
    font-size: 0.9rem !important;
    border-radius: 6px !important;
  }
  
  .form-section button {
    padding: 14px 20px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
  }
  
  .top-bar {
    flex-direction: column;
    text-align: center;
    gap: 10px;
    padding: 15px 20px;
  }
  
  .top-bar .top-info {
    gap: 20px;
  }
  
  .benefits {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .form-section {
    margin: 40px 0;
  }
  
  form {
    padding: 30px 20px;
    gap: 15px;
  }
  
  .carousel-slide img {
    height: 300px;
  }
  
  .hero-servicos {
    padding: 60px 20px;
  }
  
  .hero-servicos h1 {
    font-size: 28px;
  }
  
  .hero-servicos p {
    font-size: 18px;
  }
  
  .servicos-oferecidos {
    padding: 60px 20px;
  }
  
  .servicos-oferecidos h2 {
    font-size: 28px;
  }
  
  .sobre-empresa {
    padding: 60px 20px;
  }
  
  .sobre-empresa h2 {
    font-size: 30px;
  }
  
  .how-it-works-section {
    padding: 60px 20px;
  }
  
  .how-it-works-section h2 {
    font-size: 28px;
  }
  
  .contact-section {
    padding: 60px 20px;
  }
  
  .contact-wrapper {
    padding: 30px 20px;
  }
  
  .site-footer {
    padding: 40px 20px 20px;
  }
}

@media (max-width: 768px) {
  form {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    padding: 30px 20px;
    gap: 15px;
    max-width: 100%;
  }
  
  .btn-submit {
    grid-column: 1 / -1;
  }
  
  /* Botão orçamento visível no mobile */
  .btn-orcamento {
    display: inline-block !important;
    position: relative !important;
    padding: 8px 16px !important;
    font-size: 12px !important;
    margin-left: auto !important;
    z-index: 1000 !important;
  }
  
  .grid-servicos {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Aplica o layout de uma coluna na galeria APENAS em telas menores */
  .gallery-images {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: auto;
  }

  /* Aplica o layout de uma coluna na seção "Como Funciona" APENAS em telas menores */
  .steps {
    grid-template-columns: 1fr;
    max-width: 600px;
  }

  .carousel-slide img {
    height: 250px;
  }
  
  .hero-servicos h1 {
    font-size: 24px;
  }
  
  .hero-servicos p {
    font-size: 16px;
  }
  
  .servicos-oferecidos h2 {
    font-size: 24px;
  }
  
  .sobre-empresa h2 {
    font-size: 26px;
  }
  
  .how-it-works-section h2 {
    font-size: 24px;
  }
  
  .contact-wrapper h2 {
    font-size: 26px;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .menu {
    padding: 15px;
  }
  
  .menu .logo .logo-img-redonda {
    height: 80px;
    width: 80px;
  }
  
  /* FORMULÁRIO MOBILE PEQUENO */
  .form-section {
    padding: 40px 10px !important;
    margin: 15px 0 !important;
  }
  
  .form-section h2 {
    font-size: 1.5rem !important;
    margin-bottom: 25px !important;
  }
  
  .form-section form {
    padding: 15px !important;
    gap: 12px !important;
    margin: 0 5px !important;
  }
  
  .form-section input,
  .form-section textarea {
    padding: 10px !important;
    font-size: 0.85rem !important;
  }
  
  .form-section button {
    padding: 12px 18px !important;
    font-size: 0.9rem !important;
  }
  
  .top-bar .top-info {
    flex-direction: column;
    gap: 10px;
  }
  
  .top-bar .top-info span {
    font-size: 13px;
  }
  
  .carousel-section {
    padding: 30px 15px;
  }
  
  .carousel-section h2 {
    font-size: 24px;
  }
  
  .carousel-slide img {
    height: 200px;
  }
  
  .form-section {
    margin: 30px 0;
    padding: 0 15px;
  }
  
  form {
    padding: 25px 15px;
    gap: 15px;
    margin: 0 10px;
  }
  
  .hero-servicos {
    padding: 50px 15px;
  }
  
  .hero-servicos h1 {
    font-size: 22px;
  }
  
  .hero-servicos p {
    font-size: 15px;
  }
  
  .servicos-oferecidos {
    padding: 50px 15px;
  }
  
  .servicos-oferecidos h2 {
    font-size: 22px;
  }
  
  .sobre-empresa {
    padding: 50px 15px;
  }
  
  .sobre-empresa h2 {
    font-size: 24px;
  }
  
  .how-it-works-section {
    padding: 50px 15px;
  }
  
  .how-it-works-section h2 {
    font-size: 22px;
  }
  
  .contact-section {
    padding: 50px 15px;
  }
  
  .contact-wrapper {
    padding: 25px 15px;
  }
  
  .contact-wrapper h2 {
    font-size: 24px;
  }
  
  .site-footer {
    padding: 30px 15px 15px;
  }
}

/* Animações */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Aplicando animações */
.card,
.servico,
.step-card {
  animation: fadeInUp 0.6s ease forwards;
}

.card:nth-child(2) {
  animation-delay: 0.2s;
}

.card:nth-child(3) {
  animation-delay: 0.4s;
}

.servico:nth-child(2) {
  animation-delay: 0.1s;
}

.servico:nth-child(3) {
  animation-delay: 0.2s;
}

.servico:nth-child(4) {
  animation-delay: 0.3s;
}

.servico:nth-child(5) {
  animation-delay: 0.4s;
}

.servico:nth-child(6) {
  animation-delay: 0.5s;
}

.step-card:nth-child(2) {
  animation-delay: 0.1s;
}

.step-card:nth-child(3) {
  animation-delay: 0.2s;
}

.step-card:nth-child(4) {
  animation-delay: 0.3s;
}

/* Melhorias de acessibilidade */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Foco visível para navegação por teclado */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #76B947;
  outline-offset: 2px;
}

/* Melhorias para leitores de tela */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #2161C9;
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 10000;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 6px;
}

/* Estados de loading */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #76B947;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@media (max-width: 480px) {
  /* Botão orçamento visível no mobile pequeno */
  .btn-orcamento {
    display: inline-block !important;
    padding: 6px 12px !important;
    font-size: 10px !important;
    margin-left: auto !important;
  }
}