:root {
  --bg: #111312;
  --surface: #fff;
  --surface-soft: #f5f7f4;
  --ink: #1b211c;
  --muted: #6b736c;
  --brand: #8cc63f;
  --brand-dark: #639d20;
  --line: #e1e6df;
  --shadow: 0 18px 45px rgb(0 0 0 / 18%);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-width: 320px;
  color: var(--ink);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
}

main {
  width: min(100%, 1600px);
  min-height: 100vh;
  margin: 0 auto;
  padding-bottom: 3rem;
}

header {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 112px;
  padding: 1.5rem clamp(1.25rem, 4vw, 4rem);
  border-bottom: 1px solid rgb(140 198 63 / 55%);
}

.logo {
  display: block;
  width: clamp(190px, 28vw, 310px);
  max-width: 100%;
}

article {
  width: min(100% - 2.5rem, 1460px);
  margin: 0 auto;
  padding: clamp(2.25rem, 5vw, 4.25rem) 0 clamp(1.5rem, 3vw, 2.5rem);
  color: #fff;
}

article h2 {
  margin-bottom: 0.65rem;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 750;
  letter-spacing: -0.055em;
}
article h2::after {
  display: inline-block;
  width: 0.7em;
  height: 0.2em;
  margin-left: 0.25em;
  content: "";
  vertical-align: 0.08em;
  background: var(--brand);
}
article h3 {
  color: #b8c0b9;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 400;
}

main > section {
  width: min(100% - 2.5rem, 1460px);
  margin: 0 auto;
  overflow: hidden;
  background: var(--surface);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.logoscar {
  display: grid;
  grid-template-columns: repeat(6, minmax(90px, 1fr));
  gap: clamp(0.65rem, 1.5vw, 1.2rem);
  padding: clamp(1rem, 2.5vw, 2rem);
  background: var(--surface-soft);
  border-bottom: 1px solid var(--line);
}

.logoscar img,
.brand-logo {
  width: 100%;
  aspect-ratio: 1.35 / 1;
  padding: clamp(0.65rem, 1.4vw, 1rem);
  object-fit: contain;
  cursor: pointer;
  background: #fff;
  border: 1px solid #e4e9e2;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgb(28 38 29 / 5%);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}
.logoscar img:hover {
  border-color: var(--brand);
  box-shadow: 0 8px 20px rgb(99 157 32 / 18%);
  transform: translateY(-4px);
}
.brand-logo {
  color: #171717;
  font:
    800 clamp(1.15rem, 2vw, 1.55rem) / 1 Inter,
    sans-serif;
  letter-spacing: 0.08em;
}
.brand-logo:hover {
  border-color: var(--brand);
  box-shadow: 0 8px 20px rgb(99 157 32 / 18%);
  transform: translateY(-4px);
}
.logoscar img:active {
  transform: translateY(-1px);
}
.brand-logo:active {
  transform: translateY(-1px);
}

.carros {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 310px));
  justify-content: center;
  gap: clamp(1rem, 2vw, 1.75rem);
  min-height: 0;
  padding: clamp(1.25rem, 3vw, 2.75rem);
}

.carros > div:not(.container) {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 5px 16px rgb(24 35 25 / 7%);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}
.card-modelo {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: pointer;
  text-align: inherit;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 5px 16px rgb(24 35 25 / 7%);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}
.card-modelo:hover {
  border-color: rgb(140 198 63 / 65%);
  box-shadow: 0 16px 28px rgb(24 35 25 / 13%);
  transform: translateY(-5px);
}
.card-modelo img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: linear-gradient(145deg, #f7f9f5, #ecf1e9);
}
.carros > div:not(.container):hover {
  border-color: rgb(140 198 63 / 65%);
  box-shadow: 0 16px 28px rgb(24 35 25 / 13%);
  transform: translateY(-5px);
}
.carros > div:not(.container) img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: linear-gradient(145deg, #f7f9f5, #ecf1e9);
}
.carros p {
  padding: 1rem 1.15rem 1.2rem;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 700;
  text-align: center;
  transition: color 180ms ease;
}
.carros > div:hover p {
  color: var(--brand-dark);
}

.catalogo-cabecalho {
  display: flex;
  flex-direction: column;
  justify-content: center;
  grid-column: 1 / -1;
  min-height: 88px;
  padding: 0 0.5rem;
  border-bottom: 1px solid var(--line);
}
.catalogo-cabecalho span {
  color: var(--brand-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.catalogo-cabecalho h4 {
  margin-top: 0.25rem;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  letter-spacing: -0.04em;
}

.detalhe-modelo {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) 1.2fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  grid-column: 1 / -1;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}
.detalhe-modelo > img {
  width: 100%;
  max-height: 350px;
  object-fit: contain;
  background: var(--surface-soft);
  border-radius: 14px;
}
.voltar {
  grid-column: 1 / -1;
  justify-self: start;
  padding: 0.65rem 0;
  color: var(--brand-dark);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  background: transparent;
  border: 0;
}
.detalhe-conteudo > span {
  color: var(--brand-dark);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-left: 1rem;
}
.detalhe-conteudo h4 {
  margin: 0.35rem 1rem 1.25rem;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -0.05em;
}
.detalhe-grade {
  display: grid;
  gap: 1rem;
}
.detalhe-grade section {
  width: auto;
  min-height: 0;
  margin: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.detalhe-grade h5 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}
.detalhe-grade p,
.detalhe-grade dd {
  color: var(--muted);
  line-height: 1.5;
}
.detalhe-grade a {
  display: inline-block;
  margin-top: 0.8rem;
  padding: 0.65rem 0.9rem;
  color: #fff;
  font-weight: 750;
  text-decoration: none;
  background: var(--brand-dark);
  border-radius: 7px;
}
.acoes-manual { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: .85rem; }
.acoes-manual a { margin-top: 0; }
.acoes-manual button {
  padding: .65rem .9rem;
  color: var(--ink);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  background: #fff;
  border: 1px solid var(--brand-dark);
  border-radius: 7px;
  transition: color 180ms ease, background 180ms ease;
}
.acoes-manual button:hover { color: #fff; background: var(--brand-dark); }
.installation-section { grid-column: 1 / -1; }
.installation-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; }
.installation-card { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; }
.installation-card img, .installation-card video { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--surface-soft); }
.installation-card p { padding: .75rem; color: var(--ink); font-weight: 600; }
.detalhe-grade dl {
  display: grid;
  gap: 0.55rem;
}
.detalhe-grade dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.45rem;
}
.detalhe-grade dt {
  font-weight: 700;
}

.container {
  display: grid;
  place-items: center;
  grid-column: 1 / -1;
  width: min(100%, 620px);
  min-height: 220px;
  margin: 1rem auto;
  padding: 2rem;
  color: #fff;
  background: linear-gradient(135deg, #76b52d, #9bd34f);
  border-radius: 16px;
  box-shadow: 0 14px 30px rgb(99 157 32 / 25%);
}
.container > div:first-child {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
}

select,
.btnbuscar {
  min-height: 48px;
  padding: 0 1rem;
  font: inherit;
  font-weight: 650;
  border-radius: 8px;
}
select {
  min-width: 150px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #fff;
}
.btnbuscar {
  color: #fff;
  cursor: pointer;
  background: var(--ink);
  border: 1px solid var(--ink);
  transition:
    background 180ms ease,
    transform 180ms ease;
}
.btnbuscar:hover {
  background: #303a31;
  transform: translateY(-2px);
}

.pdfDiv {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  grid-column: 1 / -1;
  padding: 1rem;
  border-radius: 10px;
  background: rgb(255 255 255 / 18%);
}
.pdfDiv a,
.carros > a {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}
.pdfDiv a:hover,
.carros > a:hover {
  text-decoration: underline;
}
.pdfDiv img,
.pdfimg {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

@media (max-width: 760px) {
  header {
    min-height: 94px;
  }
  main > section {
    border-radius: 14px;
  }
  .logoscar {
    grid-template-columns: repeat(3, minmax(75px, 1fr));
  }
  .carros {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
  .carros > div:not(.container) img {
    height: 140px;
  }
}

@media (max-width: 420px) {
  article,
  section {
    width: calc(100% - 1.25rem);
  }
  .logoscar {
    gap: 0.5rem;
    padding: 0.75rem;
  }
  .logoscar img {
    border-radius: 9px;
  }
  .container {
    padding: 1.25rem;
  }
  .container > div:first-child {
    flex-direction: column;
    width: 100%;
  }
  select,
  .btnbuscar {
    width: 100%;
  }
}
