/* ZAAC redesign prototypes: shared B2B layer.
   Structure and behaviour only. Each design sets the tokens below in its own
   style.css, so the same header, chooser, form and bars take three skins.
   Logical properties throughout, so an Arabic (RTL) page mirrors cleanly. */

:root {
  --bg: #ffffff;
  --surface: #f4f4f4;
  --ink: #000000;
  --ink-2: #2b2b2b;
  --line: rgba(0, 0, 0, .16);
  --accent: #4a5a2a;
  --cta-bg: #000000;
  --cta-ink: #ffffff;
  --field-bg: #ffffff;
  --error: #9b1c1c;
  --font-display: system-ui, sans-serif;
  --font-body: system-ui, sans-serif;
  --radius-ctl: 0px;
  --radius-chip: 0px;
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 100px;
  --bar-h: 60px;
  --press: 160ms cubic-bezier(.3, .7, .4, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); text-wrap: balance; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip:focus {
  position: fixed; inset-block-start: 8px; inset-inline-start: 8px; z-index: 100;
  width: auto; height: auto; margin: 0; padding: 10px 14px; clip: auto;
  background: var(--cta-bg); color: var(--cta-ink);
}

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- Buttons: one press spring for every control ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border: 2px solid var(--cta-bg); border-radius: var(--radius-ctl);
  background: var(--cta-bg); color: var(--cta-ink);
  font: 700 16px/1.2 var(--font-display); text-decoration: none; cursor: pointer;
  transition: transform var(--press), background-color var(--press), color var(--press);
}
.btn:active, .chip-opt:active, .add-btn:active { transform: scale(.97); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--ink); }
@media (hover: hover) {
  .btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
  .btn-quiet:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; inset-block-start: 0; z-index: 50;
  height: var(--header-h);
  background: var(--bg);
  border-block-end: 1px solid var(--line);
}
.header-in { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand-mark { flex: none; display: block; }
.brand-mark img { width: 84px; height: 84px; }  /* brand rule: at least 80 px on screen */
.site-nav { margin-inline-start: auto; display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); }
.site-nav a:not(.btn) {
  padding: 12px 2px; font: 600 15px/1 var(--font-display); color: var(--ink);
  text-decoration: none; border-block-end: 2px solid transparent;
}
.site-nav a:not(.btn):hover, .site-nav a[aria-current="true"] { border-block-end-color: var(--accent); }
.site-nav .btn { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.menu-toggle {
  display: none; margin-inline-start: auto; width: 48px; height: 48px;
  border: 0; background: none; cursor: pointer;
}
.menu-toggle span { display: block; width: 24px; height: 2px; margin: 5px auto; background: var(--ink); }

@media (max-width: 859px) {
  :root { --header-h: 78px; }
  .brand-mark img { width: 66px; height: 66px; }  /* same as the live site on phones */
  .js .menu-toggle { display: block; }
  .js .site-nav {
    position: absolute; inset-inline: 0; inset-block-start: var(--header-h);
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 20px; background: var(--bg); border-block-end: 1px solid var(--line);
  }
  .js .site-nav.open { display: flex; }
  .js .site-nav a:not(.btn) { padding: 16px 0; font-size: 17px; border-block-end: 1px solid var(--line); }
  .js .site-nav .btn { margin-block-start: 16px; }
  /* Without script the nav stays visible and wraps. */
  html:not(.js) .site-header { height: auto; position: static; }
  html:not(.js) .header-in { flex-wrap: wrap; padding-block: 10px; }
  html:not(.js) .site-nav { flex-wrap: wrap; margin-inline-start: 0; }
}

/* ---------- Mobile bottom bar (thumb zone) ---------- */
.bottom-bar { display: none; }
@media (max-width: 859px) {
  body { padding-block-end: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px)); }
  .bottom-bar {
    position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 60;
    display: grid; grid-template-columns: 1fr 1fr 1.4fr;
    height: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px));
    padding-block-end: env(safe-area-inset-bottom, 0px);
    background: var(--bg); border-block-start: 1px solid var(--line);
  }
  .bottom-bar a {
    display: flex; align-items: center; justify-content: center;
    font: 700 15px/1 var(--font-display); color: var(--ink); text-decoration: none;
  }
  .bottom-bar a + a { border-inline-start: 1px solid var(--line); }
  .bottom-bar a.bar-cta { background: var(--cta-bg); color: var(--cta-ink); border: 0; }
}

/* ---------- Trust line: facts as a sentence, never a badge row ---------- */
.trust { font-size: 16px; color: var(--ink-2); max-width: 70ch; }

/* ---------- "Find your business" chooser (native radios) ---------- */
.chooser-opts { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-opt { position: relative; display: inline-flex; transition: transform var(--press); }
.chip-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip-opt span {
  display: inline-flex; align-items: center; min-height: 46px; padding: 10px 16px;
  border: 1.5px solid var(--ink); border-radius: var(--radius-chip);
  font: 600 15px/1.2 var(--font-display); color: var(--ink); background: transparent;
  transition: background-color var(--press), color var(--press);
}
.chip-opt input:checked + span { background: var(--ink); color: var(--bg); }
.chip-opt input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (hover: hover) { .chip-opt:hover span { border-color: var(--accent); } }
.chooser-note { min-height: 1.6em; margin-block-start: 16px; font-size: 16px; color: var(--ink-2); }
.chooser-note a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }

/* ---------- Add to inquiry ---------- */
.add-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 0;
  border: 0; background: none; cursor: pointer;
  font: 600 15px/1.2 var(--font-display); color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--accent);
  text-decoration-thickness: 2px; text-underline-offset: 5px;
  transition: transform var(--press);
}
.add-btn[aria-pressed="true"] { text-decoration: none; color: var(--accent); }
html:not(.js) .add-btn { display: none; }

.picked { display: none; margin-block-end: 20px; }
.picked.has-items { display: block; }
.picked p { font: 600 14px/1.3 var(--font-display); color: var(--ink); margin-block-end: 8px; }
.picked ul { display: flex; flex-wrap: wrap; gap: 8px; }
.picked li {
  padding: 6px 12px; border: 1.5px solid var(--accent); border-radius: var(--radius-chip);
  font-size: 14px; color: var(--ink);
}

/* ---------- Inquiry form ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.form-field.full { grid-column: 1 / -1; }
.form-field label, .field-label { font: 600 14px/1.3 var(--font-display); color: var(--ink); }
.form-field input[type="text"], .form-field input[type="email"], .form-field input[type="tel"],
.form-field select, .form-field textarea {
  width: 100%; min-height: 48px; padding: 11px 13px;
  border: 1.5px solid var(--ink-2); border-radius: var(--radius-ctl);
  background: var(--field-bg); color: var(--ink); font-size: 16px;
}
.form-field textarea { min-height: 132px; resize: vertical; }
.form-field .hint { font-size: 13.5px; font-weight: 400; color: var(--ink-2); }
.form-field .error-msg { display: none; font-size: 14px; font-weight: 600; color: var(--error); }
.form-field.error .error-msg { display: block; }
.form-field.error input, .form-field.error textarea { border-color: var(--error); border-width: 2px; }
.check-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.check-chips label {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px;
  border: 1.5px solid var(--ink-2); border-radius: var(--radius-chip);
  font: 400 15px/1.2 var(--font-body); color: var(--ink); cursor: pointer;
}
.check-chips input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.check-chips label:has(input:checked) { border-color: var(--accent); border-width: 2px; padding: 7.5px 13.5px; }
.form-actions { margin-block-start: 24px; }
.form-status { margin-block-start: 16px; font-weight: 600; }
.form-status.ok { color: var(--accent); }
.form-status.fail { color: var(--error); }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Contact details ---------- */
.contact-list { display: grid; gap: 10px; margin-block: 24px; }
.contact-list a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }

/* ---------- Footer ---------- */
.site-footer { padding-block: 56px 40px; border-block-start: 1px solid var(--line); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
.footer-grid h2 { font-size: 15px; margin-block-end: 12px; }
.footer-grid li { margin-block-end: 8px; }
.footer-grid a { text-underline-offset: 3px; }
.footer-word { font: 800 28px/1 var(--font-display); color: var(--ink); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-block-start: 40px; padding-block-start: 20px; border-block-start: 1px solid var(--line);
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Per-item add buttons and brand notes ---------- */
.sku-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.add-mini { flex: none; min-height: 44px; padding: 6px 2px; font-size: 14px; }
.brand-note { margin-block-start: 10px; font-size: 15px; max-width: 38ch; }

/* ---------- Inquiry list ---------- */
.inql-open {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 4px;
  border: 0; background: none; cursor: pointer; font: 600 15px/1 var(--font-display); color: var(--ink);
}
.inql-count {
  display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding-inline: 6px;
  border: 1.5px solid var(--ink); border-radius: 999px; font-size: 13px; line-height: 1;
}
.inql-open.has-items .inql-count { background: var(--accent); border-color: var(--accent); color: #fff; }
.inql {
  position: fixed; inset: 0; margin: 0; margin-inline-start: auto;
  width: min(440px, 100vw); height: 100dvh; max-height: none; max-width: none;
  padding: 24px 22px 28px; border: 0; overflow-y: auto;
  background: var(--bg); color: var(--ink-2);
}
.inql::backdrop { background: rgba(0, 0, 0, .5); }
.inql-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-block-end: 8px; }
.inql-head h2 { font-size: 24px; line-height: 1.15; letter-spacing: -.01em; }
.inql-close, .inql-remove {
  min-height: 44px; padding: 8px 4px; border: 0; background: none; cursor: pointer;
  font: 600 15px/1 var(--font-display); color: var(--ink); text-decoration: underline; text-underline-offset: 4px;
}
.inql-type { min-height: 1.4em; font-size: 15px; }
.inql-items { margin-block: 12px 20px; }
.inql-items li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding-block: 14px; border-block-start: 1px solid var(--line); }
.inql-name { grid-column: 1 / -1; font: 700 17px/1.25 var(--font-display); color: var(--ink); }
.inql-items label { grid-column: 1 / -1; font-size: 13.5px; }
.inql-items input {
  min-height: 44px; padding: 8px 10px; border: 1.5px solid var(--ink-2); border-radius: var(--radius-ctl);
  background: var(--field-bg); color: var(--ink); font-size: 16px; width: 100%;
}
.inql-empty { margin-block: 24px; }
.inql-actions { display: grid; gap: 10px; }
.inql-actions[hidden], .inql-empty[hidden], .inql-note[hidden] { display: none; }
.inql-note { margin-block-start: 12px; font-size: 14px; }
html:not(.js) .inql-open { display: none; }
@media (max-width: 859px) { .js .site-nav .inql-open { padding-block: 16px; font-size: 17px; justify-content: flex-start; } }

/* ---------- Visitor measurement notice (only when switched on) ---------- */
.measure-bar {
  position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 70;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px var(--gutter);
  background: var(--bg); border-block-start: 2px solid var(--ink);
}
.measure-bar p { flex: 1 1 320px; font-size: 15px; max-width: none; }
.measure-bar .btn { min-height: 44px; padding: 8px 16px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
