:root {
  --navy: #101820;
  --navy-2: #162635;
  --red: #c5161d;
  --red-dark: #8f1218;
  --orange: #f36f21;
  --graphite: #252525;
  --muted: #657282;
  --line: #dde4ec;
  --soft: #f5f6f8;
  --white: #ffffff;
  --green: #127a54;
  --shadow: 0 18px 60px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--graphite);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px max(16px, calc((100% - 1120px) / 2));
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(16, 24, 32, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
}

.brand-logo {
  display: block;
  width: clamp(150px, 16vw, 185px);
  height: auto;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 700;
}

.main-nav a {
  white-space: nowrap;
}

.nav-cta {
  padding: 10px 14px;
  color: var(--white);
  background: var(--red);
  border-radius: 6px;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--navy);
}

.section,
.section-band {
  padding: 80px 0;
}

.hero {
  display: grid;
  align-items: center;
  padding: 50px 0 40px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(16, 24, 32, 0.96) 0%, rgba(16, 24, 32, 0.88) 42%, rgba(16, 24, 32, 0.36) 100%),
    url("assets/materiais-contra-incendio-rcc.png") center right / cover no-repeat;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(2.25rem, 4.6vw, 3.55rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  color: var(--navy);
  font-size: clamp(2rem, 4.5vw, 3.35rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  color: var(--navy);
  font-size: 1.15rem;
  line-height: 1.25;
}

.hero-text {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.06rem;
}

.hero-actions,
.cta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border: 0;
  border-radius: 6px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: var(--white);
  background: var(--red);
  box-shadow: 0 14px 30px rgba(197, 22, 29, 0.26);
}

.button-primary:hover {
  background: var(--red-dark);
}

.button-secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.34);
}

.button-light {
  color: var(--red);
  background: var(--white);
}

.trust-list {
  display: grid;
  gap: 8px;
  max-width: 720px;
  margin: 24px 0 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.86);
  list-style: none;
}

.trust-list li {
  position: relative;
  padding-left: 24px;
}

.trust-list li::before {
  position: absolute;
  left: 0;
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 7px;
  background: var(--orange);
  border-radius: 50%;
}

.hero-media {
  display: none;
  align-self: end;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-media img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
}

.hero-note {
  display: grid;
  gap: 4px;
  padding: 16px;
  background: rgba(16, 24, 32, 0.86);
}

.hero-note span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.quick-categories {
  padding: 18px 0;
  background: var(--red);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  overflow: hidden;
}

.quick-grid a {
  display: grid;
  min-height: 64px;
  place-items: center;
  padding: 10px;
  color: var(--white);
  background: rgba(16, 24, 32, 0.28);
  font-size: 0.9rem;
  font-weight: 900;
  text-align: center;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.04rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.filter-button {
  min-height: 42px;
  padding: 10px 14px;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 900;
  cursor: pointer;
}

.filter-button.is-active {
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.product-card {
  display: flex;
  min-height: 390px;
  flex-direction: column;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.product-card.is-hidden {
  display: none;
}

.card-code {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  margin-bottom: 18px;
  color: var(--red);
  background: #fff0f1;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 900;
}

.product-card p {
  color: var(--muted);
}

.product-card ul {
  display: grid;
  gap: 6px;
  margin: 0 0 20px;
  padding-left: 18px;
  color: var(--graphite);
  font-size: 0.92rem;
}

.product-card a {
  margin-top: auto;
  color: var(--red);
  font-weight: 900;
}

.section-contrast {
  color: var(--white);
  background: var(--navy);
}

.section-contrast h2 {
  color: var(--white);
}

.section-contrast p {
  color: rgba(255, 255, 255, 0.78);
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(300px, 0.82fr);
  gap: 40px;
  align-items: center;
}

.benefit-list {
  display: grid;
  gap: 12px;
}

.benefit-list div {
  display: grid;
  gap: 4px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.benefit-list span {
  color: rgba(255, 255, 255, 0.72);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.steps-grid article {
  min-height: 235px;
  padding: 22px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.steps-grid span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 18px;
  color: var(--white);
  background: var(--navy);
  border-radius: 6px;
  font-weight: 900;
}

.steps-grid p {
  color: var(--muted);
}

.cta-band {
  color: var(--white);
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
}

.cta-band h2,
.cta-band .eyebrow {
  color: var(--white);
}

.cta-band p {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.86);
}

.cta-grid {
  justify-content: space-between;
}

.quote-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(320px, 1fr);
  gap: 36px;
  align-items: start;
}

.quote-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 22px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.quote-form label {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 900;
}

.quote-form .full {
  grid-column: 1 / -1;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  border: 1px solid #c8d2dd;
  border-radius: 6px;
  padding: 12px;
  color: var(--navy);
  background: var(--white);
}

.quote-form textarea {
  resize: vertical;
}

.faq-section {
  background: var(--soft);
}

.faq-list {
  display: grid;
  gap: 10px;
}

details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

summary {
  min-height: 58px;
  padding: 18px 48px 18px 18px;
  color: var(--navy);
  font-weight: 900;
  cursor: pointer;
}

details p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
}

.site-footer {
  color: rgba(255, 255, 255, 0.76);
  background: var(--navy);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.6fr) minmax(220px, 0.6fr);
  gap: 30px;
  padding: 46px 0;
}

.footer-brand {
  margin-bottom: 18px;
}

.footer-brand .brand-logo {
  width: min(210px, 70vw);
  max-height: 74px;
}

.footer-grid a,
.footer-grid span,
.footer-grid strong {
  display: block;
}

.footer-grid strong {
  margin-bottom: 10px;
  color: var(--white);
}

.footer-grid a {
  margin: 7px 0;
}

.footer-note {
  padding: 16px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
}

.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  color: var(--white);
  background: var(--green);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(18, 122, 84, 0.3);
  font-weight: 900;
}

@media (max-width: 980px) {
  .main-nav {
    position: absolute;
    inset: 74px 16px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 12px;
  }

  .menu-button {
    display: block;
  }

  .hero {
    padding: 62px 0;
  }

  .hero-grid,
  .split-grid,
  .quote-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-media {
    align-self: auto;
  }

  .quick-grid,
  .product-grid,
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 24px, 1120px);
  }

  .site-header {
    padding-inline: 12px;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    width: 145px;
  }

  .section,
  .section-band {
    padding: 56px 0;
  }

  .hero {
    background:
      linear-gradient(180deg, rgba(16, 24, 32, 0.98) 0%, rgba(16, 24, 32, 0.88) 100%),
      url("assets/materiais-contra-incendio-rcc.png") center right / cover no-repeat;
  }

  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 2rem;
  }

  .quick-grid,
  .product-grid,
  .steps-grid,
  .quote-form {
    grid-template-columns: 1fr;
  }

  .quick-grid a {
    min-height: 52px;
  }

  .product-card,
  .steps-grid article {
    min-height: auto;
  }

  .trust-list {
    display: none;
  }

  .floating-whatsapp {
    right: 12px;
    bottom: 12px;
    min-height: 46px;
    padding-inline: 14px;
    font-size: 0.9rem;
  }
}
