/* ==========================================================================
   Quick Time Designs — quicktimedesigns.com
   Palette from the QTD logo: cream, ink black, race orange, teal.
   Display: Barlow Condensed italic (livery type). Body: Barlow.
   ========================================================================== */

:root {
  --cream: #f7f1e3;
  --cream-deep: #efe6cf;
  --paper: #ffffff;
  --ink: #16130e;
  --ink-soft: #4a443a;
  --orange: #f2760c;
  --orange-deep: #d95f02;
  --teal: #0f8f86;
  --teal-dark: #0b6f68;
  --line: rgba(22, 19, 14, 0.12);
  --radius: 14px;
  --shadow: 0 10px 30px rgba(22, 19, 14, 0.1);
  --wrap: 1180px;
  --header-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: "Barlow", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
}

img { max-width: 100%; display: block; }
a { color: var(--teal-dark); }

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

/* ---------- type ---------- */
h1, h2, h3, .display {
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: -0.005em;
}
h1 { font-size: clamp(2.9rem, 7.2vw, 5.4rem); }
h2 { font-size: clamp(2.1rem, 4.5vw, 3.3rem); }
h3 { font-size: 1.45rem; line-height: 1.05; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: 58ch; }

.eyebrow {
  display: inline-block;
  font-family: "Barlow", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 14px;
}

.accent { color: var(--orange); }

/* speed streaks — the signature motif, echoes the logo swooshes */
.streaks { display: inline-flex; gap: 6px; margin: 18px 0 0; }
.streaks i {
  display: block; height: 8px; border-radius: 99px;
  transform: skewX(-24deg);
}
.streaks i:nth-child(1) { width: 74px; background: var(--orange); }
.streaks i:nth-child(2) { width: 40px; background: var(--teal); }
.streaks i:nth-child(3) { width: 18px; background: var(--ink); }

/* checkered strip */
.checker {
  height: 14px;
  background:
    repeating-conic-gradient(var(--ink) 0% 25%, var(--cream) 0% 50%) 0 0 / 28px 28px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: "Barlow Condensed", sans-serif;
  font-style: italic; font-weight: 700; text-transform: uppercase;
  font-size: 1.12rem; letter-spacing: 0.04em;
  padding: 13px 26px 14px; border-radius: 10px;
  text-decoration: none; border: 2px solid transparent;
  cursor: pointer; transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 6px 18px rgba(242, 118, 12, 0.35); }
.btn-primary:hover { background: var(--orange-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-light { background: var(--cream); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-block { width: 100%; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

/* ---------- announcement bar ---------- */
.bar {
  background: var(--ink); color: var(--cream);
  font-size: 0.92rem; text-align: center; padding: 8px 16px;
}
.bar strong { color: var(--orange); }
.bar a { color: var(--cream); font-weight: 600; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 241, 227, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 28px;
  height: var(--header-h);
}
.logo img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav a {
  font-weight: 600; font-size: 0.98rem; color: var(--ink);
  text-decoration: none; padding: 6px 2px;
}
.nav a:hover { color: var(--orange-deep); }
.nav a[aria-current="page"] { color: var(--orange-deep); }

.nav-dd { position: relative; }
.nav-dd > button {
  font: inherit; font-weight: 600; color: var(--ink); background: none; border: 0;
  display: flex; align-items: center; gap: 5px; cursor: pointer; padding: 6px 2px;
}
.nav-dd > button::after { content: "▾"; font-size: 0.75em; }
.dd-menu {
  position: absolute; top: calc(100% + 10px); left: -12px; min-width: 250px;
  background: var(--paper); border-radius: 12px; box-shadow: var(--shadow);
  border: 1px solid var(--line); padding: 8px; display: none;
}
.nav-dd.open .dd-menu, .nav-dd:focus-within .dd-menu { display: block; }
@media (hover: hover) { .nav-dd:hover .dd-menu { display: block; } }
.dd-menu a { display: block; padding: 9px 12px; border-radius: 8px; }
.dd-menu a:hover { background: var(--cream); }

.header-cta { display: flex; align-items: center; gap: 12px; }
.header-phone { font-weight: 700; text-decoration: none; color: var(--ink); white-space: nowrap; }
.header-phone span { color: var(--teal-dark); }
.hamburger {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
}
.hamburger i { display: block; width: 26px; height: 3px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

@media (max-width: 980px) {
  .nav {
    display: none;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 20px;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a, .nav-dd > button { padding: 12px 4px; width: 100%; text-align: left; }
  .dd-menu { position: static; box-shadow: none; border: 0; padding: 0 0 0 16px; }
  .hamburger { display: block; margin-left: auto; }
  .header-cta .btn { display: none; }
}

/* ---------- hero ---------- */
.hero { padding: 64px 0 72px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-copy .btn + .btn { margin-left: 12px; }
.hero-ctas { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-ctas .btn + .btn { margin-left: 0; }
.hero-note { margin-top: 16px; font-size: 0.92rem; color: var(--ink-soft); }

.mosaic {
  display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; gap: 14px;
}
.mosaic figure {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  position: relative; background: var(--cream-deep);
}
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.mosaic figure:nth-child(1) { grid-row: span 2; }
.mosaic figure:nth-child(4) { grid-row: span 2; }
.mosaic figure:nth-child(2), .mosaic figure:nth-child(3) { grid-row: span 1; }
.mosaic figcaption {
  position: absolute; left: 10px; bottom: 10px;
  background: rgba(22, 19, 14, 0.82); color: var(--cream);
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 6px;
}

@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .mosaic { grid-auto-rows: 150px; }
}

/* ---------- pit board (stats) ---------- */
.pitboard { background: var(--ink); color: var(--cream); padding: 40px 0 44px; }
.pitboard .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.stat .num {
  font-family: "Barlow Condensed", sans-serif; font-style: italic; font-weight: 800;
  font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; color: var(--orange);
}
.stat .num small { font-size: 0.5em; color: var(--cream); }
.stat p { margin-top: 6px; font-size: 0.95rem; color: rgba(247, 241, 227, 0.75); }
@media (max-width: 800px) { .pitboard .wrap { grid-template-columns: repeat(2, 1fr); } }

/* ---------- wrapped-for strip ---------- */
.clients { padding: 26px 0; border-bottom: 1px solid var(--line); }
.clients .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; justify-content: center; }
.clients span.label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); }
.clients b {
  font-family: "Barlow Condensed", sans-serif; font-style: italic; font-weight: 700;
  text-transform: uppercase; font-size: 1.05rem; color: var(--ink-soft); white-space: nowrap;
}
.clients b::after { content: "·"; color: var(--orange); margin-left: 24px; }
.clients b:last-child::after { content: ""; }

/* ---------- sections ---------- */
.section { padding: 84px 0; }
.section-tight { padding: 60px 0; }
.section-dark { background: var(--ink); color: var(--cream); }
.section-dark .lede { color: rgba(247, 241, 227, 0.78); }
.section-dark .eyebrow { color: var(--teal); }
.section-paper { background: var(--paper); }
.section-head { max-width: 720px; margin-bottom: 44px; }

/* ---------- service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--paper); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 4px 16px rgba(22, 19, 14, 0.07);
  text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .thumb { aspect-ratio: 16 / 10.5; overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .thumb img { transform: scale(1.04); }
.card .body { padding: 20px 22px 24px; }
.card .body p { margin-top: 8px; color: var(--ink-soft); font-size: 0.96rem; }
.card .go { margin-top: 14px; font-weight: 700; color: var(--orange-deep); font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.08em; }
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }

/* ---------- split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split .media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.split video, .split img { width: 100%; display: block; }
.split ul.ticks { margin: 22px 0 0; list-style: none; }
.split ul.ticks li { padding-left: 30px; position: relative; margin-bottom: 12px; }
.split ul.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--teal); font-weight: 800;
}
@media (max-width: 980px) { .split { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- industries ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  background: var(--paper); border: 1px solid var(--line); border-radius: 99px;
  padding: 10px 20px; font-weight: 600; font-size: 0.95rem; color: var(--ink);
  text-decoration: none;
}
.chip:hover { border-color: var(--orange); color: var(--orange-deep); }
.section-dark .chip { background: transparent; color: var(--cream); border-color: rgba(247, 241, 227, 0.3); }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; }
.step {
  background: var(--paper); border-radius: var(--radius); padding: 30px 26px;
  box-shadow: 0 4px 16px rgba(22, 19, 14, 0.06); position: relative;
}
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: "Barlow Condensed", sans-serif; font-style: italic; font-weight: 800;
  font-size: 2.6rem; color: var(--orange); line-height: 1; display: block; margin-bottom: 12px;
}
.step p { color: var(--ink-soft); font-size: 0.97rem; margin-top: 8px; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* ---------- gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.filter-btn {
  font: inherit; font-weight: 600; font-size: 0.93rem;
  background: var(--paper); color: var(--ink); border: 1px solid var(--line);
  border-radius: 99px; padding: 9px 20px; cursor: pointer;
}
.filter-btn[aria-pressed="true"] { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.grid-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-gallery figure {
  border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 16px rgba(22, 19, 14, 0.08);
  position: relative; background: var(--paper); margin: 0;
}
.grid-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.grid-gallery figcaption {
  padding: 12px 16px; font-size: 0.9rem; font-weight: 600; color: var(--ink-soft);
  display: flex; justify-content: space-between; gap: 10px; align-items: baseline;
}
.grid-gallery figcaption span.tag {
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-dark); white-space: nowrap;
}
.grid-gallery figure.hide { display: none; }
@media (max-width: 900px) { .grid-gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-gallery { grid-template-columns: 1fr; } }

/* ---------- quote form ---------- */
.quote-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: start; }
@media (max-width: 980px) { .quote-grid { grid-template-columns: 1fr; } }
.form-card {
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 34px 32px 36px;
}
.form-card .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-card .row { grid-template-columns: 1fr; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--cream); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--teal); border-color: var(--teal);
}
.form-msg { margin-top: 14px; font-weight: 600; display: none; }
.form-msg.ok { display: block; color: var(--teal-dark); }
.form-msg.err { display: block; color: #b3261e; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.contact-line { display: flex; align-items: center; gap: 14px; margin: 18px 0; font-weight: 600; }
.contact-line .ico {
  width: 44px; height: 44px; border-radius: 12px; background: var(--paper);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
  box-shadow: 0 3px 10px rgba(22, 19, 14, 0.08); flex: none;
}
.contact-line a { color: var(--ink); text-decoration: none; }
.contact-line a:hover { color: var(--orange-deep); }
.contact-line small { display: block; font-weight: 500; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; }
.faq details {
  background: var(--paper); border-radius: 12px; padding: 4px 24px;
  margin-bottom: 12px; box-shadow: 0 3px 12px rgba(22, 19, 14, 0.05);
}
.faq summary {
  font-weight: 700; font-size: 1.05rem; padding: 16px 0; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--orange); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 18px; color: var(--ink-soft); }

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding: 60px 0 50px; }
.page-hero .lede { margin-top: 18px; }
.page-hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; }
.page-hero-grid .media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.page-hero-grid .media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 980px) { .page-hero-grid { grid-template-columns: 1fr; gap: 32px; } }

.mini-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mini-gallery img {
  border-radius: 12px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%;
  box-shadow: 0 4px 14px rgba(22, 19, 14, 0.08);
}
@media (max-width: 700px) { .mini-gallery { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--orange); color: #fff; padding: 64px 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.9); max-width: 56ch; }
.cta-band .btn-light { margin-top: 26px; }
.cta-band .btn + .btn { margin-left: 12px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgba(247, 241, 227, 0.8); padding: 60px 0 30px; }
.site-footer .cols {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 40px;
}
.site-footer h4 {
  font-family: "Barlow Condensed", sans-serif; font-style: italic; font-weight: 700;
  text-transform: uppercase; color: var(--cream); margin-bottom: 14px; font-size: 1.1rem;
}
.site-footer a { color: rgba(247, 241, 227, 0.8); text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; font-size: 0.95rem; }
.site-footer .logo-foot img { height: 64px; margin-bottom: 14px; }
.site-footer .fine {
  border-top: 1px solid rgba(247, 241, 227, 0.15); padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: 0.85rem; color: rgba(247, 241, 227, 0.5);
}
@media (max-width: 900px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- sticky mobile call bar ---------- */
.mobile-cta {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  background: var(--ink); padding: 10px 14px;
  grid-template-columns: 1fr 1fr; gap: 10px;
}
.mobile-cta .btn { font-size: 1rem; padding: 11px 10px 12px; }
@media (max-width: 700px) {
  .mobile-cta { display: grid; }
  body { padding-bottom: 68px; }
}
