/* ==========================================================================
   BOZZA MÓVEIS - FOLHA DE ESTILOS OFICIAL (PERFORMANCE 90+ & DESIGN FIEL)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700;800&display=swap');

:root {
  --amarelo: #ffc000;
  --amarelo-hover: #e5ac00;
  --escuro: #222222;
  --texto: #444444;
  --texto-leve: #666666;
  --cinza-bg: #f8f9fa;
  --borda: #e5e5e5;
  --branco: #ffffff;
  --container-max: 1000px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--texto);
  background-color: var(--branco);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 10px;
}

/* ---------------- TOP BAR ---------------- */
.top-bar {
  background-color: #fdfdfd;
  border-bottom: 1px solid #f0f0f0;
  padding: 10px 0;
  font-size: 13.5px;
  color: #555;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-bar-item img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.top-bar-item a:hover {
  color: var(--amarelo-hover);
}

/* ---------------- HEADER & NAV ---------------- */
.site-header {
  background: var(--branco);
  padding: 15px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo img {
  max-height: 55px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
}

.main-menu {
  display: flex;
  list-style: none;
  gap: 8px;
}

.main-menu li a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--escuro);
  padding: 10px 14px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.main-menu li a:hover,
.main-menu li a.active {
  background-color: var(--amarelo);
  color: #000;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--escuro);
  margin: 5px 0;
  border-radius: 2px;
}

/* ---------------- HERO SLIDER ---------------- */
.hero-slider-section {
  position: relative;
  background: #222;
  overflow: hidden;
}

.slider-container {
  position: relative;
  width: 100%;
  max-height: 480px;
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.slide-item {
  min-width: 100%;
  position: relative;
}

.slide-item img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
}

.slider-btn:hover {
  background: var(--amarelo);
  color: #000;
}

.slider-prev { left: 15px; }
.slider-next { right: 15px; }

/* ---------------- SEÇÃO QUEM SOMOS HOME ---------------- */
.quem-somos-home-section {
  padding: 60px 0;
  background: url('../assets/img/bg-quem-somos-home.jpg') no-repeat center center;
  background-size: cover;
}

.quem-somos-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
}

.quem-somos-img img {
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.titulo-secao {
  font-size: 32px;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--escuro);
}

.titulo-secao .fino {
  font-weight: 300;
  display: block;
}

.titulo-secao .forte {
  font-weight: 800;
  color: #000;
}

.btn-amarelo {
  display: inline-block;
  background: var(--amarelo);
  color: #000;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  padding: 12px 28px;
  border-radius: 4px;
  margin-top: 20px;
  border: none;
  cursor: pointer;
}

.btn-amarelo:hover {
  background: var(--amarelo-hover);
}

/* ---------------- SEÇÃO PRODUTOS HOME ---------------- */
.produtos-home-section {
  padding: 65px 0;
  background: url('../assets/img/bg-produtos-home-3.jpg') no-repeat center center;
  background-size: cover;
}

.produtos-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.card-produto-home {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  border: 1px solid #ededed;
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-produto-home:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.card-produto-home img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-produto-info {
  padding: 22px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-produto-info h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--escuro);
  text-transform: uppercase;
  margin-bottom: 15px;
}

/* ---------------- SEÇÃO ORÇAMENTO CTA ---------------- */
.orcamento-cta-section {
  padding: 60px 0;
  background: url('../assets/img/bg-orcamento-home.jpg') no-repeat center center;
  background-size: cover;
  color: #fff;
}

.orcamento-cta-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.orcamento-cta-text h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 15px;
}

.orcamento-cta-text p {
  font-size: 16px;
  margin-bottom: 25px;
  color: #f1f1f1;
}

.orcamento-cta-img img {
  max-width: 320px;
  margin: 0 auto;
}

/* ---------------- PÁGINAS INTERNAS (CATÁLOGO / SOBRE) ---------------- */
.pagina-header {
  background: #f4f4f4;
  padding: 35px 0;
  border-bottom: 1px solid #e5e5e5;
  margin-bottom: 40px;
}

.pagina-header h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--escuro);
  text-transform: uppercase;
}

.pagina-conteudo {
  padding-bottom: 60px;
}

.galeria-produtos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 30px;
}

.card-galeria-item {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  cursor: zoom-in;
  transition: transform 0.25s, box-shadow 0.25s;
  aspect-ratio: 4 / 3;
}

.card-galeria-item:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.card-galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------------- FORMULÁRIOS ---------------- */
.form-contato-box {
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 30px;
  max-width: 650px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--escuro);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14.5px;
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--amarelo);
}

/* ---------------- RODAPÉ ---------------- */
.site-footer {
  background: #1a1a1a;
  color: #ccc;
  padding: 50px 0 20px;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
  padding-bottom: 40px;
  border-bottom: 1px solid #2d2d2d;
}

.footer-col h3 {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-col h3 img {
  width: 22px;
  height: 22px;
}

.footer-col p {
  margin-bottom: 12px;
  line-height: 1.7;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  font-size: 13px;
  color: #777;
}

/* ---------------- BOTÃO WHATSAPP FLUTUANTE ---------------- */
.btn-whatsapp-fixo {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  z-index: 9999;
  transition: transform 0.25s;
}

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

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

/* ---------------- LIGHTBOX ---------------- */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(6px);
}

.lightbox-container {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 88vw;
  max-height: 82vh;
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  background: #fff;
}

.lightbox-caption {
  color: #fff;
  font-size: 15px;
  margin-top: 12px;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: -42px;
  right: -5px;
  background: none;
  border: none;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
}

.lightbox-close:hover {
  color: var(--amarelo);
}

/* ---------------- RESPONSIVO ---------------- */
@media (max-width: 850px) {
  .quem-somos-grid, .orcamento-cta-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .produtos-grid-3 {
    grid-template-columns: 1fr;
  }
  .galeria-produtos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .main-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 15px 0;
  }
  .main-menu.active {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
}

@media (max-width: 480px) {
  .galeria-produtos-grid {
    grid-template-columns: 1fr;
  }
}
