:root {
  --black: #000000;
  --white: #ffffff;
  --ink: #1f2933;
  --muted: #5f6b76;
  --light-grey: #f2f2f2;
  --border: #d5dce3;
  --blue: #005cb2;
  --blue-dark: #004789;
  --pale-blue: #deebf2;
  --max-width: 1200px;
  --header-height: 80px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Host Grotesk", Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--white);
  font-size: 18px;
  line-height: 1.55;
}

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

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 24px;
  z-index: 10000;
  background: var(--white);
  color: var(--black);
  padding: 10px 14px;
  border-radius: 6px;
}

.skip-link:focus {
  top: 24px;
}

.page-container {
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto;
}

.hero-section {
  background: var(--light-grey);
  overflow: hidden;
  padding: 58px 0 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: 56px;
}

.hero-copy {
  padding-bottom: 92px;
}

.hero-copy h1 {
  margin: 0 0 22px;
  max-width: 610px;
  font-size: clamp(44px, 6vw, 70px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--black);
}

.hero-subtitle {
  margin: 0 0 28px;
  font-size: 20px;
  color: var(--ink);
}

.hero-image {
  align-self: end;
}

.hero-image img {
  width: min(100%, 496px);
  margin-left: auto;
}

.vin-form {
  position: relative;
  max-width: 530px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  background: var(--light-grey);
  border: 1px solid rgba(113, 128, 150, 0.35);
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.11);
}

.vin-field {
  flex: 1;
  min-width: 0;
  padding: 4px 8px;
}

.vin-field label {
  display: block;
  font-size: 12px;
  line-height: 1.3;
  color: var(--muted);
}

.vin-input-row {
  display: flex;
  align-items: center;
}

.vin-input-row input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  text-transform: uppercase;
  color: var(--ink);
  font-size: 18px;
  font-weight: 500;
}

.clear-vin {
  display: none;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  color: var(--black);
  font-size: 24px;
  line-height: 1;
}

.clear-vin.visible {
  display: grid;
  place-items: center;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 24px;
  border-radius: 6px;
  border: 0;
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.primary-btn:hover,
.primary-btn:focus-visible {
  background: var(--blue-dark);
  text-decoration: underline;
}

.form-message {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #b42318;
}

.form-message.success {
  color: #087443;
}

.content-section {
  padding: 80px 0;
}

.white-section {
  background: var(--white);
}

.grey-section {
  background: var(--light-grey);
}

.single-text {
  max-width: 760px;
}

.single-text p {
  margin: 0;
  font-size: 20px;
}

.split-grid,
.text-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.content-image img {
  width: 100%;
  border-radius: 18px;
}

.content-copy h2,
.section-heading h2,
.center-heading h2,
.cta-box h3 {
  margin: 0 0 24px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--black);
}

.content-copy p,
.rich-text p {
  margin: 0 0 18px;
  color: var(--ink);
}

.rich-text p:last-child,
.content-copy p:last-child {
  margin-bottom: 0;
}

.checks-section {
  background: var(--white);
  padding: 80px 0;
}

.center-heading {
  text-align: center;
  margin-bottom: 36px;
}

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

.check-card {
  min-height: 160px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  display: grid;
  gap: 18px;
  align-content: start;
  background: var(--white);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.check-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.check-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--pale-blue);
  color: var(--blue);
  font-weight: 900;
  font-size: 15px;
}

.check-card strong {
  font-size: 17px;
  line-height: 1.25;
}

.cta-section {
  background: var(--pale-blue);
  padding: 78px 0;
}

.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cta-box p {
  max-width: 720px;
  margin: 0;
}

.cta-btn {
  flex: 0 0 auto;
}

.site-footer {
  background: var(--black);
  color: var(--white);
  padding: 54px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: 42px;
  align-items: start;
}

.footer-logo {
  margin-bottom: 18px;
}

.footer-logo span {
  border-color: var(--black);
}

.footer-grid p {
  margin: 18px 0 0;
  color: #d9d9d9;
}

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

.footer-links a {
  color: var(--white);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-links span {
  color: #9cc8ff;
  font-size: 13px;
  margin-left: 4px;
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid #333;
  color: #c6c6c6;
  font-size: 14px;
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 980px) {
  .site-navbar {
    width: min(100% - 32px, var(--max-width));
    justify-content: space-between;
  }

  .mobile-menu-btn {
    display: inline-grid;
    gap: 5px;
    width: 38px;
    height: 38px;
    border: 0;
    background: transparent;
    padding: 7px;
    order: -1;
    cursor: pointer;
  }

  .mobile-menu-btn span {
    display: block;
    height: 3px;
    background: var(--black);
    border-radius: 2px;
  }

  .site-nav-wrapper {
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-height);
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    padding: 12px 24px 28px;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.14);
  }

  .site-nav-wrapper.open {
    display: flex;
  }

  .site-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav-item {
    display: block;
    border-bottom: 1px solid var(--border);
  }

  .nav-link {
    width: 100%;
    min-height: 54px;
    justify-content: space-between;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    width: 100%;
  }

  .wide-dropdown,
  .small-dropdown {
    min-width: 0;
    width: 100%;
    padding: 20px;
  }

  .wide-dropdown {
    flex-direction: column;
  }

  .dropdown-column + .dropdown-column {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid #4d4d4d;
    padding-top: 18px;
  }

  .search-item,
  .language-item {
    padding-right: 0;
    border-right: 0;
  }

  .hero-grid,
  .split-grid,
  .text-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero-copy {
    padding-bottom: 16px;
  }

  .hero-image img {
    margin: 0 auto;
  }

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

  .cta-box {
    flex-direction: column;
    align-items: flex-start;
  }

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

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  .page-container {
    width: min(100% - 32px, var(--max-width));
  }

  .hero-section {
    padding-top: 40px;
  }

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

  .vin-form {
    display: grid;
    gap: 12px;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .vin-field {
    background: var(--light-grey);
    border: 1px solid rgba(113, 128, 150, 0.35);
    border-radius: 8px;
    padding: 10px 14px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.09);
  }

  .primary-btn {
    width: 100%;
  }

  .form-message {
    position: static;
  }

  .content-section,
  .checks-section,
  .cta-section {
    padding: 58px 0;
  }

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

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