/* ==========================================================================
   Superior Shavings — "mill-side"
   ---------------------------------------------------------------------------
   The plant sits in NSW softwood country and the pitch is proximity: from the
   saw into the bale with minimal handling. Industrial register — iron greys,
   the brand's own red (#BF2025 from the logo), pale shaving cream — carried
   by condensed grotesk display type and a mono "bale ticket" for the spec.
   Distinct from Breeder's Choice (forest/natural) and Mower Corner (spec
   plate): same ethos, different plant.
   ========================================================================== */

:root {
  --red: #BF2025;          /* the logo red */
  --red-dark: #9A191D;     /* AA-safe on smoke for small text */
  --iron: #1F2224;
  --iron-2: #292D30;
  --iron-line: #3B4044;
  --smoke: #F0EEEA;        /* shaving-pale ground */
  --paper: #FAF9F6;
  --line: #D9D5CE;
  --mute: #5C5E59;
  --mute-iron: #A2A7A3;

  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --step--1: clamp(0.8rem, 0.78rem + 0.1vw, 0.86rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.09rem);
  --step-1: clamp(1.25rem, 1.16rem + 0.45vw, 1.55rem);
  --step-2: clamp(1.6rem, 1.42rem + 0.9vw, 2.2rem);
  --step-3: clamp(2.1rem, 1.75rem + 1.75vw, 3.3rem);
  --step-4: clamp(2.9rem, 2rem + 4.4vw, 6rem);

  --gutter: clamp(1.25rem, 0.9rem + 1.75vw, 2.5rem);
  --band: clamp(3.5rem, 2.4rem + 4.5vw, 6.5rem);
  --shell: 74rem;
  --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }

body {
  margin: 0;
  background: var(--smoke);
  color: var(--iron);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  text-wrap: balance;
}

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
/* Brand-red rings vanish on iron (2.6:1) — go white on dark surfaces */
.header :focus-visible, .hero :focus-visible, .band--iron :focus-visible,
.footer :focus-visible, .page-head :focus-visible, .mobnav__panel :focus-visible {
  outline-color: #fff;
}
:focus:not(:focus-visible) { outline: none; }
::selection { background: var(--red); color: #fff; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

.shell { width: min(100% - (var(--gutter) * 2), var(--shell)); margin-inline: auto; }
.band { padding-block: var(--band); }
.band--tight { padding-block: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.band--iron { background: var(--iron); color: var(--smoke); }

.skip-link {
  position: absolute; left: var(--gutter); top: 0;
  transform: translateY(-120%); z-index: 100;
  background: var(--red); color: #fff; padding: 0.6rem 1rem;
  font: 600 var(--step--1) / 1 var(--mono);
  text-transform: uppercase; letter-spacing: 0.08em; text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }

/* Eyebrows */
.eyebrow {
  display: flex; align-items: center; gap: 0.75rem;
  margin: 0 0 1.5rem;
  font: 500 var(--step--1) / 1 var(--mono);
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--red-dark);
}
.eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.eyebrow--iron { color: var(--mute-iron); }
.eyebrow--iron::after { background: var(--iron-line); }

.section-title { font-size: var(--step-3); max-width: 22ch; }
.section-lede { max-width: 54ch; margin-top: 1.1rem; font-size: var(--step-1); line-height: 1.45; color: var(--mute); }
.section-lede--iron { color: var(--mute-iron); }

/* Buttons — red demands ink or white checked for AA */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.9rem 1.5rem;
  border: 1px solid transparent; border-radius: var(--radius);
  font: 600 var(--step-0) / 1 var(--body);
  text-decoration: none; cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.btn--primary { background: var(--red); color: #fff; }        /* #fff on #BF2025 = 5.9:1 */
.btn--primary:hover { background: var(--red-dark); color: #fff; }
.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn--ghost:hover { background: rgba(0, 0, 0, 0.06); }
.band--iron .btn--ghost:hover, .hero .btn--ghost:hover { background: rgba(255, 255, 255, 0.08); }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--iron); color: var(--smoke);
  border-bottom: 3px solid var(--red);
}
.header__inner { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); min-height: 4.25rem; padding-block: 0.6rem; }
/* Vector lockup (_includes/wordmark.svg): the original logo with its
   raster device rebuilt as a rect — pixel-identical, crisp at any size,
   and it matches the printed bale wrap. No chip needed. */
.wordmark { display: flex; align-items: center; flex: none; }
.wordmark svg { display: block; height: 2.4rem; width: auto; aspect-ratio: 1365 / 456; }
.nav { display: none; gap: 1.4rem; margin-left: auto; }
.nav a {
  font: 500 var(--step--1) / 1 var(--mono);
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--mute-iron); text-decoration: none;
  padding-block: 0.5rem; border-bottom: 2px solid transparent;
}
.nav a:hover { color: #fff; border-bottom-color: var(--red); }
.header__actions { margin-left: auto; display: flex; gap: 0.6rem; }
.nav ~ .header__actions { margin-left: 0; }
.header .btn { padding: 0.65rem 1rem; font-size: var(--step--1); }
.header__phone-label { display: none; }
@media (min-width: 62rem) {
  .nav { display: flex; }
  .header__phone-label { display: inline; }
}

/* Mobile menu (details disclosure — works without JS) */
.mobnav { margin-left: auto; }
.mobnav__toggle {
  display: grid; place-items: center;
  width: 2.7rem; height: 2.7rem;
  border: 1px solid var(--iron-line); border-radius: var(--radius);
  color: #fff; cursor: pointer; list-style: none;
}
.mobnav__toggle::-webkit-details-marker { display: none; }
.mobnav__toggle:hover { border-color: var(--red); color: #fff; }
.mobnav__icon { display: none; }
.mobnav__icon svg { width: 1.3rem; height: 1.3rem; display: block; }
.mobnav:not([open]) .mobnav__icon--open { display: block; }
.mobnav[open] .mobnav__icon--close { display: block; }
.mobnav__panel {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 60;
  padding: 1rem var(--gutter) 1.5rem;
  background: var(--iron); border-bottom: 3px solid var(--red);
  box-shadow: 0 18px 30px -18px rgba(0, 0, 0, 0.8);
  max-height: calc(100dvh - 100%); overflow-y: auto;
}
.mobnav__links { display: grid; }
.mobnav__links a {
  padding: 0.85rem 0; border-bottom: 1px solid var(--iron-line);
  color: var(--smoke); text-decoration: none; font-size: 1.05rem;
}
.mobnav__links a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; }
.mobnav__call { margin-top: 1.25rem; width: 100%; justify-content: center; }
@media (min-width: 62rem) { .mobnav { display: none; } }

/* Hero */
.hero { position: relative; background: var(--iron); color: #fff; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(31,34,36,0.55) 0%, rgba(31,34,36,0.18) 45%, rgba(31,34,36,0.6) 100%),
    linear-gradient(100deg, rgba(31,34,36,0.96) 0%, rgba(31,34,36,0.88) 38%, rgba(31,34,36,0.45) 62%, rgba(31,34,36,0.05) 85%);
}
.hero__inner { position: relative; padding-block: clamp(3rem, 2rem + 6vw, 6.5rem) clamp(2.75rem, 2rem + 3vw, 4.5rem); }
.hero__eyebrow {
  display: inline-block; margin: 0 0 1.25rem;
  padding: 0.45rem 0.8rem;
  background: var(--red); color: #fff;
  font: 600 var(--step--1) / 1 var(--mono);
  text-transform: uppercase; letter-spacing: 0.16em;
  border-radius: var(--radius);
}
.hero__title { font-size: var(--step-4); max-width: 14ch; color: #fff; }
.hero__title em { font-style: normal; color: #E8B891; }
.hero__lede { max-width: 46ch; margin-top: 1.4rem; font-size: var(--step-1); line-height: 1.45; color: rgba(255,255,255,0.85); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.9rem; }

/* Bale ticket — the spec as printed on the bale */
.ticket {
  margin-top: clamp(2.25rem, 1.5rem + 3vw, 3.75rem);
  max-width: 26rem;
  background: var(--paper); color: var(--iron);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem 1.2rem;
  border-top: 6px solid var(--red);
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.8);
  position: relative;
}
.ticket::before { /* punched tag hole */
  content: ""; position: absolute; top: 1.05rem; right: 1.1rem;
  width: 0.7rem; height: 0.7rem; border-radius: 50%;
  background: var(--iron); opacity: 0.85;
  box-shadow: inset 0 0 0 2px var(--paper);
}
.ticket__row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding-block: 0.5rem;
  border-top: 1px dashed var(--line);
  font: 500 var(--step--1) / 1.4 var(--mono);
}
.ticket__row:first-child { border-top: 0; padding-top: 0; }
.ticket__key { text-transform: uppercase; letter-spacing: 0.12em; color: var(--mute); }
.ticket__val { text-align: right; }

/* The product itself — the client's own bale-stack photo, run as a right
   column beside the cards at desktop, first in flow on mobile */
.prodgrid { display: grid; gap: clamp(1.5rem, 1rem + 2vw, 2.5rem); align-items: start; margin-top: 2.5rem; }
@media (min-width: 60rem) {
  .prodgrid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
  .prodgrid .cards { grid-column: 1; grid-row: 1; }
  .prodgrid .prodshot { grid-column: 2; grid-row: 1; position: sticky; top: 6rem; }
}
.prodgrid .cards { margin-top: 0; }
.prodshot { margin: 0; }
.prodshot img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 20px 40px -24px rgba(31, 34, 36, 0.5);
}
.prodshot figcaption {
  margin-top: 0.8rem;
  font: 500 var(--step--1) / 1.5 var(--mono);
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--mute);
}

/* Texture from the client's own library (files already on the live domain).
   Heavy washes keep every band at its original text contrast. */
.handsband { margin: 0; }
.handsband img { width: 100%; height: clamp(160px, 22vw, 300px); object-fit: cover; display: block; }
/* back4 now carries the hero, so this band takes the (already pale) back2 */
#uses.band {
  background:
    linear-gradient(rgba(240, 238, 234, 0.9), rgba(240, 238, 234, 0.9)),
    url('/images/back2.jpg') center/cover;
}
#trade.band--iron {
  background:
    linear-gradient(rgba(31, 34, 36, 0.92), rgba(31, 34, 36, 0.94)),
    url('/images/back2.jpg') center/cover;
}

/* Cards */
.cards {
  display: grid; gap: 1.25rem; margin-top: 2.5rem;
  grid-template-columns: repeat(auto-fill, minmax(min(calc(50% - 0.7rem), 17rem), 1fr));
}
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem;
}
.card h3 { font-size: var(--step-1); margin-bottom: 0.5rem; }
.card p { color: var(--mute); font-size: 0.95rem; margin: 0; }

/* Mill line — a real sequence, so it earns its numbers */
.millline {
  list-style: none; margin: 2.75rem 0 0; padding: 0;
  display: grid; gap: 2rem;
  counter-reset: step;
}
@media (min-width: 54rem) {
  .millline { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; position: relative; }
  .millline::before { /* the line of the mill line */
    content: ""; position: absolute; top: 1.2rem; left: 3.25rem; right: 3.25rem;
    height: 2px; background: var(--iron-line);
  }
}
.millline__step { position: relative; }
.millline__num {
  display: inline-grid; place-items: center;
  width: 2.4rem; height: 2.4rem;
  background: var(--red); color: #fff;
  font: 700 0.95rem/1 var(--mono);
  border-radius: 50%;
  position: relative; z-index: 1;
  margin-bottom: 0.9rem;
}
.millline__step h3 { font-size: var(--step-1); margin-bottom: 0.4rem; color: #fff; }
.millline__step p { color: var(--mute-iron); font-size: 0.95rem; margin: 0; }

/* Uses */
.uses { display: grid; gap: 1.25rem; margin-top: 2.5rem; }
@media (min-width: 54rem) { .uses { grid-template-columns: repeat(3, 1fr); } }
.use {
  margin: 0; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
}
.use img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.use figcaption { padding: 1.25rem 1.4rem 1.4rem; }
.use h3 { font-size: var(--step-1); margin-bottom: 0.4rem; }
.use p { color: var(--mute); font-size: 0.95rem; margin: 0; }
.use--text { justify-content: center; background: var(--iron); border-color: var(--iron); }
.use--text h3 { color: #fff; }
.use--text p { color: var(--mute-iron); }

/* Trade */
.trade { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 60rem) { .trade { grid-template-columns: minmax(0, 1fr) auto; } }
.trade__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Story */
.story { display: grid; gap: clamp(1.5rem, 1rem + 3vw, 3rem); align-items: center; }
@media (min-width: 60rem) { .story { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.story__img { border-radius: var(--radius); width: 100%; height: 100%; object-fit: cover; max-height: 26rem; }
.story__text p { color: var(--mute); max-width: 52ch; }
.story__text p strong { color: var(--iron); }
.story__link {
  display: inline-flex; align-items: center; gap: 0.45rem;
  color: var(--red-dark); font-weight: 600; text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.story__link svg { width: 1em; height: 1em; }
.story__link:hover { color: var(--red); }

/* Page head (stockists etc.) */
.page-head { background: var(--iron); color: #fff; padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.page-head h1 { font-size: var(--step-3); }
.page-head__lede { max-width: 54ch; margin-top: 1rem; color: var(--mute-iron); font-size: var(--step-1); line-height: 1.45; }
.crumbs {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.1rem;
  font: 500 var(--step--1) / 1 var(--mono);
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--mute-iron);
}
.crumbs a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; }
.crumbs a:hover { color: #fff; border-bottom-color: var(--red); }

/* Stockist finder */
.stk__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.stk__input {
  flex: 1 1 18rem;
  padding: 0.85rem 1rem;
  border: 1px solid #75726B; border-radius: var(--radius); /* ≥3:1 boundary on paper */
  background: var(--paper); color: var(--iron);
  font: 400 var(--step-0) / 1.4 var(--body);
}
.stk__input:focus-visible { outline-offset: 0; }
.stk__count { font: 500 var(--step--1) / 1 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--mute); }
.stk__map { height: clamp(16rem, 40vw, 24rem); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 1.5rem; background: var(--paper); }
.stk__status { color: var(--mute); }
.stk__status a { color: var(--red-dark); }
.stk__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.stk__list:empty { display: none; }
@media (min-width: 46rem) { .stk__list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 70rem) { .stk__list { grid-template-columns: repeat(3, 1fr); } }
.stk__item { background: var(--paper); padding: 1.1rem 1.25rem; }
.stk__item h3 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.stk__item p { margin: 0 0 0.35rem; color: var(--mute); font-size: 0.92rem; }
.stk__item-links a { color: var(--red-dark); text-decoration: none; }
.stk__item-links a:hover { text-decoration: underline; }
.stk__states { margin-top: 2.5rem; }
.stk__states ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.stk__states a {
  display: inline-block; padding: 0.5rem 0.9rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); text-decoration: none; color: var(--iron);
  font: 500 var(--step--1) / 1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em;
}
.stk__states a:hover { border-color: var(--red); color: var(--red-dark); }
.stk__becoming {
  margin-top: 2.5rem; padding: clamp(1.25rem, 1rem + 1.5vw, 1.75rem);
  background: var(--paper); border: 1px solid var(--line);
  border-left: 4px solid var(--red); border-radius: var(--radius);
}
.stk__becoming h2 { font-size: var(--step-2); margin-bottom: 0.5rem; }
.stk__becoming p { color: var(--mute); margin: 0; max-width: 60ch; }
.stk__becoming a { color: var(--red-dark); }

/* Footer */
.footer { background: var(--iron); color: var(--mute-iron); border-top: 3px solid var(--red); padding-block: clamp(2.5rem, 2rem + 2vw, 4rem) 2rem; font-size: 0.92rem; }
.footer__grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.footer h2 {
  font-size: var(--step--1); font-family: var(--mono); font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute-iron);
  margin-bottom: 1rem;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 0.5rem; }
.footer a { color: #fff; text-decoration: none; border-bottom: 1px solid transparent; }
.footer a:hover { color: var(--red); border-bottom-color: currentColor; }
.footer__note { margin-top: 1rem; font-size: 0.85rem; }
.footer__meta {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between;
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--iron-line);
  font: 500 0.75rem/1.5 var(--mono); text-transform: uppercase; letter-spacing: 0.08em;
}

/* Reveal */
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

@media print {
  .header, .hero__media, .stk__map, .mobnav { display: none; }
  body { background: #fff; color: #000; }
  .hero, .band--iron, .footer, .page-head { background: #fff !important; color: #000 !important; }
  .hero *, .band--iron *, .footer *, .page-head * { color: #000 !important; }
}
