/* The Brand Bandit: shared styles for every page.
   Clean retail layout (reference: wearfigs.com). White space, black type, photo tiles. */

:root {
  --ink: #000;
  --ink-2: #3c3c3c;
  --muted: #707070;
  --line: #e4e4e4;
  --paper: #fff;
  --wash: #f4f4f2;
  --black: #1d1d1d;
  --navy: #1f2b45;
  --moss: #4a5541;
  --clay: #8a4b32;
  --action: #1f4fd8;
  --ok: #1d6b3a;
  --err: #b3261e;
  --r-tile: 10px;
  --r-btn: 999px;
  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 40px);
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--font);
  font-variation-settings: "wdth" 100;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--action); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Announcement bar */
.announce {
  background: var(--ink); color: #fff; text-align: center;
  font-size: 14px; letter-spacing: .04em; padding: 10px var(--gut);
}
.announce a { color: #fff; }

/* Header */
.head { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; }
.head.scrolled { border-bottom-color: var(--line); }
.head-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 72px; }
.head-left, .head-right { display: flex; gap: 6px; align-items: center; }
.head-right { justify-content: flex-end; }
.icon-btn {
  width: 44px; height: 44px; display: inline-grid; place-items: center;
  border: 0; background: none; border-radius: 50%; cursor: pointer; text-decoration: none; position: relative;
}
.icon-btn:hover { background: var(--wash); }
.icon-btn svg { width: 24px; height: 24px; }
.badge {
  position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: var(--action); color: #fff; font-size: 12px; font-weight: 700;
  display: grid; place-items: center;
}
.badge[hidden] { display: none; }
.wordmark {
  text-decoration: none; display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-variation-settings: "wdth" 112; font-size: 23px; letter-spacing: .01em; white-space: nowrap;
}
.wordmark .mark { width: 30px; height: 30px; }
.nav-desktop { display: none; gap: 26px; font-size: 15px; font-weight: 600; }
.nav-desktop a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-desktop a:hover, .nav-desktop a[aria-current="page"] { border-bottom-color: var(--ink); }
@media (min-width: 980px) {
  .nav-desktop { display: flex; }
  .menu-btn { display: none !important; }
  .head-row { grid-template-columns: auto 1fr auto; gap: 40px; }
  .wordmark { order: -1; }
}
@media (max-width: 420px) { .wordmark { font-size: 19px; } .wordmark .mark { width: 26px; height: 26px; } }

/* Slide out menu */
.drawer { position: fixed; inset: 0; z-index: 50; display: none; }
.drawer.open { display: block; }
.drawer-bg { position: absolute; inset: 0; background: rgba(0,0,0,.4); }
.drawer-panel {
  position: absolute; top: 0; left: 0; bottom: 0; width: min(360px, 88vw); background: #fff;
  padding: 18px var(--gut) 32px; overflow-y: auto; animation: slide .22s ease-out;
}
@keyframes slide { from { transform: translateX(-100%); } }
.drawer-panel nav a { display: block; padding: 14px 0; font-size: 20px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
.drawer-panel .sub { font-size: 14px; color: var(--muted); margin: 26px 0 6px; letter-spacing: .08em; text-transform: uppercase; }

/* Section rhythm */
.section { padding: clamp(40px, 6vw, 72px) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.h-display {
  margin: 0; font-weight: 800; font-variation-settings: "wdth" 110;
  font-size: clamp(30px, 4.6vw, 52px); line-height: 1.04; letter-spacing: -.01em;
}
.h-section { margin: 0; font-weight: 700; font-size: clamp(24px, 3vw, 34px); line-height: 1.12; }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 60ch; margin: 12px 0 0; }
.link-more { font-weight: 600; font-size: 15px; white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 28px; border-radius: var(--r-btn); border: 2px solid var(--ink);
  background: var(--ink); color: #fff; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
}
.btn:hover { background: #333; border-color: #333; }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: var(--wash); border-color: var(--wash); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--wash); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* Service tiles: the "what do you need" row */
.tiles { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.tile { scroll-snap-align: start; text-decoration: none; display: block; }
.tile-img { aspect-ratio: 1; border-radius: var(--r-tile); overflow: hidden; position: relative; }
.tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tile:hover .tile-img img { transform: scale(1.04); }
.tile-name { margin: 14px 0 2px; font-size: 18px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.tile-desc { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 640px) { .tiles { grid-auto-columns: 62%; } }

/* Full bleed photo banner */
.banner { position: relative; min-height: clamp(460px, 72vh, 760px); display: grid; align-items: end; overflow: hidden; background: var(--wash); }
.banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0) 55%); }
.banner-copy { position: relative; z-index: 1; color: #fff; text-align: center; padding: 0 var(--gut) clamp(36px, 6vw, 64px); }
.banner-copy .h-display { color: #fff; text-transform: uppercase; }
.banner-copy p { margin: 12px auto 22px; max-width: 46ch; font-size: 18px; }

/* Product grid */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.card { text-decoration: none; display: block; }
.card-img { aspect-ratio: 4 / 5; background: var(--wash); border-radius: var(--r-tile); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.card-name { margin: 12px 0 2px; font-weight: 600; font-size: 16px; line-height: 1.3; }
.card-meta { margin: 0; color: var(--muted); font-size: 14px; }
.card-price { margin: 4px 0 0; font-weight: 600; }

/* Client store cards */
.stores { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 900px) { .stores { grid-template-columns: repeat(5, 1fr); } }
.store { text-decoration: none; border: 1px solid var(--line); border-radius: var(--r-tile); padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.store:hover { border-color: var(--ink); }
.store-logo { aspect-ratio: 1; display: grid; place-items: center; background: var(--wash); border-radius: 6px; overflow: hidden; }
.store-logo img { width: 78%; height: 78%; object-fit: contain; }
.store-logo span { font-weight: 800; font-size: 34px; color: var(--ink-2); }
.store-name { font-weight: 700; font-size: 16px; line-height: 1.25; margin: 0; }
.store-count { font-size: 14px; color: var(--muted); margin: 0; }

/* Proof split */
.split { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr 1fr; } }
.split-media { border-radius: var(--r-tile); overflow: hidden; background: var(--navy); aspect-ratio: 5 / 4; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.stat-row { display: flex; gap: 36px; margin: 26px 0; flex-wrap: wrap; }
.stat b { display: block; font-size: clamp(34px, 4vw, 46px); font-weight: 800; font-variation-settings: "wdth" 110; line-height: 1; }
.stat span { font-size: 15px; color: var(--muted); }

/* Steps (a real sequence) */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 28px; counter-reset: s; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: s; border-top: 2px solid var(--ink); padding-top: 16px; }
.steps li::before { content: counter(s); display: block; font-weight: 800; font-size: 28px; margin-bottom: 6px; }
.steps h3 { margin: 0 0 6px; font-size: 19px; }
.steps p { margin: 0; color: var(--ink-2); font-size: 16px; }

/* Help band */
.help { background: var(--wash); border-radius: var(--r-tile); padding: clamp(28px, 5vw, 56px); display: grid; gap: 20px; align-items: center; }
@media (min-width: 900px) { .help { grid-template-columns: 1fr auto; } }

/* Footer */
.foot { background: var(--ink); color: #d6d6d6; padding: 56px 0 40px; margin-top: 40px; font-size: 15px; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot-grid { display: grid; gap: 32px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.foot-grid > div { min-width: 0; }
.foot-grid > div:first-child { grid-column: 1 / -1; }
@media (min-width: 900px) { .foot-grid > div:first-child { grid-column: auto; } }
.foot a { overflow-wrap: anywhere; }
.foot h4 { color: #fff; margin: 0 0 12px; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot .fine { margin-top: 40px; padding-top: 20px; border-top: 1px solid #333; color: #9a9a9a; font-size: 13px; }

/* Forms (order flow) */
.flow { max-width: 720px; margin: 0 auto; padding: clamp(24px, 5vw, 56px) var(--gut) 80px; }
.progress { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; margin: 8px 0 28px; }
.progress span { display: block; height: 100%; background: var(--ink); width: 0; transition: width .3s ease; }
.step-count { font-size: 14px; color: var(--muted); margin: 0; }
.q { margin: 0 0 6px; font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; line-height: 1.12; }
.q-help { margin: 0 0 24px; color: var(--ink-2); }
.choices { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; pointer-events: none; }
.choice label {
  display: flex; flex-direction: column; gap: 4px; min-height: 76px; padding: 16px 18px;
  border: 2px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 600;
}
.choice label small { font-weight: 400; color: var(--muted); font-size: 14px; }
.choice input:checked + label { border-color: var(--ink); background: var(--wash); box-shadow: inset 0 0 0 1px var(--ink); }
.choice input:focus-visible + label { outline: 3px solid var(--action); outline-offset: 2px; }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label { font-weight: 600; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 52px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 10px; background: #fff;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ink); outline: none; }
.drop {
  display: grid; place-items: center; text-align: center; gap: 6px; min-height: 150px; padding: 20px;
  border: 2px dashed #bdbdbd; border-radius: 12px; cursor: pointer; background: #fafafa;
}
.drop.has { border-style: solid; border-color: var(--ink); background: #fff; }
.drop img { max-height: 110px; width: auto; }
.flow-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; }
.err { color: var(--err); font-weight: 600; margin: 12px 0 0; min-height: 1.4em; }
.done { text-align: center; padding: 40px 0; }
.done .check { width: 64px; height: 64px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; margin: 0 auto 18px; }
.ref { display: inline-block; margin-top: 8px; padding: 6px 14px; background: var(--wash); border-radius: 6px; font-weight: 700; letter-spacing: .04em; }

/* Admin */
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: 13px; color: var(--muted); font-weight: 600; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--wash); }

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