/* ============================================================
   DUCKIT — persistent shell: header, mobile nav, WhatsApp dock,
   footer, lightbox. Shared by all five pages.
   ============================================================ */

/* ============================================================ header */

.hdr {
  position: sticky;
  top: 0;
  z-index: 80;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}

.hdr__in {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad-x);
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 48px);
}

.hdr__logo { flex: none; display: block; }
.hdr__logo img {
  width: 156px;
  height: 40px;
  object-fit: contain;
}

.hdr__nav { margin-left: auto; }
.hdr__list { display: flex; align-items: center; gap: clamp(4px, 1.6vw, 8px); }

.hdr__link {
  position: relative;
  display: block;
  padding: 10px 14px;
  font-family: var(--display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--mute);
  transition: color 0.2s var(--ease);
}
.hdr__link:hover { color: var(--white); }

/* current page: torch bar under the label + full-white type */
.hdr__link[aria-current='page'] { color: var(--white); }
.hdr__link[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  background: var(--torch);
}

.hdr__cta { flex: none; margin-left: 8px; padding: 12px 20px; }

/* --- Services dropdown (desktop) --- */
.hdr__item { position: relative; }
.hdr__item--menu > .hdr__link { display: inline-flex; align-items: center; gap: 5px; }

.hdr__chev {
  width: 13px; height: 13px; margin-right: -3px;
  transition: transform 0.28s var(--ease);
}
.hdr__item--menu:hover .hdr__chev,
.hdr__item--menu:focus-within .hdr__chev { transform: rotate(180deg); }

.hdr__menu {
  position: absolute;
  top: calc(100% - 8px);
  left: 6px;
  min-width: 268px;
  display: flex;
  flex-direction: column;
  padding: 8px;
  background: var(--ink-3);
  border: 1px solid var(--line-strong);
  border-top: 2px solid var(--torch);
  box-shadow: 0 26px 60px -14px rgba(0, 0, 0, 0.75);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
  z-index: 5;
}
.hdr__item--menu:hover .hdr__menu,
.hdr__item--menu:focus-within .hdr__menu {
  opacity: 1; visibility: visible; transform: none;
}

.hdr__mlink {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  font-family: var(--display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  color: var(--mute);
  white-space: nowrap;
  transition: color 0.16s var(--ease), background 0.16s var(--ease);
}
.hdr__mlink:hover { color: var(--white); background: rgba(255, 255, 255, 0.055); }
.hdr__mico { width: 17px; height: 17px; flex: none; color: var(--torch); }

/* the Car Model menu adds the chassis each series covers under its name */
.hdr__mtxt { display: flex; flex-direction: column; gap: 3px; }
.hdr__msub {
  font-family: var(--mono);
  font-size: 0.625rem;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: none;
  color: var(--mute-dim);
}
.hdr__mlink:hover .hdr__msub { color: var(--mute); }

/* --- burger --- */
.burger {
  display: none;
  margin-left: auto;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--white);
}
.burger svg { width: 24px; height: 24px; }
.burger .x { display: none; }
.burger[aria-expanded='true'] .menu { display: none; }
.burger[aria-expanded='true'] .x { display: block; }

/* ============================================================ mobile drawer */

.drawer {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 79;
  display: flex;
  flex-direction: column;
  padding: 28px var(--pad-x) 40px;
  background: var(--ink);
  overflow-y: auto;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
}
.drawer.open { opacity: 1; transform: none; visibility: visible; }

.drawer__link {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  font-size: clamp(1.65rem, 8vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--mute);
}
.drawer__link[aria-current='page'] { color: var(--white); }
.drawer__link[aria-current='page'] .drawer__no { color: var(--torch); }
.drawer__no { font-family: var(--mono); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.1em; color: var(--mute-dim); }

/* Services sub-links in the drawer */
.drawer__link--parent { border-bottom: 0; padding-bottom: 8px; }
.drawer__sublist {
  display: grid;
  padding: 0 0 18px 30px;
  border-bottom: 1px solid var(--line);
}
.drawer__sub {
  position: relative;
  padding: 9px 0;
  font-family: var(--display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--mute-dim);
  transition: color 0.16s var(--ease);
}
.drawer__sub::before {
  content: '';
  position: absolute;
  left: -18px; top: 50%;
  width: 7px; height: 1px;
  background: var(--line-strong);
}
.drawer__sub:hover, .drawer__sub:focus-visible { color: var(--torch); }

.drawer__foot { margin-top: auto; padding-top: 32px; }
.drawer__foot .btn { width: 100%; justify-content: center; }

@media (max-width: 1024px) {
  .hdr__nav, .hdr__cta { display: none; }
  .burger { display: grid; }
}
@media (min-width: 1025px) {
  .drawer { display: none; }
}

/* ============================================================ breadcrumb
   Overlaid on the hero (absolute) so it never changes the header+hero=100vh
   math. The part detail pages have no hero to overlay — there it becomes a
   normal row, or it lands on top of the photo. */

main { position: relative; }

.crumbs {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 6;
  padding-top: clamp(10px, 1.5vw, 16px);
  padding-bottom: 22px;
  background: linear-gradient(180deg, rgba(10, 10, 11, 0.62) 0%, rgba(10, 10, 11, 0.24) 52%, transparent);
  pointer-events: none;
}
.crumbs--flow {
  position: static;
  padding-top: clamp(14px, 2vw, 22px);
  padding-bottom: 0;
  background: none;
}
.crumbs__list {
  display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px;
  font-family: var(--mono); font-size: var(--t-xs);
  letter-spacing: 0.1em; text-transform: uppercase;
}
.crumbs__i { display: flex; align-items: center; gap: 8px; color: var(--mute); }
.crumbs__i a { color: var(--mute); pointer-events: auto; transition: color 0.2s var(--ease); }
.crumbs__i a:hover { color: var(--white); }
.crumbs__i[aria-current='page'] { color: var(--torch); }
.crumbs__i:not(:first-child)::before { content: '/'; color: var(--mute-dim); }

/* ============================================================ WhatsApp dock (4 contacts) */

.wa {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  /* The panel is hidden with visibility, not display, so this container keeps
     its full 300x397 box even when closed. Fixed + pointer-events:auto meant
     that empty rectangle swallowed every touch over it — on a phone that is a
     third of the screen you cannot scroll. Only the button and the open panel
     should take input. */
  pointer-events: none;
}
.wa__btn, .wa__panel { pointer-events: auto; }
.wa__panel:not(.open) { pointer-events: none; }
/* the catalog's phone filter sheet owns the screen while it is open, and the
   dock would sit on top of its Show-results button */
body.sheet-open .wa { display: none; }

.wa__btn {
  position: relative;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25D366;
  color: #062E13;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  transition: transform 0.22s var(--ease);
}
.wa__btn:hover { transform: scale(1.06); }
.wa__btn svg { width: 30px; height: 30px; }

/* pulse ring — killed under reduced-motion by the global rule */
.wa__btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  z-index: -1;
  animation: wa-pulse 2.6s var(--ease-in) infinite;
}
@keyframes wa-pulse {
  0%   { transform: scale(1);    opacity: 0.55; }
  70%  { transform: scale(1.75); opacity: 0; }
  100% { transform: scale(1.75); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .wa__btn::before { animation: none; opacity: 0; }
}

.wa__panel {
  width: min(300px, calc(100vw - 32px));
  padding: 8px;
  background: var(--ink-3);
  border: 1px solid var(--line-strong);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  transform-origin: bottom right;
  transform: scale(0.94) translateY(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}
.wa__panel.open { opacity: 1; transform: none; visibility: visible; }

.wa__head {
  padding: 12px 14px 10px;
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}

.wa__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  transition: background 0.16s var(--ease);
}
.wa__row:hover { background: rgba(37, 211, 102, 0.12); }
.wa__row svg { width: 19px; height: 19px; color: #25D366; flex: none; }
.wa__name { font-family: var(--display); font-weight: 700; font-size: 0.9375rem; letter-spacing: 0.01em; }
.wa__num  { display: block; font-family: var(--mono); font-size: var(--t-xs); color: var(--mute); }

/* ============================================================ footer */

.ftr {
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  padding-block: clamp(56px, 7vw, 88px) 0;
}

.ftr__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.ftr__logo img { width: 176px; height: 45px; object-fit: contain; }
.ftr__blurb { margin-top: 18px; color: var(--mute); font-size: var(--t-sm); max-width: 34ch; }

.ftr__h {
  font-family: var(--mono);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mute-dim);
  margin-bottom: 18px;
}

.ftr__li { padding: 6px 0; }
.ftr__li a { color: var(--mute); font-size: var(--t-sm); transition: color 0.18s var(--ease); }
.ftr__li a:hover { color: var(--torch); }

.ftr__contact { display: flex; flex-direction: column; gap: 11px; }
.ftr__contact a, .ftr__contact p { color: var(--mute); font-size: var(--t-sm); }
.ftr__contact a:hover { color: var(--white); }

/* icon + text rows: icon in a fixed gutter so the text lines up */
.ftr__addr, .ftr__mail { display: flex; align-items: flex-start; gap: 11px; }
.ftr__mail { align-items: center; }
.ftr__addr svg, .ftr__mail svg { width: 16px; height: 16px; flex: none; color: var(--torch); margin-top: 2px; }
.ftr__mail svg { margin-top: 0; }

.ftr__person { display: flex; align-items: center; gap: 11px; margin-top: 2px; }
.ftr__person svg { width: 16px; height: 16px; flex: none; color: #25D366; }
.ftr__person b { color: var(--white); font-weight: 600; }
.ftr__person span { font-family: var(--mono); font-size: var(--t-xs); margin-left: auto; }

.ftr__social { display: flex; gap: 8px; margin-top: 22px; }
.ftr__social a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  color: var(--mute);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.ftr__social a:hover { color: var(--white); border-color: var(--torch); background: var(--torch-dim); }
.ftr__social svg { width: 18px; height: 18px; }

.ftr__base {
  margin-top: clamp(44px, 5vw, 68px);
  padding-block: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.ftr__base p { font-size: var(--t-xs); color: var(--mute-dim); }
.ftr__base a { color: var(--mute); text-decoration: underline; text-underline-offset: 3px; }
.ftr__base a:hover { color: var(--torch); }

@media (max-width: 1024px) {
  .ftr__grid { grid-template-columns: 1fr 1fr; }
  .ftr__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  /* single column — center everything for the phone footer */
  .ftr__grid { grid-template-columns: 1fr; text-align: center; }
  .ftr__brand { display: flex; flex-direction: column; align-items: center; }
  .ftr__blurb { margin-inline: auto; }
  .ftr__social { justify-content: center; }
  .ftr__contact { align-items: center; }
  .ftr__addr, .ftr__mail, .ftr__person { justify-content: center; align-items: center; }
  .ftr__addr svg, .ftr__mail svg { margin-top: 0; }
  .ftr__person span { margin-left: 0; }
  .ftr__base { flex-direction: column; align-items: center; text-align: center; }
}

/* ============================================================ lightbox */

.lb {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: rgba(6, 6, 7, 0.96);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.26s var(--ease), visibility 0.26s;
}
.lb.open { opacity: 1; visibility: visible; }

.lb__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(16px, 3vw, 28px);
}
.lb__count { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: 0.14em; color: var(--mute); }

.lb__x {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--white);
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
}
.lb__x:hover { background: var(--torch); border-color: var(--torch); }
.lb__x svg { width: 20px; height: 20px; }

.lb__stage {
  position: relative;
  display: grid;
  place-items: center;
  padding-inline: clamp(16px, 8vw, 96px);
  min-height: 0;
}
.lb__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

.lb__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line-strong);
  color: var(--white);
  transition: background 0.18s var(--ease);
}
.lb__nav:hover { background: var(--torch); }
.lb__nav svg { width: 22px; height: 22px; }
.lb__nav--prev { left: clamp(8px, 2vw, 26px); }
.lb__nav--next { right: clamp(8px, 2vw, 26px); }

.lb__cap {
  padding: 16px clamp(16px, 3vw, 28px) 26px;
  text-align: center;
  font-size: var(--t-sm);
  color: var(--mute);
  min-height: 3.2em;
}
.lb__cap b { display: block; color: var(--white); font-family: var(--display); font-weight: 700; font-size: var(--t-md); letter-spacing: -0.01em; }

body.lb-lock { overflow: hidden; }
