/* AutoHaus® — car dealership template replica */

/* ---------- Fonts (Inter Display) ---------- */
@font-face {
  font-family: "Inter Display";
  src: url("assets/iwWTDc49ENF2tCHbqlNARXw6Ug.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter Display";
  src: url("assets/ePuN3mCjzajIHnyCdvKBFiZkyY0.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter Display";
  src: url("assets/qITWJ2WdG0wrgQPDb8lvnYnTXDg.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter Display";
  src: url("assets/I11LrmuBDQZweplJ62KkVsklU5Y.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #212121;
  --gray: #606060;
  --card-bg: #fbfbfb;
  --surface: #f5f5f5;
  --giant: #e0e0e0;
  --brand: #b1b1b1;
  --star: #ffd000;
  --card-shadow: rgba(0, 0, 0, 0.11) 0px 0px 20px 0px;
  --card-shadow-soft: rgba(0, 0, 0, 0.08) 0px 0px 20px 0px;
  --btn-shadow-dark:
    rgba(0, 0, 0, 0.23) 0px 0.740973px 0.740973px -0.95px,
    rgba(0, 0, 0, 0.22) 0px 2.01787px 2.01787px -1.9px,
    rgba(0, 0, 0, 0.2) 0px 4.43051px 4.43051px -2.85px,
    rgba(0, 0, 0, 0.15) 0px 9.83471px 9.83471px -3.8px,
    rgba(0, 0, 0, 0.01) 0px 25px 25px -4.75px;
  --btn-shadow-light:
    rgba(0, 0, 0, 0.14) 0px 0.740973px 0.740973px -0.95px,
    rgba(0, 0, 0, 0.13) 0px 2.01787px 2.01787px -1.9px,
    rgba(0, 0, 0, 0.12) 0px 4.43051px 4.43051px -2.85px,
    rgba(0, 0, 0, 0.09) 0px 9.83471px 9.83471px -3.8px,
    rgba(0, 0, 0, 0.01) 0px 25px 25px -4.75px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter Display", "Inter Display Placeholder", Arial, sans-serif;
  font-weight: 500;
  background: #fff;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1400px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }
.container--wide { max-width: 1410px; }
.container--narrow { max-width: 1400px; }

/* ---------- Typography ---------- */
.h1 { font-size: 70px; font-weight: 500; line-height: 1.1; letter-spacing: -0.04em; color: #fff; }
.h2 { font-size: 52px; font-weight: 500; line-height: 1.2; letter-spacing: -0.04em; color: var(--ink); text-align: center; }
.sub {
  font-size: 18px; font-weight: 500; line-height: 1.9; letter-spacing: -0.01em;
  color: var(--gray); text-align: center; max-width: 560px; margin: 0 auto;
}
.h3 { font-size: 18px; font-weight: 500; line-height: 1.4; letter-spacing: -0.02em; }
.t16 { font-size: 16px; font-weight: 500; line-height: 1.65; letter-spacing: -0.01em; }
.t15 { font-size: 15px; font-weight: 500; line-height: 1.65; letter-spacing: -0.01em; }
.t14 { font-size: 14px; font-weight: 500; line-height: 1.6; letter-spacing: -0.01em; }
.t17 { font-size: 17px; font-weight: 500; line-height: 1.7; letter-spacing: -0.01em; color: var(--gray); }

.section-head { display: flex; flex-direction: column; align-items: center; }
.section-head .h2 { max-width: 820px; }
.section-head .sub { margin-top: 16px; }

/* ---------- Buttons (pill, hover text swap) ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 20px; border-radius: 999px;
  font-size: 14px; font-weight: 500; letter-spacing: -0.01em; cursor: pointer;
  flex-shrink: 0;
}
.btn--dark { background: var(--ink); color: #fff; box-shadow: var(--btn-shadow-dark); }
.btn--light { background: #fff; color: var(--ink); box-shadow: var(--btn-shadow-light); }
.btn .swap { position: relative; overflow: hidden; height: 22px; line-height: 22px; }
.btn .swap span { display: block; height: 22px; line-height: 22px; transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.btn .swap span:last-child { position: absolute; inset: 0; transform: translateY(100%); }
.btn:hover .swap span:first-child { transform: translateY(-100%); }
.btn:hover .swap span:last-child { transform: translateY(0); }

/* ---------- Header ---------- */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 20; }
.header__inner { max-width: 1400px; margin: 0 auto; padding: 15px 40px; display: flex; align-items: center; position: relative; min-height: 78px; }
.logo { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; color: #fff; transition: color 0.3s; }
.nav { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; gap: 50px; }
.nav a { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; color: #fff; transition: color 0.3s, opacity 0.2s; }
.nav a:hover { opacity: 0.7; }
.header__cta { margin-left: auto; }
.header__cta.btn { height: 48px; transition: background-color 0.3s, color 0.3s; }
.header--dark .logo, .header--dark .nav a { color: var(--ink); }
.header--dark .header__cta.btn { background: var(--ink); color: #fff; box-shadow: var(--btn-shadow-dark); }

/* ---------- Hero ---------- */
.hero { position: relative; height: min(1350px, 79.17vw); overflow: hidden; background: #86b7e0; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hero__bg--top { display: none; }
.hero__grad-top { position: absolute; inset: 0 0 auto 0; height: 400px; background: linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0) 100%); pointer-events: none; }
.hero__grad-bottom { position: absolute; inset: auto 0 0 0; height: 140px; background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 100%); pointer-events: none; }
.hero__content { position: relative; padding-top: 140px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero .sub { color: #fff; margin-top: 15px; max-width: 620px; }
.hero .btn { margin-top: 30px; height: 52px; }
.hero .h1 { width: 850px; max-width: 100%; }

/* ---------- Brands ticker ---------- */
.brands { padding: 150px 0; }
.brands .section-head .sub { max-width: 550px; }
.marquee { margin-top: 95px; padding: 0 0 37px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 60px, #000 calc(100% - 0px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 60px, #000 calc(100% - 0px), transparent 100%); }
.marquee--plain { -webkit-mask-image: none; mask-image: none; }
.marquee__track { display: flex; align-items: center; gap: 120px; width: max-content; animation: marquee 45s linear infinite; }
.marquee__track > img { width: 144px; height: auto; flex-shrink: 0; }
.marquee__track .logo-interlock { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.marquee__track .logo-boltshift { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.marquee__track .logo-interlock img { height: 21px; width: auto; }
.interlock-mark { position: relative; width: 33px; height: 36px; flex-shrink: 0; }
.interlock-mark i { position: absolute; width: 24px; height: 24px; border: 2px solid var(--brand); border-radius: 50%; top: 6px; }
.interlock-mark i:first-child { left: 0; }
.interlock-mark i:last-child { left: 9px; border-color: var(--brand); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Vehicle cards grid ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative; background: #fff; border-radius: 25px; padding: 5px;
  box-shadow: var(--card-shadow);
}
.card__inner { position: relative; border-radius: 20px; overflow: hidden; }
.card--vehicle .card__inner { height: 464px; }
.card--vehicle img { width: 100%; height: 100%; object-fit: cover; }
.card__grad { position: absolute; left: 0; right: 0; bottom: 0; height: 177px; background: linear-gradient(rgba(0, 0, 0, 0) 0%, #000 100%); filter: blur(1px); pointer-events: none; }
.card__text { position: absolute; left: 25px; right: 25px; bottom: 25px; color: #fff; }
.card__text .h3 { color: #fff; }
.card__text .price { font-size: 16px; font-weight: 500; line-height: 1.65; letter-spacing: -0.01em; color: #fff; opacity: 0.7; margin-top: 4px; }
.card__text .role { font-size: 16px; font-weight: 500; line-height: 1.65; letter-spacing: -0.01em; color: #fff; }

.featured { padding-bottom: 0; }
.featured .grid-3 { margin-top: 60px; }
.btn-row { display: flex; justify-content: center; margin-top: 30px; }

/* ---------- Why choose ---------- */
.why { padding: 150px 0 0; }
.why .grid-3 { margin-top: 60px; grid-auto-rows: 1fr; }
.card--why { background: #fff; }
.card--why .card__inner { background: var(--card-bg); display: flex; flex-direction: column; height: 488px; overflow: hidden; }
.card--why .why__text { padding: 25px 25px 0; }
.card--why .why__text .t16 { color: var(--gray); margin-top: 6px; max-width: 320px; }
.card--why .why__img { margin-top: auto; }
.card--why .why__img img { width: 100%; height: 364px; object-fit: cover; border-radius: 20px; }
.card--why--rev .card__inner { flex-direction: column; }
.card--why--rev .why__img { order: -1; margin-top: 0; }
.card--why--rev .why__img img { height: 359px; }
.card--why--rev .why__text { padding: 25px 25px 0; }
.card--why--rev .card__inner { justify-content: flex-start; }

/* ---------- Story ---------- */
.story { padding: 0 0 150px; }
.story__sticky { position: sticky; top: 0; z-index: 0; }
.story__rows { position: relative; z-index: 1; }
.story__head { padding: 396px 0 397px; display: flex; flex-direction: column; align-items: center; }
.story__head .btn { margin-top: 0; }
.story__rows { display: flex; flex-direction: column; }
.story__row { height: 370px; display: flex; padding: 0 40px; max-width: 1400px; margin: 0 auto; width: 100%; }
.story__row + .story__row { margin-top: 120px; }
.story__row--right { justify-content: flex-end; }
.story__row--left { justify-content: flex-start; }
.story__card { width: 350px; height: 370px; background: #fff; border-radius: 25px; padding: 5px; box-shadow: var(--card-shadow); will-change: transform; }
.story__card .card__inner { height: 100%; }
.story__card img { width: 100%; height: 100%; object-fit: cover; }
.story__strip { display: none; }

/* ---------- Performance ---------- */
.performance { padding: 0 0 150px; }
.performance .grid-3 { margin-top: 60px; }

/* ---------- Book a visit ---------- */
.bookvisit { position: relative; padding: 155px 0; overflow: hidden; }
.bookvisit__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; filter: blur(18px); transform: scale(1.06); }
.bookvisit__card {
  position: relative; width: 540px; margin: 0 auto; background: var(--card-bg);
  border-radius: 20px; overflow: hidden; padding-top: 40px;
}
.bookvisit__card .h2 { letter-spacing: -0.04em; }
.bookvisit__card .sub { margin-top: 20px; max-width: 380px; line-height: 1.5; }
.bookvisit__card .btn-row { margin-top: 38px; }
.bookvisit__video { margin-top: 40px; }
.bookvisit__video img { width: 100%; height: 284px; object-fit: cover; }

.team { padding: 150px 0; }

/* ---------- Testimonials ---------- */
.testimonials { padding: 0 0 150px; }
.testimonials .grid { margin-top: 60px; display: flex; gap: 20px; align-items: flex-start; }
.t-left { width: 433px; flex-shrink: 0; display: flex; flex-direction: column; gap: 20px; }
.t-left .tcard { width: 423px; }
.t-col { display: grid; grid-template-columns: 423px 423px; gap: 20px; width: 867px; flex-shrink: 0; }
.tcard { background: #fff; border-radius: 25px; padding: 5px; box-shadow: var(--card-shadow-soft); }
.tcard__inner { background: var(--card-bg); border-radius: 20px; height: 100%; padding: 20px; display: flex; flex-direction: column; }
.tcard__inner > * { max-width: 340px; }
.tcard--wide .tcard__inner > * { max-width: 383px; }
.tcard--video { padding: 5px; width: 433px; flex-shrink: 0; height: 286px; }
.tcard--video .tcard__inner { padding: 0; overflow: hidden; position: relative; }
.tcard--video .tcard__inner > * { max-width: none; }
.tcard--video video { width: 100%; height: 100%; object-fit: cover; }
.rating { display: inline-flex; align-items: center; gap: 5px; background: #fff; border-radius: 99px; padding: 2px 10px; height: 33px; box-shadow: var(--btn-shadow-light); align-self: flex-start; }
.rating svg { width: 18px; height: 18px; }
.rating span { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.7; color: var(--gray); }
.tcard .t17 { margin-top: 15px; }
.tcard__person { display: flex; align-items: center; gap: 13px; margin-top: 20px; }
.tcard__person img { width: 40px; height: 40px; border-radius: 99px; object-fit: cover; box-shadow: var(--btn-shadow-dark); }
.tcard__person .name { font-size: 16px; font-weight: 500; line-height: 1.65; letter-spacing: -0.01em; color: var(--ink); }
.tcard__person .role { font-size: 16px; font-weight: 500; line-height: 1.65; letter-spacing: -0.01em; color: var(--gray); }

/* ---------- Journal ---------- */
.journal { padding: 0 0 150px; }
.journal__grid { margin-top: 60px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.journal .btn-row { margin-top: 31px; }
.card--journal .card__inner { height: 463px; }
.card--journal .card__inner img { width: 100%; height: 100%; object-fit: cover; }
.card--journal .card__grad { height: 45%; }
.card--journal .card__text .t16 { color: #fff; opacity: 1; margin-top: 4px; }

/* ---------- Final CTA + footer ---------- */
.final { background: var(--surface); padding: 100px 40px 40px; }
.final__inner { max-width: 1330px; margin: 0 auto; display: flex; flex-direction: column; }
.final .section-head .sub { max-width: 560px; }
.final__person { display: flex; align-items: center; gap: 13px; margin-top: 30px; justify-content: center; }
.final__person img { width: 40px; height: 40px; border-radius: 99px; object-fit: cover; box-shadow: var(--btn-shadow-dark); }
.final__person .name { font-size: 16px; font-weight: 500; line-height: 1.65; letter-spacing: -0.01em; }
.final__person .role { font-size: 16px; font-weight: 500; line-height: 1.65; letter-spacing: -0.01em; color: var(--gray); }
.final .btn-row { margin-top: 50px; }
.final__giant { margin-top: 135px; text-align: left; color: var(--giant); font-size: min(279px, calc((100vw - 80px) * 0.2218)); line-height: 0.8; letter-spacing: -0.04em; font-weight: 500; white-space: nowrap; }
.final__bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 31px; }
.final__bottom p, .final__bottom a { font-size: 16px; font-weight: 500; line-height: 1.65; letter-spacing: -0.01em; color: var(--gray); }
.final__bottom a { color: var(--gray); }
.final__bottom a:hover { opacity: 0.7; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive text variants ---------- */
.only-m { display: none; }
.burger { display: none; border: 0; background: transparent; cursor: pointer; padding: 0; }
.burger span { display: block; width: 24px; height: 1.5px; background: #fff; transition: background-color 0.3s; }
.mmenu { display: none; position: fixed; inset: 0 0 auto 0; background: #fff; z-index: 40; padding: 0 20px 30px; }
.mmenu.open { display: block; }
.mmenu__top { height: 78px; display: flex; align-items: center; justify-content: space-between; }
.mmenu__logo { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
.mmenu__close { position: relative; width: 24px; height: 24px; border: 0; background: transparent; cursor: pointer; }
.mmenu__close span { position: absolute; left: 2px; top: 11px; width: 20px; height: 1.5px; background: var(--ink); }
.mmenu__close span:first-child { transform: rotate(45deg); }
.mmenu__close span:last-child { transform: rotate(-45deg); }
.mmenu__nav { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; margin-top: 7px; }
.mmenu__nav a { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); line-height: 27px; }
.mmenu__cta { margin-top: 21px; }
.header--dark .burger span { background: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .hero { height: 900px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .testimonials .grid { flex-direction: column; }
  .t-col { width: 100%; grid-template-columns: 1fr 1fr; }
  .t-left { width: 100%; }
  .tcard--video { width: 100%; height: 420px; }
  .tcard__inner > *, .tcard--wide .tcard__inner > * { max-width: none; }
  .journal__grid { grid-template-columns: 1fr; gap: 20px; }
  .card--why .card__inner { height: auto; }
}
@media (max-width: 809.98px) {
  .container { padding-left: 25px; padding-right: 25px; }
  .nav { display: none; }
  .final { padding: 100px 25px 40px; }
  .h1 { font-size: 46px; line-height: 1.2; letter-spacing: -0.04em; }
  .h2 { font-size: 40px; line-height: 1.3; letter-spacing: -0.04em; }
  .section-head .h2 { max-width: 350px; }
  .section-head .sub { max-width: 460px; }
  .sub { line-height: 1.9; }
  .hero { height: 1100px; }
  .hero__content { padding-top: 100px; }
  .hero__content .h1 { max-width: 560px; }
  .header__inner { padding: 20px; min-height: 78px; }
  .header__cta { display: none; }
  .burger { display: flex; flex-direction: column; gap: 7px; margin-left: auto; align-items: flex-end; }
  .only-d { display: none; }
  .only-m { display: inline; }
  .brands { padding: 100px 0 135px; }
  .marquee { margin-top: 99px; padding-bottom: 0; }
  .marquee__track { gap: 60px; }
  .grid-3 { grid-template-columns: 1fr; gap: 20px; }
  .featured .grid-3 > :nth-child(n+4) { display: none; }
  .featured .grid-3, .performance .grid-3 { margin-top: 54px; }
  .team { padding: 100px 0 0; }
  .team .grid-3 { margin-top: 60px; }
  .why .grid-3 { margin-top: 60px; }
  .why .section-head .sub { max-width: 360px; }
  .testimonials .grid, .journal__grid { margin-top: 40px; }
  .btn-row { margin-top: 35px; }
  .why { padding: 100px 0 0; }
  .why .grid-3 { gap: 20px; }
  .card--why .card__inner { height: auto; }
  .card--why .why__img img, .card--why--rev .why__img img { height: auto; aspect-ratio: 730 / 729; border-radius: 20px; }
  .card--why .why__img { margin-top: 25px; }
  .story { padding-bottom: 0; overflow: hidden; }
  .story__sticky { position: static; }
  .story__head { padding: 100px 0 0; }
  .story__head .h2 { max-width: 560px; }
  .story__rows { display: none; }
  .story__strip { display: flex; gap: 30px; width: max-content; animation: marquee 60s linear infinite; padding: 45px 15px 145px 25px; }
  .story__scard { width: 740px; height: 792px; flex-shrink: 0; background: #fff; border-radius: 25px; padding: 5px; box-shadow: var(--card-shadow); }
  .story__scard .card__inner { height: 100%; }
  .story__scard img { width: 100%; height: 100%; object-fit: cover; }
  .bookvisit { padding: 100px 25px; }
  .bookvisit__card { width: 100%; max-width: 540px; }
  .testimonials { padding: 100px 0 0; }
  .t-left { width: 100%; background: #fff; border-radius: 25px; padding: 5px; box-shadow: var(--card-shadow-soft); gap: 0; display: block; }
  .t-left .tcard { width: 100%; background: transparent; box-shadow: none; padding: 0; }
  .tcard { width: 100%; }
  .tcard--video { width: 100%; height: 243px; border-radius: 20px 20px 0 0; }
  .t-left .tcard--video .tcard__inner { border-radius: 20px 20px 0 0; }
  .t-left .tcard--wide .tcard__inner { border-radius: 0 0 20px 20px; }
  .tcard__inner > * { max-width: 340px; }
  .tcard--wide .tcard__inner > * { max-width: 383px; }
  .t-col { grid-template-columns: 1fr; gap: 20px; }
  .t-col { grid-template-columns: 1fr; }
  .tcard--video { height: 253px; }
  .journal { padding-bottom: 100px; }
  .journal .btn-row { margin-top: 31px; }
  .final { padding: 100px 20px 40px; }
  .final .section-head { align-items: flex-start; text-align: left; }
  .final .section-head .h2 { max-width: 560px; text-align: left; }
  .final .section-head .sub { max-width: 380px; text-align: left; margin-left: 0; }
  .final__person { justify-content: flex-start; }
  .final .btn-row { justify-content: flex-start; }
  .final__giant { margin-top: 90px; }
  .final__bottom { flex-direction: column; gap: 10px; align-items: flex-start; margin-top: 40px; }
  .performance { padding-bottom: 100px; }
  .card--vehicle .card__inner { height: 812px; }
  .card--journal .card__inner { height: 824px; }
}