/* Estilos adicionais (usa as mesmas cores: preto, vermelho e branco) */

/* ---------- Ícones das redes sociais: flutuam no canto superior direito e acompanham o scroll ---------- */
.social {
  position: fixed;
  top: calc(var(--header-h) + 16px); /* logo abaixo do menu, para não tapar os links */
  right: 16px;
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.social a {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s;
}
.social a:hover { transform: scale(1.12); }
.social svg { width: 26px; height: 26px; fill: currentColor; }

/* Cores de cada rede (1.º WhatsApp, 2.º Instagram, 3.º Facebook) */
.social li:nth-child(1) a { background: #25d366; }
.social li:nth-child(2) a { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.social li:nth-child(3) a { background: #ffffff; }
.social li:nth-child(3) svg { width: 100%; height: 100%; fill: #1877f2; }

@media (max-width: 560px) {
  .social { right: 8px; gap: 8px; }
  .social a { width: 40px; height: 40px; }
  .social svg { width: 22px; height: 22px; }
}

/* ---------- Menu com mais itens: letras mais compactas e menu móvel mais cedo ---------- */
.main-nav ul { gap: 26px; }
.main-nav a { font-size: 0.88rem; }

@media (max-width: 1180px) {
  .nav-toggle { display: flex; }

  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 3px solid var(--black);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .main-nav.open { max-height: 560px; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 12px 20px 20px; }
  .main-nav li a { display: block; padding: 14px 0; font-size: 1.05rem; border-bottom: 0; }
}


/* ---------- Cartões de produto com link ---------- */
.product-link { display: block; color: inherit; }
.product-link:hover h3 { color: var(--red); }
.product-img { width: 100%; display: block; object-fit: cover; }

/* ---------- Página de produto ---------- */
.breadcrumb { font-size: 0.9rem; margin-bottom: 8px; }
.breadcrumb a { color: var(--red); font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }

.product-page { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.product-page-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: var(--black);
  border-bottom: 6px solid var(--red);
  border-radius: var(--radius);
}

.construction {
  border: 2px solid var(--black);
  border-left: 8px solid var(--red);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 32px;
}
.construction strong { color: var(--red); text-transform: uppercase; letter-spacing: 0.5px; }
.construction p { margin-top: 4px; }

/* ---------- Formulário de orçamento ---------- */
.form { display: grid; gap: 18px; margin-top: 24px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 6px; font-weight: 600; color: var(--black); }
.form input[type='text'],
.form input[type='tel'],
.form input[type='email'],
.form select,
.form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--black);
  border-radius: 8px;
  font: inherit;
  font-weight: 400;
  color: var(--black);
  background: var(--white);
}
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus,
.form select:focus,
.form textarea:focus { outline: none; border-color: var(--red); }

.form label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.form label.check input { margin-top: 5px; accent-color: var(--red); }

.field-error { color: var(--red); font-size: 0.85rem; font-weight: 500; }

button.btn { cursor: pointer; font: inherit; font-weight: 600; }

/* Campo-armadilha anti-spam */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { padding: 14px 18px; border-radius: var(--radius); margin: 20px 0 24px; font-weight: 500; }
.alert-ok { background: var(--black); color: var(--white); border-left: 8px solid var(--red); }
.alert-erro { border: 2px solid var(--red); color: var(--red); }

@media (max-width: 820px) {
  .product-page { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
}
