/* Recent jobs: real customer cars (cards built by scripts/build-jobs.mjs) */
.jobs { padding: clamp(3rem, 6vw, 5rem) 0; background: var(--cream-deep); }
.jobs__head { max-width: 40rem; margin-bottom: 1.6rem; }
.jobs__head h2 { color: var(--green); font-size: clamp(1.9rem, 4.5vw, 2.7rem); text-wrap: balance; margin-bottom: 0.5rem; }
.jobs__head p { font-size: 1.05rem; }

.jobs__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1.2rem;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
}
.job__link {
  display: block; height: 100%; text-decoration: none; color: var(--ink);
  background: #fff; border: 3px solid var(--green-deep); border-radius: var(--radius);
  box-shadow: var(--shadow-sticker); overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.job__link:hover { transform: translate(-2px, -2px); box-shadow: 0.5rem 0.5rem 0 rgba(39, 43, 44, 0.22); }
.job__link:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.job__img { display: block; position: relative; background: var(--cream); }
.job__img img { display: block; width: 100%; height: auto; }
.job__count {
  position: absolute; right: 0.7rem; bottom: 0.7rem;
  background: rgba(18, 41, 29, 0.85); color: var(--cream);
  font-size: 0.8rem; font-weight: 700; padding: 0.25rem 0.6rem; border-radius: 999px;
}
.job__car { display: block; font-family: var(--font-display); font-size: 1.45rem; color: var(--green); margin: 0.9rem 1.1rem 0.15rem; }
.job__tyres { display: block; font-weight: 600; margin: 0 1.1rem 0.2rem; }
.job__meta { display: block; font-size: 0.9rem; color: #5a5f60; margin: 0 1.1rem 1.1rem; }

.jobs__more { margin-top: 1.6rem; font-weight: 700; }
.jobs__more a { color: var(--green); }

/* phones: swipe sideways instead of a long stack */
@media (max-width: 700px) {
  .jobs__list {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin: 0 -1rem; padding: 0.2rem 1rem 1rem; scroll-padding: 0 1rem;
  }
  .jobs__list .job { scroll-snap-align: start; }
}

/* /jobs/ page */
.jobspage { padding: clamp(2.5rem, 6vw, 4.5rem) 0 3rem; }
.jobspage h1 { color: var(--green); font-size: clamp(2.3rem, 6vw, 3.6rem); text-wrap: balance; margin-bottom: 1.6rem; }
.jobspage__sub { font-size: 1.12rem; max-width: 36em; margin-bottom: 2rem; }
.jobfull-list { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
.jobfull { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1.2rem 2rem; align-items: start; scroll-margin-top: 6rem; }
.jobfull__photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
.jobfull__ph { position: relative; padding: 0; border: 0; background: var(--cream); cursor: zoom-in; border-radius: 12px; overflow: hidden; }
.jobfull__ph:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.jobfull__ph img { display: block; width: 100%; height: auto; }
.jobfull__label { position: absolute; top: 0.45rem; left: 0.45rem; padding: 0.15rem 0.55rem; border-radius: 999px; background: var(--cream); color: var(--ink); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.jobfull__ph--main { grid-column: 1 / -1; border-radius: var(--radius); }
.jobfull__text .job__car, .jobfull__text .job__tyres, .jobfull__text .job__meta { margin-left: 0; margin-right: 0; }
.jobfull__text .job__car { font-size: clamp(1.7rem, 4vw, 2.2rem); margin-top: 0; }
.jobfull__text .job__tyres { font-size: 1.1rem; }
@media (max-width: 900px) { .jobfull { grid-template-columns: 1fr; } }

.jobs-cta { background: var(--green); color: var(--cream); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.2rem); margin-top: 3rem; text-align: center; }
.jobs-cta h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 0.5rem; }
.jobs-cta p { margin-bottom: 1.2rem; }
.jobs-cta .btns { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }

.jobbox { margin: auto; border: 0; padding: 0; background: transparent; max-width: min(96vw, 1200px); max-height: 92vh; overflow: visible; }
.jobbox::backdrop { background: rgba(10, 20, 14, 0.88); }
.jobbox img { display: block; max-width: 100%; max-height: 86vh; width: auto; height: auto; border-radius: 12px; }
.jobbox__close {
  position: absolute; top: 0.5rem; right: 0.5rem; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  border: 0; background: var(--cream); color: var(--green); font-size: 1.5rem; line-height: 1; cursor: pointer;
}

/* before / after pair (homepage + /ute-tyres/; photos from the ford-ranger-arrowtown job) */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(0.5rem, 2vw, 1.25rem); margin: 1.6rem 0 0; padding: 0; list-style: none; }
.ba figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--cream-deep); }
.ba img { display: block; width: 100%; height: auto; }
.ba figcaption { position: absolute; top: 0.6rem; left: 0.6rem; padding: 0.2rem 0.7rem; border-radius: 999px; font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; background: var(--cream); color: var(--ink); }
.ba li:last-child figcaption { background: var(--gold); color: var(--green-deep); }
.ba__note { margin: 0.9rem 0 0; font-size: 0.95rem; }
@media (max-width: 520px) { .ba figure { border-radius: 14px; } .ba figcaption { top: 0.4rem; left: 0.4rem; font-size: 0.7rem; padding: 0.15rem 0.5rem; } }
