/* Noel Rosa — Peças e acessórios
   Identidade comercial (tijolo/papel), sem paleta governamental. */

:root {
  --ink: #1a1712;
  --ink-2: #322d26;
  --muted: #6a6358;
  --paper: #f3eee4;
  --paper-2: #e8e0d2;
  --cream: #faf6ee;
  --line: #d2c8b6;
  --line-2: #b9ae9a;
  --brick: #8a3a28;
  --brick-d: #6c2c1e;
  --brick-s: #f0e2d8;
  --ok: #24362c;
  --shadow: 0 18px 40px rgba(26, 23, 18, 0.12);
  --radius: 18px;
  --max: 1120px;
  --header: 72px;
  --sans: "Figtree", "Segoe UI", system-ui, sans-serif;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1.02rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brick-d);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brick);
}

:focus-visible {
  outline: 2px solid var(--brick);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--ink);
  color: var(--cream);
  padding: 8px 12px;
  z-index: 80;
  border-radius: 999px;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: min(var(--max), 100%);
  margin-inline: auto;
  padding-inline: 20px;
}

.kicker {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brick);
}

.section {
  padding: 72px 0;
}

.section h2 {
  margin: 0 0 16px;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.lede {
  margin: 0;
  max-width: 62ch;
  color: var(--ink-2);
}

/* Top + header */
.topbar {
  background: var(--ink);
  color: #d8d0c3;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.topbar .wrap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  flex-wrap: wrap;
}

.topbar span {
  white-space: normal;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 238, 228, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header);
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.logo-mark {
  width: 32px;
  height: 32px;
  background: var(--brick);
  color: var(--cream);
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 50%;
}

.logo strong {
  display: block;
  font-size: 1.02rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.1;
}

.logo small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.nav {
  display: none;
  align-items: center;
  gap: 22px;
}

.nav a {
  text-decoration: none;
  color: var(--ink-2);
  font-size: 0.92rem;
  font-weight: 500;
}

.nav a:hover {
  color: var(--brick);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  height: 40px;
  padding: 0 14px;
  margin-left: auto;
  border: 1px solid var(--ink);
  background: var(--cream);
  color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 999px;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  text-decoration: none;
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  border-radius: 999px;
}

.btn-primary {
  background: var(--brick);
  color: #fff8f4;
}

.btn-primary:hover {
  background: var(--brick-d);
  color: #fff8f4;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
  border-color: currentColor;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  color: inherit;
}

.btn-official {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--ink);
}

.btn-official:hover {
  background: var(--ink);
  color: var(--cream);
}

.btn-header {
  display: none;
}

/* Hero */
.hero-banner {
  position: relative;
  min-height: min(88vh, 820px);
  display: flex;
  align-items: flex-end;
  color: #f7f1e8;
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  z-index: 0;
}

.hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(18, 14, 10, 0.28) 0%, rgba(18, 14, 10, 0.72) 100%),
    linear-gradient(90deg, rgba(18, 14, 10, 0.72) 0%, rgba(18, 14, 10, 0.22) 70%);
}

.hero {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 28px;
  padding: 72px 0 56px;
}

.hero-copy .kicker {
  color: #f0c9b4;
}

.hero-copy h1 {
  margin: 0 0 16px;
  max-width: 14em;
  font-size: clamp(2.1rem, 6vw, 3.7rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 600;
  color: #fff8f2;
}

.hero-copy p {
  margin: 0 0 22px;
  max-width: 46ch;
  font-size: 1.08rem;
  color: #efe6d8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.hero-meta {
  display: grid;
  gap: 6px;
  padding-top: 16px;
  border-top: 1px solid rgba(247, 241, 232, 0.28);
  color: #ddd2c2;
  font-size: 0.92rem;
}

.hero-meta a {
  color: #fff;
}

/* Products */
.products-intro {
  display: grid;
  gap: 18px;
  margin-bottom: 36px;
}

.product-grid {
  display: grid;
  gap: 18px;
}

.product {
  background: var(--cream);
  border: 0;
  display: grid;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 10px 28px rgba(26, 23, 18, 0.08);
}

.product img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: saturate(0.92);
}

.product-body {
  padding: 20px 20px 22px;
}

.product h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.product p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.96rem;
}

.tag {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Why */
.why {
  position: relative;
  background: #161310;
  color: #ece6da;
  overflow: hidden;
}

.why::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/oficina.jpg") center / cover no-repeat;
  opacity: 0.22;
}

.why .wrap {
  position: relative;
  z-index: 1;
}

.why h2,
.why .kicker {
  color: #f3d7c8;
}

.why .lede {
  color: #d5cec2;
}

.why-grid {
  display: grid;
  gap: 14px;
  margin-top: 36px;
}

.why-item {
  padding: 22px 22px;
  border: 0;
  border-radius: 20px;
  background: rgba(26, 23, 18, 0.55);
}

.why-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.why-item span {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c4a090;
  margin-bottom: 8px;
}

.why-item p {
  margin: 0;
  color: #d8d1c5;
  max-width: 56ch;
}

/* Editorial CNH */
.editorial {
  background: var(--paper-2);
}

.stamp {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid var(--brick);
  color: var(--brick-d);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
}

.editorial-head {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}

.editorial h2,
.editorial h3 {
  font-family: var(--serif);
  font-weight: 500;
}

.editorial p,
.editorial li {
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.65;
}

.notice {
  background: var(--cream);
  border: 0;
  padding: 18px 20px;
  margin: 18px 0 26px;
  border-radius: 18px;
}

.notice strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--sans);
  font-size: 0.92rem;
}

.notice p {
  margin: 0;
  font-size: 1rem;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.steps b {
  font-family: var(--sans);
  font-size: 1.3rem;
  color: var(--brick);
  line-height: 1;
}

.steps h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.steps p {
  margin: 0;
}

.official-box {
  margin-top: 28px;
  padding: 24px;
  background: var(--cream);
  border: 0;
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(26, 23, 18, 0.06);
}

.official-box h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.official-box p {
  margin: 0 0 16px;
}

.official-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.ext {
  font-size: 0.8rem;
  color: var(--muted);
  font-family: var(--sans);
}

.validity,
.guide {
  margin-top: 42px;
}

.guide-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.guide article {
  background: var(--cream);
  padding: 18px;
  border: 0;
  border-radius: 18px;
}

.guide h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.guide p,
.guide ul {
  margin: 0;
  font-size: 1.05rem;
}

.guide ul {
  padding-left: 1.1em;
}

/* FAQ */
.faq-list {
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  color: var(--brick);
  font-weight: 500;
}

.faq-list details[open] summary::after {
  content: "–";
}

.faq-list p {
  margin: 12px 0 0;
  color: var(--ink-2);
  max-width: 72ch;
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 28px;
}

.panel {
  background: var(--cream);
  border: 0;
  padding: 24px;
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(26, 23, 18, 0.06);
}

.panel h3 {
  margin: 0 0 14px;
  font-size: 1.15rem;
}

.dl {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px 12px;
  margin: 0;
  font-size: 0.95rem;
}

.dl dt {
  color: var(--muted);
}

.dl dd {
  margin: 0;
}

.form {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-2);
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 10px 12px;
  border-radius: var(--radius);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 400;
  color: var(--ink-2);
}

.check input {
  width: auto;
  margin-top: 4px;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.form-status {
  margin: 0;
  font-size: 0.92rem;
}

.form-status[data-state="ok"] { color: var(--ok); }
.form-status[data-state="err"] { color: var(--brick-d); }

.map-link {
  display: inline-block;
  margin-top: 14px;
}

/* Footer */
.footer {
  background: var(--ink);
  color: #d8d0c3;
  padding: 48px 0 28px;
  font-size: 0.92rem;
}

.footer a {
  color: #f0e2d4;
}

.footer-grid {
  display: grid;
  gap: 28px;
}

.footer-title {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 600;
  color: #f7f1e6;
}

.footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.footer-legal {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid #3a342c;
  color: #b7aea0;
  font-size: 0.82rem;
}

.footer-legal p {
  margin: 0 0 8px;
  max-width: 90ch;
}

/* Float WhatsApp */
.wa-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 14px 0 12px;
  background: var(--brick);
  color: #fff8f4;
  text-decoration: none;
  box-shadow: var(--shadow);
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: 999px;
}

.wa-float:hover {
  color: #fff8f4;
  background: var(--brick-d);
}

.wa-float svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.page {
  padding: 48px 0 72px;
}

.page h1 {
  margin: 0 0 18px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.page h2 {
  margin: 28px 0 10px;
  font-size: 1.2rem;
}

.page p,
.page li {
  max-width: 72ch;
}

@media (min-width: 720px) {
  .nav {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .btn-header {
    display: inline-flex;
  }

  .hero {
    padding: 96px 0 72px;
  }

  .product-grid,
  .guide-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
}

@media (min-width: 1024px) {
  .guide-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .hero-copy h1 {
    max-width: 13em;
  }
}

@media (max-width: 719px) {
  .topbar .wrap {
    flex-direction: column;
    gap: 2px;
  }

  .hero-copy h1 {
    overflow-wrap: break-word;
  }

  .nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 16px 20px 20px;
    gap: 14px;
  }

  .wa-float span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .wa-float {
    width: 52px;
    height: 52px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .footer {
    padding-bottom: 96px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  .topbar,
  .header,
  .wa-float,
  .hero-actions,
  form {
    display: none !important;
  }
  body { background: #fff; }
}
