/* ==========================================================================
   TNT TOWING & SALVAGE DISPOSAL
   Design system + components + page styles
   Aesthetic: heavy-duty / modern-industrial. Charcoal + steel + single red.
   Motif: diagonal hazard stripes, oversized stenciled numerals.
   Mobile-first. Placeholder palette until client supplies final hex codes.
   ========================================================================== */

/* -------------------------------------------------------------------------- */
/* 1. Tokens                                                                  */
/* -------------------------------------------------------------------------- */
:root {
  /* Brand colour — the ONE strong accent (calls to action only) */
  --red:        #e01e26;
  --red-600:    #c4161d;
  --red-700:    #a01117;
  --red-glow:   rgba(224, 30, 38, .35);

  /* Neutrals — charcoal / steel / slate / off-white */
  --ink:        #101317;   /* deepest charcoal, page-dark surface           */
  --charcoal:   #171b21;   /* dark surface                                  */
  --steel:      #232931;   /* raised panel on dark                          */
  --steel-2:    #2e353f;   /* hover panel on dark                           */
  --slate:      #5b6470;   /* muted text (AA on light surfaces)             */
  --slate-2:    #98a1ad;   /* lighter muted text                            */
  --fog:        #c9ced5;   /* light text on dark                            */
  --paper:      #f4f5f6;   /* off-white page background                     */
  --paper-2:    #e9ebee;   /* alt light panel                               */
  --line:       #d8dce0;   /* light hairline                                */
  --line-dark:  rgba(255, 255, 255, .09); /* hairline on dark              */
  --white:      #ffffff;

  /* Category badge colours (auction listings) */
  --cat-government: #2f6fed;
  --cat-salvage:    #b35e0d;
  --cat-parts:      #5a6470;
  --cat-private:    #1e7a40;

  /* Type */
  --font-display: "Saira", "Arial Narrow", system-ui, sans-serif;
  --font-body:    "Hanken Grotesk", system-ui, -apple-system, sans-serif;

  /* Fluid type scale */
  --fs-eyebrow: .78rem;
  --fs-body:    1.0625rem;
  --fs-lead:    clamp(1.15rem, 1rem + .7vw, 1.4rem);
  --fs-h3:      clamp(1.3rem, 1.1rem + 1vw, 1.65rem);
  --fs-h2:      clamp(2rem, 1.4rem + 2.6vw, 3.4rem);
  --fs-h1:      clamp(2.6rem, 1.5rem + 4.6vw, 5.4rem);
  --fs-mega:    clamp(3.4rem, 1.4rem + 8vw, 8rem);

  /* Spacing & layout */
  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(3.75rem, 7vw, 7rem);
  --radius: 4px;
  --radius-lg: 10px;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(16, 19, 23, .08), 0 2px 6px rgba(16, 19, 23, .06);
  --shadow-md: 0 10px 30px rgba(16, 19, 23, .12);
  --shadow-lg: 0 30px 60px rgba(16, 19, 23, .22);
  --shadow-red: 0 10px 24px var(--red-glow);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 94px;
}

/* -------------------------------------------------------------------------- */
/* 2. Reset / base                                                            */
/* -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, svg, video { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
input, textarea, select, button { font: inherit; }
ul[role="list"] { list-style: none; padding: 0; }

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

/* -------------------------------------------------------------------------- */
/* 3. Typography                                                              */
/* -------------------------------------------------------------------------- */
.display, h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: var(--ink);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: 0; }
h4 { font-size: 1.05rem; letter-spacing: .02em; }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-eyebrow);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: .7rem;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  background: var(--red);
  display: inline-block;
}
.eyebrow.is-centered { justify-content: center; }

p { text-wrap: pretty; }
.lead { font-size: var(--fs-lead); color: var(--slate); line-height: 1.55; }
strong { font-weight: 700; }

/* Oversized stenciled numerals (stats, unit numbers, countdown) */
.numeral {
  font-family: var(--font-display);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: .85;
  letter-spacing: -.02em;
}

/* -------------------------------------------------------------------------- */
/* 4. Layout primitives                                                       */
/* -------------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section-head { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head.is-centered { margin-inline: auto; text-align: center; }
.section-head h2 { margin-top: .6rem; }
.section-head .lead { margin-top: 1rem; }

.grid { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
@media (min-width: 720px)  { .cols-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 880px)  { .cols-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px)  { .cols-4 { grid-template-columns: repeat(4, 1fr); } }

.surface-dark  { background: var(--ink);     color: var(--fog); }
.surface-dark h1, .surface-dark h2, .surface-dark h3, .surface-dark h4 { color: var(--white); }
.surface-paper { background: var(--paper); }
.surface-alt   { background: var(--paper-2); }

/* -------------------------------------------------------------------------- */
/* 5. Hazard stripe motif                                                     */
/* -------------------------------------------------------------------------- */
.hazard {
  height: 12px;
  width: 100%;
  background-image: repeating-linear-gradient(
    -45deg,
    var(--red) 0 18px,
    var(--ink) 18px 36px
  );
}
.hazard--thin { height: 6px; }
.hazard--muted {
  background-image: repeating-linear-gradient(
    -45deg, var(--steel) 0 18px, var(--ink) 18px 36px
  );
}

/* Grain / texture overlay for dark atmospheric sections */
.grain { position: relative; }
.grain::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  opacity: .04;
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* -------------------------------------------------------------------------- */
/* 6. Buttons                                                                 */
/* -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--charcoal);
  --btn-fg: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  padding: .95rem 1.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .98rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease);
  isolation: isolate;
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--red-600);
  transform: translateY(101%);
  transition: transform .35s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:hover::before { transform: translateY(0); }
.btn:active { transform: translateY(0); }

/* The red call-to-action — used ONLY for phone / call buttons */
.btn--call {
  --btn-bg: var(--red);
  --btn-fg: var(--white);
  box-shadow: var(--shadow-red);
  font-size: 1.05rem;
}
.btn--call::before { background: var(--red-700); }
.btn--call:hover { box-shadow: 0 14px 30px var(--red-glow); }
.btn--lg { padding: 1.15rem 2.1rem; font-size: 1.15rem; }
.btn--block { display: flex; width: 100%; }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--white);
  border: 1.5px solid rgba(255,255,255,.4);
}
.btn--ghost::before { background: var(--white); }
.btn--ghost:hover { color: var(--ink); }
.btn--dark-ghost {
  --btn-bg: transparent; --btn-fg: var(--ink);
  border: 1.5px solid var(--line);
}
.btn--dark-ghost::before { background: var(--ink); }
.btn--dark-ghost:hover { color: var(--white); }

.pulse-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--white); position: relative;
}
.pulse-dot::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.7);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse { 0%{transform:scale(.6);opacity:1} 100%{transform:scale(1.6);opacity:0} }

/* -------------------------------------------------------------------------- */
/* 7. Header / navigation                                                     */
/* -------------------------------------------------------------------------- */
/* Reserve the injected header's height so the JS swap-in doesn't shift the page. */
#site-header { min-height: var(--header-h); }
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(16, 19, 23, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-condensed { box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.nav {
  display: flex; align-items: center; gap: 1rem;
  height: var(--header-h);
}
.nav__brand { display: flex; align-items: center; gap: .7rem; margin-right: auto; margin-left: -.5rem; flex-shrink: 0; }
.nav__brand img, .nav__brand svg { height: 40px; width: auto; }
/* 3D badge logo — animated entrance, cursor-tracked tilt (set by site.js) + hover glow */
.brand-logo {
  --rx: 0deg; --ry: 0deg; --s: 1;
  width: auto; display: block; flex: 0 0 auto;
  transform: perspective(560px) rotateX(var(--rx)) rotateY(var(--ry)) scale(var(--s));
  transform-style: preserve-3d;
  filter: drop-shadow(0 5px 12px rgba(0,0,0,.45));
  transition: transform .3s var(--ease), filter .3s var(--ease);
  animation: badgeIn .75s var(--ease) backwards;
  will-change: transform;
}
.nav__brand .brand-logo { height: 76px; }
.footer-brand .brand-logo { height: 78px; margin-bottom: 1.1rem; }
.brand-logo:hover { --s: 1.07; filter: drop-shadow(0 10px 22px rgba(224, 30, 38, .55)); }
@keyframes badgeIn {
  from { opacity: 0; transform: perspective(560px) rotateY(-80deg) scale(.6); }
  60%  { opacity: 1; }
  to   { opacity: 1; transform: perspective(560px) rotateY(0deg) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .brand-logo { animation: none; transform: none; }
}
.nav__links { display: none; }
.nav__links a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--fog);
  padding: .4rem .1rem;
  position: relative;
  white-space: nowrap;
  transition: color .2s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  width: 100%; height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--white); }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); }

.nav__call {
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--red); color: var(--white);
  font-family: var(--font-display); font-weight: 700; letter-spacing: .03em;
  padding: .6rem 1rem; border-radius: var(--radius);
  font-size: .95rem; text-transform: uppercase;
  box-shadow: var(--shadow-red);
  transition: transform .2s var(--ease), background-color .2s var(--ease);
}
.nav__call:hover { background: var(--red-600); transform: translateY(-1px); }
.nav__call .num { white-space: nowrap; }
.nav__call svg { width: 1.05em; height: 1.05em; }

.nav__toggle {
  display: inline-flex; flex-direction: column; gap: 5px;
  align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; /* WCAG/HIG touch target */
  padding: .55rem; border-radius: var(--radius);
  border: 1px solid var(--line-dark);
}
.nav__toggle span { width: 22px; height: 2px; background: var(--white); transition: transform .3s var(--ease), opacity .2s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav__drawer {
  position: fixed; inset: var(--header-h) 0 0 auto;
  width: min(360px, 86vw);
  background: var(--charcoal);
  border-left: 1px solid var(--line-dark);
  transform: translateX(100%);
  visibility: hidden; /* keep the closed drawer out of the tab order + a11y tree */
  transition: transform .35s var(--ease), visibility 0s .35s;
  padding: 1.5rem var(--gutter) 2rem;
  display: flex; flex-direction: column; gap: .25rem;
  z-index: 99; overflow-y: auto;
}
.nav__drawer.is-open { transform: translateX(0); visibility: visible; transition-delay: 0s; box-shadow: var(--shadow-lg); }
.nav__drawer a {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: .04em; color: var(--fog);
  padding: .9rem 0; border-bottom: 1px solid var(--line-dark);
  font-size: 1.1rem; display: flex; justify-content: space-between; align-items: center;
}
.nav__drawer a[aria-current="page"] { color: var(--red); }
.nav__drawer a svg { width: 18px; height: 18px; flex: none; opacity: .65; }
.nav__drawer a[aria-current="page"] svg { opacity: 1; }
.nav__drawer .btn--call { margin-top: 1.5rem; }
.nav__drawer .btn--call svg { width: 1.1em; height: 1.1em; opacity: 1; }
.nav__scrim {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease);
  z-index: 98;
}
.nav__scrim.is-open { opacity: 1; visibility: visible; }

@media (min-width: 1280px) {
  .nav__links { display: flex; align-items: center; gap: clamp(.55rem, 1.1vw, 1.35rem); }
  .nav__toggle { display: none; }
  .nav__drawer { display: none; }
}
@media (min-width: 1180px) {
  .nav__links a { font-size: .95rem; }
}
/* keep the call button always visible, even on the smallest screens */
@media (max-width: 380px) {
  .nav__call .num { display: none; }
  .nav__call::after { content: "Call"; }
}

/* Account link (desktop nav only; mobile uses the drawer entry) */
.nav__account { display: none; }
@media (min-width: 1280px) {
  .nav__account {
    display: inline-flex; align-items: center; gap: .4rem;
    font-family: var(--font-display); font-weight: 600; font-size: .82rem;
    text-transform: uppercase; letter-spacing: .04em; color: var(--white);
    padding: .5rem .9rem; margin-left: .5rem; white-space: nowrap;
    border: 1px solid rgba(255,255,255,.28); border-radius: 9px;
    transition: background .2s var(--ease), border-color .2s var(--ease);
  }
  .nav__account:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.55); }
}
.nav__drawer .drawer-account { color: var(--red); font-weight: 700; }

/* -------------------------------------------------------------------------- */
/* 8. Footer                                                                  */
/* -------------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--fog); }
.site-footer .container { padding-block: clamp(3rem, 6vw, 4.5rem); }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand img, .footer-brand svg { height: 44px; margin-bottom: 1.1rem; }
.footer-brand p { color: var(--slate-2); max-width: 34ch; }
.footer-col h4 { color: var(--white); letter-spacing: .12em; margin-bottom: 1.1rem; font-size: .85rem; }
.footer-col ul { display: grid; gap: .6rem; list-style: none; padding: 0; }
.footer-col a { color: var(--slate-2); transition: color .2s; }
.footer-col a:hover { color: var(--white); }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; color: var(--slate-2); margin-bottom: .6rem; }
.footer-contact svg { width: 18px; height: 18px; color: var(--red); margin-top: .2rem; flex: none; }
.footer-contact a { color: var(--fog); }
.footer-contact a:hover { color: var(--white); }
.ama-badge {
  display: inline-flex; align-items: center; gap: .6rem;
  border: 1px solid var(--line-dark); border-radius: var(--radius);
  padding: .55rem .9rem; margin-top: 1.2rem; color: var(--fog);
  font-family: var(--font-display); font-weight: 600; letter-spacing: .05em;
  font-size: .8rem; text-transform: uppercase;
}
.ama-badge b { color: var(--red); }
.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding-block: 1.4rem;
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  color: var(--slate-2); font-size: .85rem;
}
.footer-social { display: flex; gap: .8rem; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-dark); color: var(--slate-2);
  transition: all .2s var(--ease);
}
.footer-social a:hover { background: var(--red); color: var(--white); border-color: var(--red); }
.footer-social svg { width: 18px; height: 18px; }

/* -------------------------------------------------------------------------- */
/* 9. Hero (parallax video)                                                   */
/* -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(92vh, 880px);
  min-height: min(92svh, 880px); /* iOS: size against the small viewport so the CTA clears browser chrome */
  display: flex; align-items: flex-end;
  color: var(--white);
  overflow: hidden;
  background: var(--ink);
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media video, .hero__media img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(16,19,23,.55) 0%, rgba(16,19,23,.3) 35%, rgba(16,19,23,.92) 100%),
    linear-gradient(90deg, rgba(16,19,23,.7) 0%, rgba(16,19,23,0) 60%);
}
.hero__inner { position: relative; z-index: 1; width: 100%; padding-bottom: clamp(3rem, 6vw, 5.5rem); }
.hero__eyebrow { color: var(--white); }
.hero__eyebrow::before { background: var(--red); }
.hero h1 { color: var(--white); margin: 1rem 0 1.1rem; max-width: 17ch; text-shadow: 0 4px 30px rgba(0,0,0,.4); }
.hero__sub { font-size: var(--fs-lead); color: var(--fog); max-width: 40ch; margin-bottom: 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.hero__note {
  margin-top: 1.1rem; font-family: var(--font-display); font-weight: 600;
  letter-spacing: .02em; font-size: .95rem; color: #fff;
  display: inline-flex; align-items: center; gap: .5rem;
}
.hero__note::before { content: "✓"; color: var(--red); font-weight: 800; font-size: 1.05em; }
.hero__scroll {
  position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.6); font-size: .72rem; letter-spacing: .25em;
  text-transform: uppercase; font-family: var(--font-display);
  display: flex; flex-direction: column; align-items: center; gap: .4rem; z-index: 1;
}
.hero__scroll::after {
  content: ""; width: 1px; height: 34px;
  background: linear-gradient(var(--red), transparent);
  animation: scrolldown 1.8s ease-in-out infinite;
}
@keyframes scrolldown { 0%,100%{opacity:.3;transform:scaleY(.6)} 50%{opacity:1;transform:scaleY(1)} }
.hero .hazard { position: absolute; bottom: 0; left: 0; z-index: 1; }

/* Small screens: keep the call button inside the first viewport and out of the
   scroll cue's way — the cue is hidden (it overlapped the CTA) and the type is
   tightened so the headline can't push the buttons below the fold. */
@media (max-width: 640px) {
  .hero { min-height: min(88svh, 760px); }
  .hero h1 { font-size: clamp(1.55rem, 6.4vw, 2.15rem); }
  .hero__sub { font-size: 1rem; margin-bottom: 1.4rem; }
  .hero__inner { padding-bottom: 2.25rem; }
}
/* Hide the scroll cue across all common phone widths — it overlapped (and stole
   taps from) the 'Our Services' button up to ~700px. */
@media (max-width: 700px) {
  .hero__scroll { display: none; }
}

/* Page banner hero (interior pages) */
.banner {
  position: relative; color: var(--white);
  padding-block: clamp(4.5rem, 10vw, 8rem) clamp(3rem, 6vw, 5rem);
  background: var(--ink); overflow: hidden;
}
.banner__media { position: absolute; inset: 0; z-index: 0; opacity: .55; }
.banner__media img { width: 100%; height: 100%; object-fit: cover; }
.banner::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(16,19,23,.6), rgba(16,19,23,.96));
}
.banner .container { position: relative; z-index: 1; }
.banner h1 { color: var(--white); margin-top: .8rem; max-width: 20ch; }
.banner .lead { color: var(--fog); margin-top: 1rem; max-width: 54ch; }
.banner .hazard { position: absolute; bottom: 0; left: 0; z-index: 1; }
.breadcrumb { font-size: .8rem; color: var(--slate-2); letter-spacing: .04em; font-family: var(--font-display); text-transform: uppercase; }
.breadcrumb a:hover { color: var(--white); }

/* -------------------------------------------------------------------------- */
/* 10. Trust bar                                                              */
/* -------------------------------------------------------------------------- */
.trustbar { background: var(--charcoal); color: var(--white); border-bottom: 1px solid var(--line-dark); }
.trustbar__grid { display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 880px) { .trustbar__grid { grid-template-columns: repeat(4, 1fr); } }
.stat {
  padding: clamp(1.6rem, 4vw, 2.6rem) clamp(1rem, 3vw, 2rem);
  text-align: center; position: relative;
  border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark);
}
@media (min-width: 880px) { .stat { border-bottom: 0; } .stat:last-child { border-right: 0; } }
.stat__icon { color: var(--red); width: 30px; height: 30px; margin: 0 auto .8rem; }
.stat__num { font-size: clamp(2.4rem, 5vw, 3.4rem); color: var(--white); }
.stat__num .unit { color: var(--red); }
.stat__label { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; color: var(--slate-2); margin-top: .35rem; }

/* -------------------------------------------------------------------------- */
/* 11. Cards                                                                  */
/* -------------------------------------------------------------------------- */
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }

/* Service card */
.service-card { position: relative; padding: clamp(1.6rem, 3vw, 2.2rem); background: var(--white); }
.service-card__index {
  font-family: var(--font-display); font-weight: 800; font-size: 1rem;
  color: var(--red); letter-spacing: .1em;
}
.service-card__icon {
  width: 56px; height: 56px; color: var(--ink);
  margin: 1.2rem 0 1.1rem;
  transition: transform .3s var(--ease), color .3s var(--ease);
}
.service-card:hover .service-card__icon { color: var(--red); transform: scale(1.06) rotate(-3deg); }
.service-card h3 { margin-bottom: .5rem; }
.service-card p { color: var(--slate); font-size: .98rem; margin-bottom: 1.1rem; }
.service-card__link {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; font-size: .85rem; color: var(--ink);
  display: inline-flex; align-items: center; gap: .4rem;
}
.service-card__link svg { width: 1em; height: 1em; transition: transform .25s var(--ease); }
.service-card:hover .service-card__link { color: var(--red); }
.service-card:hover .service-card__link svg { transform: translateX(5px); }
.service-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--red); transform: scaleY(0); transform-origin: top;
  transition: transform .3s var(--ease);
}
.service-card:hover::before { transform: scaleY(1); }

/* Feature block (why-choose) */
.feature { padding: clamp(1.5rem, 3vw, 2rem); border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); }
.feature__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.6rem,5vw,3.4rem); color: var(--red); line-height: .9; }
.feature h4 { margin: .8rem 0 .4rem; font-size: 1.15rem; }
.feature p { color: var(--slate); font-size: .96rem; }

/* -------------------------------------------------------------------------- */
/* 12. Split / alternating media sections                                     */
/* -------------------------------------------------------------------------- */
.split { display: grid; gap: clamp(1.8rem, 4vw, 3.5rem); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--media-right .split__media { order: 2; } }
.split__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.split__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.split__media .tag {
  position: absolute; left: 1rem; bottom: 1rem;
  background: var(--red); color: var(--white);
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; font-size: .8rem; padding: .45rem .9rem; border-radius: var(--radius);
}
.split__body .eyebrow { margin-bottom: .8rem; }
.split__body h2 { margin-bottom: 1rem; }
.split__body p { color: var(--slate); margin-bottom: 1rem; }
.split__body .btn { margin-top: .6rem; }
.check-list { list-style: none; padding: 0; display: grid; gap: .7rem; margin: 1.2rem 0; }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; color: var(--charcoal); }
.check-list svg { width: 20px; height: 20px; color: var(--red); flex: none; margin-top: .25rem; }

/* -------------------------------------------------------------------------- */
/* 13. CTA banner                                                             */
/* -------------------------------------------------------------------------- */
.cta-banner { position: relative; background: var(--red); color: var(--white); overflow: hidden; text-align: center; }
.cta-banner::before {
  content: ""; position: absolute; inset: 0; opacity: .12;
  background-image: repeating-linear-gradient(-45deg, #000 0 22px, transparent 22px 44px);
}
.cta-banner .container { position: relative; padding-block: clamp(3rem, 6vw, 4.5rem); }
.cta-banner h2 { color: var(--white); max-width: 24ch; margin: 0 auto 1.6rem; }
.cta-banner .btn { --btn-bg: var(--white); --btn-fg: var(--ink); }
.cta-banner .btn::before { background: var(--ink); }
.cta-banner .btn:hover { color: var(--white); }

/* small inline call strip */
.call-strip {
  display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; justify-content: center;
  background: var(--charcoal); color: var(--white); border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2rem);
}
.call-strip__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem,4vw,2.4rem); color: var(--white); }
.call-strip__num a:hover { color: var(--red); }

/* -------------------------------------------------------------------------- */
/* 14. Countdown                                                              */
/* -------------------------------------------------------------------------- */
.countdown { display: flex; gap: clamp(.6rem, 2vw, 1.2rem); flex-wrap: wrap; }
.countdown.is-centered { justify-content: center; }
.cd-unit {
  background: var(--steel); border: 1px solid var(--line-dark); border-radius: var(--radius);
  min-width: clamp(68px, 18vw, 110px); padding: clamp(.7rem, 2vw, 1.1rem) .5rem; text-align: center;
  position: relative; overflow: hidden;
}
.cd-unit::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--red); }
.cd-unit__num { font-family: var(--font-display); font-weight: 800; font-variant-numeric: tabular-nums; font-size: clamp(2rem, 6vw, 3.4rem); color: var(--white); line-height: 1; }
.cd-unit__label { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .12em; font-size: .68rem; color: var(--fog); margin-top: .35rem; }
.cd-sep { align-self: center; font-family: var(--font-display); font-weight: 800; font-size: 2rem; color: var(--red); }
@media (max-width: 520px) { .cd-sep { display: none; } }

.live-flag {
  display: inline-flex; align-items: center; gap: .55rem;
  background: rgba(224,30,38,.12); border: 1px solid var(--red);
  color: var(--red-700); padding: .4rem .9rem; border-radius: 100px;
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem;
}
.live-flag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: blink 1.2s steps(1) infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* -------------------------------------------------------------------------- */
/* 15. Auction listings                                                       */
/* -------------------------------------------------------------------------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.filter-chip {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
  font-size: .85rem; padding: .55rem 1.1rem; border-radius: 100px;
  border: 1.5px solid var(--line); color: var(--slate); background: var(--white);
  transition: all .2s var(--ease);
}
.filter-chip:hover { border-color: var(--ink); color: var(--ink); }
.filter-chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); }

.listing-grid { display: grid; gap: clamp(1.2rem, 2.5vw, 1.8rem); grid-template-columns: 1fr; }
@media (min-width: 640px) { .listing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .listing-grid { grid-template-columns: repeat(3, 1fr); } }

.listing { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.listing:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.listing__media { position: relative; aspect-ratio: 16/11; overflow: hidden; background: var(--paper-2); }
.listing__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.listing:hover .listing__media img { transform: scale(1.05); }
.cat-badge {
  position: absolute; top: .8rem; left: .8rem;
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  font-size: .72rem; color: var(--white); padding: .3rem .7rem; border-radius: var(--radius);
}
.cat-badge[data-cat="government"] { background: var(--cat-government); }
.cat-badge[data-cat="salvage"]    { background: var(--cat-salvage); }
.cat-badge[data-cat="parts"]      { background: var(--cat-parts); }
.cat-badge[data-cat="private"]    { background: var(--cat-private); }
.listing__timer {
  position: absolute; bottom: .8rem; right: .8rem;
  background: rgba(16,19,23,.85); color: var(--white); backdrop-filter: blur(4px);
  font-family: var(--font-display); font-weight: 600; font-variant-numeric: tabular-nums;
  font-size: .78rem; padding: .3rem .6rem; border-radius: var(--radius);
  display: flex; align-items: center; gap: .35rem;
}
.listing__timer svg { width: 13px; height: 13px; color: var(--red); }
.listing__timer.is-ending { color: #ffb4b7; }
.listing__body { padding: 1.2rem; display: flex; flex-direction: column; flex: 1; }
.listing__title { font-size: 1.15rem; margin-bottom: .15rem; }
.listing__sub { color: var(--slate); font-size: .85rem; margin-bottom: 1rem; }
.listing__bid { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.listing__bid .label { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--slate); font-family: var(--font-display); }
.listing__bid .amount { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--ink); line-height: 1; }
.listing__body .btn { margin-top: 1rem; }

/* -------------------------------------------------------------------------- */
/* 16. Listing detail                                                         */
/* -------------------------------------------------------------------------- */
.detail-grid { display: grid; gap: clamp(1.8rem, 4vw, 3rem); }
@media (min-width: 960px) { .detail-grid { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.gallery__main { border-radius: var(--radius-lg); overflow: hidden; background: var(--paper-2); aspect-ratio: 4/3; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: .6rem; margin-top: .6rem; }
.gallery__thumbs button { border-radius: var(--radius); overflow: hidden; border: 2px solid transparent; aspect-ratio: 1; background: var(--paper-2); }
.gallery__thumbs button.is-active { border-color: var(--red); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.bid-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2rem); box-shadow: var(--shadow-md); position: sticky; top: calc(var(--header-h) + 1rem); }
.bid-panel .current { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin: 1rem 0; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.bid-panel .current .amount { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem,6vw,3rem); color: var(--ink); line-height: .9; }
.bid-input-row { display: flex; gap: .6rem; margin: 1rem 0 .6rem; }
.bid-input-row .field { flex: 1; }
.spec-table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.spec-table th, .spec-table td { text-align: left; padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.spec-table th { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; font-size: .8rem; color: var(--slate); width: 42%; }
.bid-history { max-height: 240px; overflow-y: auto; }
.bid-history tr td { font-variant-numeric: tabular-nums; }
.terms { background: var(--paper-2); border-radius: var(--radius); padding: 1.2rem; font-size: .88rem; color: var(--slate); }
.terms ul { padding-left: 1.1rem; display: grid; gap: .4rem; }

/* -------------------------------------------------------------------------- */
/* 17. Equipment tabs + lightbox                                              */
/* -------------------------------------------------------------------------- */
.tabs { display: flex; gap: .4rem; border-bottom: 1px solid var(--line); margin-bottom: 2rem;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
  font-size: .92rem; padding: .85rem 1.2rem; color: var(--slate); white-space: nowrap;
  border-bottom: 3px solid transparent; margin-bottom: -1px; transition: color .2s, border-color .2s;
  display: inline-flex; align-items: center; gap: .5rem; flex: none;
}
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--ink); border-color: var(--red); }
.tab__count {
  font-size: .68rem; min-width: 1.4em; height: 1.4em; padding: 0 .35em; border-radius: 999px;
  background: var(--line); color: var(--slate); display: inline-grid; place-items: center; transition: all .2s;
}
.tab.is-active .tab__count { background: var(--red); color: #fff; }
.tabpanel { display: none; }
.tabpanel.is-active { display: block; }

.fleet-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .fleet-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1040px) { .fleet-grid { grid-template-columns: repeat(4, 1fr); } }
.fleet-item { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3;
  background: var(--paper-2); cursor: zoom-in; border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(16,19,23,.04);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease); }
/* staggered reveal — delay driven by --d set per item */
.fleet-grid .reveal { transition-delay: calc(var(--d, 0) * .06s); }
.fleet-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--red); }
.fleet-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.fleet-item:hover img, .fleet-item:focus-visible img { transform: scale(1.09); }
.fleet-item:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.fleet-item__no {
  position: absolute; top: .6rem; left: .6rem; z-index: 2;
  background: var(--red); color: var(--white);
  font-family: var(--font-display); font-weight: 800; font-size: .72rem; letter-spacing: .08em;
  padding: .28rem .6rem; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.fleet-item__count {
  position: absolute; top: .6rem; right: .6rem; z-index: 2;
  background: rgba(16,19,23,.7); color: #fff; backdrop-filter: blur(3px);
  font-family: var(--font-display); font-weight: 600; font-size: .64rem; letter-spacing: .05em;
  padding: .24rem .5rem; border-radius: 999px;
  display: inline-flex; align-items: center; gap: .25rem; opacity: 0; transition: opacity .3s; }
.fleet-item:hover .fleet-item__count { opacity: 1; }
.fleet-item__cap { position: absolute; inset: auto 0 0 0; padding: 2.4rem .8rem .8rem; color: var(--white);
  font-family: var(--font-display); font-weight: 600; font-size: .88rem; line-height: 1.25;
  background: linear-gradient(transparent, rgba(16,19,23,.72) 38%, rgba(16,19,23,.95));
  transform: translateY(12px); opacity: 0; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.fleet-item:hover .fleet-item__cap, .fleet-item:focus-visible .fleet-item__cap { opacity: 1; transform: none; }
/* Touch devices have no hover — keep the caption + photo count visible there */
@media (hover: none) {
  .fleet-item__cap { opacity: 1; transform: none; }
  .fleet-item__count { opacity: 1; }
}

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8,9,11,.94); display: none; place-items: center; padding: var(--gutter); }
.lightbox.is-open { display: grid; animation: fade .25s; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 80vh; border-radius: var(--radius); object-fit: contain;
  box-shadow: 0 30px 80px rgba(0,0,0,.6); animation: lbpop .3s var(--ease); }
@keyframes lbpop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.lightbox__cap { color: var(--white); text-align: center; margin-top: 1.1rem; font-family: var(--font-display); letter-spacing: .05em; }
.lb-counter { display: block; margin-top: .35rem; color: var(--slate-2); font-size: .8rem; letter-spacing: .12em; }
.lightbox__close, .lightbox__nav { position: absolute; color: var(--white); width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.1); transition: background .2s; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--red); }
.lightbox__close { top: 1.2rem; right: 1.2rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav.prev { left: 1.2rem; }
.lightbox__nav.next { right: 1.2rem; }
.lightbox__nav svg, .lightbox__close svg { width: 24px; height: 24px; }

/* -------------------------------------------------------------------------- */
/* 18. Timeline (About)                                                       */
/* -------------------------------------------------------------------------- */
.timeline { position: relative; display: grid; gap: 2.5rem; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
@media (min-width: 760px) { .timeline::before { left: 50%; transform: translateX(-50%); } }
.tl-item { position: relative; padding-left: 3rem; }
@media (min-width: 760px) {
  .tl-item { width: 50%; padding-left: 0; }
  .tl-item:nth-child(odd) { padding-right: 3rem; text-align: right; }
  .tl-item:nth-child(even) { margin-left: 50%; padding-left: 3rem; }
}
.tl-item::before {
  content: ""; position: absolute; left: 4px; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--red); border: 3px solid var(--paper); box-shadow: 0 0 0 2px var(--red);
}
@media (min-width: 760px) {
  .tl-item:nth-child(odd)::before { left: auto; right: -8px; }
  .tl-item:nth-child(even)::before { left: -8px; }
}
.tl-year { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem,4vw,2.6rem); color: var(--ink); line-height: 1; }
.tl-item h3 { font-size: 1.15rem; margin: .4rem 0 .5rem; color: var(--red); letter-spacing: .02em; }
.tl-item p { color: var(--slate); font-size: .98rem; }

/* -------------------------------------------------------------------------- */
/* 19. Steps (What If)                                                        */
/* -------------------------------------------------------------------------- */
.steps { display: grid; gap: 1.2rem; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
.step {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem); position: relative; display: flex; gap: 1.3rem; align-items: flex-start;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step__no {
  flex: none; width: 58px; height: 58px; border-radius: var(--radius);
  background: var(--ink); color: var(--white);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.6rem;
}
.step--alert { border-color: var(--red); box-shadow: 0 0 0 1px var(--red) inset; }
.step--alert .step__no { background: var(--red); }
.step h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.step p { color: var(--slate); font-size: .98rem; }
.step .btn { margin-top: 1rem; }
.step--full { grid-column: 1 / -1; }
/* Phones: the alert step stacks so its call button gets the full card width
   instead of the ~200px left beside the number badge. */
@media (max-width: 640px) {
  .step--alert { display: block; }
  .step--alert .step__no { margin-bottom: 1rem; }
  .step--alert .btn {
    width: 100%; justify-content: center; text-align: center;
    flex-wrap: wrap; row-gap: 0; padding-inline: 1rem;
  }
}
@media (max-width: 400px) {
  .btn--lg { font-size: 1rem; }
}

/* -------------------------------------------------------------------------- */
/* 20. Forms                                                                  */
/* -------------------------------------------------------------------------- */
.field { display: grid; gap: .45rem; margin-bottom: 1.1rem; }
.field label { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; color: var(--charcoal); }
.field label .req { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; border: 1.5px solid var(--line);
  border-radius: var(--radius); background: var(--white); color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-glow);
}
.field textarea { min-height: 140px; resize: vertical; }
.field .hint { font-size: .8rem; color: var(--slate); }
.field--error input, .field--error select, .field--error textarea { border-color: var(--red); }
.field__err { color: var(--red); font-size: .82rem; display: none; }
.field--error .field__err { display: block; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow-sm); }
.form-note { font-size: .82rem; color: var(--slate); margin-top: 1rem; }
.form-success {
  display: none; align-items: flex-start; gap: .8rem;
  background: rgba(47,170,90,.1); border: 1px solid var(--cat-private); color: #1c6b39;
  padding: 1rem 1.2rem; border-radius: var(--radius); margin-bottom: 1.2rem;
}
.form-success.is-visible { display: flex; }
.form-success svg { width: 22px; height: 22px; color: var(--cat-private); flex: none; }

/* contact details list */
.contact-detail { display: grid; gap: 1.3rem; }
.contact-detail li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-detail .ic { width: 44px; height: 44px; flex: none; border-radius: var(--radius); background: var(--ink); color: var(--red); display: grid; place-items: center; }
.contact-detail .ic svg { width: 20px; height: 20px; }
.contact-detail .k { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; color: var(--slate); }
.contact-detail .v { font-size: 1.1rem; font-weight: 600; color: var(--ink); }
.contact-detail .v a:hover { color: var(--red); }
.contact-detail .v.is-static { color: var(--slate); font-weight: 500; } /* fax — never a link */

/* -------------------------------------------------------------------------- */
/* 21. Map                                                                    */
/* -------------------------------------------------------------------------- */
.map-embed { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); min-height: 320px; height: 100%; }
.map-embed iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; filter: grayscale(.2) contrast(1.05); }

/* -------------------------------------------------------------------------- */
/* 22. Dashboard / admin tables                                               */
/* -------------------------------------------------------------------------- */
.data-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.data-table th { background: var(--charcoal); color: var(--white); font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; font-size: .78rem; text-align: left; padding: .85rem 1rem; }
.data-table td { padding: .85rem 1rem; border-bottom: 1px solid var(--line); font-size: .92rem; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: var(--paper); }
.pill { display: inline-flex; align-items: center; gap: .35rem; font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: .72rem; padding: .25rem .6rem; border-radius: 100px; }
.pill--paid { background: rgba(47,170,90,.14); color: #1c6b39; }
.pill--unpaid { background: rgba(224,30,38,.12); color: var(--red-700); }
.pill--live { background: rgba(224,30,38,.12); color: var(--red-700); }
.pill--won { background: rgba(47,111,237,.12); color: #1c50b8; }
.pill--upcoming { background: var(--paper-2); color: var(--slate); }

.kpi-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 880px) { .kpi-grid { grid-template-columns: repeat(4, 1fr); } }
.kpi { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.4rem; }
.kpi .v { font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; color: var(--ink); line-height: 1; }
.kpi .k { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; color: var(--slate); margin-top: .5rem; }
.kpi.is-alert .v { color: var(--red); }
/* KPI tiles on a dark/steel surface (e.g. equipment page) need light text */
.kpi--dark .v { color: var(--white); }
.kpi--dark .k { color: var(--fog); }

.admin-layout { display: grid; gap: 2rem; }
.admin-layout > * { min-width: 0; } /* let inner overflow-x wrappers scroll instead of widening the grid track */
@media (min-width: 960px) { .admin-layout { grid-template-columns: 230px 1fr; align-items: start; } }
.admin-nav { display: flex; flex-direction: column; gap: .2rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: .6rem; position: sticky; top: calc(var(--header-h) + 1rem); }
.admin-nav a { padding: .7rem .9rem; border-radius: var(--radius); font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; font-size: .82rem; color: var(--slate); display: flex; align-items: center; gap: .6rem; }
.admin-nav a:hover { background: var(--paper); color: var(--ink); }
.admin-nav a.is-active { background: var(--ink); color: var(--white); }
.admin-nav svg { width: 17px; height: 17px; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.3rem,3vw,1.8rem); }
.panel + .panel { margin-top: 1.5rem; }
.panel__head { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; margin-bottom: 1.2rem; }

/* tabbed auth state */
/* The hidden attribute must always win over component display rules
   (e.g. .notice { display:flex }) so toggled notices actually hide. */
[hidden] { display: none !important; }

/* Admin: photo upload previews + bid status pills */
.cf-previews { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .7rem; }
.cf-previews .thumb { position: relative; width: 92px; height: 70px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line, #d9dde2); background: #0d0f12; }
.cf-previews .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cf-previews .thumb.is-uploading { display: flex; align-items: center; justify-content: center; font-size: .7rem; color: #9aa3ad; }
.cf-previews .thumb button { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border: none; border-radius: 50%; background: rgba(16,19,23,.8); color: #fff; font-size: 13px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.pill--active { background: rgba(30,122,64,.14); color: #1e7a40; }
.pill--rejected { background: rgba(224,30,38,.14); color: var(--red, #e01e26); }
.notice { background: rgba(47,111,237,.08); border: 1px solid rgba(47,111,237,.3); color: #1c50b8; padding: .9rem 1.1rem; border-radius: var(--radius); font-size: .9rem; display: flex; gap: .6rem; align-items: flex-start; }
.notice svg { width: 18px; height: 18px; flex: none; margin-top: .15rem; }
.auth-wrap { max-width: 460px; margin-inline: auto; }
.auth-switch { text-align: center; margin-top: 1.2rem; color: var(--slate); font-size: .92rem; }
.auth-switch a { color: var(--red); font-weight: 600; }

/* Google sign-in + divider + bidder profile card */
.google-auth { margin-top: 1.25rem; }
.auth-divider { display: flex; align-items: center; gap: .75rem; color: var(--slate); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; margin: .25rem 0 1rem; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.google-btn { display: flex; justify-content: center; min-height: 44px; }
.profile-card { display: flex; align-items: center; gap: 1rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1rem 1.25rem; box-shadow: var(--shadow-sm); }
.profile-card__avatar { width: 54px; height: 54px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; flex: none; background-position: center; background-size: cover; }
.profile-card__name { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; }
.profile-card__meta { list-style: none; margin: .35rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .15rem 1.5rem; }
.profile-card__meta li { font-size: .85rem; }
.profile-card__meta span { color: var(--slate); margin-right: .4rem; }

/* -------------------------------------------------------------------------- */
/* 23. Misc / utilities                                                       */
/* -------------------------------------------------------------------------- */
.tag-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; font-size: .72rem; padding: .3rem .7rem; border-radius: 100px; background: var(--paper-2); color: var(--slate); }
.divider-stripe { height: 12px; background-image: repeating-linear-gradient(-45deg, var(--ink) 0 18px, var(--red) 18px 36px); opacity: .9; }
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; } .mb-0 { margin-bottom: 0; }
.muted { color: var(--slate); }
.nowrap { white-space: nowrap; } /* keeps the phone number on one line inside buttons */
.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-to-content link — visually hidden until focused (keyboard bypass-block). */
.skip-link {
  position: absolute; top: -48px; left: .5rem; z-index: 1000;
  background: var(--red); color: #fff; padding: .6rem 1rem; border-radius: var(--radius);
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: .5rem; }
/* GO-LIVE: one switch to strip every preview-only note (auctions state toggle,
   contact/register demo notes, admin banner) → [data-demo] { display: none !important; } */
.no-scroll { overflow: hidden; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* Print (What If guide) */
@media print {
  .site-header, .site-footer, .nav__drawer, .nav__scrim, .no-print, .hazard, .banner__media, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  .step { break-inside: avoid; border: 1px solid #999; box-shadow: none; }
  .banner { padding: 1rem 0; color: #000; }
  .banner::before { display: none; }
  .banner h1, .banner .lead { color: #000; }
  /* Browsers drop background colours when printing — keep the step numbers and
     the call buttons (the only place the phone number prints) legible. */
  .step__no { background: none !important; color: #000 !important; border: 2px solid #000; }
  .btn, .btn--call { background: none !important; color: #000 !important; border: 2px solid #000; box-shadow: none !important; }
}
