/* style.css */

:root {
  --primary-color: #F5FF7D;
  --secondary-color: #333;
  --light-bg: #f9f9f9;
  --dark-bg: #1e1e1e;
  --green-accent: #3A7D44;
  --light-text: #333;
  --dark-text: #f1f1f1;
}

/* Reset básico */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 100%; /* 16px base */
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.5;
  background-color: var(--light-bg);
  color: var(--light-text);
  overflow-x: hidden;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  flex-wrap: wrap;
}
.logo-link .logo {
  height: 50px;
  width: auto;
}
.contact-buttons {
  display: flex;
  gap: 1rem;
  list-style: none;
  justify-content: center;
}

/* Hero Section */
.hero-text h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-text h2 {
  font-family: 'Roboto', sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 2.5rem;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem;
  text-align: left;
  height: 90vh;
}

/* Buttons & Links */
a, .btn {
  text-decoration: none;
  cursor: pointer;
}
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: 2px solid #000;
  border-radius: 50px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  font-weight: 600;
  transition: background-color 0.3s, color 0.3s, transform 0.2s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .2);
}

.btn:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}
.btn:active {
  transform: scale(1.1);
  transform: translateY(0) scale(0.98);
}

/* Container global */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Seções */
section {
  padding: 2rem 0;
}

.benefits, .social-proof {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Benefits & Social */
.benefits {
  padding: 4rem 2rem;
  text-align: center;
}

.benefits h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.benefits-list {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
}

.benefits-list li {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
  flex-basis: 320px;
  flex-grow: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.social-proof .star-rating {
  font-size: 2rem;
  color: var(--primary-color);
  color: #ffc107; /* Cor de estrela mais tradicional */
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4);
}

/* Galerias */
.masonry-gallery, .masonry-gallery2 {
  padding: 60px 20px;
  text-align: center;
}

.masonry-gallery h2, .masonry-gallery2 h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.swiper {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 16px;
  height: 500px;
}

.swiper-slide {
  text-align: center;
  font-size: 18px;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Esconde a tag <img>, pois usaremos a imagem como background do slide */
.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
  object-fit: contain; /* Garante que a imagem apareça inteira, sem cortar */
}

/* Configura o slide para exibir a imagem como background */
.swiper-slide {
  background-size: contain; /* Garante que a imagem caiba inteira */
  background-repeat: no-repeat;
  background-position: center;
}

.swiper-button-next,
.swiper-button-prev {
  color: #F5FF7D; /* Lime green/yellow color */
  --swiper-navigation-size: 50px; /* A bit larger */
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.5); /* A bit more pronounced shadow */
}

.swiper-pagination-bullet {
  background-color: #3A7D44;
  background-color: var(--green-accent);
  width: 10px;
  height: 10px;
}

.swiper-pagination-bullet-active {
  background-color: #F5FF7D;
  background-color: var(--primary-color);
}

/* Serviços Prestados */
.servicos-prestados {
  padding: 4rem 0;
  text-align: center;
  background-color: #222;
  color: #fff;
  width: 100%;
}

.servicos-prestados h2 {
  font-size: 2.5rem;
  margin-bottom: 5rem;
}

.servicos {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.quadrado {
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  text-align: center;
  border-radius: 20px;
  background-color: #333;
  color: #fff;
  transition: transform 0.6s ease-out, opacity 0.6s ease-out, box-shadow 0.4s ease-in-out;
  transition: transform 0.4s ease, opacity 0.4s ease, box-shadow 0.4s ease;
  opacity: 0; /* Começa invisível para a animação de entrada */
  transform: translateY(30px);
}

.quadrado:hover {
  transform: translateY(-10px) scale(1.05) !important;
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 15px 35px rgba(245, 255, 125, 0.2);
}

.quadrado h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.quadrado p {
  font-size: 1rem;
}

/* Classe de animação para os cards de serviço */
.quadrado.active {
  opacity: 1;
  transform: translateY(0);
}

.last-item {
  grid-column: 1 / -1;
  aspect-ratio: auto;
  min-height: 200px;
}

@media (min-width: 1024px) {
    .servicos .last-item {
        grid-column: 2 / 3;
    }
}

/* Interest Capture */
.interest-capture {
  background-color: #fff;
  padding: 2.5rem 2rem;
  margin: 3rem auto;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  max-width: 600px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.interest-capture h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #000;
}

.interest-capture p {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 1.5rem;
}

/* Contact Section */
.contact-section {
	padding: 40px 20px;
	text-align: center;
}

.contact-section h2{
	font-size: 2em;
	color: var(--secondary-color);
	margin-bottom: 20px;
}

.contact-info {
	margin-bottom: 20px;
}

.contact-info p {
	font-size: 1.2em;
	margin: 5px 0;
}

.map-container {
	display: inline-block;
	margin: 20px auto;
	border-radius: 10px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, .2);
	overflow: hidden;
}

.map-iframe {
	width: 400px;
	height: 300px;
	border: 0;
	border-radius: 10px;
}

/* Footer */
footer {
  background-color: #fff;
  padding: 2rem 1rem;
  text-align: center;
  border-top: 2px solid #f0f0f0;
}

.impact-text {
  font-style: italic;
  color: #555;
  margin-top: 1rem;
  font-size: 1rem;
}

/* Galeria de Peças */
#masonry-gallery2 .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
/* A regra geral para .swiper-slide já cobre esta galeria. */
/* Este seletor específico não é mais necessário. */

/* =================================== */
/* ========== Media Queries ========== */
/* =================================== */

/* Telas grandes (desktops) */
@media (min-width: 1201px) {
  .container {
    max-width: 1140px;
  }
}

/* Telas médias (laptops e tablets em paisagem) */
@media (max-width: 1200px) {
  .hero-text h1 {
    font-size: 3rem;
  }
  .hero-text h2 {
    font-size: 1.15rem;
  }
}

/* Telas de tablets */
@media (max-width: 1024px) {
  header {
    flex-direction: column;
    gap: 1rem;
  }
  .hero {
    flex-direction: column;
    text-align: center;
    height: auto;
    padding: 2rem 1rem;
  }
  .hero-text h1 {
    font-size: 2.5rem;
  }
  .hero-text h2 {
    font-size: 1.1rem;
  }
  .benefits-list {
    flex-direction: column;
    align-items: center;
  }
  .benefits-list li {
    flex-basis: 100%;
    max-width: 400px;
  }
}

/* Telas de celulares em paisagem e tablets em retrato */
@media (max-width: 768px) {
  body {
    line-height: 1.6;
  }
  .hero-text h1 {
    font-size: 2rem;
  }
  .hero-text h2 {
    font-size: 1rem;
  }
  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
  .logo-link .logo {
    height: 40px;
  }
  .benefits h2,
  .masonry-gallery h2,
  .masonry-gallery2 h2,
  .servicos-prestados h2,
  .contact-section h2 {
    font-size: 2rem;
  }
  .servicos {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .quadrado, .servicos .last-item {
    aspect-ratio: auto;
    min-height: 200px;
    grid-column: auto;
  }
  .interest-capture {
    padding: 2rem 1.5rem;
  }
  .interest-capture h2 {
    font-size: 1.5rem;
  }
  .map-iframe {
    width: 100%;
    height: 250px;
  }
  .mySwiper, .mySwiperParts {
    height: 400px;
    height: 320px; /* Altura ajustada para tablets */
  }
}

/* Telas de celulares */
@media (max-width: 480px) {
  header {
    padding: 1rem;
  }
  .logo-link .logo {
    height: 35px;
  }
  .contact-buttons {
    flex-direction: column;
    width: 100%;
    align-items: center;
  }
  .contact-buttons .btn {
    width: 80%;
    text-align: center;
  }
  .hero-text h1 {
    font-size: 1.8rem;
  }
  .hero-text h2 {
    font-size: 0.9rem;
  }
  .hero img.large-golf-cart {
    max-width: 100%;
    height: auto;
  }
  .benefits-list li {
    padding: 1.5rem;
  }
  .quadrado h3 {
    font-size: 1.2rem;
  }
  .quadrado p {
    font-size: 0.9rem;
  }
  .mySwiper, .mySwiperParts {
    height: 300px;
    height: 250px; /* Altura ajustada para celulares */
  }
}

/* =================================== */
/* ========== Hamburger Menu ========== */
/* =================================== */

.hamburger-menu {
  display: none; /* Escondido por padrão */
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger-menu__line {
  display: block;
  width: 30px;
  height: 3px;
  background-color: var(--secondary-color);
  margin: 6px 0;
  transition: transform 0.3s, background-color 0.3s;
}

@media (max-width: 768px) {
  .hamburger-menu {
    display: block; /* Visível em telas pequenas */
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
  }

  .contact-nav {
    display: flex; /* Começa como flex para centralizar */
    position: fixed;
    top: 0;
    right: -100%; /* Começa fora da tela */
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: right 0.4s ease-in-out;
  }

  .contact-nav.is-open {
    right: 0; /* Desliza para dentro da tela */
  }

  .contact-nav .contact-buttons {
    flex-direction: column;
    gap: 2rem;
  }

  .contact-nav .contact-buttons .btn {
    font-size: 1.2rem;
    padding: 1rem 2rem;
    width: 280px; /* Largura aumentada */
    text-align: center;
  }

  /* Animação do botão hambúrguer para 'X' */
  .hamburger-menu.is-open .hamburger-menu__line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .hamburger-menu.is-open .hamburger-menu__line:nth-child(2) {
    opacity: 0;
  }
  .hamburger-menu.is-open .hamburger-menu__line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
  .hamburger-menu.is-open .hamburger-menu__line {
    background-color: #fff;
  }
}

/* =================================== */
/* ===== Animações de Entrada ======== */
/* =================================== */

/* Estilo inicial para elementos com a classe .animar */
.animar {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Estilo final quando o elemento se torna visível */
.animar.section-visible {
  opacity: 1;
  transform: translateY(0);
}