:root {
  color-scheme: light;
  --public-black: #0b0c0f;
  --public-black-soft: #15171c;
  --public-red: #e31b23;
  --public-red-dark: #b90f17;
  --public-green: #07963d;
  --public-green-dark: #057d33;
  --public-text: #17191e;
  --public-muted: #646a73;
  --public-line: #dfe3e8;
  --public-bg: #f3f5f7;
  --public-card: #fff;
  --public-radius: 20px;
  --public-shadow: 0 20px 55px rgba(20, 24, 31, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

#inicio, #pecas, #orcamento, #como-funciona, #atendimento { scroll-margin-top: 116px; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--public-text);
  background: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: #fff;
  background: var(--public-red);
  border-radius: 8px;
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.public-container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  color: #fff;
  background: linear-gradient(115deg, #090a0c, #17191d 68%, #0b0c0f);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header-inner {
  display: grid;
  grid-template-columns: minmax(210px, 300px) 1fr auto;
  align-items: center;
  gap: 28px;
  width: min(1240px, calc(100% - 40px));
  min-height: 108px;
  margin-inline: auto;
}

.site-logo-link { display: inline-flex; width: fit-content; }
.site-logo { display: block; width: min(100%, 285px); height: auto; }

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(22px, 4vw, 54px);
}

.site-nav a {
  position: relative;
  padding: 12px 2px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 3px;
  content: "";
  background: var(--public-red);
  border-radius: 20px;
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); }

.site-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.catalog-login {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 11px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease;
}

.catalog-login:hover { background: rgba(255, 255, 255, 0.08); border-color: #fff; }
.catalog-login svg { width: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.retailer-login { white-space: nowrap; background: rgba(255, 255, 255, 0.035); }
.retailer-login-mark { color: var(--public-red); font-size: 1.1rem; font-weight: 900; }
.retailer-mobile-label { display: none; }
.public-header-whatsapp { background: linear-gradient(180deg, #0bae49, var(--public-green-dark)); border-color: transparent; }
.public-header-whatsapp:hover { background: linear-gradient(180deg, #0cba4e, #068c39); border-color: transparent; }
.public-header-whatsapp > span:first-child { color: #fff; font-size: 0.75rem; }

.public-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 590px;
  overflow: hidden;
  background: #eef0f2 url("/assets/public-hero-parts.jpg") center / cover no-repeat;
}

.public-hero-overlay {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.99) 0%, rgba(255,255,255,0.97) 36%, rgba(255,255,255,0.65) 54%, rgba(255,255,255,0.04) 78%);
}

.public-hero-content { padding-block: 64px; }

.hero-kicker, .section-kicker {
  margin: 0 0 10px;
  color: var(--public-red);
  font-size: 0.79rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.public-hero h1 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(2.7rem, 5vw, 4.65rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.public-hero h1 span { color: var(--public-red); }

.hero-copy {
  max-width: 610px;
  margin: 24px 0 0;
  color: #474c54;
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  font-weight: 520;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.public-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 56px;
  padding: 0 22px;
  border: 0;
  border-radius: 11px;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 25px rgba(18, 21, 26, 0.14);
  cursor: pointer;
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.public-button:hover { transform: translateY(-2px); filter: brightness(1.04); box-shadow: 0 15px 30px rgba(18, 21, 26, 0.18); }
.public-button:active { transform: translateY(0); }
.public-button svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.public-button-primary { background: linear-gradient(180deg, #f0242c, var(--public-red-dark)); }
.public-button-whatsapp { background: linear-gradient(180deg, #0bae49, var(--public-green-dark)); }

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 34px;
}

.trust-item { display: flex; align-items: center; gap: 10px; max-width: 185px; color: #353940; font-size: 0.91rem; line-height: 1.28; }
.trust-icon { display: grid; flex: 0 0 42px; width: 42px; height: 42px; place-items: center; color: var(--public-red); background: rgba(255,255,255,0.9); border: 1px solid rgba(227,27,35,0.35); border-radius: 50%; }
.trust-icon svg { width: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }

.public-catalog-section { padding: 90px 0; background: #fff; }
.catalog-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 30px; }
.catalog-section-heading h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1; letter-spacing: -0.045em; }
.catalog-section-heading p:last-child { max-width: 720px; margin: 13px 0 0; color: var(--public-muted); }
.catalog-safe-note { flex: 0 0 auto; padding: 9px 12px; color: #555b64; background: var(--public-bg); border: 1px solid var(--public-line); border-radius: 999px; font-size: 0.8rem; font-weight: 750; }

.public-catalog-search { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr auto; align-items: end; gap: 12px; padding: 18px; background: var(--public-black); border-radius: 16px; box-shadow: var(--public-shadow); }
.public-catalog-search label { display: grid; gap: 7px; }
.public-catalog-search label > span { color: rgba(255,255,255,0.7); font-size: 0.78rem; font-weight: 750; }
.public-catalog-search input, .public-catalog-search select { width: 100%; min-height: 52px; padding: 0 14px; color: var(--public-text); background: #fff; border: 1px solid transparent; border-radius: 9px; outline: none; }
.public-catalog-search input:focus, .public-catalog-search select:focus { border-color: var(--public-red); box-shadow: 0 0 0 4px rgba(227,27,35,0.22); }
.public-catalog-search input::placeholder { color: #9298a1; }
.catalog-search-button { min-height: 52px; padding: 0 20px; color: #fff; background: linear-gradient(180deg, #f0242c, var(--public-red-dark)); border: 0; border-radius: 9px; cursor: pointer; font-weight: 850; white-space: nowrap; }
.catalog-search-button:hover { filter: brightness(1.05); }
.catalog-search-button:disabled { cursor: wait; opacity: 0.65; }

.catalog-results-heading { display: flex; min-height: 66px; align-items: center; justify-content: space-between; gap: 18px; }
.catalog-results-heading p { margin: 0; color: var(--public-muted); font-size: 0.93rem; }
.catalog-clear-button { padding: 7px 0; color: var(--public-red-dark); background: transparent; border: 0; cursor: pointer; font-weight: 800; }
.catalog-clear-button:hover { text-decoration: underline; }
.public-products-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

.public-product-card { display: flex; min-width: 0; overflow: hidden; flex-direction: column; background: #fff; border: 1px solid var(--public-line); border-radius: 15px; box-shadow: 0 12px 30px rgba(21,25,32,0.06); transition: transform 180ms ease, box-shadow 180ms ease; }
.public-product-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(21,25,32,0.11); }
.public-product-photo { display: grid; height: 230px; place-items: center; overflow: hidden; color: #8a9099; background: linear-gradient(145deg, #fff, #f0f2f5); text-decoration: none; }
.public-product-photo img { width: 100%; height: 100%; object-fit: contain; padding: 20px; background: #fff; }
.public-product-photo-placeholder { display: grid; place-items: center; gap: 4px; text-align: center; }
.public-product-photo-placeholder::before { color: var(--public-red); content: "⚙"; font-size: 3.5rem; line-height: 1; }
.public-product-photo-placeholder small { font-weight: 700; }
.public-product-body { display: flex; flex: 1; flex-direction: column; padding: 20px; }
.public-product-eyebrow { min-height: 19px; margin: 0 0 7px; color: var(--public-red); font-size: 0.72rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.public-product-title { margin: 0; font-size: 1.18rem; line-height: 1.24; }
.public-product-title a { text-decoration: none; }
.public-product-title a:hover { color: var(--public-red-dark); text-decoration: underline; }
.public-product-reference { min-height: 21px; margin: 7px 0 0; color: #7b818a; font-size: 0.82rem; }
.public-product-application { min-height: 42px; margin: 15px 0; color: #4f555e; font-size: 0.88rem; line-height: 1.4; }
.public-product-availability { width: fit-content; margin: auto 0 14px; padding: 7px 9px; color: #515761; background: #f0f2f4; border-radius: 6px; font-size: 0.75rem; font-weight: 750; }
.public-product-cta { display: flex; min-height: 45px; align-items: center; justify-content: center; color: #fff; background: linear-gradient(180deg, #f0242c, var(--public-red-dark)); border-radius: 8px; font-weight: 850; text-align: center; text-decoration: none; }
.public-product-cta:hover { filter: brightness(1.05); }

.catalog-loading-card { min-height: 430px; overflow: hidden; background: #fff; border: 1px solid var(--public-line); border-radius: 15px; }
.catalog-loading-card::before { display: block; height: 230px; content: ""; background: linear-gradient(100deg, #f1f2f4 25%, #fafafa 40%, #f1f2f4 55%); background-size: 220% 100%; animation: catalog-loading 1.2s ease-in-out infinite; }
.catalog-loading-card::after { display: block; width: 70%; height: 18px; margin: 26px 20px; content: ""; background: #eceef1; border-radius: 5px; box-shadow: 0 34px 0 #f1f2f4, 0 84px 0 #e7e9ed; }
@keyframes catalog-loading { to { background-position-x: -220%; } }

.catalog-empty { padding: 42px; color: var(--public-muted); background: var(--public-bg); border: 1px dashed #c8cdd4; border-radius: 15px; text-align: center; }
.catalog-empty strong { display: block; color: var(--public-text); font-size: 1.2rem; }
.catalog-empty p { max-width: 660px; margin: 10px auto 22px; }
.catalog-empty .public-button { width: fit-content; margin-inline: auto; }
.catalog-pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 30px; }
.catalog-pagination button { min-width: 104px; min-height: 42px; padding: 8px 14px; color: var(--public-text); background: #fff; border: 1px solid var(--public-line); border-radius: 8px; cursor: pointer; font-weight: 750; }
.catalog-pagination button:hover:not(:disabled) { color: var(--public-red-dark); border-color: var(--public-red); }
.catalog-pagination button:disabled { cursor: not-allowed; opacity: 0.45; }
.catalog-pagination span { color: var(--public-muted); font-size: 0.9rem; font-weight: 750; }
.catalog-region-strip { display: flex; align-items: center; justify-content: center; gap: 10px 28px; margin-top: 36px; padding: 22px; color: #fff; background: linear-gradient(120deg, #0b0c0f, #1b1e23); border-radius: 12px; text-align: center; }
.catalog-region-strip span { color: rgba(255,255,255,0.67); }

.quote-section { padding: 92px 0; background: var(--public-bg); }
.section-heading { max-width: 720px; margin-bottom: 30px; }
.section-heading h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.15rem); line-height: 1.06; letter-spacing: -0.045em; }
.section-heading > p:last-child { margin: 14px 0 0; color: var(--public-muted); font-size: 1.05rem; }
.section-heading-centered { margin-inline: auto; text-align: center; }

.public-quote-card {
  padding: clamp(22px, 4vw, 42px);
  background: var(--public-card);
  border: 1px solid rgba(28, 33, 40, 0.08);
  border-radius: var(--public-radius);
  box-shadow: var(--public-shadow);
}

.quote-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.public-field { display: grid; align-content: start; gap: 8px; grid-column: span 1; }
.public-field-wide { grid-column: span 2; }
.public-field-full { grid-column: 1 / -1; }
.public-field span { color: #2b2f35; font-size: 0.9rem; font-weight: 750; }
.public-field b { color: var(--public-red); }

.public-field input, .public-field select, .public-field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  color: var(--public-text);
  background: #fbfcfd;
  border: 1px solid #ccd2d9;
  border-radius: 9px;
  outline: 0;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.public-field textarea { min-height: 96px; resize: vertical; }
.public-field input:focus, .public-field select:focus, .public-field textarea:focus { background: #fff; border-color: var(--public-red); box-shadow: 0 0 0 4px rgba(227, 27, 35, 0.1); }
.public-field ::placeholder { color: #9197a0; }

.quote-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--public-line); }
.quote-help { display: flex; align-items: center; gap: 9px; color: var(--public-muted); font-size: 0.94rem; }
.quote-help svg { width: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.quote-submit { min-width: min(100%, 310px); }
.quote-message { min-height: 24px; margin: 14px 0 0; color: var(--public-green-dark); font-weight: 700; text-align: right; }
.quote-message.error { color: var(--public-red-dark); }

.steps-section { padding: 92px 0; background: #fff; }
.steps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 36px; }
.step-card { position: relative; padding: 32px; overflow: hidden; background: #fff; border: 1px solid var(--public-line); border-radius: 16px; box-shadow: 0 14px 32px rgba(20,24,31,0.06); }
.step-card > span { display: grid; width: 46px; height: 46px; place-items: center; color: #fff; background: var(--public-red); border-radius: 50%; font-size: 1.1rem; font-weight: 900; }
.step-card h3 { margin: 20px 0 8px; font-size: 1.25rem; }
.step-card p { margin: 0; color: var(--public-muted); }

.region-section { padding: 0 0 92px; background: #fff; }
.region-card { display: grid; grid-template-columns: auto minmax(280px, 1fr) 1.6fr; align-items: center; gap: 28px; padding: 38px; color: #fff; background: linear-gradient(125deg, #0b0c0f, #1b1e23); border-radius: var(--public-radius); box-shadow: var(--public-shadow); }
.region-pin { display: grid; width: 66px; height: 66px; place-items: center; color: #fff; background: var(--public-red); border-radius: 18px; }
.region-pin svg { width: 34px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.region-copy h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.05; }
.region-copy p:last-child { margin: 10px 0 0; color: rgba(255,255,255,0.68); }
.region-cities { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.region-cities span { padding: 9px 13px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.13); border-radius: 999px; font-size: 0.9rem; font-weight: 700; }

.public-footer { padding: 56px 0 22px; color: #fff; background: var(--public-black); }
.footer-main { display: grid; grid-template-columns: 1.15fr 1fr auto; align-items: center; gap: 42px; }
.footer-brand img { width: 220px; max-width: 100%; height: auto; }
.footer-brand p { margin: 12px 0 0; color: rgba(255,255,255,0.58); }
.footer-address { display: grid; gap: 3px; margin-top: 16px; color: rgba(255,255,255,0.76); font-size: 0.9rem; font-style: normal; }
.footer-address strong { color: #fff; }
.footer-links { display: grid; gap: 8px; }
.footer-links a { width: fit-content; color: rgba(255,255,255,0.78); text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-catalog { padding: 12px 16px; border: 1px solid rgba(255,255,255,0.28); border-radius: 9px; font-weight: 750; text-decoration: none; }
.footer-catalog:hover { background: rgba(255,255,255,0.07); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 42px; padding-top: 20px; color: rgba(255,255,255,0.46); border-top: 1px solid rgba(255,255,255,0.09); font-size: 0.82rem; }

:focus-visible { outline: 3px solid rgba(227, 27, 35, 0.55); outline-offset: 3px; }

@media (max-width: 980px) {
  .site-header-inner { grid-template-columns: minmax(190px, 255px) 1fr; min-height: 92px; }
  .site-nav { display: none; }
  .public-hero { min-height: 650px; background-position: 62% center; }
  .public-hero-overlay { background: linear-gradient(90deg, rgba(255,255,255,0.99) 0%, rgba(255,255,255,0.93) 58%, rgba(255,255,255,0.25) 100%); }
  .public-hero h1 { max-width: 600px; }
  .public-catalog-search { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-search-main { grid-column: 1 / -1; }
  .catalog-search-button { align-self: end; }
  .public-products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quote-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .public-field-wide { grid-column: span 1; }
  .region-card { grid-template-columns: auto 1fr; }
  .region-cities { grid-column: 1 / -1; justify-content: flex-start; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-catalog { width: fit-content; }
}

@media (max-width: 680px) {
  #inicio, #pecas, #orcamento, #como-funciona, #atendimento { scroll-margin-top: 86px; }
  .public-container, .site-header-inner { width: min(100% - 28px, 1180px); }
  .site-header-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; min-height: 78px; }
  .site-logo { width: 165px; }
  .site-header-actions { gap: 6px; }
  .catalog-login { min-height: 42px; padding: 0 10px; }
  .catalog-login svg { width: 20px; }
  .retailer-login { gap: 5px; font-size: 0.78rem; }
  .retailer-desktop-label { display: none; }
  .retailer-mobile-label { display: inline; }
  .public-header-whatsapp .whatsapp-label { display: none; }
  .public-hero { min-height: 670px; background-position: 70% center; }
  .public-hero-overlay { background: linear-gradient(180deg, rgba(255,255,255,0.99) 0%, rgba(255,255,255,0.97) 60%, rgba(255,255,255,0.64) 100%); }
  .public-hero-content { align-self: flex-start; padding-block: 52px 170px; }
  .public-hero h1 { font-size: clamp(2.45rem, 13vw, 3.5rem); }
  .hero-copy { font-size: 1rem; }
  .hero-actions { display: grid; }
  .public-button { width: 100%; min-height: 55px; }
  .trust-list { display: grid; grid-template-columns: 1fr; }
  .trust-item { max-width: none; }
  .public-catalog-section, .quote-section, .steps-section { padding: 70px 0; }
  .catalog-section-heading { align-items: flex-start; flex-direction: column; }
  .catalog-safe-note { display: none; }
  .public-catalog-search { grid-template-columns: 1fr; padding: 14px; }
  .catalog-search-main { grid-column: 1; }
  .public-products-grid { grid-template-columns: 1fr; }
  .public-product-photo { height: 245px; }
  .catalog-results-heading { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: 14px; }
  .catalog-region-strip { align-items: flex-start; flex-direction: column; text-align: left; }
  .quote-fields { grid-template-columns: 1fr; }
  .public-field, .public-field-wide, .public-field-full { grid-column: 1; }
  .quote-card-footer { align-items: stretch; flex-direction: column; }
  .quote-submit { min-width: 0; }
  .quote-message { text-align: left; }
  .steps-grid { grid-template-columns: 1fr; }
  .step-card { padding: 26px; }
  .region-section { padding-bottom: 70px; }
  .region-card { grid-template-columns: 1fr; padding: 28px; }
  .region-pin { width: 56px; height: 56px; }
  .region-cities { grid-column: 1; }
  .footer-main { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
