:root {
  --ink: #0D0F13;
  --ink-2: #1F2125;
  --line-dark: #2A2D31;
  --paper: #F4F3EF;
  --white: #FFFFFF;
  --blue: #1226C2;
  --blue-light: #8FA8FF;
  --muted-dark: #C9C7C0;
  --muted-dark-2: #A9A69E;
  --muted-light: #4A4E54;
  --border-light: #DEDBD3;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 140px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--body); color: var(--paper); background: var(--ink); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); text-transform: uppercase; margin: 0; }
p { margin: 0; }
a { color: inherit; }
.wrap { max-width: 1280px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
@media (max-width: 640px) { .wrap { padding-left: 20px; padding-right: 20px; } }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--white); color: var(--ink); padding: 10px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 3px; }
.light :focus-visible, .card-form :focus-visible, .site-header :focus-visible { outline-color: var(--blue); }

/* Placeholder hatching (shown until photos are uploaded) */
.ph { background-color: #2A2D31; background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 12px, transparent 12px 24px); }
.ph-light { background-color: #E3E1DA; background-image: repeating-linear-gradient(135deg, rgba(0,0,0,.04) 0 12px, transparent 12px 24px); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 14px 26px; border-radius: 6px; border: 1.5px solid var(--blue); background: var(--blue); color: var(--white); font: 600 16px/1.2 var(--body); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s; }
.btn:hover { background: #0E1E9C; border-color: #0E1E9C; color: var(--white); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-ghost { background: transparent; border-color: #4A4E54; color: var(--paper); }
.btn-ghost:hover { background: rgba(255,255,255,.06); border-color: var(--paper); }
.btn-pill { border-radius: 999px; font-size: 15px; padding: 12px 22px; }
.btn-sm { min-height: 40px; padding: 10px 20px; border-radius: 999px; font-size: 15px; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }
.center { display: flex; justify-content: center; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid #E4E6EB; color: var(--ink); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 20px; padding-top: 12px; padding-bottom: 12px; }
.brand img { height: 104px; width: auto; }
.header-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.menu { display: flex; flex-wrap: wrap; gap: 4px; background: #F1F3F6; border-radius: 999px; padding: 6px; }
.menu a { text-decoration: none; color: #2A2E36; font-size: 15px; font-weight: 500; padding: 12px 18px; border-radius: 999px; transition: background .15s, color .15s; }
.menu a:hover { background: var(--white); color: var(--blue); box-shadow: 0 1px 3px rgba(13,15,19,.08); }
@media (max-width: 900px) {
  .brand img { height: 72px; }
  .header-inner { justify-content: center; }
  .header-actions { justify-content: center; }
  .menu a { padding: 10px 12px; font-size: 14px; }
  html { scroll-padding-top: 200px; }
}
@media (max-width: 640px) { .site-header { position: static; } html { scroll-padding-top: 0; } .menu { border-radius: 16px; justify-content: center; } }

/* Sections */
.dark { background: var(--ink); }
.dark-2 { background: var(--ink-2); }
.light { background: var(--paper); color: var(--ink); }
.section { padding-top: 104px; padding-bottom: 104px; display: flex; flex-direction: column; gap: 48px; }
@media (max-width: 640px) { .section { padding-top: 72px; padding-bottom: 72px; gap: 36px; } }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-light); }
.light .eyebrow, .card-form .eyebrow { color: var(--blue); }
h2 { font-weight: 800; font-size: clamp(40px, 5vw, 60px); line-height: 1; }
.muted { color: var(--muted-dark); font-size: 17px; line-height: 1.65; }
.light .muted { color: var(--muted-light); }
.muted.big { font-size: 18px; }
.small { font-size: 14px; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.section-head.split { max-width: none; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.section-head.split > div { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.section-head.split > p { max-width: 420px; }
.split { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.split-cols { display: flex; flex-wrap: wrap; gap: 48px; }
.split-cols > * { flex: 1 1 420px; min-width: 0; }
.split-cols > div { display: flex; flex-direction: column; gap: 16px; }
.two-col { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 56px; }
.two-col.top { align-items: flex-start; }
.two-col > * { flex: 1 1 440px; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack-sm { display: flex; flex-direction: column; gap: 12px; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 88px; padding-bottom: 96px; }
.hero-copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font-weight: 800; font-size: clamp(52px, 7vw, 88px); line-height: .95; letter-spacing: -.01em; }
.accent { color: var(--blue-light); }
.lead { font-size: 20px; line-height: 1.6; color: var(--muted-dark); max-width: 560px; }
.hero-media { position: relative; flex: 1 1 520px; min-width: 0; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; border: 1px solid #33363B; }
.hero-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease; }
.hero-slides img.on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero-slides img { transition: none; } }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 4px; }
.hero-dots button { width: 28px; height: 28px; border: 0; background: transparent; padding: 0; cursor: pointer; display: grid; place-items: center; }
.hero-dots button::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.55); box-shadow: 0 0 0 1px rgba(0,0,0,.25); transition: background .2s, transform .2s; }
.hero-dots button[aria-current="true"]::before { background: var(--white); transform: scale(1.25); }
.strip { border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.strip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; padding-top: 28px; padding-bottom: 28px; }
.strip-grid div { display: flex; flex-direction: column; gap: 4px; }
.strip-grid strong { font-family: var(--display); font-weight: 700; font-size: 24px; text-transform: uppercase; }
.strip-grid span { font-size: 15px; color: var(--muted-dark-2); }

/* Trailer types */
.type-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.type-card { background: var(--white); border: 1px solid var(--border-light); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.type-photo { position: relative; display: block; width: 100%; aspect-ratio: 3 / 2; border: 0; padding: 0; cursor: default; background-size: cover; background-position: center; }
.type-photo.has-photo { cursor: zoom-in; }
.type-photo .chip { position: absolute; left: 14px; bottom: 14px; font: 600 12px/1 var(--body); background: rgba(13,15,19,.8); color: var(--white); padding: 7px 10px; border-radius: 999px; }
.type-photo .chip:empty { display: none; }
.type-body { padding: 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.type-body h3 { font-weight: 700; font-size: 28px; }
.type-body p { font-size: 15px; line-height: 1.55; color: var(--muted-light); }
.type-body a { margin-top: auto; padding-top: 8px; font-size: 15px; font-weight: 600; color: var(--blue); text-decoration: none; }
.type-body a:hover { text-decoration: underline; }

/* Gallery */
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filters button { font: 500 15px/1 var(--body); min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 1.5px solid #4A4E54; background: transparent; color: var(--paper); cursor: pointer; }
.filters button:hover { border-color: var(--paper); }
.filters button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: var(--white); font-weight: 600; }
.filters .count { opacity: .7; margin-left: 6px; font-weight: 500; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.gallery-item { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.gallery-item button { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; border: 1px solid #33363B; border-radius: 10px; overflow: hidden; padding: 0; background: #2A2D31; cursor: zoom-in; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item button:hover img { transform: scale(1.04); }
.gallery-item .tag { position: absolute; left: 12px; top: 12px; font: 600 12px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--white); background: var(--blue); padding: 7px 10px; border-radius: 4px; }
.gallery-item figcaption { font-size: 15px; color: var(--muted-dark-2); }
.gallery-item figcaption:empty { display: none; }
.empty { color: var(--muted-dark); font-size: 17px; }

/* Custom builds */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-top: 2px solid var(--ink); }
.steps li { padding: 28px 28px 28px 0; display: flex; flex-direction: column; gap: 12px; }
.steps .num { font-family: var(--display); font-weight: 800; font-size: 56px; line-height: 1; color: var(--blue); }
.steps h3 { font-weight: 700; font-size: 28px; }
.steps p { font-size: 15px; line-height: 1.6; color: var(--muted-light); }
.options-panel { background: var(--ink); color: var(--paper); border-radius: 14px; padding: clamp(28px, 5vw, 56px); display: flex; flex-direction: column; gap: 36px; }
.options-panel p { color: var(--muted-dark); max-width: 440px; }
.panel-title { font-weight: 800; font-size: 44px; line-height: 1; }
.options { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px 32px; }
.options li { position: relative; padding-left: 38px; display: flex; flex-direction: column; gap: 4px; }
.options li::before { content: ''; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; background: no-repeat center/24px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%238FA8FF' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.options strong { font-size: 17px; }
.options span { font-size: 14px; line-height: 1.5; color: var(--muted-dark-2); }

/* Parts */
.parts-photo { aspect-ratio: 23 / 20; border-radius: 12px; border: 1px solid #33363B; background-size: cover; background-position: center; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tags span { font-size: 14px; padding: 8px 14px; border: 1px solid #4A4E54; border-radius: 999px; }
.stack .btn { align-self: flex-start; }

/* Repair */
.how { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.how li { display: flex; gap: 16px; align-items: flex-start; }
.how div { display: flex; flex-direction: column; gap: 4px; }
.how strong { font-size: 17px; }
.how span:not(.dot-icon) { font-size: 15px; line-height: 1.5; color: var(--muted-dark-2); }
.dot-icon { flex: none; width: 44px; height: 44px; border-radius: 999px; background: var(--blue); color: var(--white); display: grid; place-items: center; }

/* Forms */
.card-form { background: var(--white); color: var(--ink); border-radius: 14px; padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; gap: 22px; flex-grow: 1.4 !important; }
.card-form.bordered { border: 1px solid var(--border-light); }
.form-head { display: flex; flex-direction: column; gap: 6px; }
.form-head h3 { font-weight: 800; font-size: 36px; }
.form-head p { font-size: 15px; color: var(--muted-light); }
.card-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.card-form .opt { font-weight: 400; color: #5A5E64; }
.card-form input:not([type=file]), .card-form select, .card-form textarea { font: 400 16px/1.4 var(--body); color: var(--ink); min-height: 48px; padding: 10px 14px; border: 1.5px solid #C9C7C0; border-radius: 6px; background: var(--white); width: 100%; }
.card-form textarea { resize: vertical; }
.card-form input:focus, .card-form select:focus, .card-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(18,38,194,.18); }
.card-form .btn { align-self: flex-start; font-size: 17px; min-height: 52px; padding: 14px 32px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-msg { font-size: 15px; font-weight: 500; }
.form-msg:empty { display: none; }
.form-msg.error { color: #B3261E; }
.form-msg.ok { color: #146C2E; }
.form-done { display: flex; flex-direction: column; gap: 12px; padding: 24px 0; }
.form-done h3 { font-weight: 800; font-size: 32px; color: var(--blue); }
.drop { position: relative; align-items: center; justify-content: center; text-align: center; gap: 10px !important; min-height: 200px; padding: 28px; border: 2px dashed #9AA3B5; border-radius: 12px; background: #F5F7FB; cursor: pointer; color: var(--blue); transition: background .15s, border-color .15s; }
.drop strong { font-size: 17px; color: var(--ink); }
.drop > span:not(.btn) { font-size: 14px; font-weight: 400; color: var(--muted-light); }
.drop:hover, .drop.over { border-color: var(--blue); background: #EEF1FB; }
.drop:focus-within { outline: 3px solid var(--blue); outline-offset: 3px; }
.thumbs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.thumbs:empty { display: none; }
.thumbs li { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: #EEF1F8; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; border-radius: 999px; border: 0; background: rgba(13,15,19,.8); color: var(--white); display: grid; place-items: center; cursor: pointer; }

/* Contact */
.contact-list { margin: 8px 0 0; display: flex; flex-direction: column; gap: 20px; font-size: 17px; line-height: 1.5; }
.contact-list dt { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #5A5E64; }
.contact-list dd { margin: 2px 0 0; }
.contact-list a { font-weight: 600; }
.map { width: 100%; height: 260px; border: 0; border-radius: 10px; background: #E3E1DA; }

/* Footer */
.site-footer { border-top: 1px solid var(--line-dark); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-top: 48px; padding-bottom: 48px; }
.footer-logo { background: var(--white); border-radius: 8px; padding: 10px 14px; align-self: flex-start; }
.footer-logo img { height: 64px; width: auto; }
.social { display: flex; gap: 12px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #4A4E54; border-radius: 999px; }
.social a:hover { border-color: var(--paper); }
.full { width: 100%; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(5,6,8,.94); display: flex; align-items: center; justify-content: center; padding: 64px 72px; }
.lightbox[hidden] { display: none; }
.lb-figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lb-figure img { max-width: 100%; max-height: calc(100vh - 160px); object-fit: contain; border-radius: 6px; }
.lb-figure figcaption { color: var(--muted-dark); font-size: 15px; text-align: center; }
.lb-close, .lb-nav { position: absolute; border: 0; background: rgba(255,255,255,.1); color: var(--white); width: 48px; height: 48px; border-radius: 999px; display: grid; place-items: center; cursor: pointer; }
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.2); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lightbox { padding: 64px 8px; } .lb-nav { top: auto; bottom: 12px; transform: none; } }
