/* HOWE — site estático (HTML + CSS, sem WordPress) */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
}

:root {
  --red: #e91e27;
  --red-dark: #b5121b;
  --ink: #151515;
  --ink-2: #242424;
  --text: #444040;
  --muted: #686868;
  --line: #d1d1d1;
  --bg-soft: #f1f1f1;
  --white: #fff;
  --wa: #25d366;
  --max: 1180px;
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }
a:hover { color: var(--red-dark); }

h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 .6em; font-weight: 700; }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--white); padding: .5rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid #eee;
  box-shadow: 0 2px 14px rgba(0,0,0,.05);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 84px;
}
.brand img { width: 190px; }

.nav-toggle { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.nav-toggle-label { display: none; }

.main-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: .25rem; flex-wrap: wrap;
}
.main-nav a {
  display: block; padding: .6rem .9rem;
  font-size: .82rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; text-decoration: none; color: var(--ink);
  border-radius: 6px;
  transition: background .2s, color .2s;
}
.main-nav a:hover { background: var(--bg-soft); color: var(--red); }
.main-nav a[aria-current="page"] { background: var(--red); color: var(--white); }

/* Menu móvel sem JavaScript (checkbox) */
@media (max-width: 900px) {
  .site-header .container { min-height: 70px; flex-wrap: wrap; }
  .brand img { width: 150px; }
  .nav-toggle-label {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border-radius: 8px; cursor: pointer;
    background: var(--red);
  }
  .nav-toggle-label span,
  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    content: ""; display: block; width: 22px; height: 2px; background: var(--white);
    position: relative; transition: transform .2s;
  }
  .nav-toggle-label span::before { position: absolute; top: -7px; }
  .nav-toggle-label span::after { position: absolute; top: 7px; }
  .nav-toggle:focus-visible + .nav-toggle-label { outline: 3px solid var(--ink); outline-offset: 2px; }
  .main-nav { flex-basis: 100%; display: none; padding-bottom: 1rem; }
  .nav-toggle:checked ~ .main-nav { display: block; }
  .main-nav ul { flex-direction: column; }
  .main-nav a { padding: .85rem 1rem; }
}

/* ---------- Títulos de página ---------- */
.page-hero {
  background: var(--ink) url("../img/bg-desenho.webp") right center / auto 160% no-repeat;
  color: var(--white);
  padding: 3.5rem 0 3rem;
  position: relative;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(21,21,21,1) 40%, rgba(21,21,21,.85));
}
.page-hero .container { position: relative; }
.page-hero h1 {
  color: var(--white); font-size: clamp(1.8rem, 4vw, 2.8rem);
  text-transform: uppercase; letter-spacing: .02em; margin: 0;
}
.breadcrumb { font-size: .85rem; margin: 0 0 .8rem; opacity: .85; }
.breadcrumb a { color: var(--white); }

/* ---------- Seções ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--ink); color: #ddd; }
.section-dark h2 { color: var(--white); }

.section-title {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 400; text-transform: uppercase; text-align: center;
  letter-spacing: .02em; margin-bottom: 1.6rem;
}
.section-title::after {
  content: ""; display: block; width: 80px; height: 3px;
  background: var(--red); margin: .6rem auto 0;
}

.lead { font-size: 1.1rem; font-weight: 600; color: var(--ink); }

/* ---------- Início ---------- */
.intro {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.intro-photo img { border-radius: var(--radius); box-shadow: 0 18px 40px rgba(0,0,0,.15); }

.stats { display: flex; gap: 2.5rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.stat strong {
  display: block; font-size: clamp(2.6rem, 6vw, 3.8rem); font-weight: 400;
  color: var(--ink); line-height: 1;
}
.stat strong span { color: var(--red); }
.stat small { font-size: 1rem; color: var(--muted); }

.cert {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center;
}
.cert h3 { font-size: 1.35rem; font-weight: 600; }
.cert ul { padding-left: 1.2rem; }
.cert li { margin: .3rem 0; font-weight: 600; color: var(--ink); }
.cert-img { max-width: 380px; margin-inline: auto; }

.solutions {
  background:
    linear-gradient(rgba(241,241,241,.78), rgba(241,241,241,.78)),
    var(--bg-soft) url("../img/bg-desenho.webp") left center / auto 100% no-repeat;
}
.solutions .container {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center;
}
.solutions h2 {
  font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 400; text-transform: uppercase;
}
.solutions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.solutions-grid img {
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--white);
  aspect-ratio: 1; object-fit: cover; width: 100%;
}
.solutions-grid img:first-child { grid-column: 1 / -1; aspect-ratio: 2 / 1.2; }

/* Carrossel só com CSS (rolagem com snap) */
.carousel {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr);
  gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: .5rem .2rem 1.2rem; scrollbar-color: var(--red) transparent;
}
.carousel img {
  scroll-snap-align: start; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 22px; background: var(--white);
}
/* A dica "Arraste para o lado" só aparece se o carrossel tiver o que rolar.
   Ela fica ligada à rolagem do carrossel: sem transbordo, essa linha do tempo
   fica inativa e a dica continua escondida. Também some ao chegar no fim.
   Navegadores sem suporte simplesmente não mostram a dica. */
.carousel-hint {
  text-align: center; font-size: .85rem; color: #aaa; margin: 0;
  visibility: hidden;
}
@supports (animation-timeline: scroll()) and (timeline-scope: --a) {
  :has(> .carousel) { timeline-scope: --carrossel; }
  .carousel { scroll-timeline: --carrossel inline; }
  .carousel-hint {
    animation: dica-carrossel linear both;
    animation-timeline: --carrossel;
  }
}
@keyframes dica-carrossel {
  0%, 85% { visibility: visible; opacity: 1; }
  100%    { visibility: visible; opacity: 0; }
}

.cta {
  background: linear-gradient(137deg, #151515, #2d2d2d); color: var(--white);
  text-align: center;
}
.cta h2 { color: var(--white); font-size: clamp(1.4rem, 3.5vw, 2.2rem); font-weight: 400; text-transform: uppercase; }

.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .9rem 1.6rem; border-radius: 999px;
  font-weight: 700; text-decoration: none; letter-spacing: .02em;
  background: var(--red); color: var(--white);
  transition: transform .15s, background .2s;
}
.btn:hover { background: var(--red-dark); color: var(--white); transform: translateY(-2px); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #1ebe5a; color: #fff; }
.btn svg { width: 22px; height: 22px; fill: currentColor; }

/* ---------- Sobre ---------- */
.prose { max-width: 820px; margin-inline: auto; }
.prose h2 { font-size: 1.5rem; margin-top: 2.2rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin: .35rem 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; margin: 2rem 0; }
.card {
  background: var(--white); border-radius: var(--radius); padding: 1.8rem 1.5rem; text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}
.card strong { display: block; font-size: 2rem; color: var(--red); font-weight: 600; line-height: 1.1; }
.card span { color: var(--ink); }

.quote {
  border-left: 4px solid var(--red); background: var(--bg-soft);
  padding: 1.2rem 1.5rem; border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic; color: var(--ink);
}

/* ---------- Especificações ---------- */
.spec-block { margin-bottom: 3rem; }
.spec-block h2 { font-size: 1.3rem; }
.spec-block figure { margin: 1.5rem 0; }
.spec-block figure img { border: 1px solid var(--line); border-radius: 8px; }
.spec-table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .95rem; }
.spec-table th, .spec-table td { padding: .6rem .8rem; border-bottom: 1px solid var(--line); text-align: left; }
.spec-table th { background: var(--ink); color: var(--white); font-weight: 600; }
.spec-table tbody tr:nth-child(odd) { background: var(--bg-soft); }
.formula {
  display: inline-block; font-size: 1.2rem; font-weight: 700; color: var(--ink);
  background: var(--bg-soft); border-left: 4px solid var(--red); padding: .6rem 1.2rem;
}
.table-scroll { overflow-x: auto; }

/* ---------- Produtos ---------- */
.catalog { max-width: 1000px; margin-inline: auto; }
.catalog img { border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.product-lines { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; margin-bottom: 2.5rem; }
.product-lines li {
  list-style: none; background: var(--bg-soft); border-radius: var(--radius);
  padding: 1rem 1.2rem; font-weight: 600; color: var(--ink); border-left: 4px solid var(--red);
}
.product-lines { padding: 0; }

/* ---------- Contato ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 2.5rem; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0 0 1.8rem; }
.contact-list li { margin-bottom: 1.1rem; }
.contact-list strong { display: block; color: var(--ink); text-transform: uppercase; font-size: .8rem; letter-spacing: .08em; }
.map-link { display: block; position: relative; border-radius: var(--radius); overflow: hidden; }
.map-link img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.map-link span {
  position: absolute; left: 1rem; bottom: 1rem;
  background: var(--white); color: var(--ink); font-weight: 700; font-size: .9rem;
  padding: .5rem .9rem; border-radius: 999px; box-shadow: 0 4px 14px rgba(0,0,0,.2);
}

/* ---------- Rodapé ---------- */
.site-footer { background: var(--ink-2); color: #bbb; font-size: .92rem; }
.site-footer .container {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding: 3rem 0 2rem;
}
.site-footer h2 { color: var(--white); font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; }
.site-footer a { color: #ddd; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: .3rem 0; }
.footer-logo { width: 150px; border-radius: 4px; margin-bottom: 1rem; }
.copyright { background: var(--red); color: var(--white); text-align: center; font-size: .82rem; padding: .9rem 1rem; }

/* Botão flutuante de WhatsApp */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  transition: transform .15s;
}
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float svg { width: 32px; height: 32px; fill: currentColor; }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .intro, .cert, .solutions .container, .contact-grid { grid-template-columns: 1fr; }
  .intro-photo { order: 2; }
  .solutions { background-size: auto 60%; background-position: left top; }
  .site-footer .container { grid-template-columns: 1fr; }
  .page-hero { background-image: none; }
}

@media (max-width: 480px) {
  .stats { gap: 1.5rem; flex-wrap: nowrap; }
  .stat strong { font-size: 2.4rem; }
  .stat small { font-size: .85rem; }
}

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

@media print {
  .site-header, .wa-float, .site-footer, .cta { display: none; }
}
