/* Shared content bounds keep wide displays and browser zoom balanced while
   section backgrounds continue to the edges of the viewport. */
:root {
  --layout-max: 1440px;
  --content-max: 1312px;
  /* One twelve-column grid for every page. Sections place their content on its
     lines, and the centre line (the start of column 7) is where the second
     column of any two-part layout begins. */
  --grid-columns: repeat(12, minmax(0, 1fr));
  --grid-gap: clamp(16px, 1.85vw, 24px);
}

.layout-split {
  display: grid;
  grid-template-columns: var(--grid-columns);
  column-gap: var(--grid-gap);
}
.layout-split-lead { grid-column: 1 / span 6; min-width: 0; }
.layout-split-body { grid-column: 7 / span 6; min-width: 0; }
.layout-split--aligned { align-items: center; text-align: left; }
.layout-split--aligned :where(h1, h2) { overflow-wrap: anywhere; }
.layout-split--intro { align-items: start; row-gap: 18px; }
.layout-split--intro > :is(.eyebrow, .home-section-kicker) { grid-column: 1 / -1; margin: 0; }
.section-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.section-actions:first-child { margin-top: 0; }
.section-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 44px;
  max-width: 100%;
  padding: 10px 16px;
  border: 1px solid currentColor;
  border-radius: 4px;
  color: var(--section-action-color, var(--ink));
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
  text-align: left;
  transition: background-color 250ms ease, color 250ms ease, border-color 250ms ease;
}
.section-action > span:last-child { flex-shrink: 0; font-size: 17px; line-height: 1; }
.section-action:hover { border-color: var(--section-action-color, var(--ink)); background: var(--section-action-color, var(--ink)); color: var(--section-action-hover, #fff); }
.section-action:focus-visible { outline-color: var(--section-action-color, var(--ink)); outline-offset: 3px; }

.layout-centered {
  display: grid;
  justify-items: center;
  text-align: center;
}

.layout-centered :where(h1, h2) { text-wrap: balance; }

/* Matching parts of neighboring cards use the same content-sized rows. */
:where(.layout-subgrid) {
  display: grid;
  grid-row: span var(--layout-row-span, 2);
  grid-template-rows: subgrid;
  align-items: start;
  overflow-wrap: anywhere;
}

:where(.layout-subgrid) > * { min-width: 0; }

form label > .form-label-text { position: static; color: inherit; }
.form-required { color: #647078; }

/* Closing call to action. */
.cta-band { padding: clamp(44px, 5.6vw, 80px) max(4.5%, calc((100% - var(--content-max)) / 2)); background: var(--sand); color: var(--ink); }
.cta-band-inner { row-gap: 28px; }
.cta-band-copy { grid-column: 1 / span 8; min-width: 0; }
.cta-band-inner > .layout-split-lead { grid-column: 1 / span 6; }
.cta-band h2 { font-family: var(--sans); font-size: clamp(32px, 4.1vw, 60px); font-weight: 600; line-height: 1.12; letter-spacing: -.04em; }
.cta-band-inner > .layout-split-body > p { color: #29343a; font-size: 15px; line-height: 1.8; }
.cta-band-action {
  grid-column: 9 / span 4;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 58px;
  padding: 16px 26px;
  background: #000;
  color: #fff;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  transition: background-color 250ms ease;
}
.cta-band-action > span:last-child { font-size: 21px; font-weight: 400; line-height: 1; transition: transform 360ms cubic-bezier(.22, 1, .36, 1); }
.section-actions .cta-band-action { min-height: 44px; padding: 10px 16px; border-radius: 4px; font-size: 13px; }
.cta-band-action:hover { background: var(--slate); }
.cta-band-action:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) {
  .cta-band-action:hover > span:last-child { transform: translate(3px, -3px); }
}
@media (max-width: 800px) {
  .cta-band { padding-block: 40px; }
  .cta-band-copy, .cta-band-action, .cta-band-inner > .layout-split-lead { grid-column: 1 / -1; }
  .cta-band-action { justify-self: stretch; min-height: 54px; }
}
@media (max-width: 520px) {
  .cta-band { padding-inline: 5%; }
  .cta-band h2 { font-size: clamp(29px, 8vw, 36px); }
}
@media (prefers-reduced-motion: reduce) {
  .section-action, .cta-band-action, .cta-band-action > span:last-child { transition: none; transform: none; }
}

.capabilities-section { --section-action-color: var(--sand-light); --section-action-hover: var(--ink); }
.capabilities-section .capabilities-layout { grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 4vw, 52px); }
.capabilities-intro .layout-split-body > p { color: var(--paper); line-height: 1.8; }

:is(.section-padding, .page-intro, .page-section, .page-cta, .contact-page-layout, .site-footer) {
  padding-inline: max(4.5%, calc((100% - var(--content-max)) / 2));
}

.hero { max-height: 960px; }
.hero-layout {
  width: 100%;
  max-width: var(--layout-max);
  margin-inline: auto;
}
.hero-bottom { max-width: var(--content-max); }

.header-shell > .site-header,
.header-shell + .mobile-nav { max-width: var(--layout-max); }

@media (min-width: 801px) {
  .header-shell > .site-header { padding-left: min(4.5%, 64px); }
}

/* Fit the viewport when there is room, but let the copy set the minimum
   stage height so the selector rail always starts below both actions. */
@media (min-width: 801px) {
  .vehicles-page .hero {
    --hero-target-height: min(960px, 100svh - var(--header-reserved-height, var(--header-full-height, 91px)));
    --hero-stage-target: calc(var(--hero-target-height) - var(--hero-selector-height));
    grid-template-rows: minmax(min-content, 1fr) var(--hero-selector-height);
    height: auto;
    min-height: var(--hero-target-height);
    max-height: none;
  }
  @supports (height: 100dvh) {
    .vehicles-page .hero {
      --hero-target-height: min(960px, 100dvh - var(--header-reserved-height, var(--header-full-height, 91px)));
    }
  }
  .vehicles-page .hero-layout {
    container: hero / inline-size;
    min-height: 235px;
  }
  .vehicles-page .hero-content {
    position: relative;
    inset: auto;
    padding-block: clamp(16px, var(--hero-stage-target) * .075, 55px) clamp(16px, var(--hero-stage-target) * .04, 28px);
  }
  .vehicles-page .hero h1 {
    font-size: min(clamp(44px, 4.7cqw, 80px), clamp(30px, (var(--hero-stage-target) - 230px) * .29, 80px));
    margin-bottom: clamp(10px, var(--hero-stage-target) * .035, 26px);
  }
}

.about-section {
  display: block;
  background: linear-gradient(90deg, var(--sand) 50%, var(--paper) 50%);
}
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  width: 100%;
  max-width: var(--layout-max);
  margin-inline: auto;
}
.about-layout > .about-copy {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--paper);
}
.about-layout > .about-copy > .text-link { align-self: flex-start; }

@media (max-width: 800px) {
  .about-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
  /* One column: twelve tracks and their gutters no longer fit a phone. */
  .layout-split { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .layout-split-lead, .layout-split-body { grid-column: 1 / -1; }
  .layout-split--intro { row-gap: 16px; }
  .layout-split--intro > :is(.eyebrow, .home-section-kicker) { margin-bottom: -6px; }
}

@media (max-width: 520px) {
  :is(.section-padding, .page-intro, .page-section, .page-cta, .contact-page-layout, .site-footer) {
    padding-inline: 5%;
  }
  .about-section { background: var(--paper); }
  .about-layout { grid-template-columns: minmax(0, 1fr); }
}

.language-switches {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
}
.desktop-nav .language-switches { gap: 8px; }
.desktop-nav .language-switches::before { content: ''; width: 1px; height: 14px; margin-right: 4px; background: #ffffff59; }
.language-switches .language-switch { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; }
.language-switches .language-switch[aria-current] { text-decoration: underline; text-underline-offset: .32em; }
.mobile-nav-links .language-switches { gap: 6px; }
.mobile-nav-links .language-switches .language-switch { min-width: 44px; min-height: 44px; }
