/* Hilton Garage — shared tokens, layout primitives, nav, footer, buttons.
   Design canvas is 1730px wide; main content column is 1180px, nav is 1408px. */

:root {
  --navy: #293680;
  --navy-deep: #1e2b62;
  --yellow: #fccd0b;
  --ink: #001333;
  --ink-65: rgba(0, 19, 51, 0.65);
  --ink-50: rgba(0, 19, 51, 0.5);
  --navy-50: rgba(41, 54, 128, 0.5);
  --baby-blue: #d9ecfd;
  --off-white: #fafaf9;
  --tp-green: #00b67a;
  --radius: 8.5px;
  --shadow: 0 3.4px 17px rgba(0, 0, 0, 0.15);
  --shadow-sm: 0 2.55px 8.5px rgba(0, 0, 0, 0.25);
  --container: 1003px;
  --container-wide: 1196.8px;
  --gutter: 20.4px;
  --font: 'Poppins', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
h1, h2, h3, h4, p { margin: 0; }

.container {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
}
.container-wide {
  width: min(var(--container-wide), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* ---------- Type ---------- */
.eyebrow {
  font-weight: 600;
  font-size: 16.72px;
  letter-spacing: 3.4px;
  text-transform: uppercase;
  color: var(--navy);
}
.section-title {
  font-weight: 700;
  font-size: 32.85px;
  line-height: 1.1;
  color: var(--navy);
}
.section-sub {
  font-size: 15.8px;
  line-height: 1.5;
  color: var(--ink-65);
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20.4px;
}
.section-head--center { flex-direction: column; align-items: center; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  height: 52.5px;
  padding: 8.5px 40.8px;
  border: 0;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 17.7px;
  line-height: 1.1;
  text-transform: capitalize;
  cursor: pointer;
  white-space: nowrap;
  transition: filter .15s ease, transform .15s ease;
}
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn--yellow { background: var(--yellow); color: var(--navy-deep); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--white { background: #fff; color: var(--navy); }
.btn--sm { height: 42.5px; padding: 8.5px 22.1px; font-size: 14.94px; font-weight: 600; gap: 10.2px; }
.btn--md { height: 42px; padding: 8.5px 30.6px; font-size: 17px; font-weight: 600; }

/* ---------- Nav ---------- */
.site-header {
  background: #fff;
  padding: 24.65px 0 24.65px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24.65px;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 70.55px;
  height: 71.88px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
}
.nav__logo { flex: 0 1 auto; min-width: 0; }
.nav__logo img { width: 192.1px; height: auto; aspect-ratio: 226 / 37.9; }
.nav__links { display: flex; align-items: center; gap: 22.7px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  display: block;
  padding: 0 4.84px 3.23px;
  font-family: 'Roboto', var(--font);
  font-weight: 500;
  font-size: 13.49px;
  line-height: 18.85px;
  color: var(--navy);
  border-bottom: 1.7px solid transparent;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { border-bottom-color: var(--yellow); }
.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 16.15px;
  height: 42.5px;
  padding: 0 12.75px;
  border-radius: 9.35px;
  background: var(--yellow);
  color: var(--navy);
  font-family: 'Roboto', var(--font);
  font-weight: 700;
  font-size: 14.89px;
}
.nav__cta img { width: 41.23px; height: 31.54px; }
.nav__toggle { display: none; }

.search-bar {
  display: flex;
  flex-direction: column;
  gap: 11.05px;
}
.search-bar__field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44.11px;
  padding: 8.5px 22.1px;
  border: 1px solid var(--navy-50);
  border-radius: var(--radius);
  background: #fff;
}
.search-bar__field input {
  flex: 1;
  border: 0;
  outline: 0;
  font-weight: 500;
  font-size: 13.35px;
  color: var(--navy);
  background: transparent;
}
.search-bar__field input::placeholder { color: var(--navy-50); }
.search-bar__field button { border: 0; background: none; padding: 0; cursor: pointer; }
.search-bar__field button img { width: 19.55px; height: 20.4px; }
.chips { display: flex; gap: 5.95px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 12.75px;
  height: 32.3px;
  padding: 8.5px 17px;
  border: 1px solid var(--navy-50);
  border-radius: 9.99px;
  background: #fff;
  font-family: 'Inter', var(--font);
  font-weight: 600;
  font-size: 13.35px;
  color: var(--navy);
  white-space: nowrap;
}
.chip { flex: none; }
.chip:hover { background: #f1f4ff; }
.chip img { height: 13.6px; width: auto; }

/* Compact header (used on inner pages with the navy hero behind) */
.site-header--overlay {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  background: transparent;
  padding-top: 47.6px;
}
.site-header--overlay .nav { background: #fff; width: min(1003px, 100% - 40.8px); gap: 0; justify-content: space-between; padding: 0 23.8px; height: 63.75px; }

/* ---------- Trustpilot strip ---------- */
.tp-strip {
  background: var(--off-white);
  padding: 37.4px 0;
  font-family: 'Roboto', var(--font);
  color: #000;
}
.tp-strip__inner { display: flex; align-items: center; justify-content: center; gap: 36.55px; }
.tp-summary { display: grid; justify-items: center; gap: 5.1px; text-align: center; }
.tp-summary__label { font-weight: 500; font-size: 16.68px; }
.tp-summary__stars { width: 124.1px; height: 22.95px; }
.tp-summary__count { font-size: 12px; }
.tp-summary__count u { font-weight: 600; }
.tp-summary__logo { width: 81.17px; height: 19.55px; margin-top: 3.4px; }
.tp-carousel { display: flex; align-items: center; gap: 22.95px; min-width: 0; max-width: 100%; }
.tp-carousel__btn { flex: none; }
.tp-carousel__btn { border: 0; background: none; padding: 0; cursor: pointer; }
.tp-carousel__btn img { width: 18.36px; height: 18.36px; }
.tp-carousel__btn--next img { transform: scaleX(-1); }
.tp-reviews { display: flex; gap: 66.3px; align-items: flex-start; min-width: 0; }
.tp-review { width: 140.25px; display: grid; gap: 6.8px; }
.tp-review__stars { width: 74.8px; height: 13.86px; object-fit: cover; object-position: left; }
.tp-review__title { font-weight: 600; font-size: 13px; white-space: nowrap; }
.tp-review__body { font-size: 12px; line-height: 1.25; }
.tp-review__meta { font-size: 12px; }
.tp-note { font-size: 12px; margin-top: 6.8px; }

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(to bottom, #fff, var(--baby-blue));
  padding: 53.55px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 65.45px;
}
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 40.8px; }
.footer-top__logo img { width: 363.8px; height: 61.2px; object-fit: cover; }
.footer-social { display: flex; align-items: center; gap: 29.75px; }
.footer-social__label { font-weight: 500; font-size: 16.5px; color: var(--ink); }
.footer-social__divider { width: 1px; height: 34px; background: var(--navy); }
.footer-social__icons { display: flex; align-items: center; gap: 42.5px; }
.footer-social__icons img { height: 25.5px; width: auto; }
.footer-links { display: flex; justify-content: center; gap: 102px; }
.footer-col { width: 170px; display: flex; flex-direction: column; gap: 17px; }
.footer-col + .footer-col { position: relative; }
.footer-col + .footer-col::before {
  content: '';
  position: absolute;
  left: -51px;
  top: 0;
  height: 166.6px;
  width: 1px;
  background: var(--navy-50);
}
.footer-col h4 { font-weight: 600; font-size: 16.24px; color: var(--navy); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.footer-col li + li { border-top: 1px solid var(--navy-50); }
.footer-col a {
  display: flex;
  justify-content: space-between;
  padding: 4.25px 0;
  font-size: 13px;
  color: var(--ink);
}
.footer-col a::after { content: '>'; font-weight: 500; color: var(--navy); }
.footer-col a:hover { color: var(--navy); }
.footer-legal { max-width: 903.55px; text-align: center; color: rgba(0, 19, 51, 0.75); font-size: 15.8px; display: grid; gap: 24.65px; font-weight: 500; }
.footer-legal strong { display: block; margin-bottom: 20.4px; font-weight: 700; }
.footer-legal small { font-size: 15.8px; font-weight: 400; }

/* ---------- Crop helper ----------
   Reproduces Figma image crops: wrapper clips, img is sized/offset by % of the wrapper.
   <div class="crop" style="--w:106.81%;--h:90.46%;--l:-2.82%;--t:14.54%"><img ...></div> */
.crop { position: relative; overflow: hidden; }
.crop > img {
  position: absolute;
  max-width: none;
  width: var(--w, 100%);
  height: var(--h, 100%);
  left: var(--l, 0);
  top: var(--t, 0);
}

/* ---------- Car card (shared: home, landing, product) ---------- */
.car-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 307.27px;
  background: #fff;
  border-radius: 17px;
  box-shadow: 0 3.4px 17px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.car-card:hover { transform: translateY(-3.4px); box-shadow: 0 6.8px 23.8px rgba(0, 0, 0, 0.28); }
.car-card__tag {
  position: absolute;
  top: 11.05px;
  left: 12.75px;
  z-index: 1;
  width: 88.4px;
  height: 18.45px;
  display: grid;
  place-items: center;
  border-radius: 8.5px;
  background: var(--navy);
  color: #fff;
  font-weight: 500;
  font-size: 13px;
  line-height: 1;
}
.car-card__media { height: 157.76px; border-radius: 17px 17px 0 0; background: #fff; }
.car-card__body { position: relative; flex: 1; padding: 15.3px 20.4px 17px; }
.car-card__title { font-weight: 700; font-size: 16.23px; color: var(--ink); }
.car-card__variant { margin-top: -1.7px; font-size: 13px; color: rgba(0, 19, 51, 0.75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.car-card__price { margin-top: 7.65px; font-weight: 600; font-size: 21.9px; color: var(--navy); }
.car-card__tags { display: flex; gap: 5.95px; margin-top: 9.35px; }
.car-card__tags span {
  height: 18.7px;
  padding: 0 5.95px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(0, 0, 0, 0.5);
  border-radius: 8.5px;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.5);
}
.car-card__go { position: absolute; right: 13.6px; bottom: 14.45px; width: 42.33px; height: 39.61px; }

/* ---------- CTA banner "Find your next car with confidence" (home, about, faqs, landing) ---------- */
.cta-banner-wrap { padding: 53.55px 0; }
.cta-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40.8px;
  min-height: 428.14px;
  padding: 38.25px 56.1px;
  border-radius: 8.5px;
  overflow: hidden;
  background: #293680 url(../assets/shared/cta-bg.svg) right center / cover no-repeat;
  color: #fff;
}
.cta-banner__copy { width: 392.7px; max-width: 100%; display: flex; flex-direction: column; gap: 14.45px; }
.cta-banner__eyebrow { font-weight: 600; font-size: 16.72px; letter-spacing: 1.7px; color: var(--yellow); }
.cta-banner__title { font-weight: 700; font-size: 32.12px; line-height: 1.05; }
.cta-banner__text { font-size: 15.8px; line-height: 1.4; max-width: 352.75px; margin-top: -7.65px; }
.cta-banner__actions { display: flex; flex-direction: column; gap: 11.9px; width: 363.46px; max-width: 100%; }
.cta-banner__actions .btn { width: 100%; }
.cta-banner__actions .btn img { width: auto; height: 19.55px; }
.cta-banner__car { position: relative; width: 345.52px; height: 299.2px; flex: none; }
.cta-banner__car-shadow { position: absolute; left: 10.2px; top: 230.09px; width: 325.55px; height: 69.19px; object-fit: cover; }
.cta-banner__car .crop { position: absolute; inset: 0 0 auto 0; height: 289.68px; }

/* ---------- Accordion (FAQs: home, faqs, product) ---------- */
.accordion { display: flex; flex-direction: column; gap: 13.6px; }
.accordion__item {
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.accordion__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13.6px;
  padding: 18.7px 23.8px;
  border: 0;
  background: none;
  text-align: left;
  font-weight: 600;
  font-size: 14.94px;
  color: var(--ink);
  cursor: pointer;
}
.accordion__icon {
  flex: none;
  width: 27.2px; height: 27.2px;
  border-radius: 5.1px;
  background: var(--yellow);
  color: var(--navy);
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 16.5px;
  transition: transform .2s ease;
}
.accordion__item.is-open .accordion__icon { background: #e8e8e8; transform: rotate(45deg); }
.accordion__a {
  display: none;
  padding: 0 23.8px 20.4px;
  font-size: 13.35px;
  line-height: 1.6;
  color: var(--ink-65);
}
.accordion__item.is-open .accordion__a { display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 1224px) {
  .nav { gap: 34px; padding: 0 23.8px; width: min(var(--container-wide), 100% - 40.8px); }
}
@media (max-width: 935px) {
  .cta-banner { flex-direction: column; padding: 34px 23.8px; text-align: left; }
  .cta-banner__car { width: min(345.1px, 100%); height: auto; aspect-ratio: 406 / 352; }
  .cta-banner__car-shadow { top: 77%; width: 94%; height: auto; }
  .cta-banner__car .crop { height: 96.8%; }
  .nav { justify-content: space-between; }
  .nav__links, .nav__cta { display: none; }
  .nav__toggle {
    display: grid; place-items: center;
    width: 37.4px; height: 37.4px;
    border: 0; border-radius: 6.8px;
    background: var(--yellow); color: var(--navy);
    font-size: 16.5px; cursor: pointer;
  }
  .nav.is-open { flex-wrap: wrap; height: auto; padding: 13.6px 17px; }
  .nav.is-open .nav__links { display: flex; flex-direction: column; align-items: flex-start; width: 100%; gap: 6.8px; padding-top: 10.2px; }
  .nav.is-open .nav__cta { display: inline-flex; }
  .footer-top { flex-direction: column; }
  .footer-links { flex-wrap: wrap; gap: 34px; }
  .footer-col + .footer-col::before { display: none; }
  .tp-reviews { gap: 27.2px; overflow-x: auto; }
  .tp-strip__inner { flex-direction: column; }
  .section-title { font-size: 24.82px; }
  .section-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .cta-banner__title { font-size: 28.8px; }
  .cta-banner__eyebrow { font-size: 14.4px; }
  .btn { height: 54px; padding: 9px 21.6px; font-size: 16.2px; }
  .footer-top__logo img { width: 252px; height: auto; }
  .footer-social { flex-wrap: wrap; justify-content: center; gap: 14.4px 21.6px; }
  .footer-social__divider { display: none; }
  .footer-social__icons { gap: 28.8px; }
  .footer-social__icons img { flex: none; }
  .footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28.8px 21.6px; width: calc(100% - 28.8px); }
  .footer-col { width: auto; }
  .footer-legal, .footer-legal small { font-size: 14px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 3.6px; }
  .section-title { font-size: 25.2px; }
  .section-sub { font-size: 14.4px; }
}

/* ---------- Normal-size tuning (applied after scaling the 1730px Figma canvas) ---------- */
.chips { justify-content: space-between; }
.chip { gap: 8px; padding: 0 13px; height: 32px; font-size: 13px; }
.chip img { height: 14px; }
.tp-reviews { gap: 40px; }
.tp-review { width: 165px; }
.tp-review__title { white-space: normal; }
.car-card__variant { font-size: 12px; }
.site-footer .footer-top__logo img { width: 280px; height: auto; }
