/* J Apparels website (site-a)
   Paper, sand and ink, with Lora for headings and Poppins for text,
   following the Partner Factory Profile. */

:root {
  --paper: #f7f5f1;
  --ink: #1c1a17;
  --ink-2: #2a2723;
  --muted: #615c55;
  --muted-on-ink: #b9b2a8;
  --line: #ddd5ca;
  --line-on-ink: #3b3732;
  --swatch: #f6ecdc;
  --band: #efe9e0;
  --sand: #e9d8c4;
  --sand-fold: #d6bc9f;
  --stitch: #b39a7f;
  /* topstitch: 6px stitch, 4px gap */
  --stitch-line: linear-gradient(to right, var(--stitch) 0 6px, transparent 6px 10px);
  --whatsapp: #1f9d55;
  --error: #9e3a24;
  --brown: #5b3f2c;  /* selected options in the enquiry form */

  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --space: clamp(48px, 7vw, 88px);
  --radius: 2px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 104px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 4px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; font-size: 0.9rem; text-decoration: none;
}
.skip-link:focus { top: 12px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; }
h1 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); line-height: 1.1; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.2; }
h3 { font-size: 1.15rem; line-height: 1.3; }
p { margin: 0; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 92px; gap: 24px; }
.logo img { height: 78px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-size: 0.92rem; text-decoration: none; }
.nav a:not(.btn) { color: var(--ink); }
.nav a:not(.btn):hover { text-decoration: underline; }
.nav a[aria-current="page"],
.subnav a[aria-current="page"] {
  text-decoration: underline dashed var(--stitch);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 7px;
}
.nav .btn { padding: 11px 18px; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.menu-toggle svg { width: 26px; height: 26px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 22px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink); color: var(--paper);
  font: 500 0.9rem/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--ink-2); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-sand { background: var(--sand); border-color: var(--sand); color: var(--ink); }
.btn-sand:hover { background: #e2ccb4; border-color: #e2ccb4; }
.btn .badge {
  display: inline-grid; place-items: center;
  min-width: 20px; height: 20px; margin: -4px -6px -4px 10px; padding: 0 6px;
  border-radius: 10px;
  background: var(--sand); color: var(--ink);
  font: 500 0.75rem/1 var(--sans);
}
.btn .badge[hidden] { display: none; }
.link-btn {
  background: none; border: 0; padding: 0;
  font: inherit; font-size: 0.88rem; color: var(--ink);
  text-decoration: underline; text-underline-offset: 4px;
  cursor: pointer;
}
.link-btn:hover { color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- home hero ---------- */
.hero { padding: clamp(40px, 6vw, 80px) 0 var(--space); }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 24px; }
.hero-copy p { font-size: 1.1rem; color: var(--muted); max-width: 46ch; }
.hero img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; border-radius: var(--radius); }

/* ---------- inner page intro ---------- */
.intro { padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 4vw, 48px); }
.intro .wrap { display: grid; gap: 18px; }
.intro p { font-size: 1.1rem; color: var(--muted); max-width: 62ch; }
.intro .note { font-size: 0.85rem; }
.intro .how { font-size: 0.95rem; color: var(--ink); }
.intro .how a { color: var(--ink); }
.breadcrumb { display: flex; gap: 10px; font-size: 0.85rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }
.note { font-size: 0.85rem; color: var(--muted); }

/* ---------- sections ---------- */
.section { padding: var(--space) 0; background: var(--stitch-line) top left / 10px 1px repeat-x; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px clamp(32px, 5vw, 80px); align-items: start; }
.cols > header { display: grid; gap: 14px; align-content: start; }
.cols > header p { color: var(--muted); }
.section-title { margin-bottom: 32px; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.more { font-size: 0.92rem; }

/* Name and detail rows: order stages, services, standards, machinery, facts */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rows li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 4px 32px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.rows h3 { font-size: 1.05rem; }
.rows p { color: var(--muted); font-size: 0.95rem; }
ol.rows { counter-reset: row; }
ol.rows li { counter-increment: row; grid-template-columns: 2em minmax(0, 1fr) minmax(0, 1.6fr); }
ol.rows li::before { content: counter(row) "."; color: var(--muted); font-size: 0.95rem; }
.rows.spec li { grid-template-columns: 4.5em minmax(0, 1fr); }
.rows .num { font: 400 1.3rem/1.2 var(--serif); }
.rows.production li { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; }
.production li > span { font-variant-numeric: tabular-nums; }
.production-bar, .production li > p { grid-column: 1 / -1; }
.production-bar { height: 6px; background: var(--band); border-radius: 2px; overflow: hidden; }
.production-bar::before { content: ''; display: block; width: var(--share); height: 100%; background: var(--stitch); border-radius: inherit; }

.plain-list { margin: 0; padding-left: 1.1em; }
.plain-list li + li { margin-top: 10px; }

/* Registrations strip: home (under the hero) and About (under the intro) */
.trust { padding: 22px 0 24px; background: var(--band); }
.trust-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 14px clamp(32px, 5vw, 80px); align-items: center; }
.trust h2 { font: 500 0.78rem/1.4 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.badges { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.badges li {
  display: flex; align-items: flex-start; gap: 9px;
  padding: 6px 12px;
  background: var(--paper);
  border: 1px dashed var(--stitch); border-radius: var(--radius);
  font-size: 0.86rem; font-weight: 400; line-height: 1.4;
}
.badges li svg { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--stitch); }
.badges li span { color: var(--muted); font-weight: 300; }
.badges li .badge-text { color: var(--ink); font-weight: 400; }
.badges li .badge-text span { color: var(--muted); font-weight: 300; }
.trust .note { margin-top: 10px; font-size: 0.88rem; }

/* Brands we've produced for: names as plain text */
.brand-names {
  list-style: none; margin: 0 0 16px; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
  font: 400 clamp(1.25rem, 2.1vw, 1.75rem)/1.3 var(--serif);
}
.brand-names li { display: grid; place-items: center; text-align: center; padding: 20px; background: var(--paper); border: 1px dashed var(--stitch); border-radius: var(--radius); }
@media (min-width: 1081px) {
  .brand-names:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .brand-names:has(> :nth-child(4)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .brand-names:has(> :nth-child(3)) li { padding-inline: 12px; }
}
.brands p { color: var(--muted); max-width: 62ch; }

/* Offices on the About page */
.offices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; border-top: 1px solid var(--line); padding-top: 18px; }
.offices h3 { font-size: 1.05rem; margin-bottom: 6px; }
.offices p { color: var(--muted); font-size: 0.95rem; }
.offices .small { display: inline-block; margin-top: 6px; font-size: 0.85rem; color: var(--muted); }

/* ---------- category tiles ---------- */
.cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.section-title:has(+ .cats) { margin-bottom: clamp(16px, 2vw, 24px); }
.cat { display: grid; gap: 4px; align-content: start; color: inherit; text-decoration: none; }
.cat img { width: 100%; aspect-ratio: 1 / 1.1; object-fit: cover; background: var(--swatch); border-radius: var(--radius); margin-bottom: 10px; }
.cat h3 { font-size: 1.2rem; }
.cat:focus-visible h3 { text-decoration: underline; }
@media (hover: hover) and (pointer: fine) {
  .cat:hover h3 { text-decoration: underline; }
}
.cat p { font-size: 0.86rem; color: var(--muted); line-height: 1.5; min-height: 2.8rem; }
.cats + .note { margin-top: 28px; }

/* ---------- category pages ---------- */
.subnav {
  display: flex; flex-wrap: wrap; gap: 6px 22px;
  padding: 14px 0; margin-bottom: 40px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.subnav a { color: var(--muted); text-decoration: none; }
.subnav a:hover { color: var(--ink); text-decoration: underline; }
.subnav a[aria-current="page"] { color: var(--ink); font-weight: 500; }
.cat-groups { padding-bottom: var(--space); }
.group + .group { margin-top: 48px; }
.group h2 { font-size: 1.3rem; margin-bottom: 18px; }
.products { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px 18px; list-style: none; margin: 0; padding: 0; }
/* Cards are columns so the buttons sit on one line across a row, however long the name */
.product { scroll-margin-top: 116px; display: flex; flex-direction: column; }
.product > p:last-of-type { margin-bottom: 10px; }
.product img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: var(--swatch); border-radius: var(--radius); }
.product h3 { font-size: 1rem; margin-top: 10px; }
.product p { font-size: 0.82rem; color: var(--muted); margin-top: 4px; }
.product.is-added img { outline: 2px solid var(--ink); outline-offset: -2px; }

/* Add to enquiry + ask on WhatsApp */
.product-actions { display: flex; gap: 6px; margin-top: auto; }
.add {
  flex: 1; min-width: 0; min-height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 10px;
  border: 1px solid var(--ink); border-radius: var(--radius);
  background: transparent; color: var(--ink);
  font: 500 0.8rem/1 var(--sans);
  cursor: pointer;
}
.add:hover { background: var(--ink); color: var(--paper); }
.add > span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.add .icon { width: 16px; height: 16px; flex: none; }
.add .when-on { display: none; }
.add[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.add[aria-pressed="true"]:hover { background: var(--ink-2); }
.add[aria-pressed="true"] .when-off { display: none; }
.add[aria-pressed="true"] .when-on { display: inline-flex; }
.wa-ask {
  flex: none; width: 40px; min-height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--whatsapp);
}
.wa-ask:hover { border-color: var(--whatsapp); }
.wa-ask .icon { width: 20px; height: 20px; }

/* ---------- photos ---------- */
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 16px; margin-top: 40px; }
.photos figure { margin: 0; }
.photos img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.photos figcaption { font-size: 0.82rem; color: var(--muted); margin-top: 8px; }

/* ---------- leadership ---------- */
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 260px)); gap: 28px; }
.people img { width: 100%; aspect-ratio: 1 / 1.1; object-fit: cover; border-radius: var(--radius); }
.people h3 { margin-top: 14px; }
.people p { font-size: 0.9rem; color: var(--muted); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(40px, 6vw, 96px); padding-bottom: var(--space); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; }
.form .full { grid-column: 1 / -1; }
.field label { font-size: 0.85rem; font-weight: 500; }
.field label span { color: var(--muted); font-weight: 300; }
.field input,
.field select,
.field textarea,
.detail-input input {
  width: 100%;
  font: 300 0.95rem/1.4 var(--sans);
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus,
.detail-input input:focus { outline: none; border-color: var(--ink); }
.choices { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.choices legend, .detail-input { color: var(--ink); font-size: 0.85rem; font-weight: 500; }
.choices legend { margin-bottom: 8px; padding: 0; }
.choices legend span { color: var(--muted); font-weight: 300; }
.choice-list { display: flex; flex-wrap: wrap; gap: 6px; }
.choice-list label, .choice-list button {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px;
  padding: 6px 9px; font: 400 0.83rem/1.35 var(--sans); color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
}
.choice-list input { margin: 0; accent-color: var(--ink); }
/* Selected options: solid dark brown with light text and a tick, so they stand out at a glance */
.choice-list label:has(:checked), .choice-list button[aria-pressed="true"] {
  border-color: var(--brown); background: var(--brown); color: var(--paper);
}
.choice-list label:has(:checked) input { accent-color: var(--sand); }
.choice-list button[aria-pressed="true"]::before { content: "\2713"; font-weight: 600; }
.choice-list label:hover, .choice-list button:hover { border-color: var(--brown); }
.choice-list label:has(:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Required fields: a red star on the label; problems get a red border and a message under the field */
.form-required { font-size: 0.82rem; color: var(--muted); }
.form-required span,
.field:has(> input[required], > textarea[required], > select[required], > .phone-row [required]) > label::after,
.choices[data-required] > legend::after { color: var(--error); }
.field:has(> input[required], > textarea[required], > select[required], > .phone-row [required]) > label::after,
.choices[data-required] > legend::after { content: " *"; }
/* Phone: country code picker and number side by side */
.phone-row { display: grid; grid-template-columns: minmax(0, 15em) minmax(0, 1fr); gap: 8px; }
@media (max-width: 600px) { .phone-row { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }
.choices[aria-invalid="true"] .choice-list label { border-color: var(--error); background: #fdf6f4; }
.choices .field-error { margin-top: 8px; }
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"],
.field select[aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); background: #fdf6f4; }
.field-error { font-size: 0.82rem; line-height: 1.4; color: var(--error); }
.form-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; }
.form-status { font-size: 0.88rem; color: var(--muted); }
.form-status.is-error { color: var(--error); }
.form-status a { color: inherit; }
.form-note { grid-column: 1 / -1; font-size: 0.85rem; color: var(--muted); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.form[hidden], .form-done[hidden] { display: none; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-main { min-width: 0; }

/* Thank-you panel after a direct send */
.form-done {
  display: grid; gap: 14px; justify-items: start;
  padding: 28px 26px;
  background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  background-image: var(--stitch-line); background-size: 10px 1px; background-repeat: repeat-x; background-position: top left;
}
.form-done:focus { outline: none; }
.form-done h2 { font-size: 1.6rem; }
.form-done p { color: var(--muted); }
.done-styles { margin: 0; padding-left: 1.1em; font-size: 0.95rem; }
.done-styles:empty { display: none; }
.form-done .actions { margin-top: 8px; }

.details { display: grid; align-content: start; border-top: 1px solid var(--line); }
.detail { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.detail h2 { font: 400 0.85rem/1.4 var(--sans); color: var(--muted); }
.detail a, .detail p { font-size: 1rem; font-weight: 400; text-decoration: none; }
.detail a:hover { text-decoration: underline; }
.detail .small { font-size: 0.85rem; color: var(--muted); font-weight: 300; }

/* Enquiry list, first block of the contact form */
.enquiry-list {
  grid-column: 1 / -1;
  padding: 20px 22px 18px;
  background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  container-type: inline-size;
}
.enquiry-list-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.enquiry-list h2 { font-size: 1.3rem; }
.enquiry-list h2:focus { outline: none; }
.list-count { font: italic 400 1.05rem var(--serif); color: var(--muted); }
.enquiry-items { list-style: none; margin: 0; padding: 0; }
.enquiry-items:not(:empty) { border-top: 1px solid var(--line); }
.enquiry-items li {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) 40px;
  gap: 8px 14px; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.enquiry-items img { width: 56px; height: 56px; object-fit: contain; background: var(--swatch); border-radius: var(--radius); }
.item-text { display: grid; gap: 2px; min-width: 0; }
.item-text a { font-weight: 400; text-decoration: none; }
.item-text a:hover { text-decoration: underline; }
.item-text .code { font: italic 400 0.85rem/1.4 var(--serif); color: var(--muted); }
.style-details { grid-column: 2 / -1; min-width: 0; }
.style-details summary { width: fit-content; padding: 6px 0; font-size: 0.85rem; cursor: pointer; }
.style-details summary span:not(.visually-hidden) { text-decoration: underline; text-underline-offset: 3px; }
.style-details[open] .details-closed, .style-details:not([open]) .details-open { display: none; }
.style-fields { display: grid; gap: 14px; padding: 10px 0 6px; }
.detail-input { display: grid; gap: 4px; }
.detail-input input { min-width: 0; padding: 8px 10px; }
.remove {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: none; border: 1px solid transparent; border-radius: var(--radius);
  color: var(--muted); cursor: pointer;
}
.remove:hover { color: var(--ink); border-color: var(--line); }
.remove svg { width: 18px; height: 18px; }
@container (max-width: 560px) {
  .style-details { grid-column: 1 / -1; }
}
.enquiry-empty { color: var(--muted); font-size: 0.95rem; }
.enquiry-more { margin-top: 14px; font-size: 0.9rem; }
.list-status { font-size: 0.88rem; color: var(--muted); }
.list-status:not(:empty) { margin-top: 10px; }
.form-actions .link-btn { font-size: 0.85rem; color: var(--muted); }

/* Enquiry bar: a raised card floating above the page on every page except Contact */
.enquiry-bar {
  position: fixed; left: 50%; bottom: 22px; z-index: 55;
  translate: -50% 0;
  display: flex; align-items: center; gap: 28px;
  max-width: calc(100% - 32px);
  padding: 12px 12px 12px 14px;
  background: var(--ink); color: var(--paper);
  border-radius: 4px;
  box-shadow: 0 14px 34px rgba(28, 26, 23, 0.32), 0 3px 8px rgba(28, 26, 23, 0.2);
  outline: 1.5px dashed rgba(233, 216, 196, 0.5);  /* topstitch, in sand */
  outline-offset: -6px;
  animation: bar-in 0.35s ease-out;
}
.enquiry-bar[hidden] { display: none; }
.enquiry-bar p { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.bar-count {
  display: inline-grid; place-items: center;
  min-width: 34px; height: 34px; padding: 0 9px;
  border-radius: 17px;
  background: var(--sand); color: var(--ink);
  font: 500 1rem/1 var(--sans);
}
.bar-text { display: grid; line-height: 1.3; }
.bar-text strong { font-weight: 500; font-size: 0.98rem; }
.enquiry-bar .flash { font: italic 400 0.85rem var(--serif); color: var(--muted-on-ink); }
.enquiry-bar .flash:empty { display: none; }
.enquiry-bar .btn { padding: 13px 20px; white-space: nowrap; }
.bump { animation: bump 0.45s ease-out; }
@keyframes bar-in { from { opacity: 0; transform: translateY(28px); } }
@keyframes bar-up { from { transform: translateY(100%); } }
@keyframes bump { 35% { transform: scale(1.3); } }
/* Room for the bar inside the dark footer, so no light strip shows below it */
body.has-enquiry-bar .site-footer { padding-bottom: calc(28px + 100px); }
body.has-enquiry-bar .site-footer::after { bottom: calc(-142px + 100px); }
body.has-enquiry-bar .wa-float { bottom: 100px; }

/* ---------- long-form text (privacy policy) ---------- */
.prose { max-width: 72ch; padding-bottom: var(--space); }
.prose h2 { font-size: 1.4rem; margin: 40px 0 12px; }
.prose p, .prose li { font-size: 0.98rem; }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 20px; margin: 12px 0; }
.prose li + li { margin-top: 6px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--muted-on-ink); padding: 56px 0 28px; font-size: 0.88rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.8fr 1fr 1.1fr 0.9fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid var(--line-on-ink); }
.page-contact .footer-details, .page-contact .wa-float { display: none; }
@media (min-width: 601px) {
  .page-contact .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-contact .footer-grid > :first-child { grid-column: auto; }
}
.footer-grid .office-label { display: block; color: var(--paper); font-weight: 400; }
.footer-grid ul:has(.office-label) { gap: 14px; }
.footer-grid img { height: 78px; width: auto; margin-bottom: 18px; }
.footer-grid h2 { color: var(--paper); font: 500 0.9rem/1.3 var(--sans); margin: 0 0 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--paper); text-decoration: underline; }
/* Social links: footer and Contact page, line icons in the current colour */
.social-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.social-links a { display: inline-flex; align-items: center; gap: 10px; }
.social-links svg { width: 17px; height: 17px; flex: none; }

/* Link under the Popular products grid on the home page */
.section-more { margin-top: 26px; }

.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; font-size: 0.82rem; }
.footer-base a { text-decoration: none; }
.footer-base a:hover { color: var(--paper); text-decoration: underline; }

/* ---------- WhatsApp shortcut ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--whatsapp); color: #fff;
  display: grid; place-items: center;
}
.wa-float svg { width: 26px; height: 26px; }

/* ---------- garment details ---------- */
/* Lora italic for small editorial text */
.note,
figcaption,
.cat p em,
.product .code { font-family: var(--serif); font-style: italic; }
.note { font-size: 0.92rem; }
.photos figcaption { font-size: 0.9rem; }
.cat p em { color: var(--ink); font-size: 0.95rem; }
.product .code { font-size: 0.88rem; color: var(--muted); margin-top: 2px; }

/* Woven label, used once on the home page */
.woven-label {
  position: relative;
  display: inline-flex; align-items: center;
  padding: 8px 16px 8px 24px;
  background: var(--sand);
  box-shadow: inset 8px 0 0 var(--sand-fold);
  color: var(--ink);
  font: 500 0.78rem/1 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}
.woven-label::after {
  content: "";
  position: absolute; inset: 3px 3px 3px 11px;
  border: 1px dashed rgba(28, 26, 23, 0.35);
  pointer-events: none;
}
.woven-label:hover { background: #e2ccb4; }

/* JA monogram: end mark on every page, watermark in the footer, large on 404 */
.end-mark {
  display: flex; align-items: center; gap: 20px;
  max-width: var(--wrap); margin: 0 auto;
  padding: 8px var(--gutter) clamp(48px, 6vw, 72px);
}
.end-mark::before,
.end-mark::after { content: ""; flex: 1; height: 1px; background: var(--stitch-line) left center / 10px 1px repeat-x; }
.end-mark img { height: 36px; width: auto; }
.site-footer { position: relative; overflow: hidden; }
.site-footer > .wrap { position: relative; z-index: 1; }
/* Top half of the monogram peeks up from the bottom edge, in the empty middle of the copyright row */
.site-footer::after {
  content: "";
  position: absolute; left: 50%; bottom: -142px;
  translate: -50% 0;
  width: 270px; height: 228px;
  background: url("/assets/img/logo-white.png") no-repeat center / contain;
  opacity: 0.09;
  pointer-events: none;
}
.monogram-xl { width: min(300px, 60vw); height: auto; margin-bottom: 12px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  /* 15 styles a category: 5 a row on laptop and iPad landscape, 3 on iPad portrait, 2 on phones */
  .add .long { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav {
    display: none;
    position: absolute; top: 92px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 16px; text-align: center; }

  .hero-grid, .cols, .contact-grid, .trust-row { grid-template-columns: 1fr; }
  .hero img { aspect-ratio: 4 / 3; }
  .photos { grid-template-columns: 1fr 1fr; }
  .photos > :first-child:nth-last-child(odd) { grid-column: 1 / -1; } /* odd count: first photo wide, the rest in pairs */
  .cats { grid-template-columns: repeat(2, 1fr); }
  .products { grid-template-columns: repeat(3, 1fr); }
  .site-footer::after { display: none; }
}

@media (max-width: 600px) {
  .rows li { grid-template-columns: 1fr; }
  ol.rows li { grid-template-columns: 2em minmax(0, 1fr); }
  ol.rows li p { grid-column: 2; }
  .rows.spec li { grid-template-columns: 4.5em minmax(0, 1fr); }
  .products { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; }
  .add .long { display: none; }
  .form { grid-template-columns: 1fr; }
  .enquiry-list { padding: 16px 14px 14px; }
  /* Phones: a slim bar fixed across the bottom edge, always visible while the list has styles.
     The footer gets matching space, so the bar never covers page content. */
  .enquiry-bar {
    left: 0; right: 0; bottom: 0; translate: none; max-width: none;
    justify-content: space-between; gap: 10px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom)) 14px;
    border-radius: 0; outline: none;
    border-top: 1.5px dashed rgba(233, 216, 196, 0.5);
    box-shadow: 0 -6px 18px rgba(28, 26, 23, 0.18);
    animation-name: bar-up;
  }
  .enquiry-bar p { gap: 10px; }
  .enquiry-bar .flash { display: none; }
  .bar-count { min-width: 28px; height: 28px; font-size: 0.9rem; }
  .bar-text strong { font-size: 0.9rem; }
  .enquiry-bar .btn { padding: 10px 14px; font-size: 0.85rem; }
  body.has-enquiry-bar .site-footer { padding-bottom: calc(28px + 56px + env(safe-area-inset-bottom)); }
  body.has-enquiry-bar .wa-float { bottom: calc(68px + env(safe-area-inset-bottom)); }
  body:not(.page-contact) .footer-base { padding-bottom: 72px; } /* keep the Privacy link clear of the WhatsApp button */
  .people { grid-template-columns: 1fr 1fr; gap: 16px; }
  .brand-names:not(:has(> :nth-child(3))) { grid-template-columns: minmax(0, 1fr); }
  .brand-names:has(> :nth-child(3)) li { padding-inline: 10px; }
  .offices { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  /* Bigger tap areas for links people press with a thumb */
  .footer-grid ul { gap: 0; }
  .footer-grid ul:has(.office-label) { gap: 8px; }
  .footer-grid ul a, .social-links a, .subnav a, .breadcrumb a, .more, .detail a, .offices .small, .footer-base a { display: inline-flex; align-items: center; padding: 9px 0; }
  .social-links { gap: 0; }
  .detail { gap: 0; }
}

@media (max-width: 360px) {
  .bar-text .sub { display: none; }
  .enquiry-bar .btn { padding: 10px 10px; font-size: 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .enquiry-bar, .bump { animation: none; }
}

/* Popular products on Home: 3 + 3 on desktop, 2 per row on phones */
.products.products-popular { grid-template-columns: repeat(3, 1fr); }
.products-popular .product { display: flex; flex-direction: column; }
.products-popular .product-actions { margin-top: auto; padding-top: 10px; }
@media (max-width: 600px) {
  .products.products-popular { grid-template-columns: repeat(2, 1fr); }
}

/* Enquiry form in three tabs (main.js shows one at a time; without JavaScript every field shows) */
.form [hidden] { display: none; }
.form-tabs .subnav { margin-bottom: 0; }
.form-tabs .subnav a[aria-current="step"] {
  color: var(--ink); font-weight: 500;
  text-decoration: underline dashed var(--stitch);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 7px;
}
.form-steps { grid-column: 1 / -1; }
