/* =========================================================
   Extintores Segurança — Landing Page
   Light mode | vermelho • amarelo • preto • branco
   ========================================================= */

:root {
  --red: #d4111e;
  --red-dark: #8b0000;
  --red-soft: #ffe9ea;
  --yellow: #ffd500;
  --yellow-dark: #f2b705;
  --black: #1a1a1a;
  --ink: #2a2a2e;
  --gray: #6b6b73;
  --line: #ececf0;
  --bg: #ffffff;
  --bg-alt: #f7f7f9;
  --white: #ffffff;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 4px 14px rgba(20, 20, 30, .06);
  --shadow-md: 0 12px 34px rgba(20, 20, 30, .10);
  --shadow-red: 0 14px 30px rgba(212, 17, 30, .28);

  --container: 1180px;
  --ease: cubic-bezier(.22, 1, .36, 1);

  --ff-head: 'Poppins', system-ui, sans-serif;
  --ff-body: 'Montserrat', system-ui, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--ff-head); color: var(--black); line-height: 1.15; font-weight: 800; }
.icon { width: 20px; height: 20px; fill: currentColor; flex: none; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--ff-head); font-weight: 700; font-size: .98rem;
  padding: 13px 26px; border-radius: 999px; cursor: pointer; border: 0;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--red); color: #fff; box-shadow: var(--shadow-red); }
.btn--primary:hover { background: var(--red-dark); }
.btn--ghost { background: transparent; color: var(--black); border: 2px solid var(--line); }
.btn--ghost:hover { border-color: var(--red); color: var(--red); }
.btn--whatsapp { background: #25d366; color: #fff; box-shadow: 0 12px 26px rgba(37, 211, 102, .3); }
.btn--whatsapp:hover { background: #1ebe5b; }
.btn--whatsapp .icon { width: 18px; height: 18px; }
.btn--lg { padding: 16px 34px; font-size: 1.08rem; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s, background .3s;
}
.header.is-scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.header__inner { display: flex; align-items: center; gap: 18px; height: 72px; }
.header__logo img { height: 42px; width: auto; }
.nav { margin-left: auto; }
.nav__list { display: flex; gap: 6px; }
.nav__link {
  font-family: var(--ff-head); font-weight: 600; font-size: .96rem; color: var(--ink);
  padding: 9px 14px; border-radius: 8px; position: relative; transition: color .2s;
}
.nav__link::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav__link:hover { color: var(--red); }
.nav__link:hover::after { transform: scaleX(1); }
.header__cta { padding: 10px 18px; font-size: .9rem; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.nav__toggle span { width: 26px; height: 3px; background: var(--black); border-radius: 3px; transition: .3s var(--ease); }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(180deg, #fff 0%, var(--bg-alt) 100%);
  padding: clamp(56px, 9vw, 110px) 0 130px;
}
/* Desktop: hero ocupa a tela cheia (100vh - altura do header de 72px) */
@media (min-width: 761px) {
  .hero { min-height: calc(100vh - 72px); padding-block: 24px 96px; }
}
.hero__mesh { position: absolute; inset: -8%; z-index: 0; filter: blur(66px); opacity: .92; }
.blob { position: absolute; border-radius: 50%; mix-blend-mode: multiply; will-change: transform; }
/* distribuidos pelos 4 cantos para cobrir todo o hero (topo e base) */
.blob--1 { width: 52vw; height: 52vw; max-width: 720px; max-height: 720px; top: -14%; right: -8%;
  background: radial-gradient(circle at 30% 30%, #ff5d68, var(--red));
  animation: drift1 16s ease-in-out infinite; }
.blob--2 { width: 42vw; height: 42vw; max-width: 560px; max-height: 560px; top: -6%; left: -6%;
  background: radial-gradient(circle at 40% 40%, #ffe66b, var(--yellow)); opacity: .7;
  animation: drift2 21s ease-in-out infinite; }
.blob--3 { width: 46vw; height: 46vw; max-width: 600px; max-height: 600px; bottom: -16%; right: 2%;
  background: radial-gradient(circle at 50% 50%, #ff8a7a, var(--red-dark)); opacity: .6;
  animation: drift3 18s ease-in-out infinite; }
.blob--4 { width: 40vw; height: 40vw; max-width: 520px; max-height: 520px; bottom: -14%; left: 4%;
  background: radial-gradient(circle at 50% 50%, #fff3a8, var(--yellow-dark)); opacity: .58;
  animation: drift4 24s ease-in-out infinite; }
@keyframes drift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-9%, 7%) scale(1.12); }
}
@keyframes drift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(8%, 9%) scale(1.1); }
}
@keyframes drift3 {
  0%, 100% { transform: translate(0, 0) scale(1.05); }
  50% { transform: translate(7%, -10%) scale(0.92); }
}
@keyframes drift4 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-8%, -8%) scale(1.14); }
}

/* Brasas/faíscas subindo (ambiente, autônomo) */
.hero__embers { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.ember {
  position: absolute; bottom: -16px; width: var(--sz, 7px); height: var(--sz, 7px); border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #fff6d8, #ffbe55 45%, #ff5a2e 82%);
  box-shadow: 0 0 12px 2px rgba(255, 130, 50, .85);
  opacity: 0; animation: rise var(--dur, 12s) linear infinite; animation-delay: var(--delay, 0s);
}
@keyframes rise {
  0%   { transform: translate(0, 0) scale(.6); opacity: 0; }
  10%  { opacity: 1; }
  50%  { transform: translate(var(--dx, 20px), -52vh) scale(1); opacity: .85; }
  85%  { opacity: .5; }
  100% { transform: translate(calc(var(--dx, 20px) * -1), -108vh) scale(.35); opacity: 0; }
}

.hero__inner { position: relative; z-index: 2; }
.hero__content { max-width: 660px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--red-dark); font-family: var(--ff-head); font-weight: 600; font-size: .85rem;
  padding: 8px 16px; border-radius: 999px; box-shadow: var(--shadow-sm); border: 1px solid var(--red-soft);
  margin-bottom: 22px;
}
.hero__badge .icon { width: 17px; height: 17px; fill: var(--red); }
.hero__title { font-size: clamp(2.2rem, 5.2vw, 4rem); font-weight: 900; letter-spacing: -.02em; }
.hero__title .hl {
  background: linear-gradient(120deg, var(--red), var(--red-dark));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__text { font-size: clamp(1rem, 1.4vw, 1.18rem); color: var(--gray); margin: 20px 0 30px; max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 30px; margin-top: 42px; }
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong { font-family: var(--ff-head); font-size: 1.5rem; color: var(--red); font-weight: 800; }
.hero__stats span { font-size: .85rem; color: var(--gray); }

.hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; z-index: 1; }
.hero__wave svg { width: 100%; height: 70px; }
.hero__wave path { fill: var(--bg); }

/* ---------- Trust bar ---------- */
.trust { background: var(--black); color: #fff; }
.trust__inner { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 16px 28px; padding: 20px 22px; }
.trust__item { display: flex; align-items: center; gap: 10px; font-family: var(--ff-head); font-weight: 600; font-size: .96rem; }
.trust__icon { font-size: 1.15rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(60px, 8vw, 100px) 0; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section__tag {
  display: inline-block; font-family: var(--ff-head); font-weight: 700; font-size: .8rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--red); background: var(--red-soft); padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}
.section__title { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.section__title::after { content: ''; display: block; width: 64px; height: 4px; background: var(--yellow); border-radius: 4px; margin: 16px auto 0; }
.section__sub { color: var(--gray); margin-top: 18px; font-size: 1.05rem; }

/* ---------- Grid ---------- */
.grid { display: grid; gap: 24px; }
.grid--services { grid-template-columns: repeat(3, 1fr); }
.grid--products { grid-template-columns: repeat(3, 1fr); }

/* Service card */
.card-service {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  position: relative; overflow: hidden;
}
.card-service::before {
  content: ''; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
  background: linear-gradient(90deg, var(--red), var(--yellow)); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.card-service:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card-service:hover::before { transform: scaleX(1); }
.card-service__icon {
  width: 58px; height: 58px; display: grid; place-items: center; font-size: 1.7rem;
  background: var(--red-soft); border-radius: 14px; margin-bottom: 18px;
}
.card-service h3 { font-size: 1.18rem; margin-bottom: 10px; }
.card-service p { color: var(--gray); font-size: .96rem; }

/* Product card */
.card-product {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  display: flex; flex-direction: column;
}
.card-product:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card-product__media {
  aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--red-soft), #fff7d6);
  background-size: cover; background-position: center; position: relative;
  display: grid; place-items: center; border-bottom: 1px solid var(--line);
}
.card-product__placeholder {
  font-family: var(--ff-head); font-weight: 600; font-size: .82rem; color: var(--gray);
  background: rgba(255, 255, 255, .7); padding: 7px 14px; border-radius: 999px;
  border: 1px dashed var(--red); letter-spacing: .02em;
}
.card-product__media.has-img .card-product__placeholder { display: none; }
.card-product__body { padding: 22px 24px 26px; }
.card-product__body h3 { font-size: 1.12rem; margin-bottom: 8px; }
.card-product__body p { color: var(--gray); font-size: .94rem; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about__media {
  aspect-ratio: 4 / 3; border-radius: var(--radius); box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, var(--red-soft), #fff7d6); background-size: cover; background-position: center;
  display: grid; place-items: center;
}
.about__content .section__tag { margin-bottom: 14px; }
.about__content .section__title { text-align: left; }
.about__content .section__title::after { margin: 16px 0 22px; }
.about__content p { color: var(--gray); margin-bottom: 20px; }
.about__list { display: grid; gap: 12px; margin-bottom: 28px; }
.about__list li { position: relative; padding-left: 30px; font-weight: 500; color: var(--ink); }
.about__list li::before {
  content: '✓'; position: absolute; left: 0; top: 0; width: 21px; height: 21px;
  background: var(--red); color: #fff; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 700;
}

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--red), var(--red-dark)); color: #fff; }
.cta-band__inner { text-align: center; padding: clamp(50px, 7vw, 80px) 0; }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
.cta-band p { color: rgba(255, 255, 255, .9); margin: 14px auto 28px; max-width: 560px; }
.cta-band .btn--whatsapp { box-shadow: 0 14px 30px rgba(0, 0, 0, .25); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px; align-items: stretch; }
.contact__info { display: flex; flex-direction: column; gap: 16px; }
.contact__item {
  display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 18px 20px; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), border-color .25s;
}
a.contact__item:hover { transform: translateX(4px); border-color: var(--red); }
.contact__ico {
  width: 46px; height: 46px; flex: none; display: grid; place-items: center; font-size: 1.3rem;
  background: var(--red-soft); border-radius: 12px;
}
.contact__item span:last-child { display: flex; flex-direction: column; line-height: 1.35; }
.contact__item strong { font-family: var(--ff-head); font-size: .82rem; color: var(--gray); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.contact__map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); min-height: 320px; border: 1px solid var(--line); }
.contact__map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* ---------- Footer ---------- */
.footer { background: var(--black); color: #cfcfd6; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1.4fr; gap: 36px; padding: 56px 22px 40px; }
.footer__brand img { height: 46px; margin-bottom: 16px; }
.footer__brand p { font-size: .94rem; max-width: 300px; }
.footer__col h4 { color: #fff; font-size: 1.02rem; margin-bottom: 16px; }
.footer__col a { display: block; padding: 5px 0; font-size: .94rem; color: #cfcfd6; transition: color .2s; }
.footer__col a:hover { color: var(--yellow); }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 0; font-size: .85rem; color: #9a9aa3; text-align: center; }

/* ---------- Floating WhatsApp ---------- */
.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 26px rgba(37, 211, 102, .45);
  animation: wa-pulse 2.4s infinite; transition: transform .25s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
@keyframes wa-pulse {
  0% { box-shadow: 0 10px 26px rgba(37, 211, 102, .45), 0 0 0 0 rgba(37, 211, 102, .5); }
  70% { box-shadow: 0 10px 26px rgba(37, 211, 102, .45), 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 10px 26px rgba(37, 211, 102, .45), 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid--services, .grid--products { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 32px; }
  .about__content .section__title { text-align: left; }
  .contact { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .header__cta { display: none; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; background: #fff; margin: 0;
    transform: translateY(-130%); transition: transform .35s var(--ease); box-shadow: var(--shadow-md);
    border-top: 1px solid var(--line);
  }
  .nav.is-open { transform: translateY(0); }
  .nav__list { flex-direction: column; gap: 0; padding: 12px 16px 20px; }
  .nav__link { display: block; padding: 14px 10px; border-radius: 8px; }
  .nav__link::after { display: none; }
  .nav__toggle { display: flex; }
  .hero { padding-bottom: 100px; }
  .hero__stats { gap: 22px; }
}

@media (max-width: 540px) {
  .grid--services, .grid--products { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .trust__inner { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .blob { animation: none; }
  .hero__embers { display: none; }
  .wa-float { animation: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
