/* ==========================================================================
   C.A.B.S — Cabin and Body Spares · design system (prototype)
   Signature: the riveted "data plate" (finder + fitment facts) and punched stock tags.
   ========================================================================== */
@import url('fonts.css');

:root {
  /* Brand palette (brief) */
  --lime: #91A51A;        /* primary CTA / accent — black text on it */
  --olive: #576D0F;       /* links, hovers, white-text buttons */
  --primer: #DFDFDF;      /* light grey bands */
  --steel: #C4C4C4;       /* borders, plate frame */
  /* Supporting */
  --ink: #1C1E17;         /* body text */
  --charcoal: #1C1E17;    /* the one dark tone: utility bar + footer */
  --mist: #F2F2F0;        /* the one light band tone (neutral, sits between white and #DFDFDF) */
  --wash: var(--mist);
  --paper: #FFFFFF;
  --muted: #5E6258;       /* secondary text (AA on white and mist) */
  --lime-soft: #EFF3DC;
  --wa: #1F8B14;          /* WhatsApp buttons: darker than the brand badge so white text passes AA */
  --danger: #A12C1B;

  --font: 'Ubuntu', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Ubuntu Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --wrap: 1100px;
  --gutter: 20px;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgb(21 23 15 / .06), 0 6px 20px rgb(21 23 15 / .08);
  --tap: 48px;

  --icon-ink: var(--ink);
  --icon-accent: var(--lime);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--ink);
  background: var(--paper); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--olive); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.015em; font-weight: 700; }
h1 { font-size: clamp(1.75rem, 1.5vw + 1.2rem, 2.6rem); letter-spacing: -.022em; }
h2 { font-size: clamp(1.3rem, .7vw + 1.05rem, 1.75rem); letter-spacing: -.015em; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--olive); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { top: 8px; }

.wrap { max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.band { padding: clamp(40px, 6vw, 72px) 0; }
.band--wash { background: var(--wash); }
.band--primer { background: var(--mist); }
.band--ink { background: var(--charcoal); color: #fff; --icon-ink: #fff; }
.band--lime { background: var(--mist); border-top: 1px solid var(--primer); }

.eyebrow {
  font: 700 .78rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--olive);
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px;
}
.eyebrow::before { content: ''; width: 18px; height: 3px; background: var(--lime); }
.lede { font-size: 1.06rem; color: var(--muted); max-width: 60ch; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }

/* Icons ------------------------------------------------------------------ */
.i { width: 24px; height: 24px; flex: none; display: inline-block; vertical-align: middle; }
.i--sm { width: 18px; height: 18px; }
.i--lg { width: 40px; height: 40px; }
.i--xl { width: 56px; height: 56px; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  --icon-ink: currentColor;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--tap);
  padding: 0 22px; border: 2px solid transparent; border-radius: 999px; font: 700 1rem/1 var(--font);
  text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .1s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--lime { background: var(--lime); color: var(--ink); --icon-accent: var(--paper); }
.btn--lime:hover { background: #a3b826; color: var(--ink); }
.btn--olive { background: var(--olive); color: #fff; --icon-accent: var(--lime); }
.btn--olive:hover { background: #46590b; color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; --icon-accent: var(--lime); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #17700F; color: #fff; }
.btn--block { width: 100%; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .92rem; }

/* Utility bar + header --------------------------------------------------- */
.util { background: var(--charcoal); color: #D7DACD; font-size: .88rem; --icon-ink: #fff; }
.util .wrap { display: flex; align-items: center; gap: 22px; min-height: 38px; }
.util a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.util a:hover { color: var(--lime); }
.util .util__note { margin-left: auto; display: inline-flex; gap: 7px; align-items: center; }
.util .dot { width: 8px; height: 8px; border-radius: 50%; background: #7d8270; }
.util .dot.is-open { background: #3ddc6f; box-shadow: 0 0 0 3px rgb(61 220 111 / .25); }

.head { background: var(--paper); position: sticky; top: 0; z-index: 40; box-shadow: 0 1px 0 var(--primer); }
.head__bar { display: flex; align-items: center; gap: 24px; min-height: 96px; }
.logo { display: block; flex: none; }
.logo img { width: 240px; }
.search { position: relative; flex: 1; max-width: 520px; }
.search input {
  width: 100%; min-height: 50px; padding: 0 16px 0 48px; border: 2px solid var(--steel); border-radius: 999px;
  font: 400 1rem var(--font); color: var(--ink); background: var(--wash);
}
.search input:focus { outline: none; border-color: var(--olive); background: #fff; }
.search > .i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.search__results {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid var(--primer); max-height: 70vh; overflow: auto; z-index: 60; display: none;
}
.search__results.is-open { display: block; }
.sr-item { display: flex; gap: 12px; align-items: center; padding: 10px 14px; text-decoration: none; color: var(--ink); }
.sr-item:hover, .sr-item.is-active { background: var(--lime-soft); color: var(--ink); }
.sr-item img { width: 56px; height: 42px; object-fit: contain; background: #fff; border: 1px solid var(--primer); border-radius: 4px; }
.sr-item small { display: block; color: var(--muted); font-family: var(--mono); }
.sr-empty { padding: 16px; color: var(--muted); }
.sr-all { display: block; padding: 12px 14px; border-top: 1px solid var(--primer); font-weight: 700; }
.head__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.quote-btn { position: relative; }
.badge {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--ink); color: var(--lime);
  font: 700 .8rem/22px var(--mono); text-align: center;
}
.menu-btn, .search-btn { display: none; width: var(--tap); height: var(--tap); border: 0; background: none; border-radius: 50%; cursor: pointer; }

/* Nav: the heritage lime band */
.nav { background: var(--lime); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; }
.nav a {
  display: flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 18px; color: var(--ink);
  text-decoration: none; font-weight: 700; letter-spacing: .01em; --icon-accent: var(--paper);
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--olive); color: #fff; --icon-ink: #fff; --icon-accent: var(--lime); }
.nav li:first-child a { margin-left: -18px; }

/* The data plate (signature) -------------------------------------------- */
.plate {
  position: relative; background: linear-gradient(160deg, #FBFBFA 0%, #EDEDEA 100%);
  border: 2px solid var(--steel); border-radius: 14px; padding: 26px 26px 22px;
  box-shadow: inset 0 0 0 5px #fff, inset 0 0 0 6px var(--primer), 0 8px 24px rgb(21 23 15 / .08);
}
.plate::before, .plate::after, .plate > .rivets::before, .plate > .rivets::after {
  content: ''; position: absolute; width: 11px; height: 11px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff 0 18%, #b9bcb0 45%, #8a8e80 100%);
  box-shadow: 0 1px 0 rgb(255 255 255 / .8), inset 0 -1px 1px rgb(0 0 0 / .25);
}
.plate::before { top: 12px; left: 12px; }
.plate::after { top: 12px; right: 12px; }
.plate > .rivets::before { bottom: 12px; left: 12px; }
.plate > .rivets::after { bottom: 12px; right: 12px; }
.plate__title {
  font: 700 .8rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  display: flex; justify-content: space-between; gap: 12px; padding: 0 10px 14px; border-bottom: 2px dashed var(--steel); margin-bottom: 18px;
}

/* Finder (inside a plate) */
.finder__steps { display: grid; gap: 12px; }
.field { display: grid; gap: 6px; }
.field > span, .field label { font: 700 .78rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.select, .input, textarea.input {
  width: 100%; min-height: 52px; padding: 0 44px 0 14px; border: 2px solid var(--steel); border-radius: var(--radius-sm);
  font: 500 1rem var(--font); color: var(--ink); background: #fff; appearance: none;
}
textarea.input { padding: 12px 14px; min-height: 120px; resize: vertical; }
.input { padding-right: 14px; }
.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='22' height='22' fill='none' stroke='%2315170F' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.select:focus, .input:focus { outline: none; border-color: var(--olive); box-shadow: 0 0 0 3px rgb(145 165 26 / .3); }
.select:disabled { background-color: var(--wash); color: #8c9080; }
.step-num {
  display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink);
  color: var(--lime); font: 700 .78rem/1 var(--mono); margin-right: 6px;
}
.finder__type { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg { position: relative; }
.seg input { position: absolute; opacity: 0; }
.field .seg span, .seg span {
  font: 700 1rem/1.2 var(--font); letter-spacing: 0; text-transform: none; color: var(--ink);
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border: 2px solid var(--steel);
  border-radius: var(--radius-sm); background: #fff; font-weight: 700; cursor: pointer;
}
.seg input:checked + span, .field .seg input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; --icon-ink: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--olive); outline-offset: 2px; }
.finder__go { margin-top: 6px; }
.finder__count { font: 400 .9rem var(--mono); color: var(--muted); text-align: center; margin: 10px 0 0; }

/* Hero ------------------------------------------------------------------- */
.hero { background: var(--mist); position: relative; overflow: hidden; border-bottom: 1px solid var(--primer); }
.hero::after { /* diamond tread-plate texture on the right */
  content: ''; position: absolute; inset: 0 0 0 55%;
  background-image: radial-gradient(ellipse 5px 2px at 50% 50%, rgb(255 255 255 / .9) 60%, transparent 62%),
    radial-gradient(ellipse 5px 2px at 50% 50%, rgb(0 0 0 / .035) 60%, transparent 62%);
  background-size: 22px 22px, 22px 22px; background-position: 0 0, 11px 11px; transform: skewX(0);
  mask-image: linear-gradient(90deg, transparent, #000 40%); pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 64px; }
.hero h1 span { color: var(--olive); }
.hero__sub { font-size: 1.06rem; color: var(--muted); max-width: 46ch; }
.hero__quip { font: 700 .88rem var(--mono); color: var(--ink); background: var(--lime); display: inline-block; padding: 6px 10px; border-radius: 4px; transform: rotate(-1.2deg); margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 22px 0 0; padding: 0; list-style: none; font-weight: 500; }
.chips li { display: inline-flex; align-items: center; gap: 8px; }

/* Stock tag (punched) */
.tag {
  display: inline-flex; align-items: center; gap: 6px; font: 700 .82rem/1 var(--mono); letter-spacing: .06em;
  background: var(--ink); color: var(--lime); padding: 6px 10px 6px 18px; border-radius: 3px 6px 6px 3px;
  position: relative; white-space: nowrap;
}
.tag::before { content: ''; position: absolute; left: 6px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--paper); }
.tag--light { background: var(--lime); color: var(--ink); }

/* Section heads */
.shead { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.shead h2 { margin: 0; }
.shead a { font-weight: 700; display: inline-flex; gap: 6px; align-items: center; --icon-ink: currentColor; }

/* Category tiles */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.cat {
  display: grid; gap: 10px; align-content: start; padding: 18px 16px; background: #fff; border: 1px solid var(--primer);
  border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s, box-shadow .15s;
}
.cat:hover { border-color: var(--lime); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.cat strong { font-size: 1rem; line-height: 1.2; }
.cat small { font-family: var(--mono); color: var(--muted); }

/* Make tiles grouped by brand */
.brands { columns: 4 240px; column-gap: 14px; }
.brand { background: #fff; border-radius: var(--radius); padding: 18px; border: 1px solid var(--primer); break-inside: avoid; margin-bottom: 14px; }
.brand h3 { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; margin-bottom: 10px; }
.brand ul { list-style: none; margin: 0; padding: 0; }
.brand li a { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--primer); text-decoration: none; color: var(--ink); font-weight: 500; }
.brand li a:hover { color: var(--olive); }
.brand li small { font-family: var(--mono); color: var(--muted); white-space: nowrap; }

/* Item cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--primer); border-radius: var(--radius);
  overflow: hidden; transition: border-color .15s, box-shadow .15s; position: relative;
}
.card:hover { border-color: var(--steel); box-shadow: var(--shadow); }
.card__media { aspect-ratio: 4/3; background: #fff; border-bottom: 1px solid var(--primer); display: grid; place-items: center; position: relative; }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.card__media .tag { z-index: 1; }
.card__media .tag { position: absolute; left: 10px; top: 10px; }
.card__body { background: var(--mist); padding: 14px 16px 16px; display: grid; gap: 6px; flex: 1; align-content: start; }
.card__meta { font: 400 .86rem var(--mono); color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.card h3, .card .card__h { font-size: 1.02rem; margin: 0; line-height: 1.3; letter-spacing: -.01em; }
.card h3 a, .card .card__h a, .qrow h2 a, .qrow .card__h a { color: var(--ink); text-decoration: none; }
.card:hover h3 a, .card:hover .card__h a, .qrow h2 a:hover { color: var(--olive); }
.card h3 a::after, .card .card__h a::after { content: ''; position: absolute; inset: 0; }
.card__foot { background: var(--mist); padding: 0 16px 16px; display: flex; gap: 8px; position: relative; z-index: 2; }
.card__foot .btn { flex: 1; }
.pill { display: inline-flex; align-items: center; gap: 5px; font: 700 .76rem/1 var(--mono); letter-spacing: .04em; padding: 5px 8px; border-radius: 4px; background: var(--wash); color: var(--ink); }
.pill--side { background: var(--lime-soft); }

/* Catalogue -------------------------------------------------------------- */
.crumbs { font: 400 .9rem var(--mono); color: var(--muted); padding: 18px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); }
.cat-head h1 { font-size: clamp(1.45rem, 1vw + 1.1rem, 2rem); }
.cat-head { padding: 12px 0 26px; display: flex; gap: 20px; align-items: center; }
.cat-head p { margin: 0; }
.layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; padding-bottom: 64px; }
.filters { position: sticky; top: 100px; display: grid; gap: 16px; background: var(--wash); border-radius: var(--radius); padding: 18px; }
.filters h2 { font-size: 1rem; margin: 0; display: flex; align-items: center; gap: 8px; }
.filters .select { min-height: 46px; font-size: .95rem; }
.filters .filters__close, .filters .filters__apply { display: none; }
.years { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar strong { font-family: var(--mono); }
.chipset { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 8px 0 12px; border-radius: 999px;
  background: var(--ink); color: #fff; border: 0; font: 500 .9rem var(--font); cursor: pointer; --icon-ink: var(--lime);
}
.chip:hover { background: var(--olive); }
.filter-toggle { display: none; }
.empty { padding: 40px 24px; text-align: center; background: var(--wash); border-radius: var(--radius); }
.cant-find { border: 2px dashed var(--olive); background: var(--lime-soft); display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 20px; border-radius: var(--radius); }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.pager button { min-width: 44px; min-height: 44px; border-radius: 8px; border: 1px solid var(--primer); background: #fff; font: 700 1rem var(--mono); cursor: pointer; }
.pager button[aria-current="page"] { background: var(--ink); color: var(--lime); border-color: var(--ink); }

/* Item page -------------------------------------------------------------- */
.item { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: start; padding: 12px 0 56px; }
.item > *, .layout > *, .split > *, .hero .wrap > * { min-width: 0; }
.gallery__main { position: relative; background: #fff; border: 1px solid var(--primer); border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.gallery__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; height: 100%; scrollbar-width: none; }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track button { flex: 0 0 100%; scroll-snap-align: center; border: 0; padding: 0; background: none; cursor: zoom-in; }
.gallery__track img { width: 100%; height: 100%; object-fit: contain; }
.gallery__count { position: absolute; right: 10px; bottom: 10px; font: 700 .85rem var(--mono); background: rgb(21 23 15 / .8); color: #fff; padding: 4px 8px; border-radius: 4px; }
.gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.gallery__thumbs button { flex: 0 0 76px; height: 58px; border: 1px solid var(--primer); border-radius: 6px; padding: 0; background: #fff; cursor: pointer; overflow: hidden; }
.gallery__thumbs button[aria-current="true"] { border-color: var(--ink); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: contain; }
.item h1 { font-size: clamp(1.4rem, .9vw + 1.1rem, 1.9rem); margin: 12px 0 10px; }
.facts { margin: 0; display: grid; grid-template-columns: auto 1fr; }
.facts dt, .facts dd { padding: 10px 10px; border-bottom: 1px solid var(--primer); margin: 0; }
.facts dt { font: 700 .76rem/1.9 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.facts dd { font: 700 1.05rem var(--mono); }
.facts tr:last-child td { border: 0; }
.avail { display: inline-flex; align-items: center; gap: 8px; }
.avail::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: #3ab45f; }
.item__cta { display: grid; gap: 10px; margin: 20px 0; }
.item__cta .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.note { font-size: .92rem; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.includes { columns: 2; column-gap: 24px; list-style: none; padding: 0; margin: 0; }
.includes li { break-inside: avoid; display: flex; gap: 8px; align-items: flex-start; padding: 6px 0; }
/* Enquiry forms are as wide as the contact page's form column, (1100 − 40) ÷ 2, on every page. */
.enquire { background: var(--wash); border-radius: var(--radius); padding: 22px; margin-top: 8px; max-width: calc((var(--wrap) - 40px) / 2); }
/* Item page: reasons to choose C.A.B.S (left) beside the enquiry form (right), in the same two columns as the gallery
   and details above, tops aligned. */
.ask { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: start; padding: 0 0 48px; }
.ask > * { min-width: 0; }
.ask .enquire { max-width: none; margin-top: 0; }
.trust { background: var(--wash); border-radius: var(--radius); padding: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 22px 32px; }
.trust__logo { flex: 0 1 230px; width: 230px; max-width: 100%; height: auto; }
.trust__list { flex: 1 1 210px; list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.trust__list li { display: flex; align-items: center; gap: 12px; font-weight: 600; line-height: 1.3; }
.trust__list .i { width: 30px; height: 30px; }
.form { display: grid; gap: 14px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label .hint { font: 400 .88rem/1.3 var(--font); letter-spacing: 0; text-transform: none; }
.form .legal { margin: 0; font-size: .88rem; color: var(--muted); }
.form .select:has(option[value=""]:checked) { color: var(--muted); }
.form .select option { color: var(--ink); }
.form [aria-invalid="true"] { border-color: var(--danger); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.check input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--olive); flex: none; }
.req { color: var(--danger); }
.err, .field > .err { font: 400 .88rem/1.35 var(--font); letter-spacing: 0; text-transform: none; color: var(--danger); }
.hp { position: absolute; left: -9999px; }

/* Quote page ------------------------------------------------------------- */
.qlist { display: grid; gap: 10px; margin-bottom: 20px; }
.qrow { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--primer); border-radius: var(--radius); padding: 10px; }
.qrow img { width: 84px; height: 64px; object-fit: contain; background: #fff; border: 1px solid var(--primer); border-radius: 6px; }
.qrow h3 { font-size: 1rem; margin: 0 0 4px; }
.qrow input.input { min-height: 40px; font-size: .92rem; }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--steel); border-radius: 999px; }
.qty button { width: 40px; height: 40px; border: 0; background: none; cursor: pointer; border-radius: 50%; }
.qty span { min-width: 26px; text-align: center; font: 700 1rem var(--mono); }
.icon-btn { width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; cursor: pointer; display: grid; place-items: center; }
.icon-btn:hover { background: var(--wash); }
.done { text-align: center; padding: 30px 20px; }
.done .tag { font-size: 1.05rem; }

/* Steps (a real sequence) */
.how { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: how; list-style: none; padding: 0; margin: 0; }
.how li { background: #fff; border-radius: var(--radius); padding: 22px 18px; position: relative; border: 1px solid var(--primer); border-top: 4px solid var(--lime); }
.how li::before { counter-increment: how; content: counter(how); position: absolute; right: 16px; top: 12px; font: 700 2.2rem/1 var(--mono); color: var(--primer); }
.how h3 { margin: 12px 0 6px; }
.how p { margin: 0; color: var(--muted); font-size: .95rem; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: #fff; border-radius: var(--radius); border: 1px solid var(--primer); }
.faq summary { cursor: pointer; padding: 16px 18px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 700 1.4rem/1 var(--mono); color: var(--olive); }
.faq details[open] summary::after { content: '–'; }
.faq details > div { padding: 0 18px 16px; color: #3d4133; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.why { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.why li { display: flex; gap: 14px; align-items: flex-start; }
.why strong { display: block; font-size: 1.05rem; }
.photo-stack { position: relative; }
.photo-stack img { border-radius: var(--radius); box-shadow: var(--shadow); }

.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 6px; }
.cta-band .wrap { border-left: 5px solid var(--lime); padding-left: 24px; }
.cta-band p { margin: 0; font-size: 1.08rem; }

/* Footer */
.foot { background: var(--charcoal); color: #C9CCBF; font-size: .95rem; --icon-ink: #fff; border-top: 6px solid var(--lime); }
.foot .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; padding-top: 48px; padding-bottom: 32px; }
.foot h3, .foot .foot__h { color: #fff; font-size: .82rem; font-family: var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { color: var(--lime); }
.foot .contact li { display: flex; gap: 10px; align-items: flex-start; }
.foot__logo { background: #fff; border-radius: 8px; padding: 10px; display: inline-block; margin-bottom: 14px; }
.foot__logo img { width: 170px; }
.foot__base { border-top: 1px solid #3a3e30; padding: 16px 0; font-size: .85rem; }
.foot__base .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 0; padding-bottom: 0; flex-wrap: wrap; grid-template-columns: none; }

/* WhatsApp float + mobile action bar */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 50; display: flex; align-items: center; gap: 10px;
  background: #fff; color: var(--ink); text-decoration: none; border-radius: 999px; padding: 6px 18px 6px 6px;
  border: 1px solid var(--primer); box-shadow: 0 8px 24px rgb(0 0 0 / .16); font-weight: 700; line-height: 1.2;
}
.wa-float:hover { color: var(--ink); border-color: var(--steel); }
.wa-float .i { width: 46px; height: 46px; }
.wa-float small { display: block; font-weight: 400; font-size: .8rem; color: var(--muted); }
.wa-float.is-offline .i { filter: grayscale(1); opacity: .55; }
.actionbar { display: none; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgb(12 13 9 / .94); z-index: 90; display: none; }
.lightbox.is-open { display: grid; grid-template-rows: auto 1fr; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; color: #fff; font-family: var(--mono); --icon-ink: #fff; }
.lightbox__img { overflow: auto; display: grid; place-items: center; touch-action: pinch-zoom; }
.lightbox__img img { max-width: 100%; max-height: 100%; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 120px); background: var(--ink); color: #fff;
  padding: 12px 16px; border-radius: 12px; z-index: 95; display: flex; gap: 12px; align-items: center; transition: transform .25s;
  box-shadow: var(--shadow); --icon-ink: #fff;
}
.toast.is-on { transform: translate(-50%, 0); }
.toast a { color: var(--lime); font-weight: 700; }

/* Icon sheet */
.iconsheet { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; margin-bottom: 36px; }
.iconsheet figure { margin: 0; background: #fff; border: 1px solid var(--primer); border-radius: var(--radius); padding: 18px 8px 12px; text-align: center; }
.iconsheet figcaption { font: 400 .8rem var(--mono); color: var(--muted); margin-top: 10px; }
.iconsheet--dark figure { background: var(--charcoal); border-color: #3a3e30; --icon-ink: #fff; }
.iconsheet--dark figcaption { color: #C9CCBF; }

/* ------------------------------------------------------------------ mobile */
@media (max-width: 900px) {
  .hero .wrap, .item, .split, .ask { grid-template-columns: 1fr; gap: 28px; }
  .hero .wrap { padding-top: 28px; padding-bottom: 36px; }
  .hero::after { inset: 55% 0 0 0; }
  .hero__photo { display: none; }
  .layout { grid-template-columns: 1fr; }
  .how { grid-template-columns: 1fr 1fr; }
  .foot .wrap { grid-template-columns: 1fr 1fr; }
  .filters {
    position: fixed; inset: auto 0 0 0; top: auto; max-height: 86vh; overflow: auto; z-index: 80; border-radius: 18px 18px 0 0;
    background: #fff; padding: 12px 18px calc(18px + env(safe-area-inset-bottom)); transform: translateY(105%); transition: transform .25s;
    box-shadow: 0 -10px 40px rgb(0 0 0 / .25);
  }
  .filters.is-open { transform: none; }
  .filters::before { content: ''; width: 44px; height: 5px; border-radius: 3px; background: var(--steel); margin: 0 auto 4px; }
  .filters .filters__close { display: grid; position: absolute; right: 8px; top: 8px; }
  .filters .filters__apply { display: flex; position: sticky; bottom: 0; }
  .filter-toggle { display: inline-flex; }
  .scrim { position: fixed; inset: 0; background: rgb(0 0 0 / .45); z-index: 70; display: none; }
  .scrim.is-on { display: block; }
}

@media (max-width: 720px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .util .util__note span:not(.dot) { display: none; }
  .util .wrap { gap: 16px; }
  .util .hide-sm { display: none; }
  .head__bar { min-height: 64px; gap: 8px; }
  .logo img { width: 150px; }
  .search { display: none; position: absolute; left: 0; right: 0; top: 100%; max-width: none; padding: 10px var(--gutter); background: #fff; box-shadow: 0 8px 20px rgb(0 0 0 / .1); }
  .search.is-open { display: block; }
  .search > .i { left: calc(var(--gutter) + 16px); }
  .menu-btn, .search-btn { display: grid; place-items: center; }
  .quote-btn .label { display: none; }
  .quote-btn { padding: 0 12px; }
  .nav { display: none; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; }
  .nav li:first-child a { margin-left: 0; }
  .nav a { min-height: 54px; border-top: 1px solid rgb(21 23 15 / .12); }
  .cats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cat { grid-template-columns: auto 1fr; align-items: center; padding: 12px; gap: 10px; }
  .cat .i--lg { width: 34px; height: 34px; }
  .cat small { grid-column: 2; margin-top: -8px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card__body { padding: 10px 12px 12px; }
  .card h3 { font-size: .95rem; }
  .card__foot { padding: 0 12px 12px; }
  .card__foot .btn { min-height: 42px; padding: 0 10px; font-size: .88rem; }
  .card__foot .btn .label { display: none; }
  .card__media .tag { font-size: .72rem; left: 6px; top: 6px; }
  .how { grid-template-columns: 1fr; }
  .form .two, .item__cta .row { grid-template-columns: 1fr; }
  .includes { columns: 1; }
  .foot .wrap { grid-template-columns: 1fr; gap: 24px; }
  .qrow { grid-template-columns: 64px 1fr; }
  .qrow img { width: 64px; height: 50px; }
  .qrow .qrow__actions { grid-column: 1 / -1; display: flex; justify-content: space-between; }
  .plate { padding: 22px 16px 18px; }
  .wa-float { bottom: 14px; right: 14px; padding: 0; border: 0; background: none; box-shadow: none; }
  .wa-float .i { width: 58px; height: 58px; filter: drop-shadow(0 6px 14px rgb(0 0 0 / .28)); }
  .wa-float.is-offline .i { filter: grayscale(1) drop-shadow(0 6px 14px rgb(0 0 0 / .2)); opacity: .7; }
  .wa-float .wa-text { display: none; }
  body.has-actionbar .wa-float { display: none; }
  body.has-actionbar { padding-bottom: 76px; }
  .actionbar {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: #fff; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgb(0 0 0 / .12);
  }
  .actionbar .btn { padding: 0 10px; min-height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Prototype-only: marks copy that CABS must confirm before launch */
.todo { background: #FFF4C2; border-bottom: 2px dashed #C9A400; padding: 0 3px; border-radius: 2px; color: #4a3d00; font-weight: inherit; }
.proto-note { background: var(--mist); color: var(--muted); border-bottom: 1px solid var(--primer); font-size: .85rem; text-align: center; padding: 6px 12px; }

/* ---- SEO-structure components (hub copy, link chips, tables, guides) ---- */
[hidden] { display: none !important; }
.cat-head h1 { margin: 0 0 6px; }
.hub-summary { margin: 0; max-width: 70ch; }
.hub-h { font-size: 1rem; margin: 18px 0 10px; font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.linkchips { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.linkchips a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--primer); border-radius: 999px;
  background: #fff; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .94rem; }
.linkchips a:hover { border-color: var(--lime); background: var(--lime-soft); }
.linkchips small { font-family: var(--mono); color: var(--muted); }
.hub-table { width: 100%; border-collapse: collapse; margin: 0 0 28px; background: #fff; border: 1px solid var(--primer); border-radius: var(--radius); overflow: hidden; font-size: .95rem; }
.hub-table caption { text-align: left; font-weight: 700; padding: 0 0 8px; }
.hub-table th, .hub-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--primer); vertical-align: top; }
.hub-table thead th { background: var(--mist); font: 700 .74rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.hub-table tbody th { font-weight: 700; white-space: nowrap; }
.field.is-fixed .select { background-color: var(--mist); color: var(--ink); }
.counterpart { margin-top: 14px; }
.article { max-width: 820px; }
.article h1 { margin-top: 12px; }
.article h2 { margin-top: 32px; }
.byline { color: var(--muted); font-size: .92rem; }
.guides { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.guide-card { background: #fff; border: 1px solid var(--primer); border-top: 4px solid var(--lime); border-radius: var(--radius); padding: 20px; }
.guide-card h2, .guide-card h3 { font-size: 1.1rem; margin: 0 0 8px; }
.guide-card h2 a, .guide-card h3 a { color: var(--ink); text-decoration: none; }
.guide-card h2 a:hover, .guide-card h3 a:hover { color: var(--olive); }
/* Article bodies written in the admin editor: plain tags, no classes. */
.prose h3 { margin: 24px 0 8px; font-size: 1.12rem; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 6px 0; }
.prose li p, .prose th p, .prose td p { margin: 0; }
.prose blockquote { margin: 20px 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--lime); color: #3d4133; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 24px; background: #fff; border: 1px solid var(--primer); font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--primer); vertical-align: top; }
.prose thead th, .prose tr:first-child th { background: var(--mist); font: 700 .74rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.prose tbody td:first-child { font-weight: 700; }
@media (max-width: 720px) { .prose table { font-size: .88rem; } .prose th, .prose td { padding: 8px 10px; } }
.guide-card p { color: var(--muted); margin: 0 0 8px; }
@media (max-width: 720px) { .hub-table td:last-child, .hub-table th:last-child { display: none; } }
