/* ============================================================
   Jackson Textiles — Peter Jackson & Sons Ltd
   Design tokens: fleece white / ink / brand magenta (logo JT) / stone
   Type: Bricolage Grotesque (display) · Karla (body) · IBM Plex Mono (specs)
   ============================================================ */

:root {
  --fleece: #F5F3EC;      /* undyed fleece white */
  --paper:  #FCFBF7;
  --ink:    #26191F;      /* warm plum-black */
  --brand:  #D3145A;      /* JT logo magenta */
  --brand-deep: #9C0E44;
  --stone:  #8F887A;      /* Yorkshire stone */
  --mist:   #E6E2D6;      /* borders, cards */
  --max: 1120px;
  --radius: 6px;
  --font-display: "Bricolage Grotesque", sans-serif;
  --font-body: "Karla", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--fleece);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Signature: pile edge texture ---------- */
/* Fine vertical strokes — the pile of the fabric seen edge-on */
.pile {
  height: 14px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--brand) 0px, var(--brand) 2px,
    transparent 2px, transparent 5px
  );
  border: 0;
}
.pile--stone {
  background-image: repeating-linear-gradient(
    90deg,
    var(--mist) 0px, var(--mist) 2px,
    transparent 2px, transparent 5px
  );
}

/* ---------- Spec tags (mill spec-sheet vernacular) ---------- */
.spec {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}
.spec--stone { color: var(--stone); }

/* ---------- Header ---------- */
header.site {
  background: var(--paper);
  border-bottom: 1px solid var(--mist);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 24px;
  max-width: var(--max);
  margin: 0 auto;
}
.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.1;
}
.logo small {
  display: block;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
  margin-top: 2px;
}
nav.main { display: flex; gap: 28px; align-items: center; }
nav.main a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
nav.main a:hover { border-bottom-color: var(--brand); }
nav.main a[aria-current="page"] { border-bottom-color: var(--brand); color: var(--brand-deep); }
nav.main a.cta {
  background: var(--brand);
  color: #fff;
  padding: 9px 18px;
  border-radius: var(--radius);
  border-bottom: none;
}
nav.main a.cta:hover { background: var(--brand-deep); }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: 1px solid var(--mist); border-radius: var(--radius); padding: 8px 12px; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; color: var(--ink); }
@media (max-width: 780px) {
  .nav-toggle { display: block; }
  nav.main {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--mist);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    gap: 14px;
  }
  nav.main.open { display: flex; }
}

/* ---------- Hero ---------- */
.hero { padding: 88px 0 64px; background: var(--fleece); }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 15ch;
}
.hero .lede {
  margin-top: 22px;
  max-width: 54ch;
  font-size: 1.15rem;
  color: #463840;
}
.hero .spec { display: block; margin-bottom: 18px; }
.hero-actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 1.5px solid var(--brand);
}
.btn--solid { background: var(--brand); color: #fff; }
.btn--solid:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.btn--ghost { color: var(--brand-deep); }
.btn--ghost:hover { background: rgba(211,20,90,0.07); }

/* Spec strip under hero */
.spec-strip {
  background: var(--paper);
  border-top: 1px solid var(--mist);
  border-bottom: 1px solid var(--mist);
}
.spec-strip .wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
}
.spec-cell {
  padding: 26px 24px;
  border-left: 1px solid var(--mist);
}
.spec-cell:first-child { border-left: none; }
.spec-cell strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: -0.01em;
}
.spec-cell span { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--stone); }
@media (max-width: 780px) {
  .spec-cell { border-left: none; border-top: 1px solid var(--mist); }
  .spec-cell:first-child { border-top: none; }
}

/* ---------- Sections ---------- */
section.block { padding: 80px 0; }
section.block--paper { background: var(--paper); border-top: 1px solid var(--mist); border-bottom: 1px solid var(--mist); }
.block h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  letter-spacing: -0.015em;
  line-height: 1.15;
  max-width: 24ch;
}
.block .kicker { display: block; margin-bottom: 12px; }
.block > .wrap > p, .prose p { max-width: 62ch; margin-top: 18px; color: #463840; }

/* ---------- Range cards with "backing reveal" ---------- */
/* Front = pile side; hover lifts to show the brand backing underneath,
   like turning over a vet bed. */
.ranges {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.range-card {
  position: relative;
  text-decoration: none;
  color: var(--ink);
  border-radius: var(--radius);
}
.range-card .backing {
  position: absolute;
  inset: 0;
  background: var(--brand);
  border-radius: var(--radius);
  transform: translate(0, 0);
}
.range-card .face {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  padding: 30px 28px 26px;
  transition: transform 0.22s ease;
  height: 100%;
}
.range-card:hover .face,
.range-card:focus-visible .face { transform: translate(-6px, -6px); }
.range-card:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.range-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  margin: 14px 0 10px;
}
.range-card p { font-size: 0.98rem; color: #463840; }
.range-card .go {
  display: inline-block;
  margin-top: 18px;
  font-weight: 700;
  color: var(--brand-deep);
  font-size: 0.95rem;
}

/* ---------- Two-column feature rows ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  margin-top: 40px;
}
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 32px; } }

.fact-list { list-style: none; margin-top: 26px; }
.fact-list li {
  padding: 16px 0;
  border-top: 1px solid var(--mist);
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  align-items: baseline;
}
.fact-list li:last-child { border-bottom: 1px solid var(--mist); }
.fact-list .spec { white-space: nowrap; }
@media (max-width: 560px) { .fact-list li { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Swatch grid (vet bedding colours) ---------- */
.swatches {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}
.swatch {
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
}
.swatch .chip { height: 84px; border-bottom: 4px solid var(--brand); }
.swatch figcaption { padding: 12px 14px; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: #463840; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--brand); color: #fff; padding: 72px 0; }
.cta-band h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.7rem, 3.4vw, 2.3rem); letter-spacing: -0.015em; max-width: 26ch; }
.cta-band p { margin-top: 14px; max-width: 56ch; color: #F7D9E4; }
.cta-band .btn { margin-top: 30px; background: #fff; color: var(--brand-deep); border-color: #fff; }
.cta-band .btn:hover { background: var(--fleece); }

/* ---------- Forms ---------- */
form.contact { margin-top: 36px; max-width: 620px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 700; font-size: 0.92rem; margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1.5px solid var(--mist);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(211,20,90,0.15);
}
form.contact button {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 14px 30px;
  cursor: pointer;
}
form.contact button:hover { background: var(--brand-deep); }
form.contact button:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

/* ---------- Footer ---------- */
footer.site {
  background: var(--ink);
  color: #CDC3C8;
  padding: 56px 0 40px;
  margin-top: 0;
}
footer.site .wrap {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
footer.site h4 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: #A38C96; margin-bottom: 14px; }
footer.site a { color: #ECE3E8; text-decoration: none; }
footer.site a:hover { text-decoration: underline; }
footer.site ul { list-style: none; }
footer.site li { margin-bottom: 8px; font-size: 0.95rem; }
footer.site .legal { grid-column: 1 / -1; border-top: 1px solid #43343C; margin-top: 24px; padding-top: 20px; font-size: 0.85rem; color: #A38C96; }
.foot-logo { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: #fff; }
.foot-logo small { display: block; font-family: var(--font-mono); font-weight: 400; font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: #A38C96; margin-top: 4px; }
@media (max-width: 780px) { footer.site .wrap { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 72px 0 48px; }
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.02em;
  line-height: 1.08;
  max-width: 18ch;
}
.page-hero .lede { margin-top: 18px; max-width: 58ch; font-size: 1.12rem; color: #463840; }
.page-hero .spec { display: block; margin-bottom: 16px; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0 !important; }

/* ---------- Photos & imagery (added with real mill assets) ---------- */
.logo--img { display: flex; align-items: center; }
.logo--img img { height: 46px; width: auto; }
@media (max-width: 780px) { .logo--img img { height: 38px; } }

.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } }
.hero-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 10px 10px 0 var(--brand);
  max-width: 440px;
  justify-self: end;
}
@media (max-width: 860px) { .hero-photo { justify-self: start; max-width: 380px; } }
.hero-photo img { width: 100%; height: auto; }

.card-img {
  width: calc(100% + 56px);
  max-width: none;
  height: 210px;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
  margin: -30px -28px 20px;
}

/* ---------- Pillars (3 promesses, façon mp-vitrage) ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  margin-top: 44px;
}
.pillar { border-top: 3px solid var(--brand); padding-top: 18px; }
.pillar h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  margin: 10px 0 8px;
}
.pillar p { font-size: 0.97rem; color: #463840; }

.pattern-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
.pattern { border: 1px solid var(--mist); border-radius: var(--radius); background: var(--paper); overflow: hidden; margin: 0; }
.pattern img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.pattern figcaption { padding: 10px 12px; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: #463840; }

.photo-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}
.photo-grid figure { border: 1px solid var(--mist); border-radius: var(--radius); background: var(--paper); overflow: hidden; margin: 0; }
.photo-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-grid figcaption { padding: 10px 14px; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone); }

.wide-figure { margin: 44px 0 0; border: 1px solid var(--mist); border-radius: var(--radius); background: var(--paper); overflow: hidden; }
.wide-figure img { width: 100%; height: auto; }
.wide-figure figcaption { padding: 12px 16px; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone); }
