/* =========================================================
   FOLHA DE ESTILOS — SITE MATERIAIS DE CONSTRUÇÃO
   Paleta: vermelho + branco + cinza. Botões WhatsApp em verde.
   ========================================================= */

:root {
  --vermelho: #d32f2f;
  --vermelho-escuro: #b71c1c;
  --vermelho-claro: #fce8e6;
  --verde: #25d366;
  --verde-hover: #1fb855;
  --branco: #ffffff;
  --cinza-fundo: #f5f5f5;
  --cinza-borda: #e5e5e5;
  --cinza-texto: #4b4b4b;
  --cinza-escuro: #2b2b2b;
  --quase-preto: #1c1c1c;
  --sombra: 0 2px 8px rgba(0, 0, 0, 0.08);
  --sombra-hover: 0 8px 20px rgba(0, 0, 0, 0.14);
  --raio: 12px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--cinza-texto);
  background: var(--branco);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }
a { text-decoration: none; color: inherit; }
h1, h2, h3 { color: var(--cinza-escuro); line-height: 1.2; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 22px;
  border-radius: var(--raio);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  min-height: 48px;
}
.btn-whatsapp {
  background: var(--verde);
  color: var(--branco);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}
.btn-whatsapp:hover {
  background: var(--verde-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.45);
}
.btn-lg {
  font-size: 1.05rem;
  padding: 16px 30px;
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--branco);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  padding-bottom: 12px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--vermelho);
  color: var(--branco);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; }
.brand-title {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--cinza-escuro);
}
.brand-sub {
  font-size: 0.75rem;
  color: #8a8a8a;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.header-phone {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--cinza-escuro);
  font-weight: 600;
}
.header-phone svg { color: var(--verde); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 72px 0 88px;
  text-align: center;
  color: var(--branco);
  background:
    linear-gradient(160deg, rgba(183, 28, 28, 0.96) 0%, rgba(211, 47, 47, 0.9) 55%, rgba(155, 20, 20, 0.97) 100%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.05) 0 14px, rgba(255,255,255,0) 14px 28px);
}
.hero::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 64px;
  background: linear-gradient(to top, rgba(0,0,0,0.18), transparent);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--branco);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 {
  color: var(--branco);
  font-size: clamp(1.7rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 16px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.hero p {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  max-width: 640px;
  margin: 0 auto 28px;
  opacity: 0.95;
}

/* ---------- Seções ---------- */
.section { padding: 56px 0; }
.section-gray {
  background: var(--cinza-fundo);
}
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 36px;
}
.section-head h2 {
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  font-weight: 800;
  margin-bottom: 8px;
}
.section-head p { font-size: 0.98rem; }
.section-head h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  border-radius: 4px;
  background: var(--vermelho);
  margin: 12px auto 0;
}

/* ---------- Diferenciais ---------- */
.diferenciais { background: var(--vermelho-claro); }
.diferenciais-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.diferencial {
  background: var(--branco);
  border-radius: var(--raio);
  box-shadow: var(--sombra);
  padding: 26px 22px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.diferencial:hover {
  transform: translateY(-4px);
  box-shadow: var(--sombra-hover);
}
.diferencial-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--vermelho);
  color: var(--branco);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.diferencial h2 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 6px;
}
.diferencial p { font-size: 0.92rem; }

/* ---------- Categorias ---------- */
.grid-categorias {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.noscript-note {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 0.9rem;
  color: var(--cinza-texto);
}
.card-categoria {
  background: var(--branco);
  border-radius: var(--raio);
  box-shadow: var(--sombra);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-categoria:hover {
  transform: translateY(-5px);
  box-shadow: var(--sombra-hover);
}
.card-media {
  position: relative;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--branco);
}
.card-media svg { width: 46px; height: 46px; opacity: 0.95; }
.card-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(0,0,0,0.06) 0%, rgba(0,0,0,0) 40%),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.09) 0 12px, rgba(255,255,255,0) 12px 24px);
}
.card-media svg { position: relative; z-index: 1; }
.card-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-body h3 {
  font-size: 1.02rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--cinza-escuro);
}
.card-body p {
  font-size: 0.88rem;
  margin-bottom: 8px;
  flex: 1;
}
.card-itens {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.card-itens li {
  background: var(--vermelho-claro);
  color: var(--vermelho-escuro);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}
.card-categoria .btn {
  width: 100%;
  font-size: 0.9rem;
  padding: 12px 16px;
}

/* ---------- CTA atendimento ---------- */
.cta-section {
  background: linear-gradient(160deg, var(--cinza-escuro) 0%, var(--quase-preto) 100%);
  color: var(--branco);
  text-align: center;
}
.cta-inner { max-width: 680px; }
.cta-section h2 {
  color: var(--branco);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 12px;
}
.cta-section h2 span { color: #ff8a80; }
.cta-section p {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 26px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--quase-preto);
  color: #d6d6d6;
  padding: 48px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding-bottom: 32px;
}
.footer-col h3 {
  color: var(--branco);
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 14px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.footer-brand .brand-title { color: var(--branco); font-size: 1rem; }
.footer-about { font-size: 0.88rem; opacity: 0.8; }
.footer-contact li,
.footer-links li {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  margin-bottom: 10px;
}
.footer-contact svg { color: var(--verde); flex-shrink: 0; }
.footer-links a { transition: color 0.2s ease; }
.footer-links a:hover { color: var(--branco); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 0;
  text-align: center;
  font-size: 0.78rem;
  opacity: 0.75;
}

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--verde);
  color: var(--branco);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  z-index: 200;
  transition: transform 0.2s ease, background 0.2s ease;
}
.wa-float:hover {
  background: var(--verde-hover);
  transform: scale(1.08);
}

/* ---------- Animações ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-content > * { animation: fadeUp 0.6s ease both; }
.hero-content > *:nth-child(2) { animation-delay: 0.1s; }
.hero-content > *:nth-child(3) { animation-delay: 0.2s; }
.hero-content > *:nth-child(4) { animation-delay: 0.3s; }

/* ---------- Responsividade ---------- */
@media (min-width: 640px) {
  .grid-categorias { grid-template-columns: repeat(2, 1fr); }
  .diferenciais-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .header-phone { display: flex; }
}

@media (min-width: 960px) {
  .grid-categorias { grid-template-columns: repeat(4, 1fr); }
  .section { padding: 72px 0; }
  .hero { padding: 96px 0 110px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
