/* PFR Motorsports: homepage styles */

:root {
  --bg: #0b0b0c;
  --panel: #131416;
  --panel-2: #1a1c1f;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f2f3f4;
  --muted: #9a9fa6;
  --accent: #9fd3f0;        /* glacier blue: PFR's signature colour */
  --accent-ink: #06141c;
  --display: "Syncopate", "Helvetica Neue", Arial, sans-serif;
  --body: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.center { text-align: center; margin-top: 48px; }

.eyebrow {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(24px, 3.2vw, 40px);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px;
  font-family: var(--body); font-weight: 600; font-size: 13px;
  letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.btn--light { background: var(--text); color: var(--bg); }
.btn--light:hover { background: var(--accent); }
.btn--ghost { border-color: rgba(255,255,255,.5); color: var(--text); background: rgba(0,0,0,.15); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--text); background: rgba(255,255,255,.08); }
.btn--outline { border-color: var(--line); color: var(--text); border-color: rgba(255,255,255,.25); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: #c4e6f8; }
.btn--block { width: 100%; }

/* Utility bar */
.utility { background: #000; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.utility__inner { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.utility a { color: var(--text); }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 12, 0);
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
  margin-bottom: -84px; /* let hero sit under the header */
}
.header.is-solid { background: rgba(11, 11, 12, .92); backdrop-filter: blur(12px); border-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }

.logo { display: inline-flex; align-items: center; line-height: 0; }
.logo__img { height: 42px; width: auto; }
.footer .logo__img { height: 48px; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.82); position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 1px; background: var(--accent); transition: right .3s; }
.nav a:not(.btn):hover { color: #fff; }
.nav a:not(.btn):hover::after { right: 0; }
.nav__cta { padding: 12px 20px; }

.burger { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--text); transition: transform .3s, top .3s; }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 26px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* Hero */
.hero { position: relative; min-height: max(640px, 100svh); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.hero__slides { position: absolute; inset: 0; background: #000; }
.hero__slide {
  position: absolute; inset: 0;
  background-color: #000; background-repeat: no-repeat;
  background-size: cover; background-position: var(--pos-m, var(--pos, center));
  opacity: 0; transition: opacity 1.6s ease; transform: scale(1.02);
}
.hero__slide.is-active { opacity: 1; animation: drift 9s ease-out both; }
/* Wide landscape screens: studio slides shift the car right of the headline */
@media (min-width: 900px) and (min-aspect-ratio: 4/3) {
  .hero__slide { background-size: var(--size, cover); background-position: var(--pos, center); }
}
@keyframes drift { from { transform: scale(1.12); } to { transform: scale(1.02); } }
.hero__dots { display: flex; gap: 8px; margin-top: 56px; }
.hero__dot { width: 36px; height: 3px; padding: 0; border: 0; background: rgba(255,255,255,.28); cursor: pointer; position: relative; overflow: hidden; }
.hero__dot::after { content: ""; position: absolute; inset: 0; background: var(--text); transform: scaleX(0); transform-origin: left; }
.hero__dot.is-active::after { animation: fill var(--slide-ms, 6000ms) linear forwards; }
.hero__dot.is-done::after { transform: scaleX(1); }
@keyframes fill { to { transform: scaleX(1); } }
.hero__shade { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(11,11,12,.55) 0%, rgba(11,11,12,0) 28%),
  linear-gradient(90deg, rgba(11,11,12,.75) 0%, rgba(11,11,12,.15) 60%),
  linear-gradient(0deg, var(--bg) 0%, rgba(11,11,12,0) 45%); }
.hero__content { position: relative; width: 100%; padding-top: 160px; padding-bottom: 72px; }
.hero__title {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(36px, 7vw, 92px); line-height: 1.02; letter-spacing: .01em;
  margin-bottom: 24px;
}
.hero__lede { max-width: 520px; color: rgba(255,255,255,.8); font-size: 17px; margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Trust strip */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust__grid > div { padding: 28px 24px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.trust__grid > div:first-child { border-left: 0; padding-left: 0; }
.trust strong { font-family: var(--display); font-size: 17px; text-transform: uppercase; letter-spacing: .04em; }
.trust span { color: var(--muted); font-size: 13px; }

/* Sections */
.section { padding: clamp(72px, 10vw, 128px) 0; }
section[id] { scroll-margin-top: 60px; }
.section--panel { background: var(--panel); }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 48px; flex-wrap: wrap; }
.section__note { max-width: 380px; color: var(--muted); }

/* Brands */
.brands { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.brand { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 34px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .25s; min-height: 120px; }
.brand { align-items: center; text-align: center; gap: 14px; }
.brand__logo {
  display: block; width: 100%; max-width: 120px; height: 44px;
  background: rgba(255,255,255,.82);
  -webkit-mask: var(--logo) center / contain no-repeat;
          mask: var(--logo) center / contain no-repeat;
  transition: background .25s, transform .25s;
}
.brand small { font-size: 11px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.brand:hover { background: var(--panel-2); }
.brand:hover .brand__logo { background: var(--accent); transform: scale(1.06); }
.brands__more { margin-top: 24px; color: var(--muted); font-size: 14px; }

/* Reserve */
.reserve { display: grid; grid-template-columns: 1.25fr 1fr; min-height: 620px; background: #000; }
.reserve__img { background-size: cover; background-position: center; min-height: 360px; }
.reserve__copy { padding: clamp(48px, 7vw, 96px) var(--gutter); display: flex; flex-direction: column; justify-content: center; gap: 22px; max-width: 620px; }
.reserve__copy p:not(.eyebrow) { color: rgba(255,255,255,.75); }
.reserve__copy .btn { align-self: flex-start; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { padding-left: 28px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 11px; width: 16px; height: 1px; background: var(--accent); }

/* Sell */
.sell { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.sell__intro > p:not(.eyebrow) { color: var(--muted); margin: 20px 0 36px; max-width: 520px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.steps li { display: flex; gap: 22px; padding: 20px 0; border-top: 1px solid var(--line); }
.steps b { font-family: var(--display); color: var(--accent); font-size: 13px; padding-top: 3px; min-width: 28px; }
.steps strong { display: block; font-weight: 600; }
.steps span { color: var(--muted); font-size: 14px; }

.offer { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); display: grid; gap: 16px; }
.offer h3 { font-family: var(--display); font-size: 15px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.offer label { display: grid; align-content: start; gap: 6px; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.offer__fields { display: grid; gap: 16px; }
.offer textarea { resize: vertical; min-height: 84px; }
.offer__done { padding: 24px 0; display: grid; gap: 12px; }
.offer__done[hidden] { display: none; }
.offer__done p:not(.eyebrow) { color: var(--muted); }
.offer input, .offer select, .offer textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--text); font: 500 15px var(--body); padding: 13px 14px; letter-spacing: 0; text-transform: none; outline: none; transition: border-color .2s;
}
.offer input:focus, .offer select:focus, .offer textarea:focus { border-color: var(--accent); }
.offer input::placeholder, .offer textarea::placeholder { color: #5b6067; }
.offer__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.offer__fine { font-size: 12px; color: var(--muted); text-align: center; }

/* Visit */
.visit { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.visit__list { margin: 36px 0 0; display: grid; gap: 0; }
.visit__list > div { display: grid; grid-template-columns: 120px 1fr; padding: 18px 0; border-top: 1px solid var(--line); }
.visit__list dt { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.visit__list dd { margin: 0; }
.visit__list a:hover { color: var(--accent); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 72px 0 32px; background: #000; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer__grid p { margin-top: 18px; max-width: 280px; font-size: 14px; }
.footer h4 { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; font-weight: 600; }
.footer__grid a:not(.logo) { display: block; padding: 4px 0; font-size: 14px; color: rgba(255,255,255,.8); }
.footer__grid a:not(.logo):hover { color: var(--accent); }
.footer__legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav { gap: 22px; }
  .brands { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 960px) {
  .burger, .header .logo { display: block; position: relative; z-index: 2; }
  .header .logo { display: inline-flex; }
  .nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; gap: 26px;
    background: var(--bg);
    opacity: 0; pointer-events: none; transition: opacity .3s;
  }
  .nav.is-open { opacity: 1; pointer-events: auto; }
  .nav a:not(.btn) { font-family: var(--display); font-size: 18px; }
  .nav__cta { margin-top: 12px; }
  body.menu-open { overflow: hidden; }


  .trust__grid { grid-template-columns: 1fr 1fr; }
  .trust__grid > div { padding: 22px 16px; }
  .trust__grid > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .trust__grid > div:nth-child(n+3) { border-top: 1px solid var(--line); }

  .reserve, .sell, .visit { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .utility__hide { display: none; }
  .header { margin-bottom: -72px; }
  .header__inner { height: 72px; }
  .logo__img { height: 34px; }
  .hero__content { padding-top: 120px; padding-bottom: 36px; }
  .hero__title { font-size: clamp(26px, 8vw, 36px); }
  .hero__lede { font-size: 16px; }
  .brands { grid-template-columns: repeat(2, 1fr); }
  .brand { padding: 24px 16px; min-height: 96px; }
  .offer__row { grid-template-columns: 1fr; }
  .visit__list > div { grid-template-columns: 1fr; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__slide.is-active { animation: none; }
  .hero__dot.is-active::after { animation: none; transform: scaleX(1); }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
