/* Reset simples */
* { box-sizing: border-box; margin:0; padding:0; }
body { font-family: Arial, Helvetica, sans-serif; color: #222; background: #f6f7f9; line-height:1.5; }

/* CORES */
:root {
    --azul-escuro: #003865;
    --azul-medio: #166195;
    --laranja: #F58634;
    --branco: #ffffff;
}

/* HEADER estilo logo grande */
.header-logo-style {
  position: relative;
  background: linear-gradient(to bottom, rgba(22, 97, 149, 0.50), rgba(0, 56, 101, 0.50)),
            url("https://boltekengenharia.com.br/teste/images/fundo.site3.jpg")
            no-repeat left center;
  background-size: cover;
  padding: 20px 16px 40px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  min-height: 100px;
}

.brand .logo-large {
  height: 160px;
  width: auto;
  display: block;
  position: absolute;
  top: 0;
  left: -10px;
  z-index: 1000;
}

.header-logo-style .nav {
  margin-left: 220px;
  margin-top: 20px;
}

.header-logo-style .nav ul {
  display: flex;
  gap: 12px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-logo-style .nav a {
  color: var(--branco);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 600;
}

.header-logo-style .nav a:hover {
  background: rgba(255,255,255,0.06);
}

.header-logo-style .nav a.active {
  background: var(--laranja);
  color: #123;
}

/* Botão do menu (desktop escondido) */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: var(--branco);
  cursor: pointer;
}

/* MAIN layout */
main {
  max-width: 1100px;
  margin: 20px auto;
  padding: 16px;
}

/* Hero */
.hero {
  background: linear-gradient(90deg, rgba(0,56,101,0.9), rgba(22,97,149,0.85));
  color: #fff;
  padding: 28px;
  border-radius: 10px;
  margin-bottom: 18px;
}

.hero h1 { font-size: 1.6rem; margin-bottom: 8px; }
.hero p { opacity: 0.95; }

/* Sections */
.section {
  background: #fff;
  padding: 18px;
  border-radius: 10px;
  margin-bottom: 16px;
  box-shadow: 0 6px 18px rgba(15,15,15,0.03);
}

.section h2 { color: var(--azul-escuro); margin-bottom: 12px; }

/* Services list */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 12px;
}

.service-card {
  border: 1px solid #eef2f5;
  padding: 12px;
  border-radius: 8px;
  background: #fff;
}

.service-card h4 { margin-bottom: 6px; color: var(--azul-medio); }

/* Portfolio grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 12px;
}

.portfolio-item {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e6e9ec;
}

.portfolio-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.portfolio-item .caption { padding: 10px; }
.caption h4 { margin-bottom: 6px; color: var(--azul-escuro); }
.caption p { font-size: 0.9rem; color: #555; }

/* Formulário de contato */
.form-row { display: flex; gap: 12px; margin-bottom: 10px; }
.form-row .col { flex: 1; }

input[type="text"], input[type="email"], textarea {
  width: 100%; padding: 10px;
  border: 1px solid #dfe6ea;
  border-radius: 6px;
}

textarea { min-height: 120px; resize: vertical; }

/* Footer */
footer {
  background: linear-gradient(rgba(245, 134, 52, 0.9), rgba(245, 134, 52, 0.9)),
              url("https://boltekengenharia.com.br/teste/images/fundo.site2.jpg") no-repeat center;
  background-size: cover;
  color: #fff;
  padding: 25px 0;
  margin-top: 18px;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  position: relative;
  left: 0;
  right: 0;
  text-align: center;
}

.footer-info {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-social {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-social img {
  width: 35px;
  height: 35px;
  transition: transform 0.2s ease;
}

.footer-social img:hover {
  transform: scale(1.1);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  text-align: center;
}

.footer-brand img { height: 56px; }
.slogan { color: var(--branco); margin-top: 6px; font-weight: 700; }

/* WhatsApp Flutuante */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  background: var(--azul-escuro);
  border-radius: 50%;
  padding: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, background 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background: var(--azul-medio);
}

.whatsapp-float img {
  width: 38px;
  height: 38px;
  display: block;
}

/* Responsividade */
@media (max-width: 900px) {
  .services-grid, .portfolio-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 640px) {
  .brand .logo-large {
    height: 120px;
    width: auto;
    margin: 0 auto 10px;
    display: block;
    position: relative !important;
  }

  .header-logo-style {
    background: 
      linear-gradient(to bottom, rgba(255,255,255,0.4), rgba(255,255,255,0.4)),
      url("https://boltekengenharia.com.br/teste/images/fundo.site3.jpg") no-repeat center;
    background-size: cover;
  }

  .menu-toggle {
    color: var(--azul-escuro);
    display: block;
    margin: 8px auto 0;
    position: relative;
    z-index: 4000;
  }

  .header-logo-style .nav {
    margin-left: 0;
    position: relative;
    margin: 10px auto 0;
    background: var(--azul-escuro);
    border-radius: 8px;
    padding: 12px;
    width: 85%;
    max-width: 320px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    display: none;
  }

  .header-logo-style .nav.open { display: block; }

  .nav ul {
    flex-direction: column;
    gap: 10px;
    align-items: center;
    padding: 0;
    margin: 0;
  }

  .nav a {
    display: block;
    text-align: center;
    width: 100%;
  }

  .whatsapp-float { bottom: 70px; }
}

/* ---- Carrossel Swiper ---- */
.swiper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.swiper-slide img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: cover;
  border-radius: 10px;
}

/* Corrige imagens estouradas no desktop */
@media (min-width: 1024px) {
  .swiper-slide img,
  .swiper-slide img[style] {
    width: auto !important;
    height: auto !important;
    max-width: 700px !important;
    max-height: 350px !important;
    object-fit: contain !important;
    display: block;
    margin: 0 auto;
  }

  .swiper-wrapper,
  .swiper-slide {
    height: auto !important;
  }
}

/* Celular e tablet */
@media (max-width: 768px) {
  .swiper {
    height: 250px;
  }
}
