/* ==========================================================================
   Fonts
   ========================================================================== */
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/Outfit-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/Outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
  --color-text: #24272c;
  --color-text-70: rgba(36, 39, 44, 0.7);
  --color-text-50: rgba(36, 39, 44, 0.5);
  --color-text-10: rgba(36, 39, 44, 0.1);
  --color-primary: #f75d34;
  --color-primary-tint: rgba(247, 93, 52, 0.1);
  --color-red: #e6193e;
  --color-input-bg: #f5f6fa;
  --color-surface: #ffffff;
  --color-muted-bg: #f5f6fa;
  --color-border: #e5e5e5;

  --font-body: "Outfit", "Segoe UI", Arial, sans-serif;

  --container-pad: 20px;

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
}

/* ==========================================================================
   Reset
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-surface);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.container {
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: relative;
  z-index: 20;
  background: var(--color-surface);
  box-shadow: 0 0 6.75px rgba(0, 0, 0, 0.08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 3.6px;
}

.logo__icon {
  height: 24px;
  width: auto;
  flex-shrink: 0;
}

.logo__wordmark {
  height: 15px;
  width: auto;
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-contact__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.header-contact__text {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.header-contact__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: normal;
  white-space: nowrap;
}

.header-contact__number {
  font-size: 15px;
  font-weight: 600;
  line-height: normal;
  white-space: nowrap;
}

/* ==========================================================================
   Trust strip
   ========================================================================== */
.trust-strip {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 16px 0;
}

.trust-strip__list {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.trust-strip__item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  line-height: 23px;
  white-space: nowrap;
}

.trust-strip__item img,
.trust-strip__item svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--color-surface);
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding-top: 50px;
  padding-bottom: 20px;
}

/* ---- Offer form (shared: hero + dealer variant) ---- */
.offer-form {
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.67) 99%);
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
  box-shadow: -5px 0 10px rgba(0, 0, 0, 0.01), 5px 0 10px rgba(0, 0, 0, 0.01), 0 -5px 10px rgba(0, 0, 0, 0.01),
    0 5px 40px rgba(0, 0, 0, 0.1);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  backdrop-filter: blur(9px);
}

.offer-form__title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 4px;
}

.offer-form__subtitle {
  font-size: 13px;
  line-height: 1.4;
  color: var(--color-text-50);
}

.offer-form__fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-field {
  position: relative;
  width: 100%;
}

.form-field__input {
  width: 100%;
  height: 52px;
  padding: 0 20px;
  background: var(--color-input-bg);
  border: none;
  border-radius: var(--radius-sm);
  color: var(--color-text-70);
  font-family: var(--font-body);
  font-size: 16px;
  appearance: none;
  -webkit-appearance: none;
}

.form-field__input::placeholder {
  color: var(--color-text-70);
  font-family: var(--font-body);
  opacity: 1;
}

select.form-field__input {
  cursor: pointer;
  padding-right: 44px;
}

.form-field__chevron {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 6.79px;
  pointer-events: none;
}

.form-field--stacked {
  display: flex;
  align-items: center;
  height: 52px;
  padding: 0 44px 0 20px;
  background: var(--color-input-bg);
  border-radius: var(--radius-sm);
}

.form-field--stacked .form-field__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-field__label {
  font-family: var(--font-body);
  font-size: 10px;
  color: var(--color-text-70);
}

.form-field__value {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 40px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  text-transform: capitalize;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-surface);
}

.btn--outline {
  background: var(--color-surface);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn--block {
  width: 100%;
}

/* ==========================================================================
   Section heading (shared)
   ========================================================================== */
.section-heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 24px;
}

.section-heading__title {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
}

.section-heading__subtitle {
  font-size: 15px;
  color: var(--color-text-50);
  line-height: 1.4;
}

.section {
  padding-block: 48px;
}

/* ==========================================================================
   Car info
   ========================================================================== */
.car-info__price {
  font-size: 22px;
  font-weight: 600;
}

.car-info__price small {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text-70);
  margin-left: 4px;
}

.car-info__media {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.car-info__media-bg {
  position: absolute;
  top: 8%;
  left: 8%;
  right: 8%;
  bottom: 8%;
  background: var(--color-primary-tint);
  border-radius: 999px;
  z-index: 0;
}

.car-info__media img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
}

.spec-list {
  display: flex;
  flex-direction: column;
}

.spec-panel {
  border-bottom: 1px solid var(--color-text-10);
  padding: 20px 0;
}

.spec-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}

.spec-panel__head::-webkit-details-marker {
  display: none;
}

.spec-panel__title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.spec-panel__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--color-text-10);
  background: none;
  flex-shrink: 0;
}

.spec-panel__toggle .icon-plus {
  width: 12.614px;
  height: 12.609px;
}

.spec-panel__toggle .icon-close {
  width: 9.333px;
  height: 9.333px;
  display: none;
}

.spec-panel[open] .icon-plus {
  display: none;
}

.spec-panel[open] .icon-close {
  display: block;
}

.spec-highlights {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px 0 8px;
}

.spec-highlights__item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.spec-highlights__item img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.spec-highlights__row {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  font-size: 15px;
  line-height: 1.4;
  min-width: 0;
}

.spec-highlights__label {
  color: var(--color-text-70);
}

.spec-highlights__value {
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

/* ==========================================================================
   Offers
   ========================================================================== */
.offers-swiper {
  margin: 0 calc(-1 * var(--container-pad));
  padding: 4px var(--container-pad) 8px;
}

.offer-card {
  position: relative;
  height: auto;
  min-height: 188px;
  border-radius: 12px;
  border: 2px dashed rgba(247, 93, 52, 0.5);
  background: linear-gradient(112deg, #fff 2.47%, #fff2ee 107.58%);
  overflow: visible;
}

.offer-card::before,
.offer-card::after {
  content: "";
  position: absolute;
  top: 77%;
  width: 22px;
  height: 22px;
  background: #fff;
  border: 2px dashed rgba(247, 93, 52, 0.3);
  border-radius: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.offer-card::before {
  left: -18px;
  clip-path: inset(0 0 0 70%);
}

.offer-card::after {
  right: -18px;
  clip-path: inset(0 70% 0 0);
}

.offer-card__inner {
  position: relative;
  height: 100%;
  overflow: hidden;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.offer-card__art {
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 90px;
  object-fit: contain;
  pointer-events: none;
}

.offer-card__art--credit {
  right: 8px;
}

.offer-card__eyebrow {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.offer-card__eyebrow img {
  width: 16px;
  height: 16px;
}

.offer-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.offer-card__title {
  font-size: 20px;
  font-weight: 500;
  line-height: 24px;
  max-width: 76%;
}

.offer-card__title--credit {
  max-width: 88%;
}

.offer-card__desc {
  font-size: 12px;
  line-height: 19.825px;
  color: rgba(36, 39, 44, 0.6);
}

.offer-card__desc strong {
  font-weight: 600;
  color: var(--color-text);
}

.offer-card__footer {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 18px;
  border-top: 2px dotted rgba(247, 93, 52, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  line-height: 25.58px;
  font-size: 15px;
}

.offer-card__valid {
  color: var(--color-red);
  white-space: nowrap;
}

.offer-card__cta {
  color: var(--color-primary);
  font-weight: 600;
  white-space: nowrap;
}

.offer-card__cta:hover,
.offer-card__cta:focus-visible {
  text-decoration: underline;
}

.offers__footnote {
  display: flex;
  gap: 4px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--color-text);
}

.offers__footnote span:first-child {
  opacity: 0.7;
}

.offers__footnote a {
  text-decoration: underline;
}

.offers__nav {
  display: none;
}

.offers__nav[hidden] {
  display: none !important;
}

/* ==========================================================================
   Dealer location
   ========================================================================== */
.dealer {
  position: relative;
  margin-inline: calc(-1 * var(--container-pad));
}

.dealer picture {
  display: block;
}

.dealer__bg {
  display: block;
  width: 100%;
  height: 293px;
  object-fit: cover;
}

.dealer__bg--default {
  object-position: 23.5% 50%;
}

.dealer__card {
  position: relative;
  z-index: 1;
  width: calc(100% - 40px);
  margin: -50px auto 0;
  background: var(--color-surface);
  backdrop-filter: blur(9px);
  border-radius: var(--radius-md);
  box-shadow: -5px 0 5px rgba(0, 0, 0, 0.01), 5px 0 5px rgba(0, 0, 0, 0.01), 0 -5px 5px rgba(0, 0, 0, 0.01),
    0 5px 15px rgba(0, 0, 0, 0.06);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dealer__title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 4px;
}

.dealer__address {
  font-size: 15px;
  color: var(--color-text-50);
  line-height: 1.4;
}

.dealer__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dealer__meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  color: #090808;
}

.dealer__meta-item img,
.dealer__meta-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.dealer__actions {
  display: flex;
  gap: 12px;
  padding-top: 6px;
}

.dealer__actions .btn {
  flex: 1;
  min-width: 0;
  padding-inline: 8px;
  font-size: 15px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--color-muted-bg);
}

.site-footer__top {
  border-bottom: 1px solid var(--color-text-10);
  padding-block: 30px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-logo__icon {
  height: 24px;
  width: auto;
}

.footer-logo__wordmark {
  height: 15px;
  width: auto;
}

.dealer-contact {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dealer-contact__name {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}

.dealer-contact__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dealer-contact__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 15px;
  line-height: 1.6;
}

.dealer-contact__item img,
.dealer-contact__item svg {
  width: 16px;
  height: 16px;
  margin-top: 4px;
  flex-shrink: 0;
}

.footer-links__title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 20px;
}

.footer-links__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-links__list a {
  font-size: 15px;
  line-height: 1.6;
}

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

.site-footer__bottom {
  padding-block: 20px;
  text-align: center;
}

.site-footer__bottom .container {
  padding-inline: 8px;
}

.site-footer__bottom p {
  font-size: 12px;
  line-height: 1.6;
  opacity: 0.7;
  white-space: nowrap;
}

/* ==========================================================================
   Mobile hero (Figma node 12488-7606): show the full dynamic banner at the
   top and place the form card just below the car artwork inside it. The
   mobile banner is always 1080x1536 (enforced in WebsitebannerForm), so at
   full width it renders 142.22vw tall; !important is needed to beat the
   inline background style printed from PHP.
   ========================================================================== */
@media screen and (max-width: 769px) {
  .hero {
    background-size: 100% auto !important;
    background-position: top center !important;
    background-repeat: no-repeat !important;
  }

  .hero__inner {
    padding-top: 110vw;
    padding-bottom: 20px;
  }

  .offer-form {
    background: var(--color-surface);
    border: none;
    backdrop-filter: none;
    box-shadow: 0 5px 40px rgba(0, 0, 0, 0.1);
  }
}

/* ==========================================================================
   Desktop breakpoint (Figma desktop frame: 1440px)
   ========================================================================== */
@media (min-width: 1024px) {
  :root {
    --container-pad: 150px;
  }

  .site-header__inner {
    height: 64px;
  }

  .logo__icon {
    height: auto;
  }

  .header-contact__text {
    align-items: flex-start;
  }

  .logo {
    gap: 4.8px;
  }

  .logo__icon {
    width: auto;
    height: auto;
  }

  .logo__wordmark {
    height: 20px;
  }

  .header-contact__text {
    align-items: flex-start;
  }

  .trust-strip__list {
    gap: 30px;
  }

  .trust-strip__item {
    gap: 8px;
    font-size: 15px;
  }

  .trust-strip__item img,
  .trust-strip__item svg {
    width: 16px;
    height: 16px;
  }

  .hero__inner {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  /* Align the banner art with the page container: the badge/title baked into
     the 1600x650 image sit ~215px from its left edge, while the container
     content line is max((100vw - 1440px)/2, 0) + 150px. Shifting the image
     left by the difference lines the art up with the logo and sections below
     (min(..., 0px) never shifts it right, so the left edge always stays
     covered; the image's right edge is pure white, same as the hero
     background, so the slack there is invisible). This also pulls the
     car/woman left, clear of the form, on narrow desktops / browser zoom.
     !important beats the inline background style printed from PHP. */
  .hero {
    max-width: 1600px;
    margin-inline: auto;
    background-position: calc(min(max((100vw - 1440px) / 2, 0px) - 65px, 0px)) center !important;
  }

  .hero__form-slot {
    width: 380px;
    margin-left: auto;
  }

  .offer-form {
    background: linear-gradient(124deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.67) 99%);
    border-radius: var(--radius-lg);
    padding: 24px 30px 30px;
    backdrop-filter: blur(9px);
  }

  .offer-form__title {
    font-size: 30px;
    line-height: normal;
  }

  .section {
    padding-block: 70px;
  }

  .section-heading {
    margin-bottom: 40px;
  }

  .section-heading__title {
    font-size: 44px;
  }

  .section-heading__subtitle {
    font-size: 18px;
  }

  .car-info__price {
    font-size: 30px;
  }

  .car-info__price small {
    font-size: 15px;
  }

  .car-info__details {
    display: flex;
    align-items: flex-start;
    gap: 60px;
  }

  .car-info__media {
    order: 2;
    flex: 0 0 611px;
    width: 611px;
    height: 379px;
    margin-bottom: 0;
  }

  .car-info__media-bg {
    top: 50%;
    left: 160px;
    right: auto;
    bottom: auto;
    width: 450px;
    height: 380px;
    transform: translateY(-50%);
    border-radius: 250px 0 0 250px;
  }

  .car-info__media img {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 611px;
    height: 379px;
    max-width: none;
    object-fit: fill;
  }

  .spec-list {
    order: 1;
    flex: 1 1 auto;
    min-width: 0;
  }

  .spec-highlights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 219px));
    gap: 24px 60px;
  }

  .offers-swiper {
    margin-inline: 0;
    padding: 4px 0 0px;
  }

  .offer-card__inner {
    padding: 22px 20px;
  }

  .offers__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 24px;
    border: none;
    background: var(--color-surface);
    box-shadow: 0 8px 6px rgba(36, 39, 44, 0.15);
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
  }

  .offers__track {
    position: relative;
  }

  .offers__nav img {
    width: 14px;
    height: 14px;
  }

  .dealer {
    margin-inline: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 453px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 40px;
  }

  .dealer__bg {
    position: absolute;
    inset: 0;
    height: 100%;
    object-position: 50% 50%;
    z-index: 0;
  }

  .dealer__card {
    width: 100%;
    max-width: 478px;
    margin: 0;
    padding: 40px 48px 48px;
    gap: 20px;
    border-radius: var(--radius-sm);
  }

  .dealer__title {
    font-size: 22px;
    line-height: normal;
    margin-bottom: 8px;
  }

  .dealer__meta-item {
    gap: 12px;
  }

  .dealer__actions {
    gap: 20px;
  }

  .dealer__address {
    font-size: 15px;
  }

  .dealer__meta-item {
    font-size: 18px;
  }

  .dealer__meta-item img,
  .dealer__meta-item svg {
    width: 20px;
    height: 20px;
  }

  .dealer__actions .btn {
    font-size: 18px;
  }

  .site-footer__top {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    padding-block: 80px 60px;
  }

  .footer-brand {
    flex: 0 1 694px;
  }

  .footer-logo__icon {
    height: 40px;
  }

  .footer-logo__wordmark {
    height: 25px;
  }

  .footer-links {
    flex: 0 0 200px;
  }

  .site-footer__bottom .container {
    padding-inline: var(--container-pad);
  }
}
