/* ==========================================================================
   ALTIMORE TRADING CO. LTD  ·  24X7 RECOVERY & REPAIRS
   Target Advertising, Gibraltar

   Palette is black / white / one red, and nothing else.
   The red is #C8232A, sampled off the Roca Graphics master artwork
   (174,801 px of flat fill in the two-panel original, corroborated by the
   master banner). It is NOT eyeballed.

   ACCESSIBILITY CONSTRAINT, measured not assumed:
     #C8232A on #000  = 3.73:1  -> large display type only, never body copy
     #FFF    on #C8232A = 5.63:1 -> passes AA, so red fills take white text
     #FFF    on #000  = 21.0:1
   Every use of red below obeys that.
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  --red: #c8232a;
  --red-dark: #a91d23;
  --red-glow: rgba(200, 35, 42, .38);

  --black: #000;
  --ink: #0b0b0c;
  --ink-2: #141416;
  --ink-3: #1d1d20;
  --line: rgba(255, 255, 255, .13);
  --line-strong: rgba(255, 255, 255, .26);

  --white: #fff;
  --grey: #c6c6cb;   /* 12.3:1 on black */
  --grey-dim: #94949c; /* 7.0:1 on black  */

  --display: "Anton", "Arial Narrow", Haettenschweiler, Impact, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(18px, 4.5vw, 44px);
  --bar-h: 68px;      /* mobile tap-to-call bar */

  --r: 4px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* room for the fixed call bar on phones */
@media (max-width: 860px) {
  body { padding-bottom: var(--bar-h); }
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Fixed rather than parked at -9999px, so it never extends the layout box. */
.skip {
  position: fixed; left: 0; top: 0; z-index: 200;
  transform: translateY(-140%);
  background: var(--red); color: #fff; padding: 12px 20px;
  font-family: var(--display); letter-spacing: .04em;
  text-decoration: none;
}
.skip:focus { transform: translateY(0); }

/* ---------- display type ---------- */
.d {
  font-family: var(--display);
  font-weight: 400;
  line-height: .92;
  letter-spacing: .005em;
  text-transform: uppercase;
  margin: 0;
}
h1.d { font-size: clamp(2.5rem, 7.4vw, 5.4rem); }
h2.d { font-size: clamp(1.95rem, 4.6vw, 3.2rem); }
h3.d { font-size: clamp(1.3rem, 2.4vw, 1.72rem); }

/* red is safe here: all of these are large display sizes */
.d .hl { color: var(--red); }

/* Kickers carry real meaning ("Two numbers", "Where we are"), so they must meet
   AA for body text. Measured: #C8232A on #000 is only 3.73:1 and on #141416 it is
   3.30:1 - both fail. So the red becomes a graphic bar and the words go light
   (#C6C6CB = 12.3:1). Same red, same look, legible. */
.kicker {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .82rem;
  color: var(--grey);
  margin: 0 0 14px;
  display: flex; align-items: center; gap: 10px;
}
.kicker::before {
  content: ""; width: 26px; height: 3px; background: var(--red); flex: none;
}
.center .kicker { justify-content: center; }

.lede {
  font-size: clamp(1.06rem, 1.9vw, 1.28rem);
  line-height: 1.55;
  color: var(--grey);
  max-width: 62ch;
}

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

.muted { color: var(--grey-dim); }
.small { font-size: .875rem; line-height: 1.55; }

/* ---------- header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 90;
  background: rgba(0, 0, 0, .93);
  backdrop-filter: saturate(140%) blur(9px);
  border-bottom: 1px solid var(--line);
}
.hdr__in {
  display: flex; align-items: center; gap: 18px;
  min-height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 50px; height: auto; }
.brand__txt { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--display); text-transform: uppercase;
  font-size: 1.16rem; letter-spacing: .02em;
}
.brand__sub {
  font-size: .62rem; letter-spacing: .19em; text-transform: uppercase;
  color: var(--grey-dim); margin-top: 4px;
}

.nav { display: flex; align-items: center; gap: 3px; }
.nav a {
  text-decoration: none;
  font-family: var(--display); text-transform: uppercase;
  letter-spacing: .07em; font-size: .93rem;
  padding: 9px 13px; border-radius: var(--r);
  color: var(--grey);
  transition: color .15s, background-color .15s;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -3px 0 var(--red); }

.hdr__call {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--red); color: #fff; text-decoration: none;
  font-family: var(--display); text-transform: uppercase;
  letter-spacing: .045em; font-size: 1rem;
  padding: 12px 18px; border-radius: var(--r);
  white-space: nowrap;
  transition: background-color .15s, transform .1s;
}
.hdr__call:hover { background: var(--red-dark); }
.hdr__call:active { transform: translateY(1px); }
.hdr__call svg { width: 17px; height: 17px; flex: none; }

@media (max-width: 1040px) { .nav a { font-size: .86rem; padding: 8px 9px; } }

@media (max-width: 860px) {
  /* Two clean rows instead of a ragged wrap: brand, then a full-width nav strip
     that scrolls sideways on very narrow phones rather than reflowing.
     The header stops being sticky here - the fixed call bar is the element that
     has to persist, and giving the viewport back to content matters more. */
  .hdr { position: static; }
  .hdr__in { flex-wrap: wrap; min-height: 0; padding-top: 11px; gap: 10px; }
  .brand img { width: 42px; }
  .brand__sub { display: none; }
  .hdr__call { display: none; }           /* the fixed bottom bar takes over */

  .nav {
    order: 3; width: 100%; margin: 0;
    gap: 0; flex-wrap: nowrap;
    justify-content: space-between;
    overflow-x: auto;
    scrollbar-width: none;
    border-top: 1px solid var(--line);
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a {
    font-size: .78rem; padding: 11px 6px; letter-spacing: .04em;
    white-space: nowrap; border-radius: 0;
  }
  .nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--red); }
}
@media (max-width: 400px) {
  .brand__name { font-size: 1rem; }
  .nav a { font-size: .72rem; padding: 11px 5px; }
}

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; background: var(--ink); }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to right, rgba(0,0,0,.93) 0%, rgba(0,0,0,.78) 38%, rgba(0,0,0,.30) 72%, rgba(0,0,0,.5) 100%),
    linear-gradient(to top, rgba(0,0,0,.95) 0%, rgba(0,0,0,0) 45%);
}
.hero__in {
  padding-block: clamp(56px, 11vw, 128px);
  min-height: min(76vh, 660px);
  display: flex; flex-direction: column; justify-content: center;
}
.hero--sm .hero__in { min-height: min(46vh, 400px); padding-block: clamp(44px, 8vw, 84px); }

.hero h1 { max-width: 16ch; }
.hero .lede { margin-top: 20px; }

.hero__mark { width: clamp(96px, 15vw, 148px); margin-bottom: 26px; }

.strapline {
  font-family: var(--display); text-transform: uppercase;
  font-size: clamp(.92rem, 1.9vw, 1.18rem);
  letter-spacing: .13em;
  color: #fff;
  margin: 0 0 16px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.strapline::before {
  content: ""; width: 42px; height: 4px; background: var(--red); flex: none;
}

/* ---------- buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.btn {
  display: inline-flex; align-items: center; gap: 11px;
  text-decoration: none; border: 0; cursor: pointer;
  font-family: var(--display); text-transform: uppercase;
  letter-spacing: .05em;
  padding: 17px 26px; border-radius: var(--r);
  transition: background-color .15s, transform .1s, border-color .15s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }

.btn--call {
  background: var(--red); color: #fff;              /* 5.63:1, AA */
  font-size: clamp(1.06rem, 2.3vw, 1.32rem);
  box-shadow: 0 8px 26px var(--red-glow);
}
.btn--call:hover { background: var(--red-dark); }
.btn--call .n { font-size: 1.12em; letter-spacing: .02em; }

.btn--ghost {
  background: transparent; color: #fff;
  border: 2px solid var(--line-strong);
  font-size: 1rem;
}
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }

.btn--solid { background: #fff; color: #000; font-size: 1rem; }
.btn--solid:hover { background: var(--grey); }

/* ---------- the two-number block: bookings vs emergency ---------- */
.numbers {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.num {
  display: block; text-decoration: none;
  border-radius: 6px; padding: 26px 26px 24px;
  border: 1px solid var(--line);
  background: var(--ink-2);
  transition: border-color .15s, background-color .15s, transform .1s;
}
.num:hover { border-color: var(--line-strong); background: var(--ink-3); }
.num:active { transform: translateY(1px); }

.num--999 { background: var(--red); border-color: var(--red); }
.num--999:hover { background: var(--red-dark); border-color: var(--red-dark); }

.num__lbl {
  font-family: var(--display); text-transform: uppercase;
  letter-spacing: .13em; font-size: .8rem;
  display: flex; align-items: center; gap: 9px;
  color: var(--grey);
}
.num--999 .num__lbl { color: rgba(255,255,255,.95); }
.num__lbl svg { width: 15px; height: 15px; }

.num__n {
  font-family: var(--display);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.04;
  margin-top: 10px;
  letter-spacing: .01em;
  color: #fff;
}
.num__note { font-size: .875rem; color: var(--grey-dim); margin-top: 8px; }
.num--999 .num__note { color: rgba(255,255,255,.88); }

/* ---------- sections ---------- */
.sec { padding-block: clamp(52px, 8.5vw, 104px); }
.sec--tight { padding-block: clamp(38px, 6vw, 66px); }
.sec--ink { background: var(--ink); }
.sec--line { border-top: 1px solid var(--line); }

.sec__head { max-width: 66ch; margin-bottom: clamp(28px, 4vw, 46px); }
.sec__head .lede { margin-top: 16px; }

/* ---------- service tiles ---------- */
.tiles {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.tile {
  position: relative; display: flex; flex-direction: column;
  text-decoration: none; overflow: hidden;
  border: 1px solid var(--line); border-radius: 6px;
  background: var(--ink-2);
  min-height: 250px;
  transition: border-color .18s, transform .18s;
}
.tile:hover { border-color: var(--red); transform: translateY(-3px); }
.tile__img { position: absolute; inset: 0; z-index: 0; }
.tile__img img { width: 100%; height: 100%; object-fit: cover; opacity: .5; transition: opacity .25s, transform .5s; }
.tile:hover .tile__img img { opacity: .62; transform: scale(1.04); }
.tile::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(0,0,0,.94) 12%, rgba(0,0,0,.42) 62%, rgba(0,0,0,.25) 100%);
}
.tile__body { position: relative; z-index: 2; margin-top: auto; padding: 22px; }
.tile__t { font-family: var(--display); text-transform: uppercase; font-size: 1.4rem; line-height: 1; }
.tile__d { font-size: .93rem; color: var(--grey); margin-top: 9px; }
.tile__go {
  margin-top: 13px; font-family: var(--display); text-transform: uppercase;
  font-size: .8rem; letter-spacing: .12em; color: #fff;
  display: inline-flex; align-items: center; gap: 8px;
}
.tile__go svg { width: 13px; height: 13px; transition: transform .18s; }
.tile:hover .tile__go svg { transform: translateX(4px); }
.tile__go::before { content: ""; width: 22px; height: 3px; background: var(--red); }


/* ---------- credential band (partner marks live on white, as supplied) ---------- */
.creds { background: #fff; color: #000; padding-block: 30px; }
.creds__in { display: flex; align-items: center; justify-content: center; gap: clamp(24px, 5vw, 64px); flex-wrap: wrap; }
.cred { display: flex; align-items: center; gap: 16px; }
.cred img { flex: none; }
.cred--arag img { width: 62px; }
.cred--varta img { width: 148px; }
.cred__t {
  font-family: var(--display); text-transform: uppercase;
  font-size: 1.02rem; line-height: 1.1; letter-spacing: .02em; color: #000;
}
.cred__d { font-size: .81rem; color: #444; margin-top: 3px; max-width: 26ch; }
.creds__rule { width: 1px; align-self: stretch; background: #ddd; }
@media (max-width: 700px) { .creds__rule { display: none; } }

/* ---------- feature rows ---------- */
.rows { display: grid; gap: clamp(34px, 6vw, 68px); }
.row { display: grid; gap: clamp(22px, 4vw, 48px); align-items: center; }
@media (min-width: 880px) {
  .row { grid-template-columns: 1fr 1fr; }
  .row--flip .row__media { order: 2; }
}
.row__media img { border-radius: 6px; width: 100%; }
.row__body h3 { margin-bottom: 14px; }

/* ---------- list ---------- */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.ticks li { position: relative; padding-left: 30px; color: var(--grey); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 13px; height: 3px; background: var(--red);
}
.ticks strong { color: #fff; font-weight: 600; }

/* ---------- fleet ---------- */
.fleet { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.unit {
  border: 1px solid var(--line); border-radius: 6px; padding: 22px;
  background: var(--ink-2);
}
.unit__type {
  font-family: var(--display); text-transform: uppercase;
  letter-spacing: .13em; font-size: .74rem;
  color: var(--grey);   /* red here measures 3.30:1 on --ink-2 - fails AA at this size */
  display: flex; align-items: center; gap: 9px;
}
.unit__type::before {
  content: ""; width: 18px; height: 3px; background: var(--red); flex: none;
}
.unit__n { font-family: var(--display); text-transform: uppercase; font-size: 1.22rem; margin-top: 7px; line-height: 1.05; }
.unit__d { font-size: .9rem; color: var(--grey); margin-top: 12px; }

/* ---------- steps ---------- */
.steps { counter-reset: s; display: grid; gap: 16px; }
.step {
  counter-increment: s; position: relative;
  padding: 20px 22px 20px 68px;
  border: 1px solid var(--line); border-radius: 6px; background: var(--ink-2);
}
.step::before {
  content: counter(s);
  position: absolute; left: 20px; top: 18px;
  font-family: var(--display); font-size: 1.7rem; line-height: 1;
  color: var(--red);              /* large display size -> permitted */
}
.step h3 { font-size: 1.12rem; margin: 0 0 6px; font-family: var(--display); text-transform: uppercase; letter-spacing: .02em; }
.step p { color: var(--grey); font-size: .95rem; margin: 0; }

/* ---------- callout ---------- */
.callout {
  border-left: 4px solid var(--red);
  background: var(--ink-2);
  padding: 22px 24px;
  border-radius: 0 6px 6px 0;
}
.callout h3 { font-family: var(--display); text-transform: uppercase; font-size: 1.16rem; margin: 0 0 9px; }
.callout p { color: var(--grey); margin: 0; }

/* ---------- anniversary (removable without leaving a hole) ---------- */
.anniv {
  display: flex; align-items: center; gap: clamp(18px, 3.5vw, 40px);
  flex-wrap: wrap;
  border: 1px solid var(--line); border-radius: 6px;
  padding: clamp(24px, 4vw, 40px);
  background: var(--ink-2);
}
.anniv__badge {
  flex: none; width: 128px; height: 128px; border-radius: 50%;
  border: 3px solid var(--red);
  display: grid; place-content: center; text-align: center;
  background: var(--black);
}
.anniv__n { font-family: var(--display); font-size: 3.1rem; line-height: .84; color: #fff; }
.anniv__y {
  font-family: var(--display); text-transform: uppercase;
  font-size: .72rem; letter-spacing: .17em; color: #fff; margin-top: 6px;
}
.anniv__body { flex: 1 1 300px; }

/* ---------- opening hours ---------- */
.hours { list-style: none; margin: 0; padding: 0; }
.hours li {
  display: flex; align-items: baseline; gap: 14px;
  padding: 13px 0; border-bottom: 1px solid var(--line);
}
.hours li:first-child { border-top: 1px solid var(--line); }
.hours__k { color: var(--grey); }
.hours__v {
  margin-left: auto;
  font-family: var(--display); text-transform: uppercase;
  letter-spacing: .03em; font-size: 1.05rem; color: #fff; white-space: nowrap;
}

/* ---------- map ---------- */
.mapwrap {
  border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
  background: var(--ink-2);
}
.mapwrap iframe { display: block; width: 100%; height: 360px; border: 0; filter: grayscale(1) invert(.92) contrast(.88); }

/* ---------- teaser video ---------- */
.teaser {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--black);
  line-height: 0;
}
.teaser video, .teaser__still { width: 100%; height: auto; display: block; }
.teaser__still { display: none; }

/* Anyone who has asked for less motion gets the poster frame instead of a loop. */
@media (prefers-reduced-motion: reduce) {
  .teaser video { display: none; }
  .teaser__still { display: block; }
}

/* ---------- coming soon ---------- */
.soon { text-align: center; padding-block: clamp(60px, 13vw, 150px); }
.soon__mark { width: 118px; margin: 0 auto 30px; opacity: .95; }
.soon h1 { margin-bottom: 18px; }
.soon .lede { margin-inline: auto; }
.soon__tag {
  display: inline-block; margin-bottom: 22px;
  font-family: var(--display); text-transform: uppercase;
  letter-spacing: .17em; font-size: .8rem;
  background: var(--red); color: #fff;                 /* AA on red */
  padding: 8px 16px; border-radius: 100px;
}

/* ---------- footer ---------- */
.ft { border-top: 1px solid var(--line); background: var(--ink); padding-block: clamp(40px, 6vw, 66px); }
.ft__grid {
  display: grid; gap: clamp(26px, 4vw, 46px);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.ft h4 {
  font-family: var(--display); text-transform: uppercase;
  letter-spacing: .12em; font-size: .78rem; color: var(--grey-dim);
  margin: 0 0 15px;
}
.ft ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.ft a { color: var(--grey); text-decoration: none; }
.ft a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.ft__mark { width: 76px; margin-bottom: 16px; }
.ft__legal {
  margin-top: clamp(30px, 4vw, 46px); padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  font-size: .8rem; color: var(--grey-dim);
}
/* agency credit, with the Target Advertising mark sitting to the right of the name */
.ft__by { display: inline-flex; align-items: center; gap: 5px; }
.ft__by a {
  display: inline-flex; align-items: center; gap: 7px;
  text-decoration: none; color: var(--grey);
}
.ft__by a:hover { color: #fff; }
.ft__by a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.ft__by img { width: 18px; height: 18px; flex: none; }

/* ---------- fixed mobile tap-to-call bar ----------
   The single most important element on the site: a stressed driver at the
   roadside must reach a dialler in one tap from any page.                */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  display: none; align-items: stretch;
  border-top: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 -8px 26px rgba(0,0,0,.6);
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--ink);
}
.callbar a {
  flex: 1 1 0; min-width: 0;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  text-decoration: none; color: #fff;
  font-family: var(--display); text-transform: uppercase; letter-spacing: .05em;
  padding: 0 10px; min-height: var(--bar-h);
  text-align: center; line-height: 1.05;
}
.callbar a svg { width: 19px; height: 19px; flex: none; }
.callbar__999 { background: var(--red); }
.callbar__999:active { background: var(--red-dark); }
.callbar__book { background: var(--ink-3); border-left: 1px solid rgba(255,255,255,.14); }
.callbar__t { display: block; font-size: .58rem; letter-spacing: .15em; opacity: .9; }
.callbar__n { display: block; font-size: 1.06rem; margin-top: 2px; }

@media (max-width: 860px) { .callbar { display: flex; } }

/* ---------- hero framing ----------
   Kept as classes rather than inline style="" attributes so the Content-Security
   Policy can ship without 'unsafe-inline' in style-src. */
.pos-ferrari { object-position: 58% 50%; }
.pos-rock    { object-position: 60% 60%; }
.pos-unit40  { object-position: 50% 45%; }
.pos-shop    { object-position: 50% 50%; }

/* ---------- utilities ---------- */
.btns--center { justify-content: center; }
.vh {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.mt-l { margin-top: clamp(30px, 4.5vw, 52px); }
.mt-m { margin-top: 26px; }
.mb-m { margin-bottom: 24px; }
.center { text-align: center; }
