/* Coleman's Vehicle Solutions: mock-up styles. Mobile first. */

:root {
  --ink: #14181d;
  --ink-soft: #46505c;
  --dark: #1b2129;
  --dark-2: #262e38;
  --paper: #f5f4f0;
  --surface: #ffffff;
  --line: #d9d6cd;
  --accent: #ffc928;        /* taken from the yellow load straps in the yard photos */
  --accent-deep: #e0aa00;
  --radius: 10px;
  --wrap: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}

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

h1, h2, h3 { line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 8.4vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 5.4vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

a { color: inherit; text-underline-offset: 0.18em; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.on-dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible, .admin-bar :focus-visible { outline-color: var(--accent); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--ink); padding: 12px 16px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

/* Placeholders that Peter needs to confirm: deliberately easy to spot */
.ph {
  background: #fff3c4;
  border: 1px dashed #9a7400;
  border-radius: 4px;
  padding: 0 0.3em;
  color: #3d2e00;
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  border: 2px solid transparent; border-radius: 8px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  white-space: nowrap;
}
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: var(--accent-deep); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-ghost { background: transparent; border-color: currentColor; }
.btn-small { min-height: 44px; padding: 0 14px; font-size: 0.95rem; }

/* Header */
.site-header { background: var(--dark); color: #fff; }
.site-header .bar {
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  gap: 10px 16px; padding-top: 12px; padding-bottom: 6px;
}
.brand { font-weight: 800; font-size: 1.15rem; line-height: 1.1; text-decoration: none; letter-spacing: -0.01em; }
.brand span { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-top: 3px; }
.site-header .bar > .btn { grid-row: 1; grid-column: 2; }
.site-nav { grid-row: 2; grid-column: 1 / -1; display: flex; gap: 4px; margin: 0 -10px; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px;
  text-decoration: none; font-weight: 600; font-size: 0.98rem; color: #dfe4ea;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; }

@media (min-width: 760px) {
  .site-header .bar { grid-template-columns: auto 1fr auto; padding-bottom: 12px; }
  .site-header .bar > .btn { grid-column: 3; }
  .site-nav { grid-row: 1; grid-column: 2; justify-content: flex-end; margin: 0; }
}

/* Hero */
.hero { background: var(--dark); color: #fff; padding: 28px 0 0; }
.hero-grid { display: grid; gap: 28px; }
.hero .lede { font-size: 1.15rem; color: #d5dbe2; max-width: 34ch; }
.hero-photo { margin: 0 -20px; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

@media (min-width: 900px) {
  .hero { padding: 56px 0; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
  .hero-photo { margin: 0; }
  .hero-photo img { border-radius: var(--radius); aspect-ratio: 4 / 3.4; }
}

/* Reg checker */
.checker {
  background: var(--surface); color: var(--ink);
  border-radius: var(--radius); padding: 18px; margin-top: 22px;
  scroll-margin-top: 16px; max-width: 460px;
}
.checker label { display: block; font-weight: 700; margin-bottom: 8px; }
.plate {
  width: 100%; min-height: 64px; padding: 0 14px;
  background: var(--accent); color: #000;
  border: 2px solid var(--ink); border-radius: 8px;
  font: inherit; font-size: 1.9rem; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; text-align: center;
}
.plate::placeholder { color: rgba(0, 0, 0, 0.42); }
.checker .btn { width: 100%; margin-top: 12px; min-height: 52px; font-size: 1.08rem; }
.checker .note { margin: 12px 0 0; font-weight: 600; }
.demo-tag { display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 10px; }
.result { margin-top: 14px; padding: 14px 16px; border: 2px dashed var(--ink); border-radius: 8px; background: #fffaf0; }
.result[hidden] { display: none; }
.result .price { font-size: 1.5rem; font-weight: 800; margin: 0 0 4px; }
.result p { margin: 0; }
.result .small { font-size: 0.92rem; color: var(--ink-soft); margin-top: 6px; }

/* Sections */
.section { padding: 52px 0; }
.section.alt { background: var(--surface); }
.section.dark { background: var(--dark); color: #fff; }
.eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 10px; }
.dark .eyebrow { color: var(--accent); }
.section-lede { max-width: 58ch; color: var(--ink-soft); }
.dark .section-lede { color: #d5dbe2; }

.split { display: grid; gap: 26px; align-items: center; }
.split img { border-radius: var(--radius); width: 100%; }
@media (min-width: 860px) {
  .section { padding: 80px 0; }
  .split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .split.flip > :first-child { order: 2; }
}

/* Steps */
.steps { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.steps li {
  counter-increment: step; position: relative;
  background: var(--paper); border-radius: var(--radius); padding: 18px 18px 18px 72px;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 16px; top: 16px;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: var(--ink);
  display: grid; place-items: center; font-weight: 800; font-size: 1.15rem;
}
.steps h3 { margin-bottom: 4px; }
.steps p { margin: 0; color: var(--ink-soft); }
@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li { padding: 72px 20px 22px; }
  .steps li::before { left: 20px; top: 20px; }
}

/* Why us */
.points { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.points li { border-top: 4px solid var(--accent); background: var(--dark-2); padding: 18px; border-radius: 0 0 var(--radius) var(--radius); }
.points p { margin: 0; color: #d5dbe2; }
@media (min-width: 860px) { .points { grid-template-columns: repeat(3, 1fr); } }

/* Contact */
.contact-grid { display: grid; gap: 22px; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.alt .contact-card { background: var(--paper); }
.contact-card h3 { margin-bottom: 6px; }
.contact-card address { font-style: normal; }
.phone { font-size: 1.6rem; font-weight: 800; text-decoration-color: var(--accent); text-decoration-thickness: 4px; display: inline-flex; min-height: 44px; align-items: center; }
.sign { display: flex; gap: 16px; align-items: center; }
.sign img { width: 141px; flex: none; border-radius: 6px; }
.sign p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }
@media (min-width: 860px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }

.hours { margin: 0; }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.hours div:last-child { border-bottom: 0; }
.hours dt { font-weight: 600; }
.hours dd { margin: 0; font-variant-numeric: tabular-nums; }

/* Page title band on inner pages */
.page-title { background: var(--dark); color: #fff; padding: 36px 0; }
.page-title p { color: #d5dbe2; max-width: 52ch; margin: 0; }

/* Footer */
.site-footer { background: var(--ink); color: #c9d0d8; padding: 32px 0; font-size: 0.95rem; }
.site-footer .brand { color: #fff; display: inline-block; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 0 18px; }
.site-footer li a { display: inline-flex; min-height: 44px; align-items: center; }
.site-footer p { margin: 0; }

/* ---------- Admin ---------- */
.mock-banner {
  background: var(--accent); color: var(--ink);
  text-align: center; font-weight: 800; padding: 10px 16px;
  border-bottom: 2px solid var(--ink);
}
.admin-bar { background: var(--dark); color: #fff; }
.admin-bar .bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; padding-top: 8px; padding-bottom: 8px; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 2px; margin: 0 -10px; }
.admin-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; text-decoration: none; font-weight: 600; color: #dfe4ea; }
.admin-nav a[aria-current="page"], .admin-nav a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; }

.admin-main { padding: 28px 0 56px; }
.admin-main h1 { font-size: clamp(1.6rem, 6vw, 2.1rem); }
.admin-note { background: var(--surface); border-left: 4px solid var(--accent); padding: 12px 16px; border-radius: 0 8px 8px 0; margin: 0 0 20px; }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 20px 0 32px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.card .label { font-size: 0.88rem; font-weight: 600; color: var(--ink-soft); margin: 0 0 6px; }
.card .value { font-size: 2rem; font-weight: 800; line-height: 1; margin: 0; }
.card .sub { font-size: 0.82rem; color: var(--ink-soft); margin: 6px 0 0; }
@media (min-width: 860px) { .cards { grid-template-columns: repeat(4, 1fr); } }

.table-scroll { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 0.97rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
thead th { font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); background: #faf9f6; }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.82rem; font-weight: 700; border: 1px solid transparent; }
.badge.requested { background: #fff1cc; color: #5c4300; border-color: #e3c467; }
.badge.confirmed { background: #dbe9ff; color: #0f3a7a; border-color: #9dbcf0; }
.badge.collected { background: #e9e0fb; color: #44237f; border-color: #bfa8ee; }
.badge.paid      { background: #d9f2df; color: #14532d; border-color: #93d0a3; }
.badge.cancelled { background: #ececec; color: #4a4a4a; border-color: #bdbdbd; text-decoration: line-through; }

.today-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.today-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.today-list li:last-child { border-bottom: 0; }
.today-list .when { font-weight: 800; font-variant-numeric: tabular-nums; margin-right: 10px; }
.today-list .meta { color: var(--ink-soft); font-size: 0.93rem; display: block; }

.field { display: block; margin-bottom: 16px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.input {
  width: 100%; min-height: 48px; padding: 0 12px;
  font: inherit; color: var(--ink); background: #fff;
  border: 2px solid #6b7480; border-radius: 8px;
}
.override { display: flex; gap: 8px; align-items: center; }
.override .input { width: 110px; min-height: 44px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.tabs button {
  min-height: 44px; padding: 0 14px; border-radius: 999px;
  border: 2px solid var(--ink); background: transparent; color: var(--ink);
  font: inherit; font-weight: 700; font-size: 0.93rem; cursor: pointer;
}
.tabs button[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* Login */
.login { display: grid; min-height: calc(100vh - 46px); }
.login-photo { position: relative; background: var(--dark); }
.login-photo img { width: 100%; height: 100%; max-height: 240px; object-fit: cover; }
.login-form { padding: 32px 20px 48px; max-width: 460px; width: 100%; margin: 0 auto; align-self: center; }
.login-form .btn { width: 100%; }
.login-form .back { display: inline-flex; min-height: 44px; align-items: center; margin-top: 12px; }
@media (min-width: 860px) {
  .login { grid-template-columns: 1.1fr 1fr; }
  .login-photo img { max-height: none; position: absolute; inset: 0; }
}

/* ---------- Life: motion, icons, ticker, call-to-action ---------- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (min-width: 760px) { .site-header { position: sticky; top: 0; z-index: 5; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08); } }

.btn { transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22); }
.btn:active { transform: translateY(0); box-shadow: none; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(60rem 30rem at 90% -10%, rgba(255, 201, 40, 0.16), transparent 60%),
    radial-gradient(40rem 26rem at -10% 110%, #33404f, transparent 65%),
    var(--dark);
}
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 999px;
  padding: 6px 14px; font-size: 0.86rem; font-weight: 600; color: #e6eaef; margin: 0 0 16px;
}
.dot { width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(255, 201, 40, 0.7); animation: pulse 2s ease-out infinite; }
@keyframes pulse { to { box-shadow: 0 0 0 10px rgba(255, 201, 40, 0); } }

.hl { color: var(--accent); white-space: nowrap; }

.checker { box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); border-top: 6px solid var(--accent); }
.plate { transition: box-shadow 0.15s ease; }
.plate:focus-visible { outline: none; box-shadow: 0 0 0 3px #fff, 0 0 0 7px var(--ink); }
.checker .note { display: flex; gap: 8px; align-items: flex-start; font-size: 0.98rem; }
.checker .note .icon { margin-top: 0.15em; stroke-width: 3; }
.result:not([hidden]) { animation: pop 0.3s ease-out; }
@keyframes pop { from { opacity: 0; transform: scale(0.96); } }

.hero-photo { position: relative; }
.sticker {
  position: absolute; left: 16px; bottom: 16px;
  width: 104px; height: 104px; border-radius: 50%;
  background: var(--accent); color: var(--ink); border: 3px solid var(--ink);
  display: grid; place-content: center; text-align: center;
  font-size: 0.8rem; font-weight: 700; line-height: 1.15; padding: 10px;
  transform: rotate(-10deg); box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}
.sticker strong { display: block; font-size: 1.35rem; font-weight: 800; }
@media (min-width: 900px) {
  .hero-photo { rotate: 1.5deg; }
  .hero-photo img { box-shadow: -14px 14px 0 var(--accent); }
  .sticker { left: -34px; bottom: -22px; width: 124px; height: 124px; font-size: 0.9rem; }
  .sticker strong { font-size: 1.6rem; }
}

.rise { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.rise:nth-child(2) { animation-delay: 0.08s; }
.rise:nth-child(3) { animation-delay: 0.16s; }
.rise:nth-child(4) { animation-delay: 0.24s; }
.hero-photo.rise { animation-delay: 0.3s; }
@keyframes rise { from { opacity: 0; translate: 0 22px; } }

/* Ticker */
.ticker { background: var(--accent); color: var(--ink); overflow: hidden; border-block: 3px solid var(--ink); font-weight: 800; font-size: 0.88rem; letter-spacing: 0.08em; text-transform: uppercase; }
.ticker-track { display: flex; width: max-content; animation: ticker 32s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-group { display: flex; flex: none; }
.ticker-group span { display: flex; align-items: center; gap: 24px; padding: 12px 0 12px 24px; white-space: nowrap; }
.ticker-group span::after { content: ""; width: 8px; height: 8px; background: var(--ink); transform: rotate(45deg); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Scroll reveal (only when JS is running) */
.js .reveal { opacity: 0; translate: 0 24px; transition: opacity 0.6s ease, translate 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease; }
.js .reveal.in { opacity: 1; translate: 0 0; }
.steps .reveal:nth-child(2), .points .reveal:nth-child(2), .contact-grid .reveal:nth-child(2) { transition-delay: 0.1s, 0.1s, 0s, 0s, 0s; }
.steps .reveal:nth-child(3), .points .reveal:nth-child(3), .contact-grid .reveal:nth-child(3) { transition-delay: 0.2s, 0.2s, 0s, 0s, 0s; }

/* Photos */
.photo { border-radius: var(--radius); overflow: hidden; box-shadow: 10px 10px 0 var(--accent); margin-right: 10px; }
.photo img { border-radius: 0; transition: transform 0.6s ease; }
.photo:hover img { transform: scale(1.04); }

/* Tick list and town chips */
.ticks { list-style: none; margin: 0 0 1.2em; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.ticks .icon { background: var(--accent); border-radius: 50%; padding: 4px; width: 1.5em; height: 1.5em; stroke-width: 3; }
.chips { list-style: none; margin: 0 0 1.2em; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; background: var(--accent); border: 2px solid var(--ink); border-radius: 999px; font-weight: 800; }

/* Steps and points */
.steps li { background: var(--surface); border: 1px solid var(--line); }
@media (max-width: 859px) { .steps li { padding-right: 62px; } }
.steps li:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(20, 24, 29, 0.12); }
.step-icon { position: absolute; right: 16px; top: 18px; width: 34px; height: 34px; stroke-width: 1.6; color: #b9b4a6; }
.points li:hover { transform: translateY(-4px); background: #2f3945; }
.point-icon { width: 38px; height: 38px; stroke-width: 1.6; color: var(--accent); margin-bottom: 12px; display: block; }
.contact-card:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(20, 24, 29, 0.1); }

/* Call-to-action band */
.cta { position: relative; color: #fff; background: var(--ink); overflow: hidden; }
.cta::before { content: ""; display: block; position: relative; z-index: 1; height: 12px; background: repeating-linear-gradient(-45deg, var(--accent) 0 16px, var(--ink) 16px 32px); }
.cta > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.3; }
.cta-inner { position: relative; padding-top: 56px; padding-bottom: 56px; }
.cta h2 { font-size: clamp(1.9rem, 7vw, 3rem); }
.cta p { color: #e6eaef; max-width: 44ch; font-size: 1.1rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
@media (min-width: 860px) { .cta-inner { padding-top: 88px; padding-bottom: 88px; } }

@media (prefers-reduced-motion: reduce) {
  .rise, .dot, .ticker-track, .result:not([hidden]) { animation: none; }
  .js .reveal { opacity: 1; translate: none; transition: none; }
  .btn, .photo img { transition: none; }
}
