:root {
  --ink: #17181b;
  --dark: #202126;
  --paper: #f4f3ef;
  --muted: #56585f;
  --line: #dcdcd7;
  --red: #bd2028;
  --red-hover: #a31820;
  --light-text: #d8d9df;
  --display: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
  --header-height: 4.75rem;
}

* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-height) + 1rem); }
body {
  margin: 0;
  font: 1rem/1.65 Inter, system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  overflow-wrap: anywhere;
}
h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  line-height: 1;
  font-weight: 700;
  text-wrap: balance;
}
h2 { font-size: clamp(2.25rem, 4.8vw, 3.75rem); }
h3 { font-size: 1.85rem; }
p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 3px solid #3277de; outline-offset: 4px; }
.wrap { width: min(76rem, calc(100% - 4rem)); margin-inline: auto; }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed;
  z-index: 20;
  background: white;
  color: var(--ink);
  padding: .75rem 1rem;
  inset: .5rem auto auto .5rem;
}

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--ink);
  color: #fff;
  border-bottom: 1px solid #3b3c43;
}
.nav, .menu, .brand { display: flex; align-items: center; }
.nav { justify-content: space-between; min-height: var(--header-height); gap: 1.5rem; }
.brand { gap: .7rem; font-weight: 700; text-decoration: none; }
.brand img { width: 2.5rem; height: 2.5rem; object-fit: cover; border-radius: .25rem; }
.menu { gap: clamp(.75rem, 1.65vw, 1.5rem); }
.menu > a {
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
}
.menu > a:not(.btn) { display: inline-flex; align-items: center; min-height: 2.75rem; }
.menu > a:not(.btn):hover { text-decoration: underline; text-underline-offset: .3em; }
.menu-toggle { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: .65rem 1.15rem;
  border: 1px solid transparent;
  border-radius: .3rem;
  font-size: .9375rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  line-height: 1.35;
}
.btn-primary { background: var(--red); color: white; }
.btn-primary:hover { background: var(--red-hover); }
.btn-green { background: #22c55e; color: #000; }
.btn-green:hover { background: #16a34a; color: #000; }
.btn-light { background: white; color: var(--ink); }
.btn-light:hover { background: #e9e9eb; }
.btn-ghost, .btn-outline { border-color: currentColor; color: inherit; }
.btn-ghost:hover, .btn-outline:hover { background: rgb(255 255 255 / 12%); }

.hero { color: white; background: var(--ink); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  padding-block: clamp(2.75rem, 6vw, 5rem);
}
.hero h1 { font-size: clamp(3.2rem, 6.3vw, 6.15rem); margin-block: .65rem 1.1rem; }
.hero p { color: var(--light-text); max-width: 37rem; font-size: 1.0625rem; }
.hero-media { border-radius: .45rem; overflow: hidden; border-bottom: .35rem solid var(--red); }
.hero-media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: center; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }
.eyebrow {
  display: block;
  color: #ff8589;
  font-size: .875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  margin-bottom: .6rem;
}
.eyebrow.dark { color: var(--red); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: 1.25rem 3rem;
  align-items: end;
  margin-bottom: 2rem;
}
.section-head > p, .faq-intro > p, .rich-text { color: var(--muted); }
.products, .article-grid, .feature-grid { display: grid; gap: 1rem; }
.products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.product {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: .4rem;
  background: white;
}
.product::before {
  content: '';
  display: block;
  background: var(--red);
  width: 2rem;
  height: .2rem;
  margin-bottom: 1rem;
}
.product p, .article-body p { margin-block: .65rem 1rem; color: var(--muted); }
.product a, .article-body a, .back-link {
  color: var(--red-hover);
  font-weight: 700;
  text-underline-offset: .23em;
}
.product a, .article-body a { margin-top: auto; }
.product a:hover, .article-body a:hover, .back-link:hover { color: var(--ink); }

.intro { background: white; }
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 7vw, 6rem);
  align-items: center;
}
.split h2 { margin-bottom: 1rem; }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 44%; border-radius: .45rem; }
.rich-text > :first-child { margin-top: 0; }
.rich-text > :last-child { margin-bottom: 0; }
.rich-text p + p { margin-top: .9rem; }
.rich-text img { height: auto; }
.rich-text { overflow-x: auto; }
.rich-text h2, .rich-text h3 { margin-block: 1.35em .6em; }

.features { background: var(--dark); color: white; }
.features-copy { max-width: 47rem; }
.features-copy p { margin-top: 1rem; color: var(--light-text); }
.feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 2rem; }
.feature-item { border-top: 1px solid #555760; padding-top: 1rem; }
.feature-item span { display: block; font-weight: 700; }
.feature-item small { display: block; font-size: .9375rem; color: var(--light-text); margin-top: .35rem; }

.article-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.article-card {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--line);
  border-radius: .45rem;
  overflow: hidden;
}
.article-card-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.article-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 1.5rem; }
.article-body time, .article-heading time { color: var(--muted); font-size: .875rem; font-weight: 600; margin-bottom: .65rem; }
.article-grid.single { grid-template-columns: 1fr; }
.single .article-card { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.single .article-card-media img { height: 100%; min-height: 14rem; }
.single .article-body { padding: clamp(1.5rem, 4vw, 3rem); justify-content: center; }
.single .article-body a { margin-top: 0; }

.faq-section { background: white; }
.faq-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 2rem 5rem; }
.faq-intro p { margin-top: .9rem; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem .15rem;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '';
  width: .5rem;
  height: .5rem;
  margin-right: .35rem;
  border-right: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  transform: rotate(45deg);
  flex: none;
}
.faq-list details[open] summary::after { transform: rotate(225deg); }
.faq-list details p { padding: 0 .15rem 1rem; color: var(--muted); }

.contact { background: var(--red-hover); color: white; padding-block: clamp(3rem, 7vw, 5rem); }
.contact .eyebrow { color: #ffd5d7; }
.contact-box { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); align-items: center; gap: 1.5rem 4rem; }
.contact-box p { margin-top: .9rem; max-width: 38rem; }
.contact-actions, .contact-meta { display: grid; justify-items: start; gap: .65rem; }
.contact-meta a, .store-link { text-underline-offset: .22em; }
.footer { background: var(--ink); color: var(--light-text); padding-block: 2.25rem 1.25rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 1rem 2rem; }
.footer strong { color: white; }
.footer p { margin-top: .4rem; }
.footer-nav, .social { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-content: start; }
.footer a { text-underline-offset: .2em; }
.footer-bottom { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid #414148; font-size: .875rem; }

.article-page { padding-block: clamp(2rem, 6vw, 4.5rem); }
.article-page .wrap { max-width: 64rem; }
.article-shell { margin-top: 1.25rem; border: 1px solid var(--line); border-radius: .45rem; background: white; overflow: hidden; }
.article-heading, .article-content { max-width: 49rem; margin-inline: auto; padding: clamp(1.25rem, 5vw, 3.5rem); }
.article-heading h1 { font-size: clamp(2.65rem, 6vw, 4.5rem); }
.article-heading time { display: block; }
.article-heading .muted { margin-top: 1rem; color: var(--muted); font-size: 1.125rem; }
.cover { width: 100%; max-height: 28rem; aspect-ratio: 2 / 1; object-fit: cover; }
.article-content { color: var(--ink); }

@media (max-width: 62rem) {
  .nav { flex-wrap: wrap; gap: .4rem 1rem; padding-block: .8rem; }
  .menu { flex-wrap: wrap; }
  .menu-ready .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    color: white;
    background: transparent;
    border: 1px solid #95969e;
    border-radius: .3rem;
    padding: .5rem .75rem;
    min-height: 2.75rem;
    cursor: pointer;
  }
  .menu-toggle::after {
    content: '';
    width: .9rem;
    height: .65rem;
    border-block: 2px solid currentColor;
    background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
  }
  .menu-ready .menu { display: none; }
  .menu-ready .menu.open {
    display: grid;
    position: absolute;
    inset: 100% 0 auto;
    gap: .25rem;
    padding: .7rem 2rem 1.25rem;
    background: var(--ink);
    border-top: 1px solid #3b3c43;
    max-height: calc(100dvh - var(--header-height));
    overflow-y: auto;
  }
  .menu.open .btn { justify-self: start; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 43rem) {
  .wrap { width: calc(100% - 2rem); }
  .hero-grid, .section-head, .split, .faq-layout, .contact-box, .footer-grid, .feature-grid,
  .article-grid, .single .article-card { grid-template-columns: minmax(0, 1fr); }
  .hero-media img { aspect-ratio: 16 / 10; }
  .menu-ready .menu.open { padding-inline: 1rem; }
  .single .article-card-media img { min-height: 0; height: auto; }
  .cover { aspect-ratio: 16 / 10; }
}

@media (max-width: 33rem) {
  .products { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 62rem) {
  .top:not(.menu-ready) { position: static; }
  .top:not(.menu-ready) .nav { flex-wrap: wrap; padding-block: .75rem; }
  .top:not(.menu-ready) .menu { flex-wrap: wrap; }
}

/* Vitrine e orçamento */
.top { background: #fff; color: var(--ink); border-color: var(--line); }
.top .btn-outline { border-color: #b5b5b1; }
.top .btn-light { border-color: #b5b5b1; }
.top .btn-outline:hover { background: var(--paper); }
.storefront-hero .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 2.75rem; }
.storefront-hero h1 { font-size: clamp(3rem, 5.3vw, 5.3rem); }
.storefront-hero .hero-media img { aspect-ratio: 16 / 10; }
.quote-section { padding-top: 1.75rem; }
.quote-panel {
  padding: clamp(1rem, 3vw, 2rem);
  background: white;
  border: 1px solid var(--line);
  border-top: .25rem solid var(--red);
  border-radius: .45rem;
}
.quote-intro h2 { font-size: clamp(2rem, 4.25vw, 3rem); }
.quote-intro p { color: var(--muted); margin-top: .45rem; }
.quote-form, .quote-direct { margin-top: 1.25rem; }
.quote-fields { display: grid; grid-template-columns: 1.45fr 1fr .48fr .7fr; gap: .75rem; }
.quote-fields label { display: block; font-size: .9375rem; font-weight: 700; }
.quote-fields input {
  width: 100%;
  margin-top: .35rem;
  padding: .55rem .7rem;
  min-height: 2.85rem;
  border: 1px solid #a3a4a6;
  border-radius: .3rem;
  background: #fff;
  color: var(--ink);
  font: 1rem Inter, system-ui, sans-serif;
}
.quote-actions, .quote-direct { display: flex; flex-wrap: wrap; gap: .65rem 1rem; }
.quote-actions { margin-top: .85rem; }
.quote-actions .btn-outline { border-color: #a3a4a6; background: white; color: var(--ink); }
.quote-actions .btn-outline:hover { background: var(--paper); }
.quote-actions button { cursor: pointer; }
.quote-direct a { font-weight: 700; color: var(--red-hover); }
[hidden] { display: none !important; }
.products-section { padding-top: clamp(2.75rem, 6vw, 4.75rem); }

@media (max-width: 62rem) {
  .menu-ready .menu.open { background: white; border-color: var(--line); box-shadow: 0 .5rem 1rem #17181b24; }
  .menu-ready .menu-toggle { background: white; color: var(--ink); }
  .quote-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 43rem) {
  .storefront-hero .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .quote-fields label:first-child, .quote-fields label:nth-child(2) { grid-column: 1 / -1; }
}

.quote-category { margin-top: .7rem; color: var(--muted); font-size: .9375rem; }
.quote-category button {
  padding: .15rem .35rem;
  color: var(--red-hover);
  border: 0;
  background: transparent;
  text-decoration: underline;
  cursor: pointer;
}
