:root {
  --red: #8f1018;
  --red-dark: #650911;
  --ink: #171717;
  --muted: #66615c;
  --line: #dfdcd7;
  --soft: #f7f6f3;
  --white: #ffffff;
  --success: #126f2f;
  --warning: #9b5a00;
  --display-font: "MBCorpo Title", "Mercedes-Benz Corpo A", "Didot", "Bodoni 72", Georgia, serif;
  --body-font: "MBCorpo Text", "Mercedes-Benz Corpo S", "Helvetica Neue", Arial, sans-serif;
  --brand-font: "MBCorpo Title", "Mercedes-Benz Corpo A", "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.55;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

img {
  display: block;
  max-width: 100%;
}

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

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(20px, 3.6vw, 64px);
  min-height: 82px;
  padding: 0 clamp(20px, 4vw, 54px);
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.brand,
.footer-brand {
  display: inline-grid;
  align-items: start;
  gap: 3px;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}

.brand::before,
.footer-brand::before {
  display: none;
}

.brand span,
.footer-brand span {
  position: relative;
  width: max-content;
  color: var(--ink);
  font-family: var(--display-font);
  font-size: 1.14rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand span::after,
.footer-brand span::after {
  display: block;
  width: 100%;
  height: 1px;
  margin-top: 6px;
  background: var(--red);
  content: "";
  transform-origin: left center;
}

.brand strong,
.footer-brand strong {
  color: #5e5a55;
  font-family: var(--body-font);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 1.6vw, 30px);
}

.main-nav a {
  position: relative;
  color: #292724;
  text-decoration: none;
  font-size: 0.74rem;
  font-weight: 650;
  white-space: nowrap;
}

.main-nav a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12px;
  height: 2px;
  background: var(--red);
  content: "";
  opacity: 0;
  transform: scaleX(0.5);
  transition: opacity 160ms ease, transform 160ms ease;
}

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

.more-nav {
  position: relative;
  align-self: center;
}

.more-nav summary {
  display: inline-grid;
  width: 38px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.more-nav summary::-webkit-details-marker {
  display: none;
}

.more-nav summary:hover,
.more-nav summary:focus-visible,
.more-nav[open] summary,
.more-nav-active summary {
  border-color: var(--red);
  color: var(--red);
  outline: none;
}

.more-nav-icon {
  position: relative;
  display: block;
  width: 18px;
  height: 4px;
}

.more-nav-icon::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 7px 0 0 currentColor, 14px 0 0 currentColor;
  content: "";
}

.more-nav-menu {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  z-index: 30;
  display: grid;
  min-width: 190px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.more-nav-menu a {
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 0.84rem;
}

.more-nav-menu a:hover,
.more-nav-menu a:focus-visible,
.more-nav-menu a.active {
  background: #fbfaf8;
  color: var(--red);
}

.more-nav-menu a::after {
  display: none;
}

.phone-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  text-transform: uppercase;
}

.phone-cta:hover,
.phone-cta:focus-visible {
  border-color: var(--ink);
  color: var(--red);
}

.nav-toggle {
  display: none;
}

@media (max-width: 1240px) {
  .phone-cta {
    display: none;
  }
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--display-font);
  font-weight: 500;
  line-height: 1.04;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(3.1rem, 6.4vw, 6.4rem);
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 3.4vw, 3.4rem);
}

h3 {
  margin-bottom: 8px;
  font-size: 1.16rem;
  line-height: 1.25;
}

p {
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.13);
}

.button-primary {
  border-color: var(--red);
  background: var(--red);
  color: var(--white);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--red-dark);
}

.button-secondary {
  background: var(--white);
  color: var(--ink);
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(380px, 0.9fr) minmax(440px, 1.1fr);
  min-height: calc(100vh - 82px);
  border-bottom: 1px solid var(--line);
}

.home-copy {
  align-self: center;
  padding: clamp(42px, 6vw, 82px) clamp(24px, 5vw, 70px);
}

.home-copy > p {
  max-width: 620px;
  font-size: clamp(1.06rem, 1.5vw, 1.27rem);
}

.home-media {
  margin: 0;
  min-height: 520px;
  overflow: hidden;
}

.home-media img {
  width: 100%;
  height: 100%;
  min-height: calc(100vh - 82px);
  object-fit: cover;
  object-position: 56% center;
}

.search-panel {
  max-width: 710px;
  margin-top: 34px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.search-panel h2 {
  font-size: clamp(1.7rem, 2.4vw, 2.4rem);
}

.home-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 710px;
  margin-top: 16px;
}

.home-actions-priority {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 470px;
}

.action-link {
  display: grid;
  gap: 6px;
  min-height: 124px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  text-decoration: none;
}

.action-link.red {
  border-color: var(--red);
}

.action-link span {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.action-link strong {
  font-size: 1.02rem;
  line-height: 1.35;
}

.preview-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.preview-strip a {
  display: grid;
  gap: 6px;
  padding: 26px clamp(20px, 4vw, 54px);
  background: var(--white);
  color: var(--muted);
  text-decoration: none;
}

.preview-strip span {
  color: var(--ink);
  font-weight: 850;
}

.inventory-section {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: clamp(46px, 6vw, 88px) 0;
}

.inventory-section .section-heading {
  max-width: 820px;
}

.inventory-results-hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(420px, 1.2fr);
  gap: 34px;
  align-items: start;
}

.inventory-results-hero > div {
  padding-top: 24px;
}

.inventory-search-panel {
  align-self: start;
  box-shadow: var(--shadow);
}

.inventory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.inventory-grid-detailed {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.inventory-empty-state {
  display: grid;
  gap: 12px;
  max-width: 720px;
  margin: 26px 0 0;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid #d8d2c9;
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffffff 0%, #f5f2ec 100%);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.06);
}

.inventory-empty-state[hidden] {
  display: none;
}

.inventory-empty-state span {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.inventory-empty-state h3 {
  margin: 0;
  font-size: clamp(1.5rem, 2.4vw, 2.3rem);
}

.inventory-empty-state p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.inventory-empty-state .button {
  width: fit-content;
  margin-top: 8px;
}

.inventory-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.07);
}

.inventory-card[hidden] {
  display: none !important;
}

.inventory-card-featured {
  grid-template-columns: minmax(360px, 0.92fr) minmax(420px, 1.08fr);
  align-items: start;
  gap: 0;
  margin-bottom: 22px;
  border-color: #cfc8bf;
}

.inventory-photo {
  position: relative;
  min-height: 250px;
  margin: 0;
  overflow: hidden;
  background: #edeae4;
}

.inventory-photo img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.inventory-card-featured .inventory-photo img {
  min-height: 0;
}

.photo-pending img {
  filter: saturate(0.85) contrast(0.92);
}

.photo-pending::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 19, 18, 0.05), rgba(20, 19, 18, 0.58));
  content: "";
}

.photo-pending figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  display: grid;
  gap: 5px;
  color: var(--white);
}

.photo-pending figcaption span {
  width: fit-content;
  padding: 6px 9px;
  background: var(--red);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.photo-pending figcaption strong {
  max-width: 26ch;
  font-family: var(--display-font);
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.04;
}

.inventory-body {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  padding: 22px;
}

.inventory-card-featured .inventory-body {
  padding: clamp(24px, 3vw, 34px);
}

.inventory-source,
.inventory-status-line span {
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.inventory-status-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.inventory-status-line strong {
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 850;
}

.inventory-card h3 {
  margin-bottom: 0;
  font-family: var(--display-font);
  font-size: clamp(1.3rem, 2vw, 1.86rem);
  font-weight: 500;
  line-height: 1.08;
}

.inventory-card:not(.inventory-card-featured) h3 {
  font-size: 1.22rem;
  line-height: 1.18;
}

.inventory-card p {
  margin-bottom: 0;
  font-size: 0.94rem;
}

.inventory-summary {
  max-width: 76ch;
  color: #4d4a46;
}

.recall-note {
  padding: 14px 16px;
  border-left: 4px solid var(--warning);
  background: #fff8ed;
  color: #4d4a46;
  font-size: 0.92rem;
}

.recall-note strong {
  color: var(--ink);
}

.inventory-price {
  margin-top: 4px;
  color: var(--ink);
  font-size: 1.02rem;
}

.inventory-specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 6px 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.inventory-specs-card {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.inventory-specs div {
  display: grid;
  gap: 4px;
  min-height: 78px;
  padding: 12px;
  background: #fbfaf8;
}

.inventory-specs dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.inventory-specs dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 780;
  line-height: 1.24;
}

.equipment-block,
.technical-details {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.equipment-block h4,
.technical-details h4 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 850;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.technical-list,
.tech-stack ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 18px;
  color: #4c4945;
  font-size: 0.94rem;
}

.technical-list li::marker,
.tech-stack li::marker {
  color: var(--red);
}

.technical-details summary {
  cursor: pointer;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.inventory-technical {
  margin-top: 4px;
}

.inventory-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding-top: 8px;
}

.inventory-actions .button {
  width: 100%;
}

.inventory-actions [data-copied="true"] {
  border-color: var(--success);
  color: var(--success);
}

.tech-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.tech-stack section {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  background: #fbfaf8;
}

.inventory-disclaimer {
  max-width: 920px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.page-hero,
.page-section,
.legal-copy {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.page-hero {
  padding: clamp(56px, 7vw, 106px) 0 clamp(34px, 5vw, 70px);
}

.page-hero p {
  max-width: 760px;
  font-size: 1.12rem;
}

.page-hero.split {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(360px, 1.15fr);
  align-items: center;
  gap: 42px;
}

.page-hero.split img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.page-hero.legal {
  border-bottom: 1px solid var(--line);
}

.page-section {
  padding: clamp(42px, 6vw, 88px) 0;
}

.page-section.soft {
  width: 100%;
  max-width: none;
  padding: clamp(42px, 6vw, 88px) max(20px, calc((100vw - var(--max)) / 2));
  background: var(--soft);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.module {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.form-grid,
.finance-form,
.vin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 24px;
}

.form-grid.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0;
  margin-bottom: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: #292929;
  font-size: 0.84rem;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid #cfcfcf;
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(190, 0, 17, 0.12);
}

.wide {
  grid-column: 1 / -1;
}

.checkbox-line {
  grid-template-columns: 18px 1fr;
  align-items: start;
  color: var(--muted);
  font-weight: 600;
}

.checkbox-line input {
  min-height: auto;
  margin-top: 4px;
}

.form-note,
.form-intro,
.fine-print {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-intro {
  margin: -4px 0 18px;
}

.form-note a,
.form-success a {
  color: var(--red);
  font-weight: 850;
  text-decoration: none;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.form-success {
  margin: 0 24px 24px;
  padding: 15px 16px;
  border-left: 4px solid var(--success);
  background: #edf8f0;
  color: #0d4f1e;
  font-weight: 750;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-grid article {
  min-height: 170px;
  padding: 22px;
  background: var(--white);
}

.service-grid span,
.watch-list span,
.small-label {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.service-grid p,
.watch-list p {
  margin-bottom: 0;
  font-size: 0.93rem;
}

.service-specialty-callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  margin-top: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  background: #fbfaf8;
}

.service-specialty-callout h3,
.service-specialty-callout p {
  margin-bottom: 0;
}

.service-specialty-callout h3 {
  font-family: var(--display-font);
  font-size: clamp(1.45rem, 2.1vw, 2rem);
  font-weight: 500;
}

.service-specialty-callout .button {
  white-space: nowrap;
}

.inspection-hero h1 {
  max-width: 980px;
  font-size: clamp(2.45rem, 4vw, 4.2rem);
}

.page-hero.split.inspection-hero {
  grid-template-columns: minmax(460px, 1.1fr) minmax(320px, 0.9fr);
}

.inspection-hero p + p {
  margin-top: 12px;
}

.inspection-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.inspection-overview article {
  min-height: 270px;
  padding: clamp(24px, 3vw, 34px);
  background: var(--white);
}

.inspection-overview h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.55rem);
}

.inspection-overview p {
  margin-bottom: 0;
}

.inspection-services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.inspection-service-card {
  min-width: 0;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.05);
}

.inspection-service-card span {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.inspection-service-card h3 {
  font-family: var(--display-font);
  font-size: clamp(1.5rem, 2.1vw, 2.1rem);
  font-weight: 500;
}

.inspection-service-card p {
  margin-bottom: 14px;
  color: #4f4b47;
}

.inspection-service-card ul,
.inspection-strength-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: #4c4945;
}

.inspection-service-card li::marker,
.inspection-strength-list li::marker {
  color: var(--red);
}

.inspection-lower-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.75fr) minmax(460px, 1.25fr);
  gap: 22px;
  align-items: start;
}

.inspection-disclosure {
  display: grid;
  gap: 14px;
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.05);
}

.inspection-disclosure h2,
.inspection-disclosure p {
  margin-bottom: 0;
}

.inspection-disclosure p {
  max-width: 980px;
}

.booking-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(430px, 1.1fr);
  gap: 22px;
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.module-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  padding: 22px 24px 0;
}

.module-heading p {
  margin-bottom: 0;
  font-size: 0.92rem;
}

.scheduler {
  padding-bottom: 24px;
}

.month-controls {
  display: grid;
  grid-template-columns: 38px minmax(140px, 1fr) 38px;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
}

.icon-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  padding: 0 24px;
}

.calendar-weekdays {
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-align: center;
}

.calendar-grid {
  margin-top: 8px;
}

.date-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  font-weight: 750;
}

.date-cell.outside,
.date-cell:disabled {
  color: #b5b5b5;
  cursor: not-allowed;
}

.date-cell.available {
  border-color: var(--line);
  background: var(--white);
}

.date-cell.selected {
  border-color: var(--red);
  background: var(--red);
  color: var(--white);
}

.slot-panel {
  padding: 24px 24px 0;
}

.time-slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.time-slot {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  font-weight: 750;
}

.time-slot.selected {
  border-color: var(--red);
  background: var(--red);
  color: var(--white);
}

.time-slot:disabled {
  color: #aaa;
  cursor: not-allowed;
}

.vin-form {
  grid-template-columns: minmax(280px, 1fr) 170px auto;
  align-items: end;
  border-bottom: 1px solid var(--line);
}

.vin-output {
  min-height: 310px;
  padding: 24px;
}

.empty-state {
  display: grid;
  min-height: 240px;
  place-content: center;
  color: var(--muted);
  text-align: center;
}

.empty-state h2 {
  color: var(--ink);
  font-size: clamp(1.9rem, 3vw, 3rem);
}

.decode-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.9fr);
  gap: 24px;
}

.decoded-fields {
  display: grid;
  border-top: 1px solid var(--line);
}

.decoded-row {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.decoded-row span:first-child {
  color: var(--muted);
  font-weight: 750;
}

.status-box {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.status-box.success {
  border-color: rgba(18, 111, 47, 0.35);
  background: #f1fbf3;
}

.status-box.warning {
  border-color: rgba(155, 90, 0, 0.35);
  background: #fff8ed;
}

.status-box.error {
  border-color: rgba(190, 0, 17, 0.35);
  background: #fff2f3;
}

.recall-list {
  display: grid;
  gap: 14px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.recall-list li {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.recall-list strong {
  display: block;
  margin-bottom: 4px;
}

.finance-module {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(260px, 0.7fr);
  overflow: hidden;
}

.finance-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.payment-result {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 28px;
  background: #191919;
  color: var(--white);
}

.payment-result span {
  color: #cfcfcf;
  font-size: 0.9rem;
  font-weight: 750;
}

.payment-result strong {
  color: var(--white);
  font-family: var(--display-font);
  font-size: clamp(2.5rem, 4.5vw, 4.4rem);
  font-weight: 500;
  line-height: 0.95;
}

.payment-result p {
  margin-bottom: 0;
  color: #d5d5d5;
  font-size: 0.9rem;
}

.market-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(420px, 1.2fr);
  gap: 22px;
}

.market-brief-section {
  padding-top: 12px;
}

.market-auction-reference {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.06);
}

.market-auction-reference h2,
.market-auction-reference p {
  margin-bottom: 0;
}

.market-auction-reference p {
  max-width: 720px;
  color: var(--muted);
}

.market-auction-reference small {
  color: var(--muted);
  font-weight: 750;
  white-space: nowrap;
}

.trade-layout {
  display: grid;
  grid-template-columns: minmax(420px, 1.1fr) minmax(300px, 0.9fr);
  gap: 22px;
  align-items: start;
}

.trade-note {
  padding: 28px;
}

.feature-panel {
  padding: 28px;
}

.market-primary-reference {
  display: grid;
  align-content: start;
  gap: 16px;
}

.market-primary-reference p,
.market-primary-reference .fine-print {
  margin-bottom: 0;
}

.watch-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.watch-list article {
  min-height: 185px;
  padding: 22px;
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.contact-grid article {
  min-height: 210px;
  padding: 26px;
  background: var(--white);
}

.contact-grid h2 {
  font-size: clamp(1.7rem, 2.7vw, 2.7rem);
}

.contact-grid a,
.legal-copy a {
  color: var(--red);
  font-weight: 800;
  text-decoration: none;
}

.contact-hero {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: end;
}

.contact-hero > div {
  max-width: 720px;
}

.callout-phone {
  display: grid;
  min-width: 260px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.callout-phone span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.callout-phone strong {
  color: var(--ink);
  font-family: var(--display-font);
  font-size: 2.1rem;
  font-weight: 500;
  line-height: 1.02;
}

.callout-phone small {
  color: var(--muted);
  font-weight: 700;
}

.contact-grid-polished article {
  min-height: 250px;
}

.contact-email-card {
  display: flex;
  flex-direction: column;
}

.email-note {
  max-width: 34ch;
  margin-bottom: 18px;
  color: var(--muted);
}

.email-lines {
  display: grid;
  gap: 0;
  margin-top: auto;
  border-top: 1px solid var(--line);
}

.email-lines a {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.email-lines span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.email-lines strong {
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 760;
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: left;
}

.wallet-payment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.wallet-payment-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 92px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.wallet-payment-card:hover,
.wallet-payment-card:focus-visible {
  border-color: #bdb6ad;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.wallet-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--line);
  background: #fbfaf8;
}

.wallet-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.wallet-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.wallet-copy strong {
  color: var(--ink);
  font-size: 1.04rem;
  font-weight: 850;
  line-height: 1.1;
}

.wallet-copy small {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1.2;
}

.wallet-open {
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.payment-acceptance-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  width: min(calc(100% - 40px), var(--max));
  margin: 18px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.94rem;
}

.payment-acceptance-note strong {
  color: var(--ink);
  font-weight: 850;
}

.portal-hero {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(280px, 0.55fr);
  gap: 28px;
  align-items: end;
}

.portal-security-note {
  padding: 24px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.portal-security-note p {
  margin-bottom: 0;
}

.portal-login-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.portal-login-card {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: clamp(24px, 4vw, 34px);
}

.portal-login-card h2,
.portal-login-card p {
  margin-bottom: 0;
}

.portal-staff-card {
  border-color: #cfc8bf;
  background: #fbfaf8;
}

.portal-app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: center;
  min-height: 76px;
  padding: 0 clamp(20px, 4vw, 54px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
}

.portal-app-header nav {
  display: flex;
  gap: 10px;
  align-items: center;
}

.portal-app-header nav a,
.portal-app-header nav button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.portal-app-header nav button {
  color: var(--red);
}

.portal-shell {
  width: min(calc(100% - 40px), 1240px);
  margin: 0 auto;
  padding: clamp(38px, 5vw, 70px) 0 clamp(56px, 7vw, 96px);
}

.portal-dashboard-heading {
  max-width: 900px;
  margin-bottom: 28px;
}

.portal-dashboard-heading h1 {
  margin-bottom: 12px;
  font-size: clamp(2.5rem, 5.2vw, 5rem);
}

.portal-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  background: var(--line);
}

.portal-metrics article {
  display: grid;
  gap: 8px;
  min-height: 118px;
  padding: 22px;
  background: var(--white);
}

.portal-metrics span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.portal-metrics strong {
  color: var(--ink);
  font-family: var(--display-font);
  font-size: clamp(2rem, 3.4vw, 3.6rem);
  font-weight: 500;
  line-height: 1;
}

.portal-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 22px;
  align-items: start;
}

.portal-panel {
  min-width: 0;
  overflow: hidden;
}

.portal-panel > .small-label,
.portal-form > h2,
.portal-form > label,
.portal-form > button,
.portal-form > .portal-alert {
  margin-inline: 24px;
}

.portal-panel > .small-label {
  margin-top: 24px;
}

.portal-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 0;
  padding-bottom: 24px;
}

.portal-form h2,
.portal-form .wide,
.portal-form button {
  grid-column: 1 / -1;
}

.portal-alert {
  margin: 0;
  padding: 14px 16px;
  border-left: 4px solid var(--success);
  background: #edf8f0;
  color: #0d4f1e;
  font-size: 0.92rem;
  font-weight: 750;
}

.portal-alert[data-tone="error"] {
  border-left-color: var(--red);
  background: #fff2f3;
  color: var(--red-dark);
}

.portal-alert[data-tone="neutral"] {
  border-left-color: var(--warning);
  background: #fff8ed;
  color: #593500;
}

.portal-table-wrap {
  overflow-x: auto;
  padding: 0 24px 24px;
}

.portal-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.portal-table th,
.portal-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.portal-table th {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.portal-table td {
  color: #403d39;
  font-size: 0.92rem;
}

.portal-list {
  display: grid;
  gap: 12px;
  padding: 0 24px 24px;
}

.portal-list article {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  background: #fbfaf8;
}

.portal-list article div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.portal-list span,
.portal-list small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.portal-list strong {
  color: var(--ink);
}

.portal-list p {
  margin-bottom: 0;
}

.integration-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding: 0 24px 24px;
  background: var(--line);
}

.integration-grid article {
  min-height: 150px;
  padding: 18px;
  background: #fbfaf8;
}

.integration-grid span {
  display: block;
  margin-bottom: 10px;
  color: var(--red);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.integration-grid p {
  margin-bottom: 0;
  font-size: 0.92rem;
}

.market-research-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  border: 1px solid var(--line);
  background: var(--line);
}

.market-research-grid article,
.market-research-grid a {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 210px;
  padding: 22px;
  background: var(--white);
}

.market-research-grid a,
.industry-article-card {
  color: var(--ink);
  text-decoration: none;
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.market-research-grid a:hover,
.market-research-grid a:focus-visible,
.industry-article-card:hover,
.industry-article-card:focus-visible {
  background: #fbfaf8;
  box-shadow: inset 0 -3px 0 var(--red);
  transform: translateY(-1px);
}

.market-result-card strong,
.industry-article-card strong {
  align-self: end;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.industry-article-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  border: 1px solid var(--line);
  background: var(--line);
}

.industry-article-card {
  display: grid;
  gap: 12px;
  min-height: 245px;
  padding: 24px;
  background: var(--white);
}

.industry-article-card span {
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.industry-article-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.market-source-section .section-heading {
  margin-bottom: 26px;
}

.market-source-list {
  display: grid;
  gap: 1px;
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  border: 1px solid var(--line);
  background: var(--line);
}

.market-source-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) minmax(220px, 0.95fr) minmax(260px, 1.45fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 86px;
  padding: 20px 24px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.market-source-row:hover,
.market-source-row:focus-visible {
  background: #fbfaf8;
  box-shadow: inset 4px 0 0 var(--red);
  transform: translateX(1px);
}

.market-source-row span {
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.market-source-row h3,
.market-source-row p {
  margin-bottom: 0;
}

.market-source-row p {
  color: var(--muted);
}

.market-source-row strong {
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  width: min(calc(100% - 40px), var(--max));
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.source-list span {
  color: var(--ink);
  font-weight: 850;
}

.source-list a {
  color: var(--red);
  font-weight: 800;
  text-decoration: none;
}

.page-section.soft .section-heading,
.page-section.soft .fine-print {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.legal-copy {
  max-width: 880px;
  padding: 40px 0 88px;
}

.legal-copy p {
  margin-bottom: 18px;
  color: #4f4f4f;
  font-size: 1.02rem;
}

.legal-copy strong {
  color: var(--ink);
}

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 34px clamp(20px, 4vw, 54px);
  border-top: 4px solid var(--red);
  background: #171717;
  color: var(--white);
}

.footer-brand strong {
  color: #d7d7d7;
}

.footer-brand::before {
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.24));
}

.footer-brand span {
  color: var(--white);
}

.site-footer nav {
  display: flex;
  justify-content: center;
  gap: 22px;
}

.site-footer a {
  color: #e8e8e8;
  text-decoration: none;
  font-weight: 750;
}

.site-footer p {
  margin: 0;
  color: #cfcfcf;
  text-align: right;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .phone-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-grid;
    gap: 5px;
    width: 44px;
    height: 44px;
    place-content: center;
    justify-self: end;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--white);
  }

  .nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ink);
  }

  .main-nav {
    position: fixed;
    inset: 82px 0 auto;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 12px 24px 26px;
    border-bottom: 1px solid var(--line);
    background: var(--white);
    box-shadow: var(--shadow);
  }

  body.nav-open .main-nav {
    display: flex;
  }

  .main-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }

  .main-nav a::after {
    display: none;
  }

  .more-nav {
    align-self: stretch;
  }

  .more-nav summary {
    justify-content: space-between;
    width: 100%;
    height: auto;
    padding: 14px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }

  .more-nav summary::before {
    color: #292724;
    font-size: 1rem;
    font-weight: 650;
    content: "More";
  }

  .more-nav-menu {
    position: static;
    min-width: 0;
    padding: 8px 0 0 16px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .more-nav-menu a {
    padding: 12px 0;
    border-radius: 0;
    font-size: 0.95rem;
  }
}

@media (max-width: 1160px) {
  .home-hero,
  .inventory-card-featured,
  .inventory-results-hero,
  .page-hero.split,
  .booking-layout,
  .market-layout,
  .trade-layout,
  .finance-module,
  .inspection-lower-grid,
  .page-hero.split.inspection-hero,
  .portal-hero,
  .portal-login-grid,
  .portal-two-column {
    grid-template-columns: 1fr;
  }

  .home-media,
  .home-media img {
    min-height: 420px;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid,
  .preview-strip {
    grid-template-columns: 1fr;
  }

  .market-research-grid,
  .industry-article-grid,
  .inventory-grid,
  .tech-stack,
  .portal-metrics,
  .integration-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .market-auction-reference,
  .market-source-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .market-auction-reference .button,
  .market-source-row strong {
    width: fit-content;
  }

  .wallet-payment-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  h1 {
    font-size: clamp(2.85rem, 14vw, 5.2rem);
  }

  .inspection-hero h1 {
    font-size: clamp(2.25rem, 11vw, 4.2rem);
  }

  .home-copy {
    padding: 42px 20px;
  }

  .home-actions,
  .inventory-actions,
  .form-grid,
  .form-grid.compact,
  .finance-form,
  .vin-form,
  .decode-grid,
  .watch-list,
  .market-research-grid,
  .industry-article-grid,
  .market-source-row,
  .inventory-grid,
  .inventory-specs,
  .tech-stack,
  .inspection-overview,
  .inspection-services-grid,
  .service-specialty-callout,
  .contact-grid,
  .wallet-payment-grid {
    grid-template-columns: 1fr;
  }

  .market-source-list,
  .inspection-services-grid,
  .inspection-disclosure {
    width: min(calc(100% - 32px), var(--max));
  }

  .portal-shell,
  .portal-login-grid {
    width: min(calc(100% - 32px), 1240px);
  }

  .portal-form {
    grid-template-columns: 1fr;
  }

  .portal-panel > .small-label,
  .portal-form > h2,
  .portal-form > label,
  .portal-form > button,
  .portal-form > .portal-alert {
    margin-inline: 18px;
  }

  .portal-table-wrap,
  .portal-list,
  .integration-grid {
    padding-inline: 18px;
  }

  .inventory-section {
    width: min(calc(100% - 32px), var(--max));
  }

  .inventory-body,
  .inventory-card-featured .inventory-body {
    padding: 20px;
  }

  .inventory-photo {
    min-height: 210px;
  }

  .contact-hero {
    display: grid;
    align-items: start;
  }

  .callout-phone {
    min-width: 0;
  }

  .email-lines a {
    display: grid;
    justify-content: stretch;
    gap: 4px;
  }

  .email-lines strong {
    text-align: left;
  }

  .button {
    width: 100%;
  }

  .time-slots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .module-heading {
    flex-direction: column;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer nav {
    justify-content: start;
  }

  .site-footer p {
    text-align: left;
  }
}

@media (max-width: 520px) {
  .brand span,
  .footer-brand span {
    font-size: 0.82rem;
  }

  .brand strong,
  .footer-brand strong {
    font-size: 0.52rem;
  }

  .brand,
  .footer-brand {
    gap: 8px;
  }

  .brand::before,
  .footer-brand::before {
    width: 40px;
    height: 26px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .portal-app-header {
    align-items: start;
    flex-direction: column;
    padding-block: 16px;
  }

  .portal-app-header nav {
    width: 100%;
  }

  .portal-app-header nav a,
  .portal-app-header nav button {
    flex: 1;
  }

  .portal-metrics,
  .integration-grid {
    grid-template-columns: 1fr;
  }

  .calendar-weekdays,
  .calendar-grid {
    gap: 4px;
    padding-inline: 16px;
  }

  .slot-panel,
  .form-grid,
  .vin-form,
  .vin-output,
  .finance-form {
    padding-inline: 16px;
  }

  .decoded-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

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