/* =========================================================
   Impulse Automotive — Elizabeth South, SA
   Premium dark showroom: near-black + electric lime,
   elegant Bodoni display matched to their real serif logo.
   ========================================================= */

:root {
  --bg:       oklch(0.158 0.004 255);
  --bg-2:     oklch(0.205 0.005 255);
  --bg-3:     oklch(0.255 0.006 255);
  --ink-deep: oklch(0.118 0.004 255);
  --white:    oklch(0.975 0 0);
  --muted:    oklch(0.74 0.006 255);
  --muted-2:  oklch(0.58 0.006 255);
  --line:     oklch(0.305 0.006 255);
  --line-2:   oklch(0.40 0.007 255);

  --accent:    oklch(0.865 0.19 124);   /* electric lime, from their hero M car */
  --accent-d:  oklch(0.80 0.18 124);
  --accent-ink:oklch(0.20 0.03 150);    /* dark text on lime */

  --display: "Bodoni Moda", "Didot", Georgia, serif;
  --body:    "Hanken Grotesk", system-ui, "Segoe UI", sans-serif;

  --gutter: clamp(20px, 5vw, 76px);
  --section-y: clamp(66px, 9vw, 128px);
  --max: 1280px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }

.accent { color: var(--accent); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: 12px 16px; z-index: 200; font-weight: 700; }
.skip:focus { left: 14px; top: 14px; }

/* ---------- brand mark (recreated logo) ---------- */
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--white); }
.mark__icon { width: 46px; height: auto; display: block; flex: none; }
.mark__icon .car { fill: var(--white); }
.mark__icon .pulse { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.mark__word { display: flex; flex-direction: column; line-height: 0.82; }
.mark__name {
  font-family: var(--display); font-optical-sizing: auto;
  font-weight: 700; font-size: 27px; letter-spacing: 0.005em; color: var(--white);
}
.mark__sub {
  font-family: var(--body); font-weight: 600; font-size: 9.5px;
  letter-spacing: 0.42em; text-transform: uppercase; color: var(--muted);
  align-self: flex-end; margin-top: 2px; padding-right: 1px;
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px;
  padding: 14px var(--gutter);
  background: color-mix(in oklab, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px) saturate(1.2); -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.nav .mark__name { font-size: 23px; }
.nav .mark__icon { width: 40px; }
.nav__links { display: flex; gap: 28px; justify-content: center; font-weight: 600; font-size: 13px; letter-spacing: 0.06em; }
.nav__links a { color: color-mix(in oklab, var(--white) 76%, transparent); text-decoration: none; padding: 6px 0; position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease); }
.nav__links a:hover { color: var(--white); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__call {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 14px; letter-spacing: 0.01em; text-decoration: none;
  color: var(--accent-ink); background: var(--accent); padding: 11px 18px; border-radius: 4px;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease); white-space: nowrap;
}
.nav__call svg { width: 17px; height: 17px; fill: none; stroke: var(--accent-ink); stroke-width: 1.9; }
.nav__call:hover { background: var(--white); transform: translateY(-1px); }
.nav__toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 40px; padding: 0 10px; background: transparent;
  border: 1px solid var(--line-2); border-radius: 5px; cursor: pointer;
}
.nav__toggle span { display: block; height: 2px; background: var(--white); transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 880px) {
  .nav { grid-template-columns: 1fr auto; gap: 12px; }
  .nav__links, .nav__call { display: none; }
  .nav__toggle { display: flex; }
}

/* ---------- mobile menu drawer ---------- */
.mobile-menu { position: fixed; inset: 0; z-index: 80; visibility: hidden; }
.mobile-menu.is-open { visibility: visible; }
.mobile-menu__backdrop { position: absolute; inset: 0; background: rgba(6,7,9,.66); opacity: 0; transition: opacity .35s var(--ease); }
.mobile-menu.is-open .mobile-menu__backdrop { opacity: 1; }
.mobile-menu__panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(340px, 86vw);
  background: var(--bg-2); border-left: 1px solid var(--line);
  padding: 80px 30px calc(30px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 24px;
  transform: translateX(100%); transition: transform .4s var(--ease);
}
.mobile-menu.is-open .mobile-menu__panel { transform: none; }
.mobile-menu__close { position: absolute; top: 16px; right: 18px; width: 42px; height: 42px; background: transparent; border: none; color: var(--white); font-size: 32px; line-height: 1; cursor: pointer; }
.mobile-menu__links { display: flex; flex-direction: column; gap: 2px; }
.mobile-menu__links a {
  font-family: var(--display); font-weight: 700; font-size: 30px;
  color: var(--white); text-decoration: none; padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-menu__links a:hover { color: var(--accent); }
.mobile-menu__cta { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.mobile-menu__cta .btn { justify-content: center; }
@media (prefers-reduced-motion: reduce) {
  .mobile-menu__backdrop, .mobile-menu__panel, .nav__toggle span { transition: none !important; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--body); font-weight: 700; font-size: 15px; letter-spacing: 0.01em;
  text-decoration: none; padding: 15px 26px; border-radius: 4px; border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: var(--white); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--white); border-color: color-mix(in oklab, var(--white) 36%, transparent); }
.btn--ghost:hover { border-color: var(--white); background: color-mix(in oklab, var(--white) 8%, transparent); }
.btn--big { font-size: 17px; padding: 18px 32px; }

/* ---------- pulse rule (brand motif) ---------- */
.pulse-rule { display: block; width: 116px; height: 14px; color: var(--accent); }
.pulse-rule path { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- section heads ---------- */
.sec-head { max-width: var(--max); margin: 0 auto clamp(36px, 5vw, 58px); }
.sec-eyebrow {
  font-family: var(--body); font-weight: 700; font-size: 12px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 16px; display: inline-flex; align-items: center; gap: 13px;
}
.sec-eyebrow::before { content: ""; width: 30px; height: 2px; background: var(--accent); }
.sec-title {
  font-family: var(--display); font-optical-sizing: auto; font-weight: 700;
  font-size: clamp(33px, 5vw, 62px); line-height: 1.02; letter-spacing: -0.005em;
  margin: 0; max-width: 17ch; color: var(--white);
}
.sec-title em { font-style: italic; color: var(--accent); }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--bg); color: var(--white); min-height: min(94vh, 800px); display: flex; align-items: flex-end; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to top, var(--bg) 3%, color-mix(in oklab, var(--bg) 72%, transparent) 30%, color-mix(in oklab, var(--bg) 12%, transparent) 60%, transparent 82%),
    linear-gradient(to right, color-mix(in oklab, var(--bg) 86%, transparent), color-mix(in oklab, var(--bg) 30%, transparent) 52%, transparent 76%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; max-width: var(--max); margin: 0 auto; padding: clamp(40px, 7vw, 92px) var(--gutter) clamp(40px, 6vw, 76px); }
.hero__eyebrow { font-weight: 700; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: color-mix(in oklab, var(--white) 80%, transparent); margin: 0 0 16px; display: flex; align-items: center; gap: 14px; }
.hero__title {
  font-family: var(--display); font-optical-sizing: auto; font-weight: 700;
  font-size: clamp(46px, 8.4vw, 104px); line-height: 0.98; letter-spacing: -0.012em;
  margin: 0 0 24px; text-shadow: 0 4px 40px color-mix(in oklab, var(--bg) 70%, transparent);
}
.hero__title em { font-style: italic; color: var(--accent); }
.hero__lede { max-width: 52ch; font-size: clamp(15.5px, 1.4vw, 18.5px); color: color-mix(in oklab, var(--white) 88%, transparent); margin: 0 0 30px; line-height: 1.65; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.hero__rating { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: color-mix(in oklab, var(--white) 86%, transparent); margin: 0; }
.hero__rating strong { font-size: 17px; color: var(--white); }
.stars, .rev__stars { color: var(--accent); letter-spacing: 2px; }

/* ---------- facts bar ---------- */
.facts {
  background: var(--bg-2); color: var(--white);
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}
.facts__item { padding: clamp(24px, 3vw, 38px) var(--gutter); border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.facts__item:first-child { border-left: none; }
.facts__big { font-family: var(--display); font-weight: 700; font-size: clamp(23px, 2.4vw, 32px); letter-spacing: -0.01em; line-height: 1.05; }
.facts__big .accent { color: var(--accent); }
.facts__sm { font-size: 13px; color: var(--muted); font-weight: 500; }
@media (max-width: 780px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts__item:nth-child(odd) { border-left: none; }
  .facts__item:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- why-buy pillars ---------- */
.pillars { padding: var(--section-y) var(--gutter); background: var(--bg); }
.pillar-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.pillar { background: var(--bg); padding: clamp(28px, 3.6vw, 46px); display: flex; flex-direction: column; gap: 11px; transition: background 0.3s var(--ease); }
.pillar:hover { background: var(--bg-2); }
.pillar__no { font-family: var(--display); font-weight: 700; font-size: 24px; color: var(--accent); line-height: 1; }
.pillar__name { font-family: var(--body); font-weight: 800; font-size: clamp(19px, 1.8vw, 23px); margin: 4px 0 0; letter-spacing: -0.01em; color: var(--white); }
.pillar__desc { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.62; max-width: 46ch; }
.pillar-note { max-width: var(--max); margin: clamp(28px, 4vw, 40px) auto 0; text-align: center; font-size: 15px; color: var(--muted); }
.pillar-note a { color: var(--accent); font-weight: 700; text-decoration: none; white-space: nowrap; }
.pillar-note a:hover { text-decoration: underline; }
@media (max-width: 700px) { .pillar-grid { grid-template-columns: 1fr; } }

/* ---------- why (image + text) ---------- */
.why { background: var(--bg-2); color: var(--white); padding: var(--section-y) var(--gutter); }
.why { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr); gap: clamp(32px, 5vw, 76px); align-items: center; max-width: var(--max); margin: 0 auto; }
.why__media { margin: 0; overflow: hidden; border-radius: 6px; aspect-ratio: 16 / 11; border: 1px solid var(--line-2); position: relative; }
.why__media img { width: 100%; height: 100%; object-fit: cover; }
.why__para { color: color-mix(in oklab, var(--white) 86%, transparent); font-size: 16.5px; line-height: 1.72; margin: 22px 0 24px; max-width: 54ch; }
.why__list { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 13px; }
.why__list li { position: relative; padding-left: 30px; color: color-mix(in oklab, var(--white) 90%, transparent); font-weight: 500; }
.why__list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 15px; height: 11px; background: var(--accent); clip-path: polygon(0 45%, 38% 100%, 100% 0, 80% 0, 36% 64%, 16% 33%); }
@media (max-width: 860px) { .why { grid-template-columns: 1fr; } .why__media { aspect-ratio: 16 / 10; order: -1; } }

/* ---------- showroom gallery ---------- */
.showroom { padding: var(--section-y) var(--gutter); background: var(--bg); }
.show-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; }
.show__item { margin: 0; overflow: hidden; border-radius: 6px; background: var(--bg-3); border: 1px solid var(--line); position: relative; }
.show__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.show__item:hover img { transform: scale(1.05); }
.show__item--feature { grid-row: 1 / 3; }
.show-note { max-width: var(--max); margin: clamp(26px, 3.5vw, 38px) auto 0; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; }
.show-note p { margin: 0; font-size: 15px; color: var(--muted); max-width: 52ch; }
@media (max-width: 820px) {
  .show-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .show__item { aspect-ratio: 4 / 3; }
  .show__item--feature { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 9; }
}

/* ---------- reviews / reputation ---------- */
.reviews { padding: var(--section-y) var(--gutter); background: var(--bg-2); text-align: center; }
.rep { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.rep__stars { font-size: 30px; color: var(--accent); letter-spacing: 5px; }
.rep__score { font-family: var(--display); font-weight: 700; font-size: clamp(64px, 12vw, 132px); line-height: 0.9; color: var(--white); }
.rep__score em { font-style: italic; color: var(--accent); font-size: 0.5em; }
.rep__sub { font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 6px 0 0; }
.rep__line { font-family: var(--display); font-weight: 500; font-style: italic; font-size: clamp(20px, 2.6vw, 30px); color: var(--white); max-width: 22ch; margin: 22px auto 0; line-height: 1.3; }
.rep__cta { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 30px; }
.rev-link { font-weight: 700; font-size: 14px; color: var(--white); text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 3px; }
.rev-link:hover { color: var(--accent); }

/* ---------- visit ---------- */
.visit { background: var(--bg); color: var(--white); padding: var(--section-y) var(--gutter); }
.visit__text { max-width: var(--max); margin: 0 auto; }
.visit__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 5vw, 60px); margin: clamp(32px, 4vw, 50px) 0; max-width: 920px; }
.visit__block { display: flex; flex-direction: column; gap: 11px; padding-top: 20px; border-top: 2px solid var(--accent); }
.visit__label { font-weight: 700; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.visit__block address { font-style: normal; font-family: var(--display); font-weight: 600; font-size: clamp(21px, 2.1vw, 28px); line-height: 1.25; }
.visit__phone { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 3.2vw, 40px); color: var(--white); text-decoration: none; }
.visit__phone:hover { color: var(--accent); }
.visit__small { font-size: 14.5px; color: var(--muted); margin: 0; line-height: 1.6; }
.link-arrow { font-weight: 700; font-size: 14px; color: var(--accent); text-decoration: none; display: inline-flex; align-items: center; gap: 5px; }
.link-arrow:hover { text-decoration: underline; }
.visit__cta { display: flex; gap: 14px; justify-content: flex-start; flex-wrap: wrap; max-width: var(--max); margin: 0 auto; }
@media (max-width: 700px) { .visit__grid { grid-template-columns: 1fr; gap: 30px; } }

/* ---------- footer ---------- */
.foot { background: var(--ink-deep); color: var(--white); padding: clamp(50px, 6vw, 84px) var(--gutter) calc(78px + env(safe-area-inset-bottom)); }
.foot__grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.foot__brandcol .brand { margin-bottom: 16px; }
.foot__tag { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 18px; color: var(--muted); margin: 0; max-width: 28ch; }
.foot__col h4 { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-2); margin: 0 0 16px; font-weight: 700; }
.foot__col a, .foot__col p { display: block; color: color-mix(in oklab, var(--white) 84%, transparent); text-decoration: none; font-size: 15px; margin: 0 0 10px; line-height: 1.5; }
.foot__col a:hover { color: var(--accent); }
.foot__social { display: inline-flex; align-items: center; gap: 9px; }
.foot__social svg { width: 18px; height: 18px; fill: currentColor; }
.foot__base { max-width: var(--max); margin: clamp(36px, 5vw, 52px) auto 0; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: space-between; }
.foot__copy { margin: 0; font-size: 13px; color: var(--muted-2); }
.jtn-credit { margin: 0; font-size: 13px; color: var(--muted-2); }
.jtn-credit a { color: var(--muted); text-decoration: none; font-weight: 600; border-bottom: 1px solid transparent; transition: color .2s var(--ease), border-color .2s var(--ease); }
.jtn-credit a:hover { color: var(--accent); border-bottom-color: var(--accent); }
@media (max-width: 760px) { .foot__grid { grid-template-columns: 1fr 1fr; } .foot__brandcol { grid-column: 1 / -1; } }
@media (max-width: 460px) { .foot__grid { grid-template-columns: 1fr; } }

/* ---------- mobile sticky call bar ---------- */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none; align-items: center; justify-content: center; gap: 10px;
  background: var(--accent); color: var(--accent-ink); text-decoration: none;
  font-family: var(--body); font-weight: 800; font-size: 16px; letter-spacing: 0.01em;
  padding: 15px 16px calc(15px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 24px color-mix(in oklab, var(--bg) 50%, transparent);
}
.callbar svg { width: 19px; height: 19px; fill: none; stroke: var(--accent-ink); stroke-width: 2; }
@media (max-width: 880px) { .callbar { display: flex; } }

/* ---------- reveals ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js [data-reveal-img] { opacity: 0; transform: translateY(12px) scale(0.99); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
[data-delay="1"] { transition-delay: 70ms; } [data-delay="2"] { transition-delay: 140ms; }
[data-delay="3"] { transition-delay: 210ms; } [data-delay="4"] { transition-delay: 280ms; }
.is-in[data-reveal], .is-in[data-reveal-img] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal], [data-reveal-img] { opacity: 1 !important; transform: none !important; transition: none !important; } }
