/* Diagos Vault — galvanised steel, brass hardware, kraft stock tags. */
:root {
  --zinc: #E4E7EA;       /* page background: galvanised steel */
  --zinc-2: #D3D8DC;     /* panels, image wells */
  --paper: #F7F8F9;      /* cards, drawer */
  --graphite: #132358;   /* brand navy: text, dark sections */
  --steel: #56606A;      /* secondary text */
  --line: #B9C0C6;       /* rules and borders */
  --brass: #C2531C;      /* brand orange, deepened for buttons */
  --brass-ink: #A8451A;  /* orange for small text on light */
  --brass-lit: #F08A4F;  /* orange on navy */
  --kraft: #FBE1D0;      /* stock tags */
  --ok: #2E6B4A;
  --warn: #9A3B2A;

  --display: "Big Shoulders Stencil Display", "Big Shoulders Display", Impact, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: .833rem;
  --step-0: 1rem;
  --step-1: 1.2rem;
  --step-2: 1.44rem;
  --step-3: 2.074rem;
  --step-4: 2.986rem;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--zinc);
  color: var(--graphite);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--zinc) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo {
  font-family: var(--display); font-weight: 800; font-size: 1.7rem; letter-spacing: .02em;
  text-decoration: none; line-height: 1; display: flex; align-items: center; gap: 10px; white-space: nowrap;
}
.logo svg { width: 32px; height: 32px; flex: none; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; color: var(--steel); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--graphite); }
.bag-btn {
  display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--graphite);
  background: transparent; border-radius: 999px; padding: 7px 14px; cursor: pointer; font-weight: 600;
}
.bag-btn:hover { background: var(--graphite); color: var(--paper); }
.bag-count {
  min-width: 22px; height: 22px; border-radius: 11px; background: var(--brass); color: #fff;
  font-size: .75rem; display: inline-grid; place-items: center; padding: 0 6px;
}
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }

@media (max-width: 760px) {
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px var(--gutter); border-top: 1px solid var(--zinc-2); }
  .menu-btn { display: block; margin-left: auto; }
  .bag-btn .bag-label { display: none; }
  .site-header .logo { font-size: 1.45rem; }
  .grid { grid-template-columns: 1fr 1fr; gap: 24px 12px; }
  .card-meta { flex-direction: column; align-items: start; gap: 2px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 4px; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--graphite); transition: background .15s, color .15s;
}
.btn-solid { background: var(--graphite); color: var(--paper); }
.btn-solid:hover { background: #0B1640; }
.btn-line { background: transparent; }
.btn-line:hover { background: var(--graphite); color: var(--paper); }
.btn-brass { background: var(--brass); border-color: var(--brass); color: #fff; }
.btn-brass:hover { background: var(--brass-ink); border-color: var(--brass-ink); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------- Hero ---------- */
.hero { padding: clamp(32px, 6vw, 72px) 0 clamp(40px, 7vw, 96px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero h1 {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(4.5rem, 15vw, 11.5rem); line-height: .82; letter-spacing: -.01em; margin: 0 0 28px;
}
.hero h1 span { display: block; }
.hero h1 span:last-child { color: transparent; -webkit-text-stroke: 2px var(--graphite); }
.hero .lead { font-size: var(--step-1); max-width: 34ch; margin: 0 0 28px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.promises { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--steel); font-size: var(--step--1); }
.promises li { display: flex; align-items: center; gap: 8px; }
.promises svg { width: 16px; height: 16px; flex: none; color: var(--ok); }

/* The dial: the one memorable thing */
.dial { position: relative; width: min(100%, 460px); aspect-ratio: 1; margin-left: auto; }
.dial svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.dial .ring-turn { transform-origin: 50% 50%; animation: unlock 1.8s cubic-bezier(.3,.7,.2,1) .2s both; }
.dial .core {
  position: absolute; inset: 21%; border-radius: 50%; overflow: hidden; background: var(--zinc-2);
  box-shadow: inset 0 0 0 6px var(--graphite);
  animation: reveal .6s ease-out 1.7s both;
}
.dial .core img { width: 100%; height: 100%; object-fit: cover; }
.dial .core-label {
  position: absolute; left: 50%; bottom: 3%; transform: translateX(-50%);
  background: var(--kraft); padding: 6px 14px; border-radius: 3px; font-weight: 600; font-size: var(--step--1);
  white-space: nowrap; text-decoration: none; box-shadow: 0 2px 0 rgba(19,35,88,.25);
}
@keyframes unlock { 0% { transform: rotate(-200deg); } 55% { transform: rotate(24deg); } 75% { transform: rotate(-8deg); } 100% { transform: rotate(0); } }
@keyframes reveal { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .dial .ring-turn, .dial .core { animation: none; } }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .dial { margin: 8px auto 0; width: min(88%, 380px); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 7vw, 96px) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section h2 {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: .95; margin: 0;
}
.section-head p { margin: 8px 0 0; color: var(--steel); max-width: 52ch; }
.text-link { font-weight: 600; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }

/* Categories: three doors */
.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.door {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  min-height: 300px; padding: 22px; border-radius: 6px; text-decoration: none;
  background: var(--graphite); color: var(--paper); overflow: hidden;
}
.door img { position: absolute; right: -12%; bottom: -16%; width: 62%; opacity: .95; mix-blend-mode: luminosity; border-radius: 50%; transition: transform .4s; }
.door:hover img { transform: rotate(-6deg) scale(1.04); }
.door h3 { font-family: var(--display); font-weight: 800; font-size: var(--step-4); text-transform: uppercase; margin: 0; line-height: 1; position: relative; }
.door span { position: relative; color: var(--brass-lit); font-weight: 600; }
@media (max-width: 760px) { .doors { grid-template-columns: 1fr; } .door { min-height: 170px; } .door img { width: 38%; right: -4%; bottom: -12%; } }

/* ---------- Product cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 28px 18px; }
.card { text-decoration: none; display: flex; flex-direction: column; gap: 12px; }
.card-img { position: relative; aspect-ratio: 4 / 5; background: var(--zinc-2); border-radius: 6px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card:hover .card-img img { transform: scale(1.04); }
.tag {
  position: absolute; top: 12px; left: 12px; background: var(--kraft); color: var(--graphite);
  font-size: .78rem; font-weight: 600; padding: 4px 10px 4px 18px; border-radius: 2px;
}
.tag::before { content: ""; position: absolute; left: 6px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--zinc); }
.card-brand { font-size: var(--step--1); color: var(--steel); margin: 0; }
.card-name { font-weight: 600; margin: 0; line-height: 1.3; }
.card-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.price { font-weight: 700; font-size: var(--step-1); font-variant-numeric: tabular-nums; }
.card-sizes { font-size: var(--step--1); color: var(--steel); }

/* ---------- How we check ---------- */
.checks { background: var(--graphite); color: var(--paper); }
.checks .section-head p { color: #AEB6BD; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.steps li { counter-increment: s; padding: 24px 24px 8px 0; border-top: 2px solid #2C3D78; }
.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--brass-lit); color: var(--brass-lit); font-family: var(--display); font-weight: 800; font-size: 1.3rem; margin-bottom: 18px;
}
.steps h3 { margin: 0 0 8px; font-size: var(--step-1); }
.steps p { margin: 0; color: #C2C8CE; font-size: .95rem; max-width: 30ch; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; gap: 0 24px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- eBay picks ---------- */
.ebay h3 { font-size: var(--step-1); margin: 28px 0 14px; }
.ebay .disclosure { font-size: var(--step--1); color: var(--steel); }
.ebay .grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.ebay .card-img { aspect-ratio: 1; background: #fff; }
.ebay .card-img img { object-fit: contain; }
.ebay-cta { font-size: var(--step--1); font-weight: 600; color: var(--brass-ink); }

/* ---------- Shop page ---------- */
.page-title { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(3rem, 9vw, 6rem); line-height: .9; margin: 40px 0 8px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 24px 0 32px; padding: 14px 0; border-block: 1px solid var(--line); }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { border: 1.5px solid var(--line); background: transparent; border-radius: 999px; padding: 7px 16px; cursor: pointer; font-weight: 500; }
.pill[aria-pressed="true"] { background: var(--graphite); border-color: var(--graphite); color: var(--paper); }
.toolbar .spacer { flex: 1; }
.field { border: 1.5px solid var(--line); background: var(--paper); border-radius: 4px; padding: 8px 12px; }
.search { min-width: 200px; }
.result-count { color: var(--steel); font-size: var(--step--1); margin: -16px 0 20px; }
.empty { padding: 48px 0; color: var(--steel); }

/* ---------- Product page ---------- */
.crumbs { font-size: var(--step--1); color: var(--steel); margin: 28px 0; }
.crumbs a { color: var(--steel); }
.pdp { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 64px); padding-bottom: 80px; }
.pdp-img { background: var(--zinc-2); border-radius: 6px; overflow: hidden; aspect-ratio: 1; position: sticky; top: 92px; }
.pdp-img img { width: 100%; height: 100%; object-fit: cover; }
.pdp h1 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: .95; margin: 4px 0 16px; }
.pdp .brand { color: var(--steel); font-weight: 600; margin: 0; }
.pdp .price { font-size: var(--step-3); margin: 0 0 24px; }
.size-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; margin: 10px 0 24px; }
.size { border: 1.5px solid var(--line); background: var(--paper); border-radius: 4px; padding: 12px 6px; cursor: pointer; font-weight: 600; }
.size[aria-pressed="true"] { border-color: var(--graphite); background: var(--graphite); color: var(--paper); }
.pdp .btn { width: 100%; }
.pdp .hint { font-size: var(--step--1); color: var(--warn); min-height: 1.4em; margin: 8px 0 0; }
.facts { margin: 32px 0 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; color: var(--steel); }
@media (max-width: 820px) { .pdp { grid-template-columns: 1fr; } .pdp-img { position: static; } }

/* ---------- Bag drawer ---------- */
.scrim { position: fixed; inset: 0; background: rgba(19,35,88,.45); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 40; }
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--paper); z-index: 50;
  transform: translateX(100%); transition: transform .28s cubic-bezier(.3,.7,.2,1); display: flex; flex-direction: column;
}
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.8rem; margin: 0; }
.icon-btn { background: none; border: 0; padding: 8px; cursor: pointer; border-radius: 4px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 22px; }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--zinc-2); }
.line img { width: 72px; height: 72px; object-fit: cover; border-radius: 4px; background: var(--zinc-2); }
.line p { margin: 0; }
.line .meta { color: var(--steel); font-size: var(--step--1); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 4px; margin-top: 8px; }
.qty button { background: none; border: 0; width: 30px; height: 30px; cursor: pointer; }
.qty span { min-width: 24px; text-align: center; font-variant-numeric: tabular-nums; }
.remove { background: none; border: 0; color: var(--steel); text-decoration: underline; cursor: pointer; font-size: var(--step--1); padding: 0; }
.drawer-foot { padding: 18px 22px 24px; border-top: 1px solid var(--line); }
.drawer-foot .row { display: flex; justify-content: space-between; margin-bottom: 6px; }
.drawer-foot .total { font-weight: 700; font-size: var(--step-1); }
.drawer-foot .btn { width: 100%; margin-top: 14px; }
.drawer-foot .msg { font-size: var(--step--1); color: var(--warn); margin: 10px 0 0; min-height: 1.2em; }
.bag-empty { padding: 40px 0; text-align: center; color: var(--steel); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, calc(100% + 32px)); background: var(--graphite); color: var(--paper);
  padding: 12px 18px; border-radius: 4px; z-index: 60; transition: transform .25s, visibility .25s; font-weight: 500;
  visibility: hidden;
}
.toast.show { transform: translate(-50%, 0); visibility: visible; }

/* ---------- Info pages ---------- */
.prose { max-width: 68ch; padding-bottom: 80px; }
.prose h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 2rem; margin: 48px 0 12px; }
.prose p, .prose li { color: #343C44; }

/* ---------- Footer ---------- */
.site-footer { background: var(--graphite); color: #C2C8CE; padding: 56px 0 32px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer .logo { color: var(--paper); }
.site-footer h3 { color: var(--paper); font-size: var(--step-0); margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #C2C8CE; text-decoration: none; }
.site-footer a:hover { color: var(--paper); text-decoration: underline; }
.site-footer .small { grid-column: 1 / -1; border-top: 1px solid #2C3D78; padding-top: 20px; font-size: var(--step--1); }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* Phones: two products per row (kept last so it wins over the base grid rules) */
@media (max-width: 760px) {
  .grid, .ebay .grid { grid-template-columns: 1fr 1fr; gap: 24px 12px; }
  .card-meta { flex-direction: column; align-items: start; gap: 2px; }
}
