/* Revenda: o estoque e o contato têm prioridade sobre a apresentação institucional. */
:root {
  scroll-padding-top: 90px;
}
.mobile-actions {
  display: none;
}
.inventory .search-wrap {
  width: 100%;
  margin: 0;
}
.stock-filters {
  margin: 0 0 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.stock-filters > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 12px 18px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}
.stock-filters > summary::-webkit-details-marker {
  display: none;
}
.stock-filters > summary svg {
  width: 18px;
  transition: transform 0.25s;
}
.stock-filters[open] > summary svg {
  transform: rotate(90deg);
}
.stock-filters .vehicle-search {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0 0 8px 8px;
  box-shadow: none;
  padding: 18px;
}
.stock-filters .search-heading {
  display: none;
}
.stock-filters select {
  min-height: 44px;
}
.vehicle-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.vehicle-card {
  border-radius: 10px;
}
.vehicle-image {
  height: auto;
  aspect-ratio: 16 / 10;
  background: #edf0e8;
}
.vehicle-photo-button {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  background: transparent;
}
.vehicle-photo-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.vehicle-card:hover img {
  transform: none;
}
.vehicle-tag {
  pointer-events: none;
  font-size: 10px;
  letter-spacing: 0;
}
.favorite-button {
  width: 44px;
  height: 44px;
  right: 10px;
  top: 10px;
}
.favorite-button svg {
  width: 19px;
  height: 19px;
}
.photo-reference {
  position: absolute;
  bottom: 0;
  left: 0;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 0 6px 0 0;
  background: #ffffffee;
  color: #4b5347;
  font-size: 10px;
}
.vehicle-body {
  padding: 19px;
}
.vehicle-title {
  padding: 0;
  background: transparent;
  text-align: left;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}
.vehicle-body h3 {
  font-size: 23px;
  line-height: 1.25;
}
.vehicle-brand {
  font-size: 11px;
}
.vehicle-version {
  font-size: 12px;
  line-height: 1.6;
  min-height: 0;
}
.vehicle-specs {
  font-size: 12px;
  gap: 15px;
  padding-block: 14px;
}
.vehicle-specs span:last-child {
  display: flex;
}
.vehicle-bottom {
  align-items: center;
}
.vehicle-bottom small {
  font-size: 10px;
}
.vehicle-price {
  font-size: 25px;
}
.vehicle-location {
  font-size: 10px;
  color: var(--muted);
}
.vehicle-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 16px;
}
.vehicle-actions .button {
  min-height: 46px;
  padding: 12px 8px;
  font-size: 12px;
  gap: 0;
}
.photo-credit {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 11px;
  line-height: 1.6;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: #69755c;
}
.vehicle-body > .photo-credit {
  display: none;
}
.finance > summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.finance > summary::after {
  content: "+";
  margin-left: auto;
}
.finance[open] > summary::after {
  content: "−";
}
.finance h3 {
  margin-top: 16px;
}
.detail-hero {
  height: auto;
  max-height: 380px;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: #edf0e8;
}
.detail-summary {
  gap: 8px;
}
.detail-summary span {
  font-size: 12px;
}
.detail-interest {
  min-height: 48px;
}
.image-credits-link {
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 1000px) {
  .vehicle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 800px) {
  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }
  .container {
    width: calc(100% - 32px);
  }
  .site-header {
    position: sticky;
    top: 0;
    height: 68px;
    z-index: 30;
  }
  .header-inner {
    gap: 16px;
  }
  .brand-logo {
    width: 78px;
    height: 54px;
  }
  .header-contact {
    min-height: 44px;
    min-width: 44px;
  }
  .menu-toggle {
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
  }
  #main-nav {
    top: 68px;
  }
  #main-nav a {
    padding: 16px;
    font-size: 15px;
    min-height: 48px;
  }
  /* Sem uma dobra de imagem: o visitante chega direto às opções de usados. */
  .hero {
    height: auto;
    min-height: 0;
    background: #f0f4e9;
    color: var(--ink);
    overflow: visible;
  }
  .hero-photo,
  .hero-grid,
  .hero-caption,
  .hero-pagination,
  .hero-assurance,
  .hero-content > .button {
    display: none;
  }
  .hero-content {
    padding-block: 18px 16px;
  }
  .hero .eyebrow.light {
    font-size: 9px;
    color: #617346;
    letter-spacing: 1.1px;
    gap: 8px;
  }
  .hero .status-dot {
    background: #6c923b;
  }
  .hero h1 {
    font-size: 30px;
    line-height: 1.12;
    letter-spacing: -1.2px;
    margin: 9px 0 0;
    max-width: 24ch;
  }
  .hero h1 em {
    color: #567631;
  }
  .hero-content > p {
    display: none;
  }
  .inventory {
    padding-block: 22px 36px;
    background: #f8f9f5;
    border-top: 0;
  }
  .inventory .section-heading {
    margin-bottom: 12px;
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }
  .inventory .section-heading .eyebrow {
    display: none;
  }
  .inventory h2 {
    font-size: 22px;
    letter-spacing: -0.7px;
  }
  .inventory #show-all {
    min-height: 44px;
    font-size: 11px;
    gap: 6px;
    padding: 0;
  }
  .inventory #show-all svg {
    display: none;
  }
  .inventory-toolbar {
    display: block;
    margin-bottom: 12px;
  }
  .filter-tabs {
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 3px 1px 7px;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
  }
  .filter-tabs::-webkit-scrollbar {
    display: none;
  }
  .filter-tabs button {
    min-height: 44px;
    flex-shrink: 0;
    padding: 11px 15px;
    font-size: 12px;
    border-radius: 24px;
  }
  .filter-tabs button:last-child {
    padding: 11px 15px;
  }
  .filter-tabs button span {
    font-size: 10px;
  }
  .stock-count {
    display: none;
  }
  .stock-filters {
    margin-bottom: 16px;
  }
  .stock-filters > summary {
    font-size: 13px;
    padding: 11px 14px;
  }
  .stock-filters .vehicle-search {
    padding: 16px 14px;
  }
  .search-fields {
    gap: 16px;
  }
  .search-fields label {
    font-size: 12px;
  }
  .search-fields select {
    min-height: 46px;
    font-size: 16px;
    padding-bottom: 8px;
  }
  .search-fields .button {
    min-height: 46px;
    font-size: 12px;
  }
  .inventory-note {
    font-size: 12px;
    line-height: 1.8;
    margin-top: 24px;
  }
  .inventory-note button {
    font-size: 12px;
    min-height: 44px;
  }
  .benefits {
    padding-block: 28px;
    gap: 20px;
  }
  .benefits strong {
    font-size: 11px;
  }
  .benefits p span {
    font-size: 10px;
  }
  .experience h2 {
    font-size: 29px;
  }
  .experience-content > p:not(.eyebrow),
  .experience li,
  .steps p {
    font-size: 13px;
  }
  .experience .button {
    min-height: 46px;
    font-size: 12px;
  }
  .contact-banner .button {
    white-space: normal;
    font-size: 13px;
    min-height: 48px;
  }
  .mobile-actions {
    height: auto;
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 10px;
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 40;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: #fffffff5;
    border-top: 1px solid #dce2d2;
    box-shadow: 0 -6px 20px #17200d08;
    backdrop-filter: blur(10px);
  }
  .mobile-actions > a {
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid #d6deca;
    border-radius: 5px;
  }
  .mobile-actions .button {
    font-size: 13px;
    min-height: 46px;
    padding: 12px;
    gap: 10px;
  }
  .mobile-actions svg {
    width: 18px;
    height: 18px;
  }
  body.modal-open .mobile-actions {
    display: none;
  }
  .toast {
    bottom: calc(90px + env(safe-area-inset-bottom));
  }
  .site-footer .footer-links {
    gap: 8px 18px;
    justify-content: flex-start;
  }
  .site-footer .footer-links a,
  .site-footer .footer-links button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    font-size: 12px;
  }
  .footer-bottom {
    font-size: 10px;
    line-height: 1.8;
  }
  /* Tela de qualificação: as respostas rolam; ações permanecem ao alcance do polegar. */
  #contact-dialog {
    width: 100%;
    max-width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
  }
  #contact-dialog .dialog-close {
    top: max(12px, env(safe-area-inset-top));
    right: 12px;
    width: 44px;
    height: 44px;
  }
  .qualification {
    height: 100%;
    min-height: 0;
    padding: calc(26px + env(safe-area-inset-top)) 20px 0;
    display: flex;
    flex-direction: column;
  }
  .q-topline {
    padding-right: 45px;
    flex-shrink: 0;
  }
  .q-topline .eyebrow {
    font-size: 8px;
  }
  .q-step-count {
    font-size: 11px;
  }
  .q-progress {
    margin: 18px 0 20px;
    flex-shrink: 0;
  }
  .qualification h2 {
    font-size: 27px;
    flex-shrink: 0;
  }
  .q-description {
    font-size: 13px;
    line-height: 1.6;
    margin: 12px 0 20px;
    flex-shrink: 0;
  }
  #qualification-form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
  }
  .q-fields {
    display: block;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    padding: 5px 4px 24px;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #b1bd9f transparent;
  }
  .q-fields > * + * {
    margin-top: 22px;
  }
  .q-fields > .q-hint,
  .q-fields > .q-context {
    margin-top: 9px;
    margin-bottom: 5px;
  }
  .q-choice-group legend,
  .q-field > span {
    font-size: 14px;
  }
  .q-choice {
    min-height: 52px;
    font-size: 14px;
    padding: 14px;
  }
  .q-choices {
    gap: 10px;
  }
  .q-checkbox {
    font-size: 13px;
  }
  .q-hint,
  .q-context {
    font-size: 12px;
    line-height: 1.7;
  }
  .q-actions {
    flex-shrink: 0;
    margin: 0 -20px;
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
    background: #fff;
    box-shadow: 0 -5px 15px #17200d04;
  }
  .q-back {
    min-height: 48px;
    min-width: 64px;
    font-size: 13px;
  }
  .q-actions > .button {
    min-height: 48px;
    font-size: 13px;
    min-width: 145px;
    padding: 12px 18px;
  }
  .q-summary dt {
    font-size: 12px;
  }
  .q-summary dd {
    font-size: 14px;
  }
  .q-error {
    flex-shrink: 0;
    margin: 6px 0;
    font-size: 12px;
  }
  .q-send-note {
    flex-shrink: 0;
    font-size: 11px;
    margin: 0 -20px;
    padding: 4px 20px calc(12px + env(safe-area-inset-bottom));
    background: #fff;
  }
  .q-complete-actions {
    overflow-y: auto;
    padding-bottom: 30px;
  }
  #vehicle-dialog {
    width: 100%;
    max-width: 100%;
    max-height: 100dvh;
    margin: auto 0 0;
    border-radius: 15px 15px 0 0;
  }
  #vehicle-dialog .dialog-close {
    width: 44px;
    height: 44px;
  }
  .detail-content {
    padding: 22px 20px;
  }
  .detail-content > p,
  .demo-note {
    font-size: 12px;
  }
  .detail-price {
    font-size: 29px;
  }
}
@media (max-width: 600px) {
  .vehicle-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .vehicle-image {
    aspect-ratio: 16 / 9;
  }
  .vehicle-body {
    padding: 16px;
  }
  .vehicle-brand {
    font-size: 11px;
    margin-bottom: 5px;
  }
  .vehicle-body h3 {
    font-size: 23px;
    margin-bottom: 4px;
  }
  .vehicle-version {
    font-size: 13px;
  }
  .vehicle-specs {
    font-size: 13px;
    padding-block: 11px;
  }
  .vehicle-bottom {
    margin-top: 12px;
  }
  .vehicle-price {
    font-size: 27px;
  }
  .vehicle-bottom small {
    font-size: 11px;
  }
  .vehicle-location {
    font-size: 11px;
  }
  .vehicle-actions {
    margin-top: 14px;
  }
  .vehicle-actions .button {
    min-height: 48px;
    font-size: 13px;
  }
  .photo-reference {
    min-height: 44px;
    font-size: 10px;
  }
}
@media (max-height: 650px) and (max-width: 800px) {
  .qualification {
    padding-top: 15px;
  }
  .q-progress {
    margin-block: 12px;
  }
  .qualification h2 {
    font-size: 22px;
  }
  .q-description {
    font-size: 12px;
    margin-block: 8px 12px;
  }
}
@media print {
  .mobile-actions {
    display: none;
  }
}
