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

body {
  font-family: "Poppins", sans-serif;
  color: #333;
  line-height: 1.6;
}

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

/* Header */
.header {
  background: #fff;
  padding: 15px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  justify-content: space-between; /* padrão desktop */
  align-items: center;
}

/* Logo */
.header .logo {
  display: inline-block;
}

.header .logo img {
  width: 200px; /* tamanho padrão desktop */
  height: auto;
  transition: width 0.3s;
}

/* Menu e links */
.header .nav {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header .nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.header .nav a:hover {
  color: #ff5611;
}

/* Ícones de redes sociais */
.social-icon {
  width: 25px;
  height: 25px;
  vertical-align: middle;
  transition: transform 0.3s;
}

.social-icon:hover {
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .header .container {
    justify-content: center; /* centraliza a logo */
  }

  .header .nav {
    display: none; /* esconde menu e ícones */
  }

  .header .logo img {
    width: 150px; /* diminui a logo */
    height: auto;
  }
}

@media (max-width: 480px) {
  .header .logo img {
    width: 120px; /* ainda menor em celulares pequenos */
  }
}

/* Hero */
.hero {
  position: relative;
  height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;

  background: url("assets/fachada.png") no-repeat center center/cover;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 20px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.btn {
  background: #ff5611;
  color: #fff;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s, transform 0.3s;
}

.btn:hover {
  color: #ffffff;
  background: #ff3700;
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero p {
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  .hero {
    height: 60vh;
  }
  .hero h1 {
    font-size: 1.8rem;
  }
  .hero p {
    font-size: 0.95rem;
  }
}

/* =========================
   PRODUTOS / CARDS
========================= */
.produtos {
  padding: 80px;
}

.produtos h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2rem;
  color: #333;
}

.cards-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.card {
  background-color: #fff;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden; /* importante para o carrossel não vazar */
}

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

.card img.icon {
  width: 60px;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #ff5611;
}

.card p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1rem;
}

/* Botão Ver mais / Ver menos */
.toggle-carousel {
  margin-top: 10px;
  padding: 8px 15px;
  border: none;
  border-radius: 6px;
  background: #ff5611;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s;
}

.toggle-carousel:hover {
  background: #e14d0f;
}

/* Carrossel */
.carousel-container {
  display: none; /* escondido inicialmente */
  margin-top: 15px;
  align-items: center;
}

.carousel {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel img {
  margin-right: 3px;
  min-width: 100%;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
}

/* Botões do carrossel */
.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 2;
}

.prev {
  left: 10px;
}
.next {
  right: 10px;
}

/* RESPONSIVO */
@media (max-width: 900px) {
  .cards-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .carousel img {
    max-height: 200px;
  }
}

@media (max-width: 600px) {
  .cards-container {
    grid-template-columns: 1fr;
  }
  .carousel img {
    max-height: 180px;
  }
}

/* Sobre */
.sobre {
  padding: 60px 20px;
  background: #f9f9f9;
}

.sobre-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto; /* centraliza a seção */
}

.sobre-texto {
  flex: 2;
  min-width: 300px;
}

.sobre-texto h2 {
  margin-bottom: 20px;
  color: #333;
  font-size: 2rem;
}

.sobre-texto p {
  line-height: 1.6;
  color: #555;
}

/* Container do Swiper */
.sobre-img {
  flex: 1;
  width: 100%;
  max-width: 300px;
}

.sobre-img .swiper {
  width: 100%;
  height: 100%;
}

.sobre-img .swiper-wrapper {
  width: 100%;
  height: 100%;
}

.sobre-img .swiper-slide {
  border-radius: 30px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Imagem dentro do slide */
.sobre-img .swiper-slide img {
  width: 100%;
  height: auto;
  object-fit: cover; /* preenche o container proporcionalmente */
  display: block;
  border-radius: 30px;
}

/* Responsividade */
@media (max-width: 992px) {
  .sobre-flex {
    flex-direction: column;
    text-align: center;
  }

  .sobre-img {
    max-width: 90%; /* imagens maiores no mobile */
    width: 100%;
    margin-top: 20px;
  }

  .sobre-img .swiper-slide img {
    width: 100%;
    height: auto;
  }
}

/* Swiper navegação */
.swiper-button-next,
.swiper-button-prev {
  color: #ff5611;
}

.swiper-pagination-bullet-active {
  background: #ff5611;
}

/* INSTAGRAM */
.social-section {
  padding: 70px;
}

.social-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.social-image img {
  width: 100%;
  max-width: 350px;
  margin-bottom: 20px;
}

.social-text {
  text-align: center;
}

.social-text h2 {
  font-size: 28px;
  margin-bottom: 15px;
  color: #232323;
}

.social-text p {
  font-size: 16px;
  padding: 0 40px;
  margin-bottom: 30px;
  color: #555;
}

.social-icons a {
  display: inline-block;
  margin-right: 15px;
  transition: transform 0.3s;
}

.social-icons a img {
  width: 50px;
  height: 50px;
}

.social-icons a:hover {
  transform: scale(1.1);
}

/* Responsivo */
@media (max-width: 768px) {
  .social-content {
    flex-direction: column;
    text-align: center;
  }

  .social-text {
    order: 2;
  }

  .social-image {
    order: 1;
  }
}

/* Contato */
.contato {
  padding: 40px 2rem;
  background-color: #ffffff;
}

.contato h2 {
  margin-bottom: 20px;
  color: #333;
  text-align: center;
  font-size: 1.8rem;
}

.contato-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}

/* Informações de contato */
.info {
  flex: 1;
  min-width: 250px;
}

a {
  text-decoration: none;
  color: inherit;
}

a:hover {
  color: #ff5611;
}

.mapa {
  flex: 1;
  min-width: 250px;
  position: relative;
  padding-bottom: 15%;
  height: 0;
}

.mapa iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 10px;
}

/* Responsivo */
@media (max-width: 900px) {
  .contato-grid {
    flex-direction: column;
  }

  .info,
  .mapa {
    width: 100%;
    min-width: auto;
    padding-bottom: 0;
    height: auto;
  }

  .mapa iframe {
    position: relative;
    width: 100%;
    height: 250px;
  }
}

/* Footer */
.footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
}

.footer a {
  color: #ff5611;
  text-decoration: none;
  font-weight: 400;
}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #25d366;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float img {
  width: 35px;
  height: 35px;
}
