/* ==========================================================================
   Capital Aço — estilos do site
   Cores da marca: azul-marinho escuro, vermelho e branco
   ========================================================================== */

:root {
  --navy-950: #070b16;
  --navy-900: #0a0f1f;
  --navy-800: #0d1428;
  --navy-700: #121b33;
  --surface:  #16203a;
  --surface-2:#1c2848;
  --red:      #e63946;
  --red-600:  #d62839;
  --white:    #f5f7fa;
  --muted:    #97a3bd;
  --border:   rgba(255, 255, 255, 0.09);
  --radius:   14px;
  --shadow:   0 18px 40px -18px rgba(0, 0, 0, 0.7);
  --maxw:     1180px;
  --ease:     cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--navy-900);
  color: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .logo-text {
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

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

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

/* ---------- Utilitários ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}
.kicker::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--red);
  display: inline-block;
}

.section { padding: 92px 0; position: relative; }
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 18px; }
.section-lead { color: var(--muted); max-width: 620px; font-size: 1.05rem; }

.text-red { color: var(--red); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), background 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(230, 57, 70, 0.7);
}
.btn-primary:hover { background: var(--red-600); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.35); background: rgba(255,255,255,0.04); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
  padding: 16px 0;
}
.site-header.scrolled {
  background: rgba(9, 13, 26, 0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
  padding: 10px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand img { height: 46px; width: auto; transition: height 0.3s; }
.site-header.scrolled .brand img { height: 40px; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--white);
  opacity: 0.85;
  position: relative;
  padding: 4px 0;
  transition: opacity 0.2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--red);
  transition: width 0.25s var(--ease);
}
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 42px; height: 42px;
  color: var(--white);
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: currentColor;
  margin: 5px auto;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 130px 0 90px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url("../assets/img/hero.jpg") center/cover no-repeat;
  transform: scale(1.05);
  z-index: -2;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(105deg, rgba(7,11,22,0.96) 0%, rgba(7,11,22,0.8) 42%, rgba(7,11,22,0.45) 100%),
    linear-gradient(0deg, rgba(7,11,22,0.95) 0%, rgba(7,11,22,0) 55%);
}
.hero-content { max-width: 730px; }
.hero h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.7rem);
  margin: 14px 0 22px;
}
.hero h1 .accent { color: var(--red); }
.hero p {
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  color: #cbd4e6;
  max-width: 620px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}
.hero-badges span {
  font-size: 0.9rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-badges span::before { content: "✓"; color: var(--red); font-weight: 800; }

/* ---------- Sobre ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.about-text p { color: #c4cde0; margin-bottom: 16px; }
.about-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.about-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.about-media::after {
  content: "";
  position: absolute;
  left: -1px; bottom: -1px;
  width: 46%; height: 6px;
  background: var(--red);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 60px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
}
.stat b {
  font-family: "Montserrat", sans-serif;
  font-size: 1.7rem;
  color: #fff;
  display: block;
  line-height: 1.1;
}
.stat span { color: var(--muted); font-size: 0.92rem; }

/* ---------- Serviços ---------- */
.services { background: var(--navy-950); }
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 46px;
}
.card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--navy-800) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.25s var(--ease), border-color 0.25s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(230,57,70,0.5); }
.card .icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(230, 57, 70, 0.12);
  color: var(--red);
  margin-bottom: 18px;
}
.card .icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.16rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Produtos ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 44px;
}
.product {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  transition: border-color 0.2s, background 0.2s;
}
.product:hover { border-color: rgba(230,57,70,0.5); background: var(--surface-2); }
.product .dot {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(230,57,70,0.12);
  color: var(--red);
  display: grid; place-items: center;
}
.product .dot svg { width: 22px; height: 22px; }
.product b { font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 1.02rem; }
.product span { display: block; color: var(--muted); font-size: 0.85rem; }

/* ---------- Diferenciais ---------- */
.diffs { background: var(--navy-950); }
.diffs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 46px;
}
.diff {
  border-left: 3px solid var(--red);
  padding: 6px 0 6px 22px;
}
.diff b {
  font-family: "Montserrat", sans-serif;
  font-size: 1.15rem;
  display: block;
  margin-bottom: 8px;
}
.diff p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Aplicações ---------- */
.applications { position: relative; }
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
  max-width: 860px;
}
.chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 11px 20px;
  font-size: 0.94rem;
  font-weight: 500;
  transition: transform 0.2s, border-color 0.2s;
}
.chip:hover { transform: translateY(-2px); border-color: rgba(230,57,70,0.5); }
.coverage {
  margin-top: 34px;
  padding: 22px 26px;
  background: linear-gradient(100deg, rgba(230,57,70,0.14), rgba(230,57,70,0.02));
  border: 1px solid rgba(230,57,70,0.25);
  border-radius: var(--radius);
  color: #d9e0ee;
  max-width: 860px;
}
.coverage strong { color: #fff; }

/* ---------- Galeria ---------- */
.gallery { background: var(--navy-950); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 14px;
  margin-top: 46px;
}
.gallery-grid figure {
  overflow: hidden;
  border-radius: 12px;
  position: relative;
  border: 1px solid var(--border);
}
.gallery-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}
.gallery-grid figure:hover img { transform: scale(1.08); }
.gallery-grid .tall { grid-row: span 2; }
.gallery-grid .wide { grid-column: span 2; }

/* ---------- Contato ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px;
  margin-top: 46px;
}
.contact-list { list-style: none; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list .ic {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(230,57,70,0.12);
  color: var(--red);
  display: grid; place-items: center;
}
.contact-list .ic svg { width: 22px; height: 22px; }
.contact-list b { font-family: "Montserrat", sans-serif; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 700; }
.contact-list a, .contact-list p { color: #fff; font-size: 1.05rem; }
.contact-list a:hover { color: var(--red); }

.contact-cta {
  background: linear-gradient(160deg, var(--surface) 0%, var(--navy-800) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 38px 34px;
  position: relative;
  overflow: hidden;
}
.contact-cta::before {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 220px; height: 220px;
  background: url("../assets/img/marca-branca.png") center/contain no-repeat;
  opacity: 0.05;
}
.contact-cta h3 { font-size: 1.5rem; margin-bottom: 12px; }
.contact-cta p { color: var(--muted); margin-bottom: 26px; }
.contact-cta .btn { width: 100%; justify-content: center; }
.contact-cta .hours { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.95rem; }
.contact-cta .hours b { color: #fff; display: block; margin-bottom: 4px; font-family: "Montserrat", sans-serif; }

/* ---------- Rodapé ---------- */
.site-footer {
  background: var(--navy-950);
  border-top: 1px solid var(--border);
  padding: 56px 0 30px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}
.footer-brand img { height: 52px; margin-bottom: 16px; }
.footer-brand p { color: var(--muted); font-size: 0.95rem; max-width: 320px; }
.footer-col h4 { font-family: "Montserrat", sans-serif; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a, .footer-col li { color: #cbd4e6; font-size: 0.95rem; }
.footer-col a:hover { color: var(--red); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-top: 24px;
  color: var(--muted);
  font-size: 0.88rem;
}

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 90;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: grid; place-items: center;
  box-shadow: 0 10px 30px -8px rgba(37, 211, 102, 0.6);
  transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Animações de entrada ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 960px) {
  .cards, .diffs-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-media img { aspect-ratio: 16 / 10; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .gallery-grid .wide { grid-column: span 2; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav .btn-primary { display: none; }
  .nav-links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 82vw);
    flex-direction: column;
    gap: 8px;
    background: var(--navy-800);
    padding: 100px 28px 40px;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    box-shadow: -20px 0 50px -20px rgba(0,0,0,0.8);
    border-left: 1px solid var(--border);
  }
  .nav-open .nav-links { transform: none; }
  .nav-links a { font-size: 1.1rem; padding: 10px 0; width: 100%; }
  .nav-links .mobile-cta { display: inline-flex !important; margin-top: 14px; }
  .section { padding: 68px 0; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .hero { padding-top: 120px; }
}

@media (max-width: 500px) {
  .cards, .products-grid, .diffs-grid, .stats { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery-grid .tall, .gallery-grid .wide { grid-row: span 1; grid-column: span 1; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
