:root {
  color-scheme: light;
  --blue: #336699;
  --blue-dark: #1f4668;
  --navy: #172c3c;
  --ink: #222b32;
  --muted: #5c6871;
  --paper: #f5f7f8;
  --white: #fff;
  --content-width: 1200px;
  font-family: "Lato", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}

body {
  min-width: 320px;
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
}

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

a {
  color: inherit;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid #edb84b;
  outline-offset: 4px;
}

.content-width,
.header-inner,
.footer-inner {
  width: min(var(--content-width), calc(100% - 3rem));
  margin-inline: auto;
}

.section-pad {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.site-header {
  position: relative;
  z-index: 5;
  background: var(--white);
}

.header-inner {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand img {
  width: 190px;
  height: auto;
}

.site-menu {
  position: relative;
}

.site-menu summary {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  cursor: pointer;
  list-style: none;
}

.site-menu summary::-webkit-details-marker {
  display: none;
}

.menu-icon {
  width: 38px;
  display: grid;
  gap: 7px;
}

.menu-icon span {
  height: 4px;
  border-radius: 4px;
  background: var(--blue);
  transition: transform 160ms ease, opacity 160ms ease;
}

.site-menu[open] .menu-icon span:first-child {
  transform: translateY(11px) rotate(45deg);
}

.site-menu[open] .menu-icon span:nth-child(2) {
  opacity: 0;
}

.site-menu[open] .menu-icon span:last-child {
  transform: translateY(-11px) rotate(-45deg);
}

.site-menu nav {
  position: absolute;
  top: calc(100% + 1rem);
  right: 0;
  z-index: 2;
  width: min(19rem, calc(100vw - 2rem));
  padding: 0.6rem;
  background: var(--white);
  box-shadow: 0 12px 32px rgb(17 35 49 / 18%);
}

.site-menu nav a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}

.site-menu nav a:hover {
  background: var(--paper);
  color: var(--blue);
}

.hero {
  position: relative;
  min-height: max(650px, min(850px, calc(100vh - 100px)));
  min-height: max(650px, min(850px, calc(100svh - 100px)));
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 5rem 1.5rem;
  color: var(--white);
  text-align: center;
  background: var(--navy);
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgb(13 27 40 / 42%), rgb(13 27 40 / 23%) 52%, rgb(13 27 40 / 36%));
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1500px, 100%);
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero .eyebrow {
  font-size: clamp(0.8rem, 1.5vw, 1.2rem);
  letter-spacing: 0.22em;
}

.hero h1 {
  margin: 1.5rem 0 2.4rem;
  font-family: "Teko", Impact, sans-serif;
  font-size: clamp(4.7rem, 8.5vw, 7.5rem);
  font-weight: 500;
  line-height: 0.84;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.button {
  min-height: 3.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.8rem;
  border: 2px solid transparent;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-light {
  min-width: min(21rem, 100%);
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
}

.button-light:hover {
  border-color: var(--white);
  background: var(--white);
  color: var(--blue-dark);
}

.brand-strip {
  padding: 2rem 1.5rem;
  border-bottom: 1px solid #e5e9ec;
  background: var(--white);
}

.brand-grid {
  width: min(1100px, 100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  gap: 1.7rem 2.2rem;
}

.brand-grid img {
  width: min(100%, 125px);
  max-height: 62px;
  object-fit: contain;
}

.brand-name {
  color: var(--white);
  font-family: "Teko", Impact, sans-serif;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
}

.intro {
  background: var(--blue);
  color: var(--white);
  text-align: center;
}

.intro h2,
.section-heading h2,
.financing h2 {
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.12;
}

.intro-copy {
  max-width: 940px;
  margin: 2.5rem auto 0;
  text-align: left;
}

.intro-copy p {
  margin: 0 0 1.2rem;
}

.section-actions {
  margin-top: 2.5rem;
}

.button-outline {
  min-width: min(19rem, 100%);
  border-color: rgb(255 255 255 / 75%);
  color: var(--white);
}

.button-outline:hover {
  background: var(--white);
  color: var(--blue-dark);
}

.section-heading {
  margin-bottom: 2.5rem;
  text-align: center;
}

.eyebrow-blue {
  color: var(--blue);
}

.section-heading h2,
.financing h2 {
  color: var(--navy);
}

.dealer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.dealer-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid #e3e8eb;
  background: var(--white);
  box-shadow: 0 8px 22px rgb(23 44 60 / 7%);
}

.dealer-card > img {
  width: 100%;
  height: 205px;
  object-fit: cover;
  background: var(--paper);
}

.card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.35rem;
}

.card-content h3 {
  margin: 0 0 0.65rem;
  color: var(--navy);
  font-size: 1.2rem;
  line-height: 1.3;
}

.card-content p {
  margin: 0 0 0.55rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.card-content p a {
  color: var(--blue-dark);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.button-card {
  width: 100%;
  min-height: 2.9rem;
  margin-top: auto;
  padding: 0.65rem 0.8rem;
  background: var(--blue);
  color: var(--white);
}

.button-card:hover,
.button-blue:hover {
  background: var(--blue-dark);
}

.services {
  background: var(--navy);
  color: var(--white);
}

.section-heading-light h2 {
  color: var(--white);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.service-card {
  overflow: hidden;
  background: #20394c;
}

.service-logo {
  height: 142px;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: var(--blue);
}

.service-logo img {
  max-width: 100%;
  max-height: 88px;
  object-fit: contain;
}

.service-card details {
  padding: 1.15rem 1.25rem 1.35rem;
}

.service-card summary {
  position: relative;
  padding-right: 1.6rem;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 700;
  list-style: none;
}

.service-card summary::-webkit-details-marker {
  display: none;
}

.service-card summary::after {
  position: absolute;
  right: 0;
  content: "+";
  font-size: 1.4rem;
  line-height: 1;
}

.service-card details[open] summary::after {
  content: "−";
}

.service-card details p {
  margin: 1rem 0;
  color: #e0e7eb;
  font-size: 0.9rem;
}

.service-card details a {
  color: var(--white);
  font-weight: 700;
  text-underline-offset: 3px;
}

.financing {
  background: var(--paper);
}

.financing-inner {
  max-width: 900px;
  text-align: center;
}

.financing h2 {
  margin-bottom: 1.5rem;
}

.financing p:not(.eyebrow) {
  color: var(--muted);
  text-align: left;
}

.button-blue {
  margin-top: 1rem;
  background: var(--blue);
  color: var(--white);
}

.find-us {
  background: var(--white);
}

.address {
  margin: 1.2rem 0 0.3rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.text-link {
  color: var(--blue-dark);
  font-weight: 700;
  text-underline-offset: 3px;
}

.map-frame {
  width: 100%;
  height: 400px;
  display: block;
  border: 0;
  margin-top: 2rem;
}

.site-footer {
  padding: 2.5rem 0 1.4rem;
  background: #1d2328;
  color: #d8dce0;
}

.footer-inner {
  text-align: center;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.6rem;
  margin-bottom: 1.2rem;
}

.footer-inner nav a {
  color: var(--white);
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-inner nav a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-inner p {
  margin: 0;
  color: #aeb7be;
  font-size: 0.8rem;
}

.page-hero {
  padding: clamp(4rem, 9vw, 7rem) 1.5rem;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  color: var(--white);
  text-align: center;
}

.page-hero .eyebrow {
  margin-bottom: 0.8rem;
}

.page-hero h1 {
  margin: 0;
  font-family: "Teko", Impact, sans-serif;
  font-size: clamp(4rem, 9vw, 7rem);
  font-weight: 500;
  line-height: 0.9;
  text-transform: uppercase;
}

.offers-intro {
  max-width: 850px;
  margin: 0 auto;
  color: var(--muted);
  text-align: center;
}

.offers-section-heading {
  margin-top: 3.5rem;
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.offer-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid #e3e8eb;
  background: var(--white);
  box-shadow: 0 8px 22px rgb(23 44 60 / 7%);
}

.offer-card img {
  width: 100%;
  height: 165px;
  object-fit: cover;
  background: var(--paper);
}

.offer-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.25rem;
}

.offer-card h2 {
  margin: 0 0 0.7rem;
  color: var(--navy);
  font-size: 1.15rem;
  line-height: 1.3;
}

.offer-card p {
  margin: 0 0 1.2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.offer-card .button {
  width: 100%;
  margin-top: auto;
}

.offer-points {
  padding-block: 3.5rem;
  background: var(--paper);
}

.offer-point-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.offer-point-grid h2 {
  margin: 0;
  color: var(--blue-dark);
  font-size: 1.2rem;
}

.trade-in {
  background: var(--blue);
  color: var(--white);
  text-align: center;
}

.trade-in h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1.2;
}

.trade-in p {
  max-width: 760px;
  margin: 0 auto;
}

.not-found {
  min-height: 55vh;
  display: grid;
  place-items: center;
  padding: 4rem 1.5rem;
  text-align: center;
}

.not-found h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2.5rem, 6vw, 4rem);
}

.not-found p {
  color: var(--muted);
}

@media (max-width: 1000px) {
  .dealer-grid,
  .offer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (max-width: 600px) {
  body {
    font-size: 0.96rem;
  }

  .content-width,
  .header-inner,
  .footer-inner {
    width: min(100% - 2rem, var(--content-width));
  }

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

  .brand img {
    width: 156px;
  }

  .hero {
    min-height: 620px;
    padding: 4rem 1rem;
  }

  .hero h1 {
    font-size: clamp(4.4rem, 17vw, 6rem);
  }

  .hero-actions,
  .section-actions {
    flex-direction: column;
    align-items: center;
  }

  .button-light,
  .button-outline {
    width: min(22rem, 100%);
  }

  .brand-strip {
    padding: 1.5rem 1rem;
  }

  .brand-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem 1rem;
  }

  .brand-grid img {
    max-height: 46px;
  }

  .brand-name {
    font-size: 1.6rem;
  }

  .intro h2,
  .section-heading h2,
  .financing h2 {
    font-size: 2.3rem;
  }

  .dealer-grid,
  .service-grid,
  .offer-grid,
  .offer-point-grid {
    grid-template-columns: 1fr;
  }

  .dealer-card > img {
    height: 225px;
  }

  .service-logo {
    height: 125px;
  }

  .map-frame {
    height: 320px;
  }

  .footer-inner nav {
    gap: 0.7rem 1rem;
  }
}

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