/* Platinum Auto Detailing */
:root {
  --ceiling: #0E0F12;
  --panel: #16181D;
  --line: #2A2D34;
  --floor: #9299A3;
  --platinum: #D5D9E0;
  --tube: #FFFFFF;
  --display: "Unbounded", "Manrope", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px;
  --gutter: 32px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ceiling);
  color: var(--platinum);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--tube); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, p, ul, dl, dd, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2 { font-family: var(--display); color: var(--tube); font-weight: 300; letter-spacing: -.01em; }
h2 { font-size: clamp(26px, 2.6vw, 38px); line-height: 1.15; }
h3 { font-family: var(--body); font-size: 22px; font-weight: 700; color: var(--tube); line-height: 1.25; }
:focus-visible { outline: 2px solid var(--tube); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 100; background: var(--tube); color: var(--ceiling); padding: 12px 16px; font-weight: 700; border-radius: 4px; }
.skip:focus { top: 12px; }

/* Buttons: pill, like the shop's light tubes */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 26px; border-radius: 999px; border: 1px solid transparent;
  font: 700 17px/1.2 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, box-shadow .2s, border-color .2s;
}
.btn svg { width: 19px; height: 19px; fill: currentColor; flex: none; }
.btn--light { background: var(--tube); color: var(--ceiling); box-shadow: 0 0 0 rgba(255, 255, 255, 0); }
.btn--light:hover { box-shadow: 0 0 26px rgba(255, 255, 255, .38); }
.btn--line { background: rgba(14, 15, 18, .55); color: var(--tube); border-color: rgba(213, 217, 224, .5); }
.btn--line:hover { border-color: var(--tube); background: rgba(255, 255, 255, .08); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(14, 15, 18, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header__in { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; margin-right: auto; }
.brand__name { font-family: var(--display); font-weight: 400; font-size: 21px; color: var(--tube); letter-spacing: .01em; }
.brand__sub { font-size: 13.5px; font-weight: 600; color: var(--floor); margin-top: 5px; letter-spacing: .02em; }
.nav { display: flex; gap: 26px; }
.nav a { color: var(--platinum); text-decoration: none; font-size: 16.5px; font-weight: 500; padding: 8px 0; }
.nav a:hover { color: var(--tube); text-decoration: underline; }
.header-call { min-height: 46px; padding: 8px 20px; font-size: 16.5px; }
.menu-btn { display: none; width: 48px; height: 48px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--tube); border-radius: 2px; transition: transform .25s var(--ease), top .25s var(--ease); }
.menu-btn span:first-child { top: 19px; }
.menu-btn span:last-child { top: 28px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 23px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 23px; transform: rotate(-45deg); }
.mobile-menu { border-top: 1px solid var(--line); padding: 8px var(--gutter) 16px; background: var(--ceiling); }
.mobile-menu a { display: block; padding: 14px 0; color: var(--tube); text-decoration: none; font-size: 19px; font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-menu a:last-child { border-bottom: 0; }

/* Hero */
.hero { position: relative; min-height: min(820px, calc(100vh - var(--header-h))); display: flex; align-items: center; overflow: hidden; }
.hero__photo { position: absolute; top: 0; bottom: 0; right: 0; width: 47%; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.hero__photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--ceiling) 0%, rgba(14, 15, 18, .5) 14%, rgba(14, 15, 18, 0) 36%),
    linear-gradient(0deg, var(--ceiling) 0%, rgba(14, 15, 18, 0) 14%);
}
.hero__in { position: relative; padding-top: 72px; padding-bottom: 72px; }
.hero__text { max-width: 560px; }
.hero h1 { font-size: clamp(31px, 3.5vw, 54px); line-height: 1.12; }
.hero__lead { margin-top: 26px; font-size: 20px; line-height: 1.55; max-width: 33em; color: var(--platinum); }
.hero__cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }

/* Light tube + facts */
.tube { height: 3px; border-radius: 3px; background: var(--tube); box-shadow: 0 0 14px rgba(255, 255, 255, .75), 0 0 46px rgba(255, 255, 255, .35); animation: tube-on 1.1s .25s both; }
@keyframes tube-on {
  0% { opacity: 0; } 12% { opacity: .9; } 20% { opacity: .15; } 34% { opacity: 1; } 42% { opacity: .4; } 60%, 100% { opacity: 1; }
}
.facts { display: grid; grid-template-columns: repeat(3, 1fr); }
.facts > div { padding: 30px 32px 34px 0; }
.facts > div + div { padding-left: 32px; border-left: 1px solid var(--line); }
.facts dt { font-weight: 700; font-size: 20px; color: var(--tube); }
.facts dd { color: var(--floor); font-size: 17px; margin-top: 2px; }

/* Sections */
.section { padding: 96px 0; }
.section--panel { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { margin-bottom: 44px; }
.section__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 48px; align-items: end; margin-bottom: 44px; }
.section__head h2 { margin-bottom: 0; }
.section__head p { color: var(--platinum); max-width: 34em; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.service img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }
.service h3 { margin-top: 24px; }
.service p { margin-top: 10px; }
.service ul { margin-top: 18px; border-top: 1px solid var(--line); }
.service li { padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--tube); font-weight: 500; font-size: 17px; }

/* Jobs table: the signature */
.jobs { width: 100%; border-collapse: collapse; font-size: 16.5px; line-height: 1.35; }
.jobs thead th { text-align: left; font-weight: 600; font-size: 15px; color: var(--floor); padding: 0 14px 14px; border-bottom: 1px solid var(--floor); white-space: nowrap; }
.jobs thead th:first-child { padding-left: 0; }
.jobs tbody th, .jobs td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: middle; text-align: left; }
.jobs tbody th { padding-left: 0; font-weight: 700; color: var(--tube); font-size: 17px; width: 30%; }
.jobs tbody th img { display: inline-block; vertical-align: middle; width: 104px; height: 78px; object-fit: cover; border-radius: 3px; margin-right: 16px; }
.jobs tbody th span { display: inline-block; vertical-align: middle; max-width: calc(100% - 126px); }
.jobs td { color: var(--tube); font-weight: 500; }
.jobs td.is-empty::before { content: ""; display: block; width: 14px; height: 2px; background: #3B3F48; border-radius: 2px; }
.lvl { display: flex; gap: 4px; margin-bottom: 7px; }
.lvl i { width: 22px; height: 4px; border-radius: 4px; background: #3B3F48; }
.lvl--1 i:nth-child(-n+1), .lvl--2 i:nth-child(-n+2), .lvl--3 i { background: var(--tube); box-shadow: 0 0 8px rgba(255, 255, 255, .55); }
.jobs__note { margin-top: 26px; color: var(--floor); font-size: 17px; max-width: 46em; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery li { aspect-ratio: 3 / 4; }
.gallery__big { grid-column: span 2; grid-row: span 2; aspect-ratio: auto !important; }
.gallery button { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: var(--panel); cursor: zoom-in; border-radius: 4px; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery button:hover img { transform: scale(1.03); }
.gallery__more { margin-top: 24px; color: var(--floor); }

/* Reviews */
.stars { color: var(--tube); letter-spacing: 2px; margin-right: 6px; }
.reviews { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; align-items: start; }
.review { padding: 26px 0 28px; border-top: 1px solid var(--line); }
.review blockquote p { color: var(--tube); font-size: 18px; line-height: 1.6; }
.review blockquote p + p { margin-top: 12px; }
.review figcaption { margin-top: 14px; color: var(--floor); font-size: 16px; }
.review figcaption strong { color: var(--platinum); font-weight: 700; margin-right: 8px; }

/* Shop and area */
.trailer img { width: 100%; aspect-ratio: 1536 / 560; object-fit: cover; border-radius: 4px; }
.area { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 56px; margin-top: 48px; }
.area h2 { margin-bottom: 0; }
.area__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.area__cols h3 { padding-top: 18px; border-top: 1px solid var(--floor); }
.area__cols p { margin-top: 10px; }

/* Quote */
.quote { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: start; }
.quote__info h2 { margin-bottom: 20px; }
.contact { margin-top: 34px; border-top: 1px solid var(--line); }
.contact > div { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact dt { color: var(--floor); font-size: 16px; padding-top: 2px; }
.contact dd { color: var(--tube); font-weight: 500; overflow-wrap: anywhere; }
.form { background: var(--ceiling); border: 1px solid var(--line); border-radius: 6px; padding: 36px; display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: 16.5px; color: var(--tube); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 16px; font: 500 18px/1.4 var(--body);
  color: var(--tube); background: var(--panel); border: 1px solid #4A4F59; border-radius: 4px;
}
.field textarea { resize: vertical; }
.field ::placeholder { color: #7D848F; opacity: 1; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--tube); outline-offset: 1px; border-color: var(--tube); }
.form .btn { width: 100%; }
.form__error { color: #FFB4A8; font-weight: 600; font-size: 16.5px; }
.form__hint { color: var(--floor); font-size: 15.5px; text-align: center; margin-top: -6px; }

/* Footer */
.site-footer { padding: 56px 0 64px; font-size: 16.5px; color: var(--floor); }
.site-footer__in { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.site-footer p + p { margin-top: 14px; }
.site-footer a { color: var(--platinum); }
.brand--foot { flex-direction: row; align-items: baseline; gap: 10px; margin: 0 0 14px; }
.brand--foot .brand__sub { margin: 0; }

/* Sticky bar (phones) */
.sticky-book { display: none; }

/* Lightbox */
.lightbox { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8, 9, 11, .97); color: var(--tube); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(0, 0, 0, .7); }
.lightbox img { max-width: min(92vw, 1100px); max-height: 82vh; width: auto; height: auto; object-fit: contain; border-radius: 3px; }
.lightbox__cap { position: absolute; left: 16px; right: 16px; bottom: 20px; text-align: center; font-size: 16.5px; color: var(--platinum); }
.lightbox button { position: absolute; width: 52px; height: 52px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(213, 217, 224, .4); border-radius: 50%; background: rgba(14, 15, 18, .7); color: var(--tube); cursor: pointer; }
.lightbox button:hover { border-color: var(--tube); }
.lightbox svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__nav--prev { left: 16px; top: 50%; margin-top: -26px; }
.lightbox__nav--next { right: 16px; top: 50%; margin-top: -26px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav { gap: 20px; }
  .jobs { font-size: 15.5px; }
  .jobs tbody th img { width: 84px; height: 63px; margin-right: 12px; }
  .jobs tbody th span { max-width: calc(100% - 102px); }
  .jobs tbody th, .jobs td, .jobs thead th { padding-left: 10px; padding-right: 10px; }
}

@media (max-width: 980px) {
  :root { --gutter: 24px; --header-h: 64px; }
  .nav, .header-call { display: none; }
  .menu-btn { display: block; margin-right: -11px; }
  .section { padding: 72px 0; }
  .section__head { grid-template-columns: 1fr; }
  .services { gap: 24px; }
  .quote { grid-template-columns: 1fr; gap: 44px; }
  .area { grid-template-columns: 1fr; }

  /* jobs table becomes one card per vehicle */
  .jobs, .jobs tbody, .jobs tr, .jobs td, .jobs tbody th { display: block; width: auto; }
  .jobs thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .jobs tbody { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .jobs tr { background: var(--ceiling); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
  .jobs tbody th { padding: 0; border: 0; font-size: 19px; }
  .jobs tbody th img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; margin: 0; border-radius: 0; }
  .jobs tbody th span { display: block; max-width: none; padding: 16px 18px 12px; }
  .jobs td { display: grid; grid-template-columns: 104px 1fr; gap: 12px; align-items: center; padding: 10px 18px; border-bottom: 0; border-top: 1px solid var(--line); font-size: 17px; }
  .jobs td::before { content: attr(data-label); color: var(--floor); font-weight: 500; font-size: 16px; }
  .jobs td.is-empty { display: none; }
  .lvl { display: none; }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; }
  body { font-size: 17.5px; }
  .hero { display: block; min-height: 0; }
  .hero__photo { position: relative; width: 100%; height: 40vh; min-height: 250px; max-height: 380px; }
  .hero__photo img { object-position: 50% 78%; }
  .hero__photo::after { background: linear-gradient(0deg, var(--ceiling) 0%, rgba(14, 15, 18, 0) 34%); }
  .hero__in { padding-top: 6px; padding-bottom: 44px; }
  .hero h1 { font-size: clamp(27px, 7.4vw, 34px); }
  .hero__lead { margin-top: 16px; font-size: 18px; }
  .hero__cta { margin-top: 24px; }
  .hero__cta .btn { flex: 1 1 100%; }

  .facts { grid-template-columns: 1fr; }
  .facts > div { padding: 16px 0; }
  .facts > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .facts dt { font-size: 18px; }
  .facts dd { font-size: 16.5px; }

  .section { padding: 60px 0; }
  .section h2 { margin-bottom: 30px; }
  .section__head { margin-bottom: 30px; }
  .section__head h2 { margin-bottom: 0; }
  .services { grid-template-columns: 1fr; gap: 48px; }
  .service img { aspect-ratio: 4 / 3; }
  .jobs tbody { grid-template-columns: 1fr; gap: 14px; }
  .jobs tr { display: grid; grid-template-columns: 1fr 1fr; }
  .jobs tbody th { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; padding: 12px; font-size: 18px; }
  .jobs tbody th img { width: 112px; height: 84px; aspect-ratio: auto; border-radius: 3px; flex: none; }
  .jobs tbody th span { padding: 0; }
  .jobs tbody th { border-bottom: 1px solid var(--line); }
  .jobs td { display: block; padding: 10px 12px 2px; font-size: 16.5px; border-top: 0; }
  .jobs tr { padding-bottom: 12px; }
  .jobs td::before { display: block; font-size: 14.5px; margin-bottom: 1px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .gallery__big { aspect-ratio: 4 / 5 !important; grid-row: auto; }
  .reviews { grid-template-columns: 1fr; }
  .trailer img { aspect-ratio: 16 / 9; }
  .area { margin-top: 32px; }
  .area__cols { grid-template-columns: 1fr; gap: 28px; }
  .form { padding: 22px 18px; }
  .contact > div { grid-template-columns: 76px 1fr; }

  .sticky-book {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(14, 15, 18, .96); border-top: 1px solid var(--line);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    transform: translateY(110%); transition: transform .3s var(--ease);
  }
  .sticky-book.is-visible { transform: none; }
  .sticky-book .btn { flex: 1; min-height: 50px; padding: 10px 14px; }
  .sticky-book .btn--line { flex: 0 0 34%; }
  .site-footer { padding-bottom: 120px; }
  .lightbox__nav--prev, .lightbox__nav--next { top: auto; bottom: 64px; margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
