/* KeyXchange homepage refinements */
:root {
  --kx-ink: #102a38;
  --kx-silver: #c9dfec;
}

.header-inner {
  min-height: 80px;
}

.hero {
  --focus-outline: var(--kx-silver);
  background: radial-gradient(ellipse at 78% 25%, #244a5d 0%, transparent 56%), var(--kx-ink);
  color: var(--kx-pearl);
}

.hero::before {
  content: none;
}

.hero-layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, .94fr);
  gap: clamp(30px, 5vw, 76px);
  padding-block: clamp(35px, 5vw, 76px);
}

.hero .eyebrow {
  color: var(--kx-silver);
  margin-bottom: 16px;
}

.hero h1 {
  color: var(--kx-pearl);
  font-size: clamp(2.8rem, 5.5vw, 5.15rem);
  line-height: 1.03;
  text-wrap: balance;
}

.hero h1 span {
  color: var(--kx-silver);
}

.hero-intro,
.hero-intro strong {
  color: var(--kx-pearl);
}

.hero-intro {
  max-width: 32rem;
  margin: 21px 0 25px;
  line-height: 1.6;
}

.hero .button-outline {
  background: transparent;
  border-color: #9eb9ca;
  color: var(--kx-pearl);
}

.hero .button-outline:hover {
  background: #254b60;
}

.hero-phone {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--kx-silver);
  margin: 18px 0 0;
}

.hero-phone a {
  color: var(--kx-silver);
  margin: 0;
  letter-spacing: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero-photo {
  container-type: inline-size;
  height: clamp(370px, 42vw, 555px);
  border-radius: 22px;
  border-color: #5a788a;
  box-shadow: 0 24px 58px #050e1550;
}

.hero-photo > img {
  /* Frame the handover scene on the right of the existing brand artwork. */
  top: 50%;
  bottom: auto;
  height: max(100%, 110cqw);
  transform: translateY(-50%);
}

.home-routes {
  background: #fff;
  border-bottom: 1px solid var(--kx-platinum);
}

.home-routes-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.home-routes a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
  min-height: 83px;
  padding: 12px clamp(8px, 1.4vw, 22px);
  line-height: 1.35;
  color: var(--kx-navy);
}

.home-routes small {
  display: block;
  margin-top: 3px;
  color: var(--kx-steel);
  font-size: .875rem;
}

.home-routes a + a {
  border-left: 1px solid var(--kx-platinum);
}

.home-routes a:hover {
  background: var(--kx-pearl);
}

.home-routes a:focus-visible {
  outline-offset: -5px;
}

#how-i-help {
  padding-block: clamp(48px, 7vw, 90px);
}

#vehicle-stock {
  padding-block: clamp(48px, 6vw, 78px);
  border-block: 1px solid var(--kx-platinum);
}

.stock-contact-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: flex-start;
}

.stock-contact-options:has(details[open]) {
  display: block;
}

.stock-email-link {
  margin-block: 10px;
}

.stock-contact-options > details[open] {
  margin-bottom: 10px;
}

@media (max-width: 960px) {
  .header-inner {
    min-height: 79px;
  }
}

@media (min-width: 701px) and (max-width: 900px) {
  .home-routes a {
    align-items: start;
    flex-direction: column;
    gap: 5px;
  }
}

@media (max-width: 700px) {
  .header-inner {
    min-height: 76px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 25px;
    padding-block: 30px;
  }

  .hero-copy {
    padding: 0;
  }

  .hero h1 {
    font-size: clamp(2.43rem, 10vw, 4.35rem);
    text-wrap: initial;
  }

  .hero-photo {
    height: clamp(205px, 65vw, 380px);
    border-radius: 16px;
  }

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

  .home-routes a {
    min-height: 58px;
    justify-content: flex-start;
    font-size: .9375rem;
  }

  .home-routes a:nth-child(odd) {
    border-left: 0;
  }

  .home-routes a:nth-child(n+3) {
    border-top: 1px solid var(--kx-platinum);
  }

  .home-routes a:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 360px) {
  .hero h1 {
    font-size: 2.12rem;
  }

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

.stock-contact-options {
  margin-top: 14px;
}

.stock-contact-options > .stock-enquiry-layout {
  margin-top: 0;
}
