/* ================= VARIABLES ================= */
:root {
  --bg-light: #fdfdfd;
  --bg-gray: #f2f2f2;
  --text-dark: #2c2c2c;
  --text-medium: #555555;
  --gold-accent: #c5a075;
  --gold-hover: #b08d65;
  --dark-gradient: linear-gradient(
    105deg,
    rgba(30, 30, 30, 0.95) 0%,
    rgba(45, 45, 45, 0.85) 45%,
    rgba(240, 240, 240, 0.1) 100%
  );
}

/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  color: var(--text-medium);
  background-color: var(--bg-light);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h1,
h2,
h3 {
  color: var(--text-dark);
  font-weight: 700;
}

.highlight {
  color: var(--gold-accent);
}
.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 10px;
}
.section-subtitle {
  text-align: center;
  margin-bottom: 50px;
  font-size: 1.1rem;
}

/* ================= NAVBAR ================= */
#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 15px 0;
  background-color: rgba(253, 253, 253, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: 0.3s;
  border-bottom: 1px solid #eaeaea;
}

#navbar.scrolled {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  padding: 10px 0;
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo img {
  height: 55px;
  border-radius: 50%;
}
.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  transition: 0.3s;
}
.nav-links a:hover {
  color: var(--gold-accent);
}

/* ================= BUTTONS ================= */
.btn-primary,
.btn-outline,
.btn-whatsapp {
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-block;
  border: none;
  font-size: 1rem;
}
.btn-primary {
  background-color: var(--gold-accent);
  color: #fff;
  box-shadow: 0 4px 15px rgba(197, 160, 117, 0.4);
}
.btn-primary:hover {
  background-color: var(--gold-hover);
  transform: translateY(-2px);
}
.btn-outline {
  border: 2px solid var(--gold-accent);
  color: var(--gold-accent);
}
.btn-outline:hover {
  background-color: var(--gold-accent);
  color: #fff;
}
.btn-whatsapp {
  background-color: #25d366;
  color: #fff;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  margin-top: 20px;
}
.btn-whatsapp:hover {
  background-color: #20bd5a;
  transform: translateY(-2px);
}

/* ================= HERO SECTION ================= */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 650px;
  display: flex;
  align-items: center;
  background-image: url("image_b6a55a.jpg");
  background-size: cover;
  background-position: right center;
  margin-top: 70px;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--dark-gradient);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero-text {
  max-width: 550px;
}
.hero-text h1,
.hero-text p,
.hero-text strong {
  color: #ffffff;
}
.hero-text h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}
.badge {
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold-accent);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 15px;
  display: block;
}

/* ================= LAYOUT SECTIONS ================= */
.section-light {
  background-color: var(--bg-light);
  padding: 80px 0;
}
.section-gray {
  background-color: var(--bg-gray);
  padding: 80px 0;
}

/* ================= DESTAQUES (Toldos e Policarbonato) ================= */
.destaque-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
}
.destaque-text,
.destaque-image {
  flex: 1;
  width: 100%;
}
.destaque-text h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}
.destaque-subtitle {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gold-accent);
  margin-bottom: 20px;
}
.destaque-text p {
  margin-bottom: 20px;
  font-size: 1.1rem;
}
.destaque-features {
  list-style: none;
  margin-bottom: 35px;
}
.destaque-features li {
  font-size: 1.05rem;
  margin-bottom: 12px;
  color: var(--text-dark);
  font-weight: 600;
}
.img-placeholder-large {
  width: 100%;
  height: 450px;
  background-color: #e0e0e0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-weight: bold;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s ease;
}
.img-placeholder-large:hover {
  transform: translateY(-10px);
}

/* ================= CARDS SERVIÇOS ================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}
.service-card {
  background: #fff;
  padding: 40px 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: 0.3s;
  border-bottom: 3px solid transparent;
}
.service-card:hover {
  transform: translateY(-5px);
  border-bottom: 3px solid var(--gold-accent);
}
.service-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  color: var(--gold-accent);
}
.service-card h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
}

/* ================= GALERIA ================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 15px;
}
.gallery-item {
  height: 250px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  transition: 0.4s;
}
.gallery-item:hover {
  transform: scale(1.02);
}
.img-placeholder {
  background-color: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-weight: bold;
}

/* ================= SOBRE NÓS ================= */
.sobre-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.sobre-text h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}
.sobre-text p {
  margin-bottom: 15px;
  font-size: 1.1rem;
}
.sobre-image img {
  width: 100%;
  max-width: 450px;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: block;
  margin: 0 auto;
}

/* ================= FAQ (ACCORDION) ================= */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  background-color: #fff;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px;
  font-size: 1.1rem;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dark);
  font-family: inherit;
  transition: background-color 0.3s;
}
.faq-question:hover {
  background-color: #fafafa;
}
.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--gold-accent);
  transition: transform 0.3s ease;
}
.faq-question.active::after {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background-color: #fafafa;
}
.faq-answer p {
  padding: 0 20px 20px 20px;
  color: var(--text-medium);
}

/* ================= CONTATO ================= */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.contact-form {
  background: #fff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}
.contact-form input,
.contact-form select {
  width: 100%;
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
}

/* ================= FOOTER ================= */
footer {
  background-color: var(--text-dark);
  color: #aaa;
  text-align: center;
  padding: 30px 0;
  font-size: 0.9rem;
}

/* ================= ANIMATIONS ================= */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================= CARROSSEL (NOSSAS ESPECIALIDADES) ================= */
.carousel-container {
  overflow: hidden;
  width: 100%;
  position: relative;
  padding: 20px 0;
}

.carousel-track {
  display: flex;
  gap: 30px;
  width: max-content;
  animation: scrollCarousel 25s linear infinite;
}

.carousel-track:hover {
  animation-play-state: paused;
}

.carousel-track .service-card {
  width: 280px;
  flex-shrink: 0;
  margin-bottom: 0;
}

@keyframes scrollCarousel {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-100% / 2));
  }
}

/* ================= CTA FINAL ================= */
.cta-section {
  text-align: center;
  padding: 100px 20px;
}

.cta-container {
  max-width: 800px;
}

.cta-container h2 {
  font-size: 2.8rem;
  margin-bottom: 20px;
}

.cta-container p {
  font-size: 1.2rem;
  margin-bottom: 40px;
}

.btn-large {
  font-size: 1.2rem;
  padding: 18px 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ================= FOOTER COMPLEXO ================= */
.footer-complex {
  background-color: #1a1a1a;
  color: #e0e0e0;
  padding: 60px 0 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .footer-logo {
  width: 100px;
  border-radius: 50%;
  margin-bottom: 15px;
}

.footer-contact h3,
.footer-info h3 {
  color: var(--gold-accent);
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.footer-contact p,
.footer-info p {
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.social-link {
  color: #e0e0e0;
  text-decoration: none;
  transition: 0.3s;
}

.social-link:hover {
  color: var(--gold-accent);
}

.footer-bottom {
  background-color: #111;
  text-align: center;
  padding: 20px 0;
  font-size: 0.9rem;
  color: #888;
}

/* ================= BOTÃO FLUTUANTE WHATSAPP ================= */
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: transform 0.3s ease;
  text-decoration: none; /* Garante que não tenha sublinhado no link */
}

.floating-whatsapp:hover {
  transform: scale(1.1);
}

/* ---> ESSA FOI A REGRA QUE FALTAVA PARA O ÍCONE APARECER CORRETO <--- */
.floating-whatsapp i {
  font-size: 38px;
  color: #ffffff;
}
/* ================= MENU HAMBÚRGUER (ÍCONE) ================= */
.hamburger {
  display: none; /* Esconde no computador */
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-dark);
  border: none;
  background: none;
}

/* ================= MATERIAIS DE QUALIDADE ================= */
.materiais-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.materiais-text {
  flex: 1;
}

.materiais-text h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.materiais-text p {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.materiais-images {
  flex: 1;
  display: flex;
  gap: 20px;
  width: 100%;
}

.img-placeholder-small {
  flex: 1;
  height: 250px;
  background-color: #e0e0e0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-weight: bold;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

/* ================= RESPONSIVIDADE (MOBILE) ================= */
@media (max-width: 768px) {
  /* Lógica do Menu Hambúrguer Impecável */
  .hamburger {
    display: block; /* Mostra o ícone no celular */
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    flex-direction: column;
    padding: 0;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
    display: none; /* Escondido por padrão */
  }

  .nav-links.active {
    display: flex; /* Mostra quando clica no hambúrguer */
  }

  .nav-links a {
    padding: 15px 20px;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #f2f2f2;
  }

  .nav-links .btn-outline {
    border: none;
    border-bottom: 1px solid #f2f2f2;
    border-radius: 0;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }
  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(30, 30, 30, 0.9) 0%,
      rgba(30, 30, 30, 0.7) 60%,
      rgba(240, 240, 240, 0.2) 100%
    );
  }

  /* Destaques (Força texto em cima e imagem embaixo) */
  .destaque-container {
    flex-direction: column;
    text-align: center;
  }
  .destaque-text {
    order: 1;
  }
  .destaque-image {
    order: 2;
    width: 100%;
  }
  .destaque-features li {
    text-align: left;
    display: inline-block;
  }
  .img-placeholder-large {
    height: 300px;
    margin-top: 20px;
  }

  /* Nova Seção: Materiais */
  .materiais-container {
    flex-direction: column;
    text-align: center;
  }
  .materiais-images {
    flex-direction: column; /* Coloca as duas imagens uma debaixo da outra no celular */
  }

  /* Outras seções */
  .sobre-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .contact-container {
    grid-template-columns: 1fr;
  }
}
