/* ============================================================
   Marketing 4 Motors — styles.css
   Palette: tarmac dark + indicator amber + Irish plate blue
   Type: Barlow Condensed (display) / Barlow (body)
   ============================================================ */

:root {
  --bg: #0b0c0e;
  --surface: #14161a;
  --surface-2: #1b1e24;
  --line: #262a31;
  --text: #f2f3f5;
  --muted: #9aa0a8;
  --amber: #e21b2c;
  --amber-dark: #a5121f;
  --plate-blue: #16181c;
  --plate-white: #f7f7f2;
  --radius: 10px;
  --max: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Barlow", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--amber); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Type ---------- */

h1, h2, h3, .display {
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.05;
  font-weight: 700;
}

h1 { font-size: clamp(2.6rem, 6.5vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.35rem; letter-spacing: 0.03em; }

.lede {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--muted);
  max-width: 60ch;
}

.amber { color: var(--amber); }

/* ---------- Reg-plate chip (signature element) ---------- */

.plate {
  display: inline-flex;
  align-items: stretch;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid #0e1116;
  box-shadow: 0 2px 10px rgba(0,0,0,.45);
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1;
}
.plate .band {
  background: var(--plate-blue);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 7px;
  font-size: 0.55rem;
  letter-spacing: 0.05em;
  gap: 2px;
}
.plate .band .stars { font-size: 0.5rem; color: var(--amber); }
.plate .reg {
  background: var(--plate-white);
  color: #14161a;
  padding: 8px 14px;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
}

/* ---------- Header ---------- */

header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11,12,14,.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
}
.logo:hover { text-decoration: none; }
.logo span { color: var(--amber); }

nav.main { display: flex; align-items: center; gap: 28px; }
nav.main a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
}
nav.main a:hover { color: var(--text); text-decoration: none; }
nav.main a[aria-current="page"] { color: var(--amber); }

.nav-toggle { display: none; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.05rem;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-amber { background: var(--amber); color: #fff; }
.btn-amber:hover { background: #f0303f; }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); }

/* ---------- Hero ---------- */

.hero {
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  /* faint road-marking stripe */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: repeating-linear-gradient(90deg,
    var(--amber) 0 48px, transparent 48px 84px);
  opacity: .55;
}
.hero .plate { margin-bottom: 26px; }
.hero h1 { max-width: 18ch; margin-bottom: 20px; }
.hero .lede { margin-bottom: 34px; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Sections ---------- */

section.block { padding: 84px 0; border-top: 1px solid var(--line); }
section.block.tint { background: var(--surface); }

.kicker {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
  color: var(--amber);
  margin-bottom: 12px;
}
section.block h2 { margin-bottom: 16px; }
section.block > .wrap > .lede { margin-bottom: 44px; }

/* ---------- Card grids ---------- */

.grid {
  display: grid;
  gap: 20px;
}
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.98rem; }
.card .tag {
  display: inline-block;
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--amber);
  border: 1px solid var(--amber-dark);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 14px;
}

/* ---------- Split layout ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.split .checklist { list-style: none; }
.split .checklist li {
  padding-left: 30px;
  position: relative;
  margin-bottom: 14px;
  color: var(--muted);
}
.split .checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 14px; height: 14px;
  border-radius: 3px;
  background: var(--amber);
  clip-path: polygon(14% 44%, 0 60%, 40% 100%, 100% 16%, 84% 0, 40% 66%);
}
.split .checklist strong { color: var(--text); }

/* ---------- CTA band ---------- */

.cta-band {
  padding: 76px 0;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  border-top: 1px solid var(--line);
  text-align: center;
}
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { color: var(--muted); margin-bottom: 30px; }

/* ---------- Footer ---------- */

footer.site {
  border-top: 1px solid var(--line);
  padding: 48px 0 36px;
  color: var(--muted);
  font-size: 0.92rem;
}
footer.site .cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
footer.site h4 {
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 12px;
  font-size: 1rem;
}
footer.site ul { list-style: none; }
footer.site li { margin-bottom: 8px; }
footer.site a { color: var(--muted); }
footer.site a:hover { color: var(--amber); }
.footnote {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Forms (contact) ---------- */

form.contact {
  display: grid;
  gap: 18px;
  max-width: 640px;
}
form.contact label {
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  color: var(--text);
  display: block;
  margin-bottom: 6px;
}
form.contact input,
form.contact select,
form.contact textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font: inherit;
}
form.contact input:focus,
form.contact select:focus,
form.contact textarea:focus {
  outline: 2px solid var(--amber);
  outline-offset: 0;
  border-color: var(--amber);
}

/* ---------- FAQ ---------- */

details.faq {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 18px 22px;
  margin-bottom: 12px;
}
details.faq summary {
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
}
details.faq p { color: var(--muted); padding-top: 12px; }

/* ---------- Motion & responsive ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}

@media (max-width: 900px) {
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  footer.site .cols { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .hero { padding: 64px 0 56px; }
  .grid.cols-2 { grid-template-columns: 1fr; }

  .nav-toggle {
    display: block;
    background: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    font-size: 1.3rem;
    padding: 4px 12px;
    cursor: pointer;
  }
  nav.main {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 24px 24px;
    gap: 18px;
  }
  nav.main.open { display: flex; }
}

/* ============================================================
   v2 additions: showreel hero, floating stat plates,
   scroll reveals, spotlight page
   ============================================================ */

/* ---------- Showreel hero ---------- */

.hero-reel { padding: 72px 0 96px; }
.hero-reel .wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}

.reel-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  min-height: 480px;
}

.phone {
  width: 190px;
  aspect-ratio: 9 / 16;
  border-radius: 26px;
  border: 3px solid #23262d;
  background: var(--surface-2);
  box-shadow: 0 24px 60px rgba(0,0,0,.55);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  opacity: 0;
  transform: translateY(60px);
  animation: phoneIn .9s cubic-bezier(.2,.7,.2,1) forwards;
}
.phone video { width: 100%; height: 100%; object-fit: cover; }
.phone::after {
  /* notch */
  content: "";
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 56px; height: 6px;
  border-radius: 999px;
  background: #0b0c0e;
  opacity: .8;
}
.phone.p1 { z-index: 2; transform: translateY(60px) rotate(-7deg); animation-delay: .1s; margin-right: -34px; }
.phone.p2 { z-index: 3; width: 214px; animation-delay: .3s; }
.phone.p3 { z-index: 2; transform: translateY(60px) rotate(7deg); animation-delay: .5s; margin-left: -34px; }

@keyframes phoneIn {
  to { opacity: 1; transform: translateY(0) rotate(var(--tilt, 0deg)); }
}
.phone.p1 { --tilt: -7deg; }
.phone.p3 { --tilt: 7deg; }

/* idle float once in */
.reel-stage.settled .phone {
  opacity: 1;
  transform: translateY(0) rotate(var(--tilt, 0deg));
  animation: phoneFloat 6s ease-in-out infinite;
}
.reel-stage.settled .phone.p1 { animation-delay: 0s; }
.reel-stage.settled .phone.p2 { animation-delay: 1.2s; }
.reel-stage.settled .phone.p3 { animation-delay: 2.4s; }
@keyframes phoneFloat {
  0%, 100% { transform: translateY(0) rotate(var(--tilt, 0deg)); }
  50% { transform: translateY(-12px) rotate(var(--tilt, 0deg)); }
}

/* floating stat plates */
.stat-plate {
  position: absolute;
  z-index: 4;
  opacity: 0;
  animation: statIn .7s ease .9s forwards;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.5));
  will-change: transform;
}
.stat-plate .reg { font-size: 0.92rem; padding: 7px 12px; }
.stat-plate .reg b { color: var(--amber-dark); margin-right: 6px; }
.stat-plate.s1 { top: 4%; left: -4%; animation-delay: .9s; }
.stat-plate.s2 { bottom: 10%; right: -6%; animation-delay: 1.1s; }
.stat-plate.s3 { top: 46%; left: -10%; animation-delay: 1.3s; }
@keyframes statIn { to { opacity: 1; } }

.reel-stage.settled .stat-plate { animation: statFloat 7s ease-in-out infinite; opacity: 1; }
.reel-stage.settled .stat-plate.s2 { animation-delay: 1.5s; }
.reel-stage.settled .stat-plate.s3 { animation-delay: 3s; }
@keyframes statFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Scroll reveals ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; }
.reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; }

/* ---------- Spotlight page ---------- */

.spotlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.spotlight.flip .media { order: 2; }
.spotlight .media {
  display: flex;
  gap: 16px;
  justify-content: center;
}
.spotlight .media .phone {
  width: 160px;
  animation: none;
  opacity: 1;
  transform: none;
}
.spotlight .client-name {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 14px;
}
.spotlight .stats-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* marquee strip */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  padding: 16px 0;
}
.marquee .track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  width: max-content;
  animation: marquee 28s linear infinite;
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--muted);
}
.marquee .track span b { color: var(--amber); font-weight: 600; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 900px) {
  .hero-reel .wrap { grid-template-columns: 1fr; gap: 56px; }
  .reel-stage { min-height: 420px; }
  .phone { width: 150px; }
  .phone.p2 { width: 170px; }
  .stat-plate.s1 { left: 0; }
  .stat-plate.s2 { right: 0; }
  .stat-plate.s3 { left: 0; top: auto; bottom: -6%; }
  .spotlight { grid-template-columns: 1fr; }
  .spotlight.flip .media { order: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .phone, .stat-plate { animation: none !important; opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee .track { animation: none; }
}


/* ============================================================
   v3: brand red/black/white, carbon fibre, timeline, tagline
   ============================================================ */

/* carbon fibre weave */
.carbon, .plate .band, .card .tag {
  background-color: #17191d;
  background-image:
    radial-gradient(#000 15%, transparent 16%),
    radial-gradient(#000 15%, transparent 16%),
    radial-gradient(rgba(255,255,255,.07) 15%, transparent 20%),
    radial-gradient(rgba(255,255,255,.07) 15%, transparent 20%);
  background-position: 0 0, 6px 6px, 0 1px, 6px 7px;
  background-size: 12px 12px;
}
.plate .band { border-right: 1px solid rgba(255,255,255,.08); }
.card .tag { color: #fff; border-color: var(--amber); }

/* carbon accents on section bands */
section.block.tint, .cta-band, .marquee {
  background-color: var(--surface);
  background-image:
    radial-gradient(rgba(0,0,0,.6) 15%, transparent 16%),
    radial-gradient(rgba(0,0,0,.6) 15%, transparent 16%),
    radial-gradient(rgba(255,255,255,.035) 15%, transparent 20%),
    radial-gradient(rgba(255,255,255,.035) 15%, transparent 20%);
  background-position: 0 0, 7px 7px, 0 1px, 7px 8px;
  background-size: 14px 14px;
}
.cta-band { text-align: center; }

/* header logo image */
.logo img { height: 42px; width: auto; display: block; }

/* footer brand tagline */
.tagline {
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--amber);
}

/* ---------- How-we-work scroll timeline ---------- */
.timeline {
  position: relative;
  max-width: 720px;
  margin-top: 48px;
  padding-left: 42px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 10px; top: 6px; bottom: 6px;
  width: 3px;
  background: var(--line);
  border-radius: 3px;
}
.timeline .progress {
  position: absolute;
  left: 10px; top: 6px;
  width: 3px;
  height: 0;
  background: var(--amber);
  border-radius: 3px;
  transition: height .15s linear;
}
.tl-step {
  position: relative;
  padding-bottom: 46px;
  opacity: .3;
  transform: translateX(14px);
  transition: opacity .5s ease, transform .5s ease;
}
.tl-step:last-child { padding-bottom: 0; }
.tl-step.active { opacity: 1; transform: none; }
.tl-step::before {
  content: "";
  position: absolute;
  left: -39px; top: 4px;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 3px solid var(--line);
  transition: border-color .4s ease, background .4s ease;
}
.tl-step.active::before {
  border-color: var(--amber);
  background: var(--amber);
  box-shadow: 0 0 0 5px rgba(226,27,44,.18);
}
.tl-step .tl-when {
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--amber);
  margin-bottom: 6px;
}
.tl-step h3 { margin-bottom: 8px; }
.tl-step p { color: var(--muted); }


/* ---------- Insights articles ---------- */
.article-body p { margin-bottom: 20px; color: var(--muted); font-size: 1.05rem; }
.article-body p strong, .article-body p a { color: var(--text); }
.article-body p a { color: var(--amber); }
.article-body h2 {
  margin: 38px 0 14px;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
}
a.card { transition: border-color .2s ease, transform .2s ease; }
a.card:hover { border-color: var(--amber); transform: translateY(-3px); text-decoration: none; }


/* ---------- Mobile overflow fix ---------- */

body { overflow-x: hidden; }

/* grid children may not shrink below content width by default; allow it */
.hero-reel .wrap > * , .split > *, .grid > * { min-width: 0; }
.reel-stage { max-width: 100%; }

@media (max-width: 520px) {
  .phone { width: 26vw; min-width: 92px; border-radius: 18px; border-width: 2px; }
  .phone.p2 { width: 30vw; min-width: 106px; }
  .phone.p1 { margin-right: -16px; }
  .phone.p3 { margin-left: -16px; }
  .reel-stage { min-height: 330px; }
  .stat-plate .reg { font-size: 0.78rem; padding: 6px 9px; }
  .stat-plate .band { padding: 5px 5px; font-size: 0.48rem; }
  .hero-reel { padding: 48px 0 72px; }
  .cta-row .btn { width: 100%; text-align: center; }
}
