/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    overflow-x: hidden;
    width: 100%;
}

body {

    font-family: Arial, sans-serif;
    background-color: #d1d0d0;
    animation: fadeIn 0.7s ease-in;
}

/* Animação de entrada */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================= HEADER ================= */
header {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #b2b7bc;
    padding: 5px 20px;
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Logo */
header .logo img {
    height: 50px;
    width: auto;
    margin-top: -10px;
}

/* Navegação */
header nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap; /* <-- Adicione isso */
  justify-content: center;
  padding: 10px; /* opcional */
}

header nav ul li {
    margin: 0;
}

header nav ul li a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s, background-color 0.3s;
    padding: 6px 12px;
    border-radius: 20px;
}

/* Hover padrão */
header nav ul li a:hover {
    color: #f1c40f;
}

/* Botão WhatsApp no header */
header nav ul li a.whatsapp-button {
    background-color: #25D366;
    color: white;
}

header nav ul li a.whatsapp-button:hover {
    background-color: #1ebe5b;
    color: white;
}

/* ================= HERO ================= */
.hero {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.45); /* camada escura */
  z-index: 1;
}

.hero h1 {
  position: absolute;
  top: 65%;
  left: 18%;
  transform: translate(-50%, -50%);
  color: #fff;
  padding: 12px 20px;
  background-color: transparent;
  border-radius: 10px;
  font-size: 40px;
  z-index: 2; /* acima da camada escura */
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  white-space: nowrap;
}

/* ================= DESCRIPTION ================= */
.description {
    background-color: transparent;;
    color: #2c3e50;
    padding: 30px 20px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.6;
    max-width: 1000px;
    margin: 0 auto;
    text-shadow: 2px 2px 6px rgba(94, 94, 94, 0.7);
}

/* ================= BOTÃO CENTRAL ================= */
.services-button {
    text-align: center;
    margin: 20px 0;
}

.services-button button {
    background-color: #2c3e50;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease, transform 0.3s;
}

.services-button button:hover {
    background-color: #1a252f;
    transform: scale(1.05);
}

/* ================= SERVICES ================= */
.services {
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    gap: 20px;
    overflow: hidden;
    transition: background-image 1s ease-in-out;
}

.orcamento .whatsapp-button:hover {
    background-color: #1ebe5b;
    transform: scale(1.05);
}

/* Película escura */
.services .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(2, 3, 10, 0.4);
    z-index: 0;
}

/* Conteúdo sobre a película */
.services-button,
.service-gallery {
    position: relative;
    z-index: 1;
}

.services img {
    width: 180px;
    height: 180px;
    margin: 15px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(18, 30, 131, 0.6);
    transition: transform 0.3s ease;
}

.services img:hover {
    transform: scale(1.05);
}

/* ================= ORÇAMENTO ================= */
.orcamento {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    gap: 20px;
}

.orcamento h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 32px;
}

.orcamento p {
    color: #2c3e50;
    font-size: 18px;
    max-width: 600px;
    text-align: center;
    line-height: 1.6;
}

.orcamento .whatsapp-button {
    background-color: #25D366;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s;
}

.servicos-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 50px 20px;
}

.servico-card {
  background: #fff;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  border-radius: 12px;
  width: 280px;
  transition: transform 0.3s ease;
}

.servico-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 10px;
}

.servico-card h3 {
  margin-bottom: 10px;
  font-size: 20px;
  color: #2c3e50;
}

.servico-card button {
  background-color: #2c3e50;
  color: white;
  padding: 10px 20px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.servico-card button:hover {
  background-color: #1a252f;
}

.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 800px;
  position: relative;
}

.modal .close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
}

.carousel {
  position: relative;
  overflow: hidden;
  margin-top: 20px;
  text-align: center;
}

.carousel-slide {
  display: none;
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 10px;
}

.carousel-slide.active {
  display: block;
}

.carousel-prev, .carousel-next {
  background: #2c3e50;
  color: white;
  border: none;
  padding: 10px 20px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 20px;
  border-radius: 50%;
}

.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }


footer {
  background-color: #222;
  color: #fff;
  text-align: center;
  padding: 30px 20px;
  margin-top: 50px;
}

.footer-content h3 {
  margin-bottom: 15px;
  font-size: 24px;
}

.footer-content p {
  margin: 5px 0;
}

.footer-social a {
  display: inline-block;
  margin: 10px 10px;
  color: #00b894;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: #ffffff;
}

.footer-bottom {
  margin-top: 20px;
  font-size: 14px;
  color: #aaa;
}
.services-link-button {
  background-color: #2c3e50;
  color: white;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.services-link-button:hover {
  background-color: #1a252f;
  transform: scale(1.05);
}

.service-gallery {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none; /* tira underline do link */
  color: inherit; /* mantém a cor do texto padrão */
  max-width: 180px; /* largura máxima para o item */
}

.service-item img {
  width: 180px;
  height: 180px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(18, 30, 131, 0.6);
  transition: transform 0.3s ease;
}

.service-item:hover img {
  transform: scale(1.05);
}

.service-title {
  margin-top: 8px;
  font-weight: bold;
  font-size: 16px;
  text-align: center;
}

/* ================= CALCULADORA ================= */
.calc-metros {
  text-align: center;
  padding: 60px 20px;
  background-color: #ffffff;
  color: #2c3e50;
}

.calc-metros h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.calc-metros p {
  font-size: 18px;
  margin-bottom: 20px;
}

.form-calc {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.form-calc input {
  padding: 12px;
  font-size: 16px;
  width: 200px;
  border: 1px solid #ccc;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.3s ease;
}

.form-calc input:focus {
  border-color: #2c3e50;
}

.form-calc button {
  background-color: #2c3e50;
  color: white;
  padding: 12px 28px;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.form-calc button:hover {
  background-color: #1a252f;
  transform: scale(1.05);
}

#resultado {
  font-size: 20px;
  font-weight: bold;
  color: #00b894;
}



/* ================= RESPONSIVIDADE ================= */
@media (max-width: 768px) {
    header {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        padding: 10px;
        height: auto;
    }

    header .logo img {
        height: 50px ! important;
        margin-top: 0 !important;
        width: auto;
    }

    header nav ul {
        flex-direction: row;
        gap: 12px;
        flex-wrap: nowrap;
        justify-content: center;
    }

    .hero {
        height: 200px;
    }

    .hero h1 {
        font-size: 24px;
        white-space: normal;
        text-align: center;
    }

    .services img {
        width: 140px;
        height: 140px;
    }

    .services-button button {
        padding: 10px 20px;
        font-size: 16px;
    }

    nav ul li a {
  display: inline-block;
  padding: 8px 12px;
  font-size: 14px;
  text-decoration: none;
  color: white;
  transition: all 0.3s ease;
}

nav ul li a:hover {
  background-color: #00b894;
  color: #ffffff;
  transform: scale(1.1);
}

@media (max-width: 768px) {
  /* HEADER */
  header {
    flex-direction: column;
    align-items: center;
    padding: 10px;
  }
  header .logo img {
    height: 80px;
  }
  nav ul {
    flex-direction: column;
    gap: 10px;
  }

  /* HERO */
  .hero {
    height: 200px;
  }
  .hero h1 {
    font-size: 24px;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: normal;
    text-align: center;
    padding: 8px 12px;
  }

  /* DESCRIPTION */
  .description {
    padding: 20px 15px;
    font-size: 16px;
    text-shadow: 1px 1px 4px rgba(94,94,94,0.5);
  }

  /* SERVICES */
  .services {
    padding: 40px 15px;
  }
  .services img {
    width: 140px;
    height: 140px;
  }

  /* CARDS */
  .servico-card {
    width: 90%;
  }
  .servico-card img {
    width: 100%;
    height: auto;
  }

  /* CALCULADORA */
  .calc-metros {
    padding: 40px 15px;
  }
  .form-calc {
    flex-direction: column;
  }
  .form-calc input,
  .form-calc button {
    width: 100%;
    max-width: 300px;
  }

  /* FOOTER */
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-social {
    margin-top: 15px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 20px;
    top: 35%;
  }
  .description {
    font-size: 15px;
  }
  .calc-metros h2 {
    font-size: 24px;
  }
}
@media (max-width: 768px) {
    header nav ul {
        display: flex;
        flex-direction: row;
        gap: 8px;
        flex-wrap: nowrap;
        justify-content: center;
        padding: 0 10px;
        overflow-x: hidden; /* Evita scroll horizontal */
    }

    header nav ul li {
        flex-shrink: 1; /* Permite encolher */
        min-width: 0;   /* Permite o encolhimento correto */
    }

    header nav ul li a {
        display: block;
        white-space: nowrap; /* Sem quebra de linha */
        padding: 6px 8px;
        font-size: 14px;
        text-align: center;
        overflow: hidden;
        text-overflow: ellipsis; /* Reticências se o texto for longo */
        max-width: 100px; /* Limita largura máxima */
        box-sizing: border-box;
        transition: all 0.3s ease;
    }

    header nav ul li a.whatsapp-button {
        background-color: #25D366;
        color: white;
        padding: 6px 10px;
        max-width: 120px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    header nav ul li a {
        font-size: 12px;
        padding: 4px 6px;
        max-width: 80px;
    }

    header nav ul li a.whatsapp-button {
        max-width: 100px;
        font-size: 12px;
        padding: 4px 8px;
    }
}



}
