/* MapleBridge. One family (Archivo, variable width), white and mist grounds, ink type, maple red
   for actions, kraft for the carton label: the one bold element. */
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --white: #ffffff;
  --mist: #eef1ef;
  --ink: #1c2226;
  --muted: #56616a;
  --line: #d5dbd8;
  --red: #b3261e;
  --red-dark: #8f1d17;
  --kraft: #d2b48c;
  --spruce: #1f3b33;
  --wide: 125%;
  --measure: 66ch;
  --pad: clamp(3rem, 7vw, 5.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
h1, h2, h3 { font-stretch: var(--wide); line-height: 1.12; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.1rem, 1.3rem + 3.3vw, 3.5rem); font-weight: 800; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.45rem, 1.15rem + 1.2vw, 2.05rem); font-weight: 760; letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; font-weight: 720; }
p { margin: 0 0 1em; max-width: var(--measure); }
a { color: inherit; text-underline-offset: 0.22em; }
img { max-width: 100%; }
.wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.lead { font-size: clamp(1.1rem, 1rem + 0.35vw, 1.25rem); color: var(--muted); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--ink); color: var(--white); padding: 0.5rem 1rem; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* Header */
.top { border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem 2rem; min-height: 4.5rem; flex-wrap: wrap; padding-block: 0.6rem; }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; font-stretch: var(--wide); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.015em; text-decoration: none; margin: 0; }
.brand__mark { width: 0.95rem; height: 0.95rem; background: var(--red); transform: rotate(45deg); border-radius: 2px; }
.nav { display: flex; align-items: center; gap: 0.5rem 1.6rem; flex-wrap: wrap; font-weight: 550; }
.nav a { text-decoration: none; padding: 0.3rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--red); }
.nav .nav__lang { border: 1px solid var(--line); border-radius: 4px; padding: 0.25rem 0.65rem; }
.nav .nav__lang:hover { border-color: var(--ink); }

/* Buttons */
.btn {
  display: inline-block; border: 0; border-radius: 6px; cursor: pointer;
  background: var(--red); color: var(--white);
  font: inherit; font-weight: 650; text-decoration: none; padding: 0.85rem 1.45rem;
}
.btn:hover { background: var(--red-dark); }
.btn:disabled { opacity: 0.65; cursor: progress; }
.link { font-weight: 650; }

/* Hero */
.hero { padding-block: var(--pad); }
.hero__in { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: 2rem; }

/* The carton label */
.label {
  background: var(--kraft);
  border: 3px solid var(--ink);
  border-radius: 3px;
  padding: 1.25rem 1.5rem 1.2rem;
}
.hero .label { transform: rotate(-1.5deg); animation: stick 0.7s cubic-bezier(0.2, 0.8, 0.25, 1) both 0.15s; }
@keyframes stick {
  from { transform: translateY(-12px) rotate(-4.5deg); }
  to { transform: rotate(-1.5deg); }
}
.label__head { font-weight: 650; margin: 0; padding-bottom: 0.6rem; border-bottom: 2px solid var(--ink); }
.label__name { font-stretch: var(--wide); font-weight: 800; font-size: 1.55rem; line-height: 1.15; margin: 0.8rem 0 0.9rem; }
.label__rows { margin: 0; }
.label__rows div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.15rem 1rem; padding: 0.55rem 0; border-top: 1px dashed rgba(28, 34, 38, 0.5); }
.label__rows dt { font-weight: 500; white-space: nowrap; }
.label__rows dd { margin: 0; font-weight: 720; text-align: right; font-variant-numeric: tabular-nums; }
.label__rows .label__big { border-top: 2px solid var(--ink); margin-top: 0.3rem; padding-top: 0.7rem; }
.label__big dd { font-stretch: var(--wide); font-weight: 850; font-size: clamp(2.2rem, 1.8rem + 1.5vw, 2.9rem); line-height: 1; }
.label__foot { font-size: 0.92rem; margin: 0.9rem 0 0; }
.label__link { display: inline-block; margin-top: 0.6rem; font-weight: 700; }

/* How we work */
.how { background: var(--mist); padding-block: var(--pad); }
.how__list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.how__list li { border-top: 3px solid var(--ink); padding-top: 1.1rem; }
.how__list p { color: var(--muted); }

/* Product tiles */
.list { padding-block: var(--pad); }
.tiles { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 2.25rem; }
.tile a { display: block; text-decoration: none; }
.tile__img { aspect-ratio: 4 / 3; background: var(--mist); border-radius: 6px; overflow: hidden; }
.tile__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile__img .ph { aspect-ratio: auto; height: 100%; border: 0; }
.tile__cat { color: var(--muted); font-size: 0.92rem; margin: 0.95rem 0 0.15rem; }
.tile__name { margin: 0 0 0.35rem; }
.tile a:hover .tile__name { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.tile__terms { display: flex; flex-wrap: wrap; gap: 0.2rem 1.4rem; margin: 0; font-variant-numeric: tabular-nums; color: var(--muted); }
.tile__terms b { color: var(--ink); font-weight: 700; }

/* Ordering steps: a real sequence, so numbered */
.steps { padding-block: var(--pad); border-top: 1px solid var(--line); }
.steps__list { list-style: none; counter-reset: step; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.steps__list li { counter-increment: step; }
.steps__list li::before { content: counter(step); display: block; font-stretch: var(--wide); font-weight: 850; font-size: 2.6rem; line-height: 1; color: var(--red); margin-bottom: 0.8rem; }
.steps__list p { color: var(--muted); }

/* Contact band */
.contact { background: var(--spruce); color: var(--white); padding-block: var(--pad); }
.contact p { color: #d7e2dd; }
.contact .contact__mail { color: var(--white); font-stretch: var(--wide); font-weight: 750; font-size: clamp(1.35rem, 1rem + 1.6vw, 2.1rem); text-decoration-color: var(--kraft); text-decoration-thickness: 2px; }

/* Footer */
.foot { padding-block: 2.5rem 3rem; color: var(--muted); font-size: 0.95rem; }
.foot__in { display: flex; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap; }
.foot p { margin: 0 0 0.3rem; }
.foot__name { color: var(--ink); font-weight: 720; }
.foot__note { margin-top: 0.6rem; }
.foot__links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem; }

/* Product page */
.pdp { padding-block: 2rem var(--pad); }
.crumbs { color: var(--muted); font-size: 0.95rem; margin-bottom: 2rem; }
.crumbs a { color: var(--muted); }
.pdp__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.gallery figure { margin: 0 0 1rem; }
.gallery img { display: block; width: 100%; height: auto; border-radius: 8px; }
figcaption { color: var(--muted); font-size: 0.85rem; margin-top: 0.35rem; }
.pdp__cat { color: var(--muted); margin-bottom: 0.3rem; }
.pdp h1 { font-size: clamp(2rem, 1.4rem + 2.2vw, 2.9rem); }
.facts { padding-left: 1.2rem; }
.facts li { margin: 0.3rem 0; }
.note { color: var(--muted); font-size: 0.92rem; }
.ph { aspect-ratio: 4 / 3; display: grid; place-items: center; text-align: center; padding: 2rem; background: var(--mist); border: 1px dashed #b9c2be; border-radius: 8px; color: var(--muted); }
.ph p { margin: 0; }
.ph strong { display: block; color: var(--ink); font-stretch: var(--wide); font-size: 1.5rem; line-height: 1.2; margin-bottom: 0.5rem; }

.trade { background: var(--mist); padding-block: var(--pad); }
.trade__grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }

/* Request form */
.form { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: clamp(1.5rem, 3vw, 2.5rem); }
.form__product { background: var(--mist); border-radius: 6px; padding: 0.75rem 1rem; }
.form__sku { color: var(--muted); font-variant-numeric: tabular-nums; margin-left: 0.4rem; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.3rem; margin: 1.3rem 0 1.1rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; font-weight: 620; font-size: 0.95rem; }
.field--wide { grid-column: 1 / -1; }
.field small { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  font: inherit; font-weight: 400; color: var(--ink); background: var(--white);
  border: 1px solid #aab4b0; border-radius: 6px; padding: 0.7rem 0.8rem; width: 100%;
}
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid rgba(179, 38, 30, 0.3); outline-offset: 0; border-color: var(--red); }
.field [aria-invalid="true"] { border-color: var(--red); background: #fff5f4; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__consent { color: var(--muted); font-size: 0.9rem; }
.form__status { margin: 1rem 0 0; font-weight: 620; }
.form__status[data-kind="error"] { color: var(--red-dark); }
.form--done .form__grid, .form--done .form__consent, .form--done .btn { display: none; }
.form--done .form__status { border-left: 4px solid var(--spruce); padding: 0.2rem 0 0.2rem 1rem; font-size: 1.15rem; }

/* Text pages */
.page { padding-block: clamp(2.5rem, 5vw, 4.5rem) var(--pad); }
.text { max-width: 46rem; }
.text h2 { margin-top: 2.2rem; font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.55rem); }
.text ul { padding-left: 1.2rem; max-width: var(--measure); }
.text li { margin: 0.55rem 0; }
.updated { color: var(--muted); }
.page .tiles { margin-top: 2.5rem; }

@media (max-width: 860px) {
  .hero__in, .pdp__grid, .trade__grid { grid-template-columns: 1fr; }
  .how__list, .steps__list { grid-template-columns: 1fr; gap: 1.8rem; }
  .form__grid { grid-template-columns: 1fr; }
  .hero .label { transform: none; animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero .label { animation: none; }
}
