/* ==========================================================================
   Billinudgel preview: additions on top of the Southern Autos design system.
   styles.css and landing.css are copied from the live site. styles.css differs
   only in the hero headline (29/11/2026, commented there); this file adds what
   the new workshop needs.

   23/11/2026: the chips are off every page. A fact not supplied yet (phone,
   email, hours, ABN, insurers) is left out, never shown as a placeholder.
   The .tbc rule below is kept but no page uses it.
   ========================================================================== */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/PlusJakartaSans.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* skip link */
.skip { position: absolute; left: -9999px; top: 0; z-index: 200; }
.skip:focus { left: 1rem; top: 1rem; }

/* ----------------------------------------------------- to-confirm chip -- */
.tbc {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .16rem .62rem .16rem .5rem;
  border: 1px solid var(--lime);
  border-radius: 999px;
  background: rgba(170, 230, 51, .06);
  color: var(--lime);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.45;
  text-transform: uppercase;
  white-space: nowrap;
  vertical-align: middle;
}
.tbc::before {
  content: "";
  width: .42rem;
  height: .42rem;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  flex: none;
}
@media (max-width: 480px) { .tbc { white-space: normal; } }

/* ---------------------------------------------------------------- header -- */
.header__cta { white-space: nowrap; }
@media (max-width: 1000px) { .nav ~ .header__actions { margin-left: auto; } }
@media (max-width: 560px) { .header__cta { display: none; } }

/* ------------------------------------------------------------- film hero --
   The burnout film sits to the right of the stage and melts into black on its
   left edge, at top and at foot, so the headline has clean ground to stand on.
   Under 900px the shared rules apply: a clean 16:9 plate with the copy below. */
@media (min-width: 900px) {
  .hero--cinema.hero--film .hero__film { background: #000; }
  .hero--cinema.hero--film .hero__film video {
    inset: auto;
    right: 0;
    top: 50%;
    width: 76%;
    height: auto;
    aspect-ratio: 16 / 9;
    transform: translateY(-50%);
    object-fit: contain;
    /* the fade lives on the picture itself, so it always lines up with the
       film edges: out of black on the left, into black above and below */
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%),
                        linear-gradient(90deg, transparent 0, #000 22%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%),
                linear-gradient(90deg, transparent 0, #000 22%);
    mask-composite: intersect;
  }
}

/* ------------------------------------------------------------- facts row -- */
.info--row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .info--row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .info--row { grid-template-columns: 1fr; } }
.info__item .tbc { justify-self: start; margin-top: .15rem; }

/* ------------------------------------------------------ cards with chips -- */
.mcard .tbc {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1;
  background: rgba(10, 10, 10, .74);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.tcard .tbc, .step .tbc { justify-self: start; }
.tcard h3 a:hover { color: var(--lime); }

/* ------------------------------------------------------------ areas index -- */
.areas {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-soft);
  counter-reset: area;
}
.area {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: clamp(1.1rem, 2vw, 1.6rem) clamp(.25rem, 1.4vw, 1.2rem);
  border-bottom: 1px solid var(--line-soft);
  font-size: clamp(1.3rem, 2.5vw, 2.1rem);
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.1;
  color: var(--ink-2);
  counter-increment: area;
}
.area::before {
  content: counter(area, decimal-leading-zero);
  flex: none;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--lime);
  opacity: .8;
}
.area small {
  margin-left: auto;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--lime);
}
/* the workshop opens the index: one huge row, then the surrounding places */
.area--home {
  grid-column: 1 / -1;
  align-items: center;
  padding-block: clamp(1.4rem, 3.4vw, 2.8rem);
  font-size: clamp(2.6rem, 8vw, 6.6rem);
  letter-spacing: -.045em;
  color: var(--ink);
  border-bottom-color: rgba(170, 230, 51, .55);
}
.area--home::before { align-self: flex-start; margin-top: .7em; }
.area--home small { font-size: .7rem; }
@media (min-width: 981px) {
  .area { border-left: 1px solid var(--line-soft); }
  .area--home, .area:nth-child(3n + 2) { border-left: 0; }
}
@media (max-width: 980px) {
  .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .area:nth-child(2n + 3) { border-left: 1px solid var(--line-soft); }
}
@media (max-width: 560px) {
  .areas { grid-template-columns: 1fr; }
  .area:nth-child(2n + 3) { border-left: 0; }
}

/* ------------------------------------------------------ brand logo size -- */
/* 27/11/2026: the Billinudgel Smash Repairs oval (option C) is 3.2:1. At the
   40px the 4.7:1 wordmarks use, its second line would be 4px tall, so it gets
   more height. The wide wordmarks (logo--wide) keep the sizes in styles.css. */
.brand img.logo--oval { height: 62px; }
.header.is-stuck .brand img.logo--oval { height: 48px; }
.footer__brand img.logo--oval { height: 84px; }

/* ------------------------------------------------ sister workshop link -- */
.sister {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
  padding: .9rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.sister:hover { border-color: rgba(170, 230, 51, .5); background: var(--panel-2); }
.sister img { height: 34px; width: auto; }
.sister span { display: inline-flex; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.sister svg { width: 15px; height: 15px; color: var(--lime); }

/* ------------------------------------------------- masked, pending panel -- */
.pending {
  display: grid;
  gap: 1rem;
  justify-items: start;
  padding: clamp(1.6rem, 4vw, 3.2rem);
  border: 1px dashed rgba(170, 230, 51, .5);
  border-radius: var(--r-lg);
  background: repeating-linear-gradient(135deg, rgba(170, 230, 51, .05) 0 14px, rgba(170, 230, 51, 0) 14px 28px);
}
.pending p { margin: 0; max-width: 56ch; color: var(--ink-2); }

/* ------------------------------------------------------------- quote form -- */
/* 02/12/2026, Adam: the form must fit one laptop screen with its button showing,
   and must take photos ("Send photos online" led to a form with nowhere to put
   them). If a field is added, measure it again in a browser: AGENTS.md says how. */
.form { gap: .8rem; padding: clamp(1.2rem, 2.2vw, 1.75rem); }
.form__head { display: grid; gap: .45rem; }
.form__title { font-size: clamp(1.45rem, 2.3vw, 1.9rem); }
.form__lead { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.form__row { gap: .8rem; }
.form .field { gap: .38rem; }
.form .field input,
.form .field select,
.form .field textarea { padding: .66rem .9rem; line-height: 1.45; }
.form .field textarea { min-height: 7.25rem; line-height: 1.55; }
.form__row--tall .field { grid-template-rows: auto 1fr; }
.form__row--tall textarea { height: 100%; }
.form .field--select::after { bottom: 1.05rem; }
.form__send { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.2rem; }
.form__note { margin: 0; flex: 1 1 170px; font-size: .82rem; line-height: 1.5; color: var(--ink-2); }
.form__note strong { color: var(--lime); font-weight: 600; }

/* Arriving on contact.html#quote: show the form at once, so the browser scrolls
   to where it will sit, not to where the reveal starts it (22px lower). */
.js .reveal:has(> :target) { opacity: 1; transform: none; transition: none; }

/* photos: the file input lies over the whole box, so a click or a dropped photo
   lands on it natively; app.js only draws the thumbnails */
.drop {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 7.25rem;
  border: 1px dashed rgba(255, 255, 255, .2);
  border-radius: var(--r-sm);
  background: #0e0e0e;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.drop:hover, .drop.is-over { border-color: var(--lime); background: rgba(170, 230, 51, .05); }
.drop:focus-within { border-color: var(--lime); border-style: solid; }
.form .drop > input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
}
.drop > input::file-selector-button { cursor: pointer; }
.drop__face {
  display: grid;
  justify-items: center;
  gap: .22rem;
  padding: .75rem;
  text-align: center;
  pointer-events: none;
}
.drop__face svg { width: 22px; height: 22px; margin-bottom: .2rem; color: var(--lime); }
.drop__face strong { font-size: .92rem; font-weight: 600; color: var(--ink); }
.drop__face > span { font-size: .8rem; line-height: 1.45; color: var(--muted); }
@media (hover: none) { .drop__or { display: none; } }
.drop.has-files { align-content: start; min-height: 0; }   /* beside the textarea the grid still stretches it */
.drop.has-files .drop__face { display: none; }
.drop__thumbs {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(3rem, 1fr));
  gap: .4rem;
  margin: 0;
  padding: .5rem;
  list-style: none;
  pointer-events: none;
}
.drop__thumbs[hidden] { display: none; }
.drop__thumb, .drop__add { position: relative; aspect-ratio: 1; border-radius: 7px; overflow: hidden; }
.drop__thumb { background: var(--panel-2); }
.drop__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.drop__thumb.is-file img { visibility: hidden; }
.drop__thumb.is-file::before {
  content: attr(data-ext);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--muted);
}
.drop__add { display: grid; place-items: center; border: 1px dashed rgba(255, 255, 255, .22); color: var(--muted); }
.drop__add svg { width: 18px; height: 18px; }
.drop__remove {
  position: absolute;
  top: 2px;
  right: 2px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .74);
  color: #fff;
  cursor: pointer;
  pointer-events: auto;
}
.drop__remove:hover, .drop__remove:focus-visible { background: var(--lime); color: #0a0a0a; outline: none; }
.drop__remove svg { width: 12px; height: 12px; }
.drop__note {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 0 .6rem;
  font-size: .78rem;
  line-height: 1.45;
  color: #ff8a7a;
  text-align: center;
  pointer-events: none;
}
.drop__note:not(:empty) { padding-bottom: .55rem; }
.drop.has-files .drop__note { text-align: left; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* A short laptop screen (1366x768 leaves about 650px): tighter still. Kept last
   so it outranks the rules above. */
@media (min-width: 901px) and (max-height: 760px) {
  .form { gap: .62rem; padding: 1.15rem 1.35rem; }
  .form__lead { display: none; }
  .form__title { font-size: 1.4rem; }
  .form .field input,
  .form .field select { padding-block: .55rem; }
  .form .field textarea,
  .drop { min-height: 5.75rem; }
}

/* ---------------------------------------------------------------- footer -- */
.footer__grid--b { grid-template-columns: 1.5fr .8fr 1.15fr 1.15fr 1.25fr; }
@media (max-width: 1080px) { .footer__grid--b { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 900px) { .footer__grid--b { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid--b { grid-template-columns: 1fr; } }
.footer address .tbc { margin: .1rem 0; }
.footer__preview { color: var(--lime); font-weight: 600; letter-spacing: .03em; }
