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

:root {
  --bg: #0D0D0D;
  --bg-alt: #141414;
  --bg-card: #1A1A1A;
  --border: #2A2A2A;
  --text: #F0F0F0;
  --text-muted: #888;
  --accent: #F5C518;
  --metal: #B8B8B8;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 4px;
  --section-pad: 100px 24px;
  --max-w: 1200px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #000;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: var(--radius);
  transition: opacity 0.2s;
}
.btn-whatsapp:hover { opacity: 0.88; }

.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  transition: transform 0.2s;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ===== NAV ===== */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(13,13,13,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  height: 88px;
}

.nav-logo img { height: 72px; width: auto; filter: brightness(1.8) contrast(1.1); }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin-left: auto;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--metal);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta { font-size: 0.875rem; padding: 10px 22px; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-inner { gap: 0; }
  .nav-cta { margin-left: auto; font-size: 0.8rem; padding: 8px 16px; }
}

/* ===== HERO ===== */
#hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 100px 0 72px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('images/escora-galvanizada-1.jpeg');
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  transform: scale(1.04);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.1s;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.25s;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--metal);
  max-width: 480px;
  margin-bottom: 40px;
  line-height: 1.7;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.4s;
}

.hero-btn {
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.55s;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .hero-title { font-size: clamp(2.5rem, 10vw, 3.5rem); }
}

/* scroll offset para compensar navbar fixa de 72px */
#diferenciais, #produtos, #galeria, #sobre, #cta-final {
  scroll-margin-top: 72px;
}

/* ===== DIFERENCIAIS ===== */
#diferenciais {
  padding: var(--section-pad);
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.dif-card {
  padding: 48px 40px;
  background: var(--bg-card);
  transition: background 0.2s;
}
.dif-card:hover { background: #222; }

.dif-icon {
  display: block;
  margin-bottom: 24px;
  color: var(--accent);
}

.compliance-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 2px;
  padding: 20px 32px;
  background: #111;
  border: 1px solid var(--border);
  color: var(--metal);
}

.compliance-strip svg { flex-shrink: 0; color: var(--accent); }

.abnt-logo { height: 40px; width: auto; flex-shrink: 0; filter: brightness(0) invert(1); opacity: 0.85; }

.compliance-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.compliance-text strong {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

.compliance-text span {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.dif-card h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
  color: var(--text);
}

.dif-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .dif-grid { grid-template-columns: 1fr; }
}

/* ===== PRODUTOS ===== */
#produtos { padding: var(--section-pad); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 56px;
}

.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--accent);
  margin-top: 12px;
}

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

.produto-card {
  background: var(--bg-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.produto-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.produto-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.produto-card:hover .produto-img img { transform: scale(1.04); }

.produto-info {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.produto-info h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.04em;
  color: var(--text);
}

.produto-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  flex: 1;
}

.produto-btn { align-self: flex-start; margin-top: 8px; }

.titan-logo {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 4px;
}

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

/* ===== GALERIA ===== */
#galeria {
  padding: var(--section-pad);
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

#galeria .container { margin-bottom: 40px; }

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  max-width: 100%;
}

.galeria-item { aspect-ratio: 4/3; overflow: hidden; }

.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
  transition: transform 0.5s ease, filter 0.3s ease;
}
.galeria-item:hover img {
  transform: scale(1.06);
  filter: grayscale(0%);
}

@media (max-width: 768px) {
  .galeria-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== SOBRE ===== */
#sobre {
  padding: var(--section-pad);
  border-top: 1px solid var(--border);
}

.sobre-inner {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 80px;
  align-items: center;
}

.sobre-text .section-title { margin-bottom: 24px; }

.sobre-text p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.sobre-address {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 32px;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--metal);
  letter-spacing: 0.04em;
  border-left: 2px solid var(--accent);
  padding-left: 16px;
}

.sobre-logo img {
  width: 100%;
  max-width: 280px;
  opacity: 0.9;
  filter: brightness(1.8) contrast(1.1);
}

@media (max-width: 900px) {
  .sobre-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .sobre-logo { display: none; }
}

/* ===== CTA FINAL ===== */
#cta-final {
  padding: var(--section-pad);
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  text-align: center;
}

.cta-inner {
  max-width: 640px;
  margin: 0 auto;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 0.95;
  margin-bottom: 20px;
}

#cta-final p {
  color: var(--text-muted);
  margin-bottom: 40px;
  font-size: 1.05rem;
}

.cta-btn { font-size: 1.1rem; padding: 18px 40px; }

/* ===== RODAPÉ ===== */
#rodape {
  background: #080808;
  border-top: 1px solid var(--border);
}

.rodape-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  padding: 64px 24px 48px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.rodape-col > p { color: var(--text-muted); font-size: 0.85rem; }

.rodape-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--metal);
  margin-bottom: 16px;
}

.rodape-col a,
.rodape-col address {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-style: normal;
  line-height: 1.8;
  transition: color 0.2s;
}
.rodape-col a:hover { color: var(--text); }

.rodape-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 24px;
}

.rodape-bottom .container { max-width: var(--max-w); }

.rodape-bottom span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .rodape-inner { grid-template-columns: 1fr; gap: 36px; padding: 48px 24px 36px; }
}
