/* PrintShiftMotorsports: shared styles for every page */
:root {
  --bg: #0a0a0b;
  --bg-2: #121214;
  --card: #17171a;
  --line: #2a2a2f;
  --text: #f2f2f2;
  --muted: #a6a7ac;
  --silver: #c3c6cc;
  --red: #e10600;
  --red-hi: #ff2a1f;
  --radius: 6px;
  --max: 1140px;
  --head: "Saira Condensed", "Arial Narrow", sans-serif;
  --sans: "Saira", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: var(--head); line-height: 1.05; margin: 0; letter-spacing: .01em; }
h2 { font-size: clamp(34px, 5vw, 52px); font-style: italic; font-weight: 800; text-transform: uppercase; }
.r { color: var(--red); }
.eyebrow { font-family: var(--head); font-weight: 600; font-size: 15px; letter-spacing: .18em; text-transform: uppercase; color: var(--red); margin: 0 0 10px; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--red); transform: skewX(-30deg); }
section { padding: 88px 0; }
.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lead { color: var(--muted); max-width: 60ch; }
.center { text-align: center; }
.mt { margin-top: 36px; }

/* Buttons: slanted, like the logo */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; font-family: var(--head); font-weight: 800; font-style: italic; font-size: 18px; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; color: #fff; background: var(--red); border: 0; cursor: pointer; clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); transition: background .15s; }
.btn:hover { background: var(--red-hi); }
.btn.ghost { background: transparent; box-shadow: inset 0 0 0 2px var(--silver); clip-path: none; transform: skewX(-12deg); }
.btn.ghost span { display: inline-block; transform: skewX(12deg); }
.btn.ghost:hover { box-shadow: inset 0 0 0 2px #fff; }
.text-link { color: var(--red); font-family: var(--head); font-weight: 700; font-style: italic; text-transform: uppercase; letter-spacing: .05em; text-decoration: none; }
.text-link:hover { color: var(--red-hi); }

/* Header + navigation */
header { position: sticky; top: 0; z-index: 30; background: rgba(10,10,11,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo-sm { width: 120px; aspect-ratio: 2.2; object-fit: cover; object-position: 50% 45%; mix-blend-mode: lighten; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a:not(.btn) { position: relative; text-decoration: none; color: var(--muted); font-family: var(--head); font-weight: 600; font-size: 17px; text-transform: uppercase; letter-spacing: .06em; padding: 6px 0; }
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"] { color: #fff; }
.nav-links a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--red); transform: skewX(-30deg); }
.nav-links .btn { padding: 9px 20px; font-size: 16px; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: #fff; width: 44px; height: 40px; border-radius: 4px; cursor: pointer; font-size: 20px; }

/* Page banner (inner pages) */
.page-head { padding: 72px 0 56px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-head::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 0 62%, rgba(225,6,0,.10) 62% 69%, transparent 69% 73%, rgba(225,6,0,.06) 73% 76%, transparent 76%); pointer-events: none; animation: drift 14s ease-in-out infinite alternate; }
.page-head h1 { font-size: clamp(42px, 6vw, 68px); font-style: italic; font-weight: 800; text-transform: uppercase; position: relative; }
.page-head .lead { position: relative; margin: 16px 0 0; font-size: 19px; }

/* Home hero with background video */
/* isolation keeps the layers inside the hero: video at the back, dark overlay, then text */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: min(86vh, 760px); display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,10,11,.94) 0%, rgba(10,10,11,.78) 45%, rgba(10,10,11,.35) 100%), linear-gradient(0deg, rgba(10,10,11,.9) 0%, transparent 35%); }
/* no z-index here on purpose: it keeps the logo's blend mode working against the video */
.hero .wrap { position: relative; width: 100%; padding-top: 64px; padding-bottom: 64px; }
.hero-logo { width: min(340px, 70%); aspect-ratio: 2.2; object-fit: cover; object-position: 50% 45%; mix-blend-mode: lighten; margin: 0 0 18px -8px; }
.hero h1 { font-size: clamp(40px, 6vw, 72px); font-style: italic; font-weight: 800; text-transform: uppercase; max-width: 15ch; }
.hero .lead { font-size: 19px; margin: 20px 0 32px; color: #c9cace; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* Trust strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.stat { padding: 26px 20px; border-right: 1px solid var(--line); text-align: center; }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--head); font-style: italic; font-weight: 800; font-size: 34px; line-height: 1.1; }
.stat > span { color: var(--muted); font-size: 14px; }

/* Generic cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.service { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: relative; overflow: hidden; }
.service::after { content: ""; position: absolute; top: 0; right: 0; width: 60px; height: 4px; background: var(--red); transform: skewX(-30deg) translateX(8px); }
.service h3 { font-size: 24px; font-weight: 800; font-style: italic; text-transform: uppercase; margin-bottom: 8px; }
.service p { color: var(--muted); margin: 0; font-size: 16px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.section-head .lead { margin: 0; max-width: 44ch; }

/* Printed part cards */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.work-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .2s, transform .2s; }
.work-card:hover { border-color: var(--red); transform: translateY(-3px); }
.work-img { aspect-ratio: 4 / 3; background: #1f1f23; position: relative; overflow: hidden; }
.work-img img { width: 100%; height: 100%; object-fit: cover; }
.work-img.placeholder { background: repeating-linear-gradient(115deg, #1c1c20 0 14px, #202025 14px 28px); display: grid; place-items: center; }
.work-img.placeholder img { display: none; }
.work-img.placeholder::after { content: "Photo coming soon"; font-family: var(--head); font-style: italic; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 14px; color: var(--muted); border: 1px dashed #4a4a52; padding: 6px 12px; }
.work-body { padding: 18px 20px 22px; }
.work-body h3 { font-size: 23px; font-weight: 800; font-style: italic; text-transform: uppercase; }
.work-body p { color: var(--muted); font-size: 15px; margin: 6px 0 12px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--silver); border: 1px solid var(--line); padding: 2px 8px; }

/* Garage photo gallery */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 32px 0 24px; }
.chip { font-family: var(--head); font-weight: 700; font-style: italic; text-transform: uppercase; letter-spacing: .05em; font-size: 15px; background: transparent; color: var(--muted); border: 1px solid var(--line); padding: 7px 16px; cursor: pointer; transform: skewX(-12deg); transition: color .15s, border-color .15s, background .15s; }
.chip span { display: inline-block; transform: skewX(12deg); }
.chip:hover { color: #fff; border-color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.shot { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: #1a1a1d; cursor: zoom-in; border: 0; padding: 0; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.shot:hover img { transform: scale(1.04); }
.shot figcaption, .shot .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; background: linear-gradient(0deg, rgba(0,0,0,.85), transparent); color: #fff; font-family: var(--head); font-weight: 700; font-style: italic; text-transform: uppercase; letter-spacing: .03em; font-size: 16px; text-align: left; }
.shot[hidden] { display: none; }
.gallery.home { grid-template-columns: repeat(3, 1fr); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.92); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 82vh; max-width: min(1200px, 100%); object-fit: contain; border-radius: 4px; }
.lightbox p { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; margin: 0; font-family: var(--head); font-style: italic; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.lb-btn { position: absolute; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 22px; cursor: pointer; }
.lb-btn:hover { background: var(--red); border-color: var(--red); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* About */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }
.about-grid p { color: var(--muted); }
.about-grid p strong { color: var(--text); font-weight: 600; }
.creds { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.creds li { padding-left: 26px; position: relative; }
.creds li::before { content: ""; position: absolute; left: 0; top: 10px; width: 14px; height: 6px; background: var(--red); transform: skewX(-30deg); }
.reviews { display: grid; gap: 14px; }
.review { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--red); padding: 18px 20px; border-radius: var(--radius); }
.review p { margin: 0 0 8px; color: var(--text) !important; font-size: 17px; }
.review small { color: var(--muted); font-size: 13px; }
.stars { color: var(--red); letter-spacing: 2px; font-size: 14px; }
.ebay-link { display: inline-block; margin-top: 6px; color: var(--silver); font-size: 15px; }
.strip { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; margin-top: 44px; }
.strip .shot { aspect-ratio: auto; height: 300px; }

/* CTA band */
.cta-band { background: linear-gradient(115deg, #1a0605, #0f0f11 60%); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 64px 0; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(30px, 4vw, 44px); }
.cta-band p { color: var(--muted); margin: 8px 0 0; }

/* Request form */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0 0 48px; }
.step { display: flex; gap: 16px; align-items: start; }
.step b { font-family: var(--head); font-style: italic; font-weight: 800; font-size: 44px; line-height: .9; color: var(--red); }
.step h3 { font-size: 21px; font-weight: 800; font-style: italic; text-transform: uppercase; margin-bottom: 4px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
form { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: var(--radius); padding: 34px; display: grid; gap: 22px; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 16px; }
legend { font-family: var(--head); font-style: italic; font-weight: 800; font-size: 22px; text-transform: uppercase; color: var(--silver); padding: 0; margin-bottom: 12px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; align-content: start; }
.field-label { font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.opt { color: var(--muted); font-weight: 400; }
input, select, textarea { font: inherit; font-size: 16px; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: 11px 13px; width: 100%; }
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: transparent; }
.checks { display: flex; flex-wrap: wrap; gap: 10px; }
.checks label { display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--line); padding: 8px 12px; border-radius: 4px; font-weight: 400; cursor: pointer; }
.checks input { width: auto; accent-color: var(--red); }
.form-foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form-note { font-size: 13px; color: var(--muted); margin: 0; }
.form-status { margin: 0; font-size: 15px; }
.form-status.ok { color: #5fd38a; }
.form-status.err { color: #ff8a7a; }

/* FAQ */
.faq-list { border-top: 1px solid var(--line); max-width: 900px; }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative; font-family: var(--head); font-weight: 600; font-size: 21px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-size: 30px; color: var(--red); font-weight: 400; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: -4px 0 22px; color: var(--muted); max-width: 75ch; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.contact-card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-decoration: none; transition: border-color .2s; }
.contact-card:hover { border-color: var(--red); }
.contact-card small { display: block; font-family: var(--head); font-weight: 600; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 6px; }
.contact-card strong { font-family: var(--head); font-weight: 800; font-style: italic; font-size: 24px; word-break: break-word; }
.contact-card span { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; }

footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer nav a { text-decoration: none; }
footer nav a:hover { color: #fff; }
footer em { color: var(--red); font-style: italic; font-family: var(--head); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* Subtle motion: content eases up as it scrolls into view (only when JS runs) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-36px); } }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .page-head::before { animation: none; }
}

@media (max-width: 960px) {
  .menu-btn { display: block; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #0d0d0f; border-bottom: 1px solid var(--line); padding: 8px 24px 20px; }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-links a[aria-current="page"]::after { display: none; }
  .nav-links a[aria-current="page"] { color: var(--red); }
  .nav-links .btn { margin-top: 16px; justify-content: center; }
  .about-grid { grid-template-columns: 1fr; }
  .grid-3, .work-grid, .contact-grid, .gallery.home { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  section { padding: 64px 0; }
  .page-head { padding: 52px 0 40px; }
  .hero { min-height: 80vh; }
  .hero::before { background: linear-gradient(0deg, rgba(10,10,11,.95) 15%, rgba(10,10,11,.6) 100%); }
  .grid-3, .work-grid, .contact-grid, .row-2, .row-3, .gallery.home { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 8px; }
  .shot figcaption, .shot .cap { font-size: 13px; padding: 20px 8px 6px; }
  .strip { grid-template-columns: 1fr; }
  .strip .shot { height: 240px; }
  form { padding: 22px 18px; }
  .stat strong { font-size: 28px; }
  .lb-prev, .lb-next { top: auto; bottom: 60px; transform: none; }
}

.tag-link { color: var(--red); border-color: rgba(225,6,0,.5); text-decoration: none; }
.tag-link:hover { background: var(--red); color: #fff; }
.tag-beta { color: #111; background: #f5b400; border-color: #f5b400; }

/* footer contact strip */
footer .wrap.foot-contact { justify-content: flex-start; gap: 12px 36px; padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.foot-contact a { display: flex; flex-direction: column; gap: 2px; color: var(--silver); text-decoration: none; font-size: 15px; font-weight: 500; }
.foot-contact a:hover { color: #fff; }
.foot-contact small { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
