/* =========================================================
   TDM NETWORK HOME PAGE
   Final homepage implementation:
   - refined logo image asset
   - compact white header
   - coastal SUV hero background with visible ocean/road
   - compact layered search panel
   - practical trust/data strip
========================================================= */

.home-container {
  width: min(100% - 88px, 1500px);
  margin-inline: auto;
}

/* =========================
   HEADER
========================= */

.home-header {
  height: 74px;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid rgba(226,232,240,0.95);
  box-shadow: 0 6px 18px rgba(15,23,42,0.04);
}

.home-header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: 230px 1fr 300px;
  align-items: center;
  gap: 28px;
}

.tdm-logo {
  display: flex;
  align-items: center;
  width: 205px;
  height: auto;
}

.tdm-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.home-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 52px;
}

.home-nav a {
  color: #07183d;
  font-size: 16px;
  font-weight: 700;
  transition: color 0.2s ease;
}

.home-nav a:hover {
  color: var(--color-primary-600);
}

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

.home-icon-link {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #07183d;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.home-icon-link:hover {
  color: var(--color-primary-600);
  background: rgba(37,99,235,0.06);
}

.home-icon-link svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-search-cta {
  min-height: 48px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  background: var(--color-primary-600);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(37,99,235,0.22);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.home-search-cta:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(37,99,235,0.25);
}

.home-search-cta svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =========================
   HERO
========================= */

.home-hero {
  position: relative;
  min-height: 705px;
  overflow: hidden;
  background: #f8fbff;
}

.home-hero-image {
  position: absolute;
  inset: 0;

  background-image:
    linear-gradient(
      90deg,
      rgba(248,251,255,0.96) 0%,
      rgba(248,251,255,0.86) 22%,
      rgba(248,251,255,0.48) 40%,
      rgba(248,251,255,0.12) 58%,
      rgba(248,251,255,0.00) 100%
    ),
    linear-gradient(
      180deg,
      rgba(248,251,255,0.00) 0%,
      rgba(248,251,255,0.00) 42%,
      rgba(7,24,61,0.42) 68%,
      rgba(7,24,61,0.92) 100%
    ),
    url("../../img/home-hero-suv-road.webp");

  background-size: cover;
  background-position: center 52%;
  background-repeat: no-repeat;
}

.home-hero-fade {
  position: absolute;
  inset: 0;

  background:
    radial-gradient(
      circle at 18% 12%,
      rgba(37,99,235,0.08),
      transparent 34%
    ),
    linear-gradient(
      180deg,
      rgba(248,251,255,0.00) 0%,
      rgba(7,24,61,0.18) 64%,
      rgba(7,24,61,0.82) 100%
    );

  pointer-events: none;
}

.home-hero-content {
  position: relative;
  z-index: 2;
  padding-top: 52px;
  padding-bottom: 24px;
}

.home-hero-copy {
  max-width: 660px;
}

.home-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(37,99,235,0.10);
  color: var(--color-primary-600);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.home-hero-copy h1 {
  margin-top: 18px;
  color: #07183d;
  font-family: var(--font-heading);
  font-size: clamp(48px, 4.55vw, 72px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.home-hero-copy h1 span {
  color: var(--color-primary-600);
}

.home-hero-copy p:not(.home-eyebrow) {
  margin-top: 18px;
  max-width: 560px;
  color: #172b4d;
  font-size: 18px;
  line-height: 1.55;
}

/* =========================
   TDM ICON SYSTEM
   These rules make every inline SVG icon look like the design system:
   clean outline, rounded ends, no fill, consistent stroke.
========================= */

.tdm-icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* =========================
   SEARCH PANEL
   Search box icon system:
   - professional Lucide-style outline SVG icons
   - rounded stroke ends
   - no fill
   - active tab turns blue
========================= */

.home-search-panel {
  width: min(100%, 965px);
  margin-top: 24px;
  overflow: hidden;
  background: rgba(255,255,255,0.97);
  border: 1px solid rgba(226,232,240,0.95);
  border-radius: 18px;
  box-shadow: 0 26px 60px rgba(15,23,42,0.15);
  backdrop-filter: blur(16px);
}

.home-search-tabs {
  display: grid;
  grid-template-columns: 1fr 1.25fr 1.15fr;
  border-bottom: 1px solid #dbe3ef;
}

.home-search-tab {
  position: relative;
  height: 58px;
  padding: 0 24px;
  border: 0;
  background: transparent;
  color: #07183d;
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s ease;
}

.home-search-tab:hover {
  color: var(--color-primary-600);
}

.home-search-tab.is-active {
  color: var(--color-primary-600);
}

.home-search-tab > span {
  color: currentColor;
}

.home-search-tab.is-active::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: var(--color-primary-600);
}

/* Tab icons inside Search Cars / Browse by Body Style / Advanced Search */
.home-search-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: currentColor;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-search-form {
  display: grid;
  grid-template-columns: 1.45fr 1.08fr 0.88fr 0.88fr 132px;
  gap: 12px;
  padding: 22px;
  align-items: stretch;
}

.home-search-field {
  min-height: 64px;
  padding: 11px 14px;
  border: 1px solid #dbe3ef;
  border-radius: 9px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 11px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-search-field:focus-within {
  border-color: var(--color-primary-400);
  box-shadow: 0 0 0 4px rgba(59,130,246,0.12);
}

/* Field icons inside Make/Model, Location, Max Price, and Year */
.home-search-field-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: #07183d;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-search-field-copy {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.home-search-field-label {
  color: #07183d;
  font-size: 14px;
  line-height: 1.1;
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0;
}

.home-search-field input,
.home-search-field select {
  width: 100%;
  height: 24px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #475569;
  font-size: 14px;
  line-height: 1.2;
}

.home-search-field input::placeholder {
  color: #64748b;
}

.home-search-field select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.home-search-select-field {
  padding-right: 12px;
}

.home-search-chevron {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: #07183d;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.home-search-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.home-search-button {
  height: 64px;
  min-width: 132px;
  border: 0;
  border-radius: 9px;
  background: var(--color-primary-600);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(37,99,235,0.20);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.home-search-button:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(37,99,235,0.24);
}

.home-more-filters {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--color-primary-600);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.home-more-filters-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: currentColor;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =========================
   DATA STRIP
========================= */

.home-data-strip {
  width: min(100%, 1280px);

  margin-top: 28px;

  display: grid;
  grid-template-columns: 1.12fr 1.48fr 1.4fr 1.12fr;
  gap: 0;

  position: relative;
  z-index: 3;
}

.home-data-item {
  min-height: 82px;
  padding: 0 22px;

  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 14px;

  min-width: 0;
  color: #fff;

  border-right: 1px solid rgba(255,255,255,0.25);
}

.home-data-item:last-child {
  border-right: 0;
}

.home-data-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255,255,255,0.22);
  color: #fff;
}

.home-data-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-data-item strong {
  display: block;
  color: #fff;
  font-size: 18px;
  line-height: 1.15;
  white-space: normal;
}

.home-data-item span {
  display: block;
  margin-top: 4px;
  color: rgba(255,255,255,0.90);
  font-size: 15px;
  line-height: 1.32;
}

/* =========================
   CATEGORY SECTION
========================= */

.home-categories {
  padding: 28px 0 56px;
  background: #f8fbff;
}

.home-category-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(490px, 32.5%);
  gap: 24px;
  align-items: stretch;
}

.home-category-main {
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto;
  gap: 18px;
}

.home-category-heading-row {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.home-category-heading-row h2 {
  margin: 0;
  color: #07183d;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.home-category-heading-row a {
  color: var(--color-primary-600);
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

.home-category-card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.home-category-card {
  position: relative;
  height: 178px;
  padding: 12px 14px 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e1e8f0;
  border-radius: 9px;
  box-shadow: 0 12px 28px rgba(15,23,42,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-category-card:hover {
  transform: translateY(-4px);
  border-color: #bfdbfe;
  box-shadow: 0 18px 40px rgba(15,23,42,0.10);
}

.home-category-card img {
  width: 100%;
  height: 76px;
  margin-bottom: 13px;
  object-fit: contain;
  object-position: center;
}

.home-category-card h3 {
  color: #07183d;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.home-category-card p {
  margin-top: 5px;
  color: #64748b;
  font-size: 14px;
}

.home-category-card > span {
  position: absolute;
  right: 16px;
  bottom: 16px;
  color: var(--color-primary-600);
  font-size: 22px;
  font-weight: 800;
}

.home-smart-card {
  height: 228px;
  padding: 16px 22px 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, #eef6ff 0%, #f8fbff 100%);
  border: 1px solid #e1e8f0;
  border-radius: 14px;
}

.home-smart-card-copy {
  min-width: 0;
}

.home-smart-badge {
  display: inline-flex;
  width: max-content;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(37,99,235,0.10);
  color: var(--color-primary-600);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.home-smart-card h3 {
  max-width: none;
  margin-top: 12px;
  color: #07183d;
  font-size: 24px;
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.home-smart-card p {
  max-width: none;
  margin-top: 12px;
  color: #334155;
  font-size: 15px;
  line-height: 1.48;
}

.home-smart-card a {
  display: inline-flex;
  margin-top: 13px;
  color: var(--color-primary-600);
  font-size: 15px;
  font-weight: 800;
}

.home-smart-visual {
  display: flex;
  justify-content: flex-end;
}

.home-smart-chart-card {
  width: 142px;
  min-height: 166px;
  padding: 14px 12px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  border-radius: 18px;
  background: rgba(255,255,255,0.72);
  box-shadow: 0 18px 38px rgba(37,99,235,0.10);
}

.home-smart-chart-card svg {
  width: 122px;
  height: 100px;
  fill: none;
}

.home-smart-chart-card rect {
  fill: rgba(37,99,235,0.10);
  stroke: none;
}

.home-smart-chart-card path {
  stroke: var(--color-primary-600);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-smart-chart-card span {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: rgba(37,99,235,0.10);
}

.home-smart-chart-card span:first-of-type {
  width: 82px;
}

.home-smart-chart-card span:last-of-type {
  width: 54px;
}

/* =========================
   TRUST ROW
========================= */

.home-trust-row {
  margin-top: 24px;
  padding: 16px 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  background: rgba(255,255,255,0.70);
  border: 1px solid #e1e8f0;
  border-radius: 12px;
}

.home-trust-item {
  min-width: 0;
  padding: 0 22px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  border-right: 1px solid #dbe3ef;
}

.home-trust-item:last-child {
  border-right: 0;
}

.home-trust-icon {
  width: 24px;
  height: 24px;
  display: block;
  opacity: 0.96;
}

.home-trust-copy {
  min-width: 0;
}

.home-trust-copy strong {
  display: block;
  color: #07183d;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.home-trust-copy span {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.35;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1280px) {
  .home-header-inner {
    grid-template-columns: 220px 1fr 280px;
  }

  .home-nav {
    gap: 32px;
  }

  .home-category-layout {
    grid-template-columns: 1fr;
  }

  .home-category-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-smart-card {
    height: auto;
    min-height: 230px;
  }
}

@media (max-width: 1050px) {
  .home-container {
    width: min(100% - 48px, 1500px);
  }

  .home-header-inner {
    grid-template-columns: auto auto;
  }

  .home-nav {
    display: none;
  }

  .home-search-form {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-search-actions {
    grid-column: span 2;
    flex-direction: row;
    align-items: center;
  }

  .home-search-button {
    flex: 1;
  }

  .home-data-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .home-data-item {
    border-right: 0;
    border-radius: 18px;
    background: rgba(7,24,61,0.72);
  }

  .home-data-item strong {
    white-space: normal;
  }

  .home-trust-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .home-trust-item {
    border-right: 0;
  }
}

@media (max-width: 720px) {
  .home-container {
    width: min(100% - 28px, 1500px);
  }

  .home-header {
    height: 76px;
  }

  .tdm-logo {
    width: 185px;
  }

  .home-header-actions .home-icon-link {
    display: none;
  }

  .home-search-cta {
    min-height: 46px;
    padding: 0 16px;
    font-size: 14px;
  }

  .home-search-cta svg {
    width: 18px;
    height: 18px;
  }

  .home-hero {
    min-height: auto;
  }

  .home-hero-content {
    padding-top: 54px;
  }

  .home-hero-copy h1 {
    font-size: 50px;
  }

  .home-hero-copy p:not(.home-eyebrow) {
    font-size: 18px;
  }

  .home-search-tabs {
    display: flex;
    overflow-x: auto;
  }

  .home-search-tab {
    min-width: max-content;
  }

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

  .home-search-actions {
    grid-column: auto;
    flex-direction: column;
  }

  .home-data-strip {
    grid-template-columns: 1fr;
  }

  .home-category-heading-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .home-category-card-grid {
    grid-template-columns: 1fr;
  }

  .home-category-card {
    height: 178px;
  }

  .home-smart-card {
    height: auto;
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .home-smart-visual {
    display: none;
  }

  .home-trust-row {
    grid-template-columns: 1fr;
  }
}
/* ================================
   Footer
================================ */

.site-footer {
  background: #f8fafc;
  border-top: 1px solid #e5e7eb;
  margin-top: 72px;
  color: #475569;
}

/*
  Footer uses the same width rule as .home-container so the left logo
  lines up with the header logo and the right edge lines up with
  the Search Cars button area.
*/
.footer-inner,
.footer-bottom {
  width: min(100% - 88px, 1500px);
  margin-inline: auto;
}

.footer-inner {
  padding: 58px 0 42px;
  display: grid;
  grid-template-columns: minmax(250px, 380px) minmax(0, 1fr);
  gap: 92px;
  align-items: start;
}

.footer-brand {
  max-width: 360px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin-bottom: 18px;
}

.footer-logo-img {
  display: block;
  width: 150px;
  height: auto;
}

.footer-description {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #64748b;
}

.footer-links {
  display: grid;
  grid-template-columns:
    minmax(110px, 0.75fr)
    minmax(135px, 0.9fr)
    minmax(135px, 0.9fr)
    minmax(340px, 1.35fr);
  gap: 38px;
  align-items: start;
}

.footer-column h3 {
  margin: 0 0 16px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-column a {
  display: block;
  margin-bottom: 11px;
  font-size: 14px;
  line-height: 1.4;
  color: #64748b;
  text-decoration: none;
  transition: color 0.18s ease;
}

.footer-column a:hover {
  color: #2563eb;
}

.footer-newsletter {
  min-width: 0;
}

.footer-newsletter p {
  max-width: 360px;
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.65;
  color: #64748b;
}

.footer-subscribe-form {
  width: 100%;
  max-width: 430px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.footer-subscribe-form input {
  min-width: 0;
  width: 100%;
  height: 44px;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  padding: 0 14px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: #0f172a;
  background: #ffffff;
  outline: none;
}

.footer-subscribe-form input::placeholder {
  color: #94a3b8;
}

.footer-subscribe-form input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.footer-subscribe-form button {
  height: 44px;
  border: 0;
  border-radius: 10px;
  padding: 0 18px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  background: #2563eb;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s ease, transform 0.18s ease;
}

.footer-subscribe-form button:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.footer-bottom {
  padding: 22px 0 28px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-bottom p {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}

.footer-note {
  text-align: right;
}

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

/* Footer responsive */
@media (max-width: 1280px) {
  .footer-inner,
  .footer-bottom {
    width: min(100% - 48px, 1500px);
  }

  .footer-inner {
    grid-template-columns: minmax(240px, 330px) minmax(0, 1fr);
    gap: 56px;
  }

  .footer-links {
    grid-template-columns:
      minmax(100px, 0.8fr)
      minmax(130px, 0.95fr)
      minmax(130px, 0.95fr)
      minmax(300px, 1.25fr);
    gap: 28px;
  }
}

@media (max-width: 1050px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-brand {
    max-width: 430px;
  }

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

  .footer-newsletter {
    max-width: 520px;
  }

  .footer-subscribe-form {
    max-width: 520px;
  }
}

@media (max-width: 720px) {
  .footer-inner,
  .footer-bottom {
    width: min(100% - 28px, 1500px);
  }

  .site-footer {
    margin-top: 52px;
  }

  .footer-inner {
    padding: 42px 0 34px;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-logo-img {
    width: 138px;
  }

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

  .footer-subscribe-form button {
    width: 100%;
  }

  .footer-bottom {
    padding: 20px 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-note {
    text-align: left;
  }
}
/* =========================
   HOME SEARCH STATES
========================= */

.home-search-field[hidden] {
  display: none !important;
}

.home-search-error {
  grid-column: 1 / -1;
  margin: -6px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff1f2;
  color: #be123c;
  font-size: 13px;
  font-weight: 700;
}

.home-wide-select {
  min-width: 100%;
}

.home-search-select-field {
  cursor: pointer;
}

.home-search-select-field select {
  min-width: 132px;
}

.home-body-style-field {
  grid-column: span 2;
}

/* Fix category card arrow overlap */
.home-category-card > span {
  position: static;
}

.home-category-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.home-category-title-row h3 {
  margin: 0;
}

.home-category-title-row span {
  color: var(--color-primary-600);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  flex: 0 0 auto;
}

.home-category-card p {
  max-width: 132px;
  line-height: 1.35;
}

.footer-subscribe-message {
  margin: 10px 0 0;
  color: #2563eb;
  font-size: 14px;
  font-weight: 800;
}

.footer-subscribe-form button:disabled {
  cursor: wait;
  opacity: 0.75;
}

@media (max-width: 1050px) {
  .home-body-style-field {
    grid-column: span 2;
  }
}

@media (max-width: 720px) {
  .home-body-style-field {
    grid-column: auto;
  }

  .home-category-card p {
    max-width: none;
  }
}

/* =========================================================
   MOBILE HOMEPAGE POLISH
   Keeps desktop layout intact and makes the hero/search usable
   on phones.
========================================================= */

@media (max-width: 720px) {
  body {
    overflow-x: hidden;
  }

  .home-container {
    width: min(100% - 24px, 1500px);
  }

  .home-header {
    height: 66px;
  }

  .home-header-inner {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .tdm-logo {
    width: 145px;
  }

  .home-search-cta {
    min-height: 40px;
    padding: 0 13px;
    border-radius: 10px;
    font-size: 13px;
  }

  .home-search-cta svg {
    width: 16px;
    height: 16px;
  }

  .home-hero {
    min-height: auto;
    background: #f8fbff;
  }

  .home-hero-image {
    background-image:
      linear-gradient(
        180deg,
        rgba(248,251,255,0.98) 0%,
        rgba(248,251,255,0.88) 34%,
        rgba(248,251,255,0.48) 62%,
        rgba(7,24,61,0.72) 100%
      ),
      url("../../img/home-hero-suv-road.webp");

    background-size: cover;
    background-position: 63% center;
  }

  .home-hero-fade {
    background:
      linear-gradient(
        180deg,
        rgba(248,251,255,0.00) 0%,
        rgba(7,24,61,0.06) 50%,
        rgba(7,24,61,0.58) 100%
      );
  }

  .home-hero-content {
    padding-top: 28px;
    padding-bottom: 22px;
  }

  .home-eyebrow {
    min-height: 24px;
    padding: 0 10px;
    font-size: 10px;
  }

  .home-hero-copy {
    max-width: 100%;
  }

  .home-hero-copy h1 {
    margin-top: 12px;
    font-size: clamp(32px, 10vw, 42px);
    line-height: 1.02;
    letter-spacing: -0.055em;
  }

  .home-hero-copy p:not(.home-eyebrow) {
    margin-top: 12px;
    max-width: 300px;
    font-size: 14px;
    line-height: 1.45;
  }

  .home-search-panel {
    width: 100%;
    margin-top: 18px;
    border-radius: 16px;
    box-shadow: 0 18px 42px rgba(15,23,42,0.16);
  }

  .home-search-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
  }

  .home-search-tab {
    min-width: 0;
    height: 52px;
    padding: 0 8px;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    line-height: 1.15;
    text-align: center;
  }

  .home-search-tab span {
    display: block;
  }

  .home-search-icon {
    width: 15px;
    height: 15px;
  }

  .home-search-tab.is-active::after {
    left: 8px;
    right: 8px;
  }

  .home-search-form {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 12px;
  }

  .home-search-field {
    min-height: 54px;
    padding: 9px 12px;
    border-radius: 10px;
    gap: 10px;
  }

  .home-search-field-icon {
    width: 18px;
    height: 18px;
  }

  .home-search-field-label {
    font-size: 12px;
  }

  .home-search-field input,
  .home-search-field select {
    height: 22px;
    font-size: 13px;
  }

  .home-search-select-field select {
    min-width: 0;
  }

  .home-search-chevron {
    width: 14px;
    height: 14px;
  }

  .home-search-actions {
    grid-column: auto;
    flex-direction: column;
    gap: 8px;
  }

  .home-search-button {
    width: 100%;
    height: 54px;
    min-width: 0;
    border-radius: 11px;
    font-size: 14px;
  }

  .home-more-filters {
    min-height: 28px;
    font-size: 12px;
  }

  .home-body-style-field {
    grid-column: auto;
  }

  .home-search-error {
    margin: 0;
    font-size: 12px;
  }

  .home-data-strip {
    margin-top: 18px;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .home-data-item {
    min-height: 64px;
    padding: 12px;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 11px;
    border-right: 0;
    border-radius: 14px;
    background: rgba(7,24,61,0.74);
  }

  .home-data-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .home-data-icon svg {
    width: 22px;
    height: 22px;
  }

  .home-data-item strong {
    font-size: 14px;
  }

  .home-data-item span {
    font-size: 12px;
    line-height: 1.3;
  }

  .home-categories {
    padding-top: 24px;
  }

  .home-category-card {
    height: auto;
    min-height: 154px;
  }
}
/* Hide newsletter honeypot field from real users */
.footer-honeypot {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}