/* =========================================================
   JC Antiques — site styles
   Tokens first; change --accent to re-theme the whole site.
   ========================================================= */

:root {
  --ink: #16181A;
  --ground: #F2F0EB;
  --sand: #E7E3DA;
  --line: #D8D3C8;
  --line-strong: #A9A192;
  --muted: #5E5A52;
  --body: #3D3A34;
  --white: #FFFFFF;
  --field-bg: #FBFAF7;
  --img-bg: #DDD6C8;

  --accent: #8B4A1F;          /* timber brown */
  --accent-hover: #7A4520;
  --accent-on-dark: #D9A56F;  /* accent used on charcoal */
  --accent-tint: #F6EDE4;     /* body text on accent */
  --accent-label: #F0DCC8;

  --dark-line: #33363A;
  --dark-text: #B5B0A5;
  --dark-ink: #E8E4DA;

  --font-display: 'Archivo', 'Helvetica Neue', sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --container: 1280px;
  --gutter: 24px;
  --section-pad: clamp(64px, 9vw, 100px);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }

a { color: var(--ink); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Utilities ---------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--font-mono); letter-spacing: 0.04em; }
.small { font-size: 14px; }
.muted { color: var(--muted); }
.stack-xs { display: flex; flex-direction: column; gap: 4px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.stack-md { display: flex; flex-direction: column; gap: 20px; }
.stack-lg { display: flex; flex-direction: column; gap: 48px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 10;
  background: var(--ink); color: var(--white); padding: 10px 16px;
}
.skip-link:focus { top: 16px; color: var(--white); }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent);
}
.eyebrow--on-dark { color: var(--accent-on-dark); }
.h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(34px, 4.2vw, 48px); line-height: 1.04; letter-spacing: -0.02em;
}
.h2--xl { font-weight: 800; font-size: clamp(38px, 4.6vw, 52px); line-height: 1; }
.lead { font-size: 17px; color: var(--body); max-width: 560px; }
.lead--on-dark { color: var(--dark-text); }
.lead--on-accent { color: var(--accent-tint); font-size: 18px; }
.text-link { font-weight: 600; padding-block: 10px; }

.section-heading { display: flex; flex-direction: column; gap: 12px; max-width: 680px; }
.split-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; }

/* ---------- Buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px;
  font: 600 15px/1 var(--font-body); text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--accent { background: var(--accent); color: var(--white); }
.btn--accent:hover { background: var(--accent-hover); color: var(--white); }
.btn--dark { background: var(--ink); color: var(--ground); }
.btn--dark:hover { background: #000; color: var(--white); }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: var(--ground); }

/* ---------- Header ---------- */
.utility-bar { background: var(--ink); color: #C9C5BC; font-size: 13px; }
.utility-bar__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 9px; }
.utility-bar__contact { display: flex; flex-wrap: wrap; gap: 20px; }
.utility-bar a { color: var(--dark-ink); text-decoration: none; }
.utility-bar a:hover { color: var(--white); }

.site-header { border-bottom: 1px solid var(--line); background: var(--ground); position: relative; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand__mark {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--ground);
  font: 800 17px/1 var(--font-display);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font: 700 21px/1.1 var(--font-display); letter-spacing: -0.01em; }
.brand__tagline { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

.site-nav { display: flex; gap: 28px; font-size: 15px; font-weight: 500; }
.site-nav a { text-decoration: none; padding-block: 10px; }

.mobile-nav { display: none; }
.mobile-nav summary {
  list-style: none; cursor: pointer; width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong);
}
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav nav {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 20;
  background: var(--ground); border-bottom: 1px solid var(--line);
  padding: 12px var(--gutter) 24px; display: flex; flex-direction: column;
}
.mobile-nav nav a:not(.btn) { padding-block: 12px; text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--line); }
.mobile-nav nav .btn { margin-top: 16px; }

@media (max-width: 960px) {
  .site-nav, .site-header__cta { display: none; }
  .mobile-nav { display: block; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-pad); }
.section--sand { background: var(--sand); }
.section--dark { background: var(--ink); color: var(--dark-ink); }
.section--dark .h2 { color: var(--white); }
.section--accent { background: var(--accent); color: var(--white); }

.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(32px, 5vw, 60px); }
.two-col--end { align-items: end; }
.two-col--center { align-items: center; }

/* Image placeholders (shown until a real photo is added) */
.image-slot { width: 100%; height: 100%; object-fit: cover; background: var(--img-bg); }
.image-slot--empty {
  display: flex; align-items: flex-end; padding: 16px;
  font-size: 12px; color: var(--body);
}

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr));
  gap: 56px; align-items: center; padding-block: 72px 56px;
}
.hero__copy { display: flex; flex-direction: column; gap: 26px; }
.hero__title {
  font: 800 clamp(44px, 5.6vw, 78px)/0.98 var(--font-display); letter-spacing: -0.03em;
}
.hero__lead { font-size: 19px; color: var(--body); max-width: 540px; }
.hero__mosaic {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: 250px 190px; gap: 12px;
}
.hero__img--wide { grid-column: span 2; }
@media (max-width: 560px) {
  .hero__mosaic { grid-template-rows: 180px 140px; }
}

/* ---------- Stats ---------- */
.stats { padding-bottom: 72px; }
.stats__grid {
  margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  border-top: 2px solid var(--ink);
}
.stats__item { padding: 24px 24px 8px 0; display: flex; flex-direction: column-reverse; gap: 4px; }
.stats__value { margin: 0; font: 700 44px/1.05 var(--font-display); letter-spacing: -0.02em; }
.stats__label { font-size: 14px; color: var(--muted); }

/* ---------- Client logos ---------- */
.logos { background: var(--sand); padding-block: 36px; }
.logos__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; }
.logos__label { font-size: 12px; text-transform: uppercase; color: var(--muted); }
.logos__list { display: flex; flex-wrap: wrap; gap: 14px; flex: 1 1 600px; }
.logos__item {
  flex: 1 1 140px; height: 52px; display: flex; align-items: center; justify-content: center;
  border: 1px dashed var(--line-strong); font-size: 12px; color: var(--muted);
}
.logos__item img { max-height: 32px; width: auto; filter: grayscale(1); opacity: .8; }

/* ---------- Products ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 20px; }
.product-card {
  display: flex; flex-direction: column; height: 100%;
  background: var(--white); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s;
}
.product-card:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }
.product-card__img { height: 230px; }
.product-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 6px; }
.product-card__name { font: 700 22px/1.2 var(--font-display); }
.product-card__items { font-size: 14px; color: var(--muted); }

.timbers { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.timbers__label { font-size: 14px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font-size: 14px; padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--white); }

/* ---------- Capabilities ---------- */
.cap-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 1px; background: var(--dark-line); border: 1px solid var(--dark-line);
}
.cap { background: var(--ink); padding: 34px 30px; display: flex; flex-direction: column; gap: 12px; }
.cap__num { font-size: 13px; color: var(--accent-on-dark); }
.cap__title { font: 700 23px/1.2 var(--font-display); color: var(--white); }
.cap__body { font-size: 15px; color: var(--dark-text); }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 165px), 1fr)); }
.step { border-top: 3px solid var(--accent); padding: 20px 18px 8px 0; display: flex; flex-direction: column; gap: 8px; }
.step__num { font-size: 13px; color: var(--muted); }
.step__title { font: 700 19px/1.2 var(--font-display); }
.step__body { font-size: 14px; color: var(--muted); }

.certs {
  background: var(--white); border: 1px solid var(--line); padding: 28px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px 36px;
}
.certs__intro { flex: 1 1 260px; display: flex; flex-direction: column; gap: 4px; }
.certs__title { font: 700 20px/1.2 var(--font-display); }
.certs__list { flex: 2 1 520px; display: flex; flex-wrap: wrap; gap: 12px; }
.certs__item {
  flex: 1 1 110px; height: 64px; padding: 0 8px; text-align: center;
  display: flex; align-items: center; justify-content: center;
  border: 1px dashed var(--line-strong); font-size: 12px; color: var(--muted);
}

/* ---------- Markets ---------- */
.market-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.market { background: var(--ground); border: 1px solid var(--line); padding: 32px 28px; display: flex; flex-direction: column; gap: 14px; }
.market__name { font: 700 30px/1.1 var(--font-display); letter-spacing: -0.01em; }
.market__body { font-size: 15px; color: var(--body); flex: 1; }
.market__buyers { font-size: 14px; font-weight: 600; border-top: 1px solid var(--line); padding-top: 14px; }

/* ---------- About ---------- */
.about__img { min-height: 460px; }

/* ---------- Contact / quote ---------- */
.section--accent a { color: var(--white); }
.contact-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; padding-top: 10px; font-size: 15px; }
.contact-details__label { font-size: 12px; text-transform: uppercase; color: var(--accent-label); }

.quote-card { background: var(--white); color: var(--ink); padding: clamp(24px, 3vw, 34px); }
.quote-card a { color: var(--ink); }
.quote-card__title { font: 700 24px/1.2 var(--font-display); }
.quote-card__done { display: flex; flex-direction: column; gap: 10px; }

.quote-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.quote-form__full { grid-column: 1 / -1; }
.quote-form__submit { min-height: 52px; font-size: 16px; }
@media (max-width: 560px) { .quote-form { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; }
.field input, .field select, .field textarea {
  font: 400 15px/1.4 var(--font-body); color: var(--ink);
  padding: 11px 12px; min-height: 44px; width: 100%;
  border: 1px solid var(--line-strong); background: var(--field-bg); border-radius: 0;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.field .invalid { border-color: #B42318; }
.validation-message { font-size: 13px; color: #B42318; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--dark-text); padding-block: 56px 30px; font-size: 14px; }
.site-footer a { color: var(--dark-text); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.site-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 32px; }
.site-footer__brand { font: 700 22px/1.2 var(--font-display); color: var(--white); }
.site-footer__heading { color: var(--white); font-weight: 600; }
.site-footer__bottom {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--dark-line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px;
}
.site-footer__social { display: flex; gap: 20px; }

/* =========================================================
   Inner pages
   ========================================================= */

.section--tight { padding-block: clamp(48px, 6vw, 72px); }
.btn--light { background: var(--ground); color: var(--ink); }
.btn--light:hover { background: var(--white); color: var(--ink); }
.btn--outline-light { border-color: var(--ground); color: var(--ground); background: transparent; }
.btn--outline-light:hover { background: var(--ground); color: var(--ink); }
.icon-link { display: inline-flex; align-items: center; gap: 8px; }
.feature-img { min-height: 420px; }

.site-nav a.is-active { color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }
.mobile-nav nav a.is-active { color: var(--accent); }

/* Page header + breadcrumbs */
.page-header { border-bottom: 1px solid var(--line); padding-block: clamp(40px, 6vw, 72px) clamp(36px, 5vw, 56px); }
.page-header__title {
  font: 800 clamp(38px, 5vw, 64px)/1.02 var(--font-display); letter-spacing: -0.025em; max-width: 920px;
}
.page-header__lead { font-size: 19px; color: var(--body); max-width: 680px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 14px; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-inline: 10px; color: var(--line-strong); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--ink); }

/* CTA band */
.cta-band { background: var(--accent); color: var(--white); padding-block: clamp(48px, 7vw, 80px); }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta-band__title { font: 800 clamp(30px, 3.6vw, 44px)/1.05 var(--font-display); letter-spacing: -0.02em; }
.cta-band__lead { color: var(--accent-tint); font-size: 17px; max-width: 560px; }

/* Lists */
.tick-list { display: flex; flex-direction: column; gap: 12px; }
.tick-list li { position: relative; padding-left: 30px; }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: 0.45em; width: 14px; height: 8px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
.tick-list--dark { color: var(--dark-text); font-size: 15px; }
.tick-list--dark li::before { border-color: var(--accent-on-dark); }

/* Cards: extra bits for product cards */
.card-grid--products { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.product-card__img--square { height: auto; aspect-ratio: 1 / 1; }
.product-card__meta { font-size: 12px; color: var(--accent); }
.product-card__timber { font-size: 13px; color: var(--muted); margin-top: auto; padding-top: 8px; }

/* Collection filter */
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.filter-bar__label { font-size: 14px; font-weight: 600; margin-right: 6px; }
.filter-chip {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--white);
  font-size: 14px; text-decoration: none;
}
.filter-chip:hover { border-color: var(--ink); color: var(--ink); }
.filter-chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--ground); }

/* Product detail */
.product { padding-block: 32px clamp(48px, 6vw, 72px); }
.product__layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: clamp(32px, 5vw, 64px); align-items: start; }
.product__gallery { display: flex; flex-direction: column; gap: 12px; }
.product__main-img { aspect-ratio: 1 / 1; height: auto; }
.product__thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.product__thumb { aspect-ratio: 1 / 1; height: auto; }
.product__info { display: flex; flex-direction: column; gap: 22px; }
.product__sku { font-size: 13px; color: var(--accent); }
.product__label { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.product__assurances { display: flex; flex-direction: column; gap: 8px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--body); }
.product__assurances li::before { content: "— "; color: var(--accent); }

.spec-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); font-size: 15px; }
.spec-table th, .spec-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { font-weight: 600; width: 44%; color: var(--body); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }

/* About: timeline, principles, facility, team */
.timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.timeline__item { border-top: 2px solid var(--ink); padding: 18px 20px 8px 0; display: flex; flex-direction: column; gap: 6px; position: relative; }
.timeline__item::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; background: var(--accent); border-radius: 50%; }
.timeline__year { font: 700 28px/1.1 var(--font-display); color: var(--accent); }
.timeline__title { font-weight: 600; }
.timeline__body { font-size: 14px; color: var(--muted); }

.principle-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.principle { background: var(--white); border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.principle__title { font: 700 22px/1.2 var(--font-display); }
.principle__body { font-size: 15px; color: var(--body); }

.facility-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.facility-grid__item { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.facility-grid__item .image-slot { aspect-ratio: 4 / 3; height: auto; }
.facility-grid__item figcaption { font-size: 14px; color: var(--dark-text); }

.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 24px; }
.team-card { display: flex; flex-direction: column; gap: 4px; }
.team-card__img { aspect-ratio: 4 / 5; height: auto; margin-bottom: 12px; }
.team-card__name { font: 700 20px/1.2 var(--font-display); }
.team-card__role { font-size: 14px; color: var(--muted); }

/* Process & quality page */
.stage-index { padding-block: 24px 0; }
.stage-index ol { display: flex; flex-wrap: wrap; gap: 8px; }
.stage-index a {
  display: inline-flex; gap: 8px; align-items: center; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--line-strong); background: var(--white); font-size: 14px; text-decoration: none;
}
.stage-index a:hover { border-color: var(--ink); }
.stages { display: flex; flex-direction: column; gap: clamp(48px, 7vw, 88px); }
.stage { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(28px, 4vw, 56px); align-items: center; scroll-margin-top: 24px; }
.stage:nth-child(even) .stage__img { order: 2; }
@media (max-width: 900px) { .stage:nth-child(even) .stage__img { order: 0; } }
.stage__img { aspect-ratio: 4 / 3; height: auto; }
.stage__copy { display: flex; flex-direction: column; gap: 16px; }
.stage__num { font-size: 13px; color: var(--accent); }
.stage__title { font: 700 clamp(28px, 3vw, 36px)/1.1 var(--font-display); letter-spacing: -0.015em; }
.stage__checks { display: flex; flex-direction: column; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }

.step__link { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; }
.step__link:hover .step__title { color: var(--accent); }

/* Contact page */
.enquiry-product {
  display: flex; flex-direction: column; gap: 2px; padding: 16px 18px;
  border: 1px solid rgba(255,255,255,.45); text-decoration: none; font-size: 14px;
}
.enquiry-product__label { font-size: 11px; text-transform: uppercase; color: var(--accent-label); }
.enquiry-product__name { font: 700 20px/1.2 var(--font-display); }

.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  cursor: pointer; list-style: none; padding: 20px 36px 20px 0; position: relative;
  font: 600 18px/1.35 var(--font-display);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 24px; color: var(--accent); }
.faq__item[open] summary::after { content: "–"; }
.faq__item p { padding: 0 0 22px; color: var(--body); max-width: 640px; }

/* =========================================================
   OPAMS catalogue
   ========================================================= */

.product-card__media { position: relative; display: block; }
.badge-new {
  position: absolute; top: 12px; left: 12px;
  background: var(--accent); color: var(--white);
  font: 600 12px/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase;
  padding: 7px 10px;
}
/* ERP descriptions can be long: keep cards even */
.product-card__name, .product-card__items {
  display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card__name { -webkit-line-clamp: 2; line-clamp: 2; }
.product-card__items { -webkit-line-clamp: 2; line-clamp: 2; }

.product__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px 24px; margin: 0; padding: 16px 0; border-block: 1px solid var(--line); }
.product__facts div { display: flex; flex-direction: column; gap: 2px; }
.product__facts dt { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.product__facts dd { margin: 0; font-size: 15px; }
.filter-bar + .filter-bar { margin-top: -4px; }

/* Product photos are cut-outs on white: show the whole piece instead of cropping it. */
.product-card__img { height: auto; aspect-ratio: 4 / 3; }
.product-card__img--square { aspect-ratio: 1 / 1; }
img.product-card__img,
img.product__main-img,
img.product__thumb {
  object-fit: contain;
  background: var(--white);
  padding: 6%;
}
img.product__main-img { border: 1px solid var(--line); }

/* Keep cards at their normal size when a collection or filter has only one or two items
   (auto-fit stretched a single card across the whole page). */
.card-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.card-grid--products { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }

/* =========================================================
   Enquiry list
   ========================================================= */

/* Buttons only work with the script, so they stay hidden until it has loaded. */
.enquiry-add { display: none; }
.has-js .enquiry-add { display: inline-flex; }

.enquiry-add__tick { display: none; }
.enquiry-add.is-added .enquiry-add__plus { display: none; }
.enquiry-add.is-added .enquiry-add__tick { display: inline; }

.product-card-wrap { position: relative; height: 100%; }
.enquiry-add--card {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  align-items: center; gap: 6px; min-height: 36px; padding: 0 12px;
  font: 600 13px/1 var(--font-body); color: var(--ink);
  background: var(--white); border: 1px solid var(--line-strong); border-radius: 999px;
  cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.enquiry-add--card:hover { border-color: var(--ink); }
.enquiry-add--card.is-added { background: var(--accent); border-color: var(--accent); color: var(--white); }
.btn.enquiry-add.is-added { background: var(--ink); color: var(--ground); border-color: var(--ink); }

/* Header link with count */
.site-header__actions { display: flex; align-items: center; gap: 16px; }
.enquiry-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-size: 15px; font-weight: 500; text-decoration: none; position: relative;
}
.enquiry-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--accent); color: var(--white); font: 600 12px/1 var(--font-mono);
}
.enquiry-count[hidden] { display: none; }
@media (max-width: 960px) {
  .site-header__actions .site-header__cta { display: none; }
  .enquiry-link__text { display: none; }
}

/* /enquiry page */
.enquiry-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.enquiry-row {
  display: grid; grid-template-columns: 88px minmax(0, 1fr) auto auto; align-items: center;
  gap: 16px 20px; padding: 16px 0; border-bottom: 1px solid var(--line);
}
.enquiry-row__img { width: 88px; height: 88px; object-fit: contain; background: var(--white); border: 1px solid var(--line); padding: 6px; display: block; }
span.enquiry-row__img { background: var(--img-bg); }
.enquiry-row__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.enquiry-row__sku { font-size: 12px; color: var(--accent); }
.enquiry-row__name { font: 700 18px/1.25 var(--font-display); text-decoration: none; }
.enquiry-row__meta { font-size: 14px; color: var(--muted); }
.enquiry-row__qty { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.enquiry-row__qty input {
  width: 110px; min-height: 44px; padding: 8px 10px; font: 400 15px/1.2 var(--font-body);
  border: 1px solid var(--line-strong); background: var(--field-bg);
}
.enquiry-row__remove {
  min-height: 44px; padding: 0 12px; background: none; border: 0; cursor: pointer;
  font: 500 14px/1 var(--font-body); color: var(--muted); text-decoration: underline;
}
.enquiry-row__remove:hover { color: #B42318; }
@media (max-width: 640px) {
  .enquiry-row { grid-template-columns: 72px minmax(0, 1fr); }
  .enquiry-row__img { width: 72px; height: 72px; }
  .enquiry-row__qty { grid-column: 2; flex-direction: row; align-items: center; gap: 10px; }
  .enquiry-row__remove { grid-column: 2; justify-self: start; padding: 0; }
}
.enquiry-empty { display: flex; flex-direction: column; gap: 10px; padding: 24px 0; }
.enquiry-empty[hidden] { display: none; }

/* Real photos (not cut-outs) fill their frame. */
img.product-card__img--photo { object-fit: cover; padding: 0; }

/* =========================================================
   THEME F · BENTO STUDIO
   Light grey ground, white tiles, burnt-orange accent, Inter Tight with
   Instrument Serif italics. Rounded "bento" grid hero.
   ========================================================= */

:root {
  --ink: #121212;
  --ground: #F4F4F1;
  --sand: #EAEAE5;
  --line: #E1E1DB;
  --line-strong: #C4C4BC;
  --muted: #5C5C57;
  --body: #3F3F3A;
  --white: #FFFFFF;
  --field-bg: #FFFFFF;
  --img-bg: #EEEEE9;

  --accent: #C2410C;
  --accent-hover: #A8380A;
  --accent-on-dark: #F6A97F;
  --accent-tint: #FDE6D8;
  --accent-label: #FBD3BE;
  --sage-soft: #FFFFFF;

  --dark: #121212;
  --dark-line: #2C2C2A;
  --dark-text: #B9B9B2;
  --dark-ink: #F4F4F1;

  --font-display: 'Inter Tight', system-ui, sans-serif;
  --font-body: 'Inter Tight', system-ui, sans-serif;
  --font-mono: 'Inter Tight', system-ui, sans-serif;
  --font-accent: 'Instrument Serif', Georgia, serif;

  --radius-lg: 24px;
  --radius: 20px;
  --radius-sm: 12px;
}

/* Shared rounded-card structure (from theme D), restyled by the tokens above */

/* Type: softer serif headings, sentence-case labels instead of mono caps */
.h2, .page-header__title, .hero__title, .cta-band__title, .stage__title,
.product-card__name, .cap__title, .market__name, .principle__title, .certs__title,
.timeline__year, .stats__value, .quote-card__title, .site-footer__brand, .brand__name,
.enquiry-row__name, .team-card__name, .step__title {
  font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em;
}
.page-header__title, .hero__title { font-weight: 400; letter-spacing: -0.015em; }
.eyebrow, .mono, .product-card__meta, .contact-details__label, .step__num, .cap__num,
.stage__num, .logos__label, .enquiry-row__sku, .product__sku {
  font-family: var(--font-body); letter-spacing: 0; text-transform: none; font-weight: 600;
}
.eyebrow { font-size: 14px; color: var(--accent); }
.eyebrow--on-dark { color: var(--accent-on-dark); }

/* Buttons and chips: pills */
.btn { border-radius: 999px; font-weight: 600; }
.btn--accent { background: var(--accent); }
.btn--accent:hover { background: var(--accent-hover); }
.btn--dark { background: var(--ink); }
.btn--outline { border-width: 1px; }
.filter-chip, .chip { border-color: var(--line-strong); }
.filter-chip.is-active { background: var(--accent); border-color: var(--accent); color: var(--white); }

/* Header */
.utility-bar { background: var(--dark); }
.site-header { background: var(--ground); border-bottom: 0; }
.site-header__inner { padding-block: 22px; }
.brand__mark { border-radius: 50%; background: var(--accent); font-family: var(--font-display); font-weight: 500; }
.brand__name { font-size: 24px; }
.site-nav { background: var(--white); padding: 5px; border-radius: 999px; gap: 2px; }
.site-nav a { padding: 9px 16px; border-radius: 999px; }
.site-nav a:hover { background: var(--sand); color: var(--ink); }
.site-nav a.is-active { background: var(--sage-soft); color: var(--ink); box-shadow: none; }
.enquiry-link { padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; }
.enquiry-count { background: var(--accent); }
.mobile-nav summary { border-radius: 999px; }
.mobile-nav nav { border-radius: 0 0 var(--radius) var(--radius); }

/* Hero: full-width rounded photo with a floating card */
.hero-d { padding: 0 var(--gutter); max-width: 1440px; margin: 8px auto 0; }
.hero-d__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 620px; display: flex; align-items: flex-end; }
.hero-d__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-d__card {
  position: relative; margin: 40px; max-width: 560px; padding: 40px;
  background: rgba(255, 255, 255, 0.94); border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 18px;
}
.hero-d .hero__title { font-size: clamp(38px, 4.4vw, 58px); line-height: 1.04; }
.hero-d .hero__lead { font-size: 17px; max-width: none; }
@media (max-width: 720px) {
  .hero-d__media { min-height: 0; flex-direction: column; align-items: stretch; }
  .hero-d__img { position: relative; height: 300px; }
  .hero-d__card { margin: 0; border-radius: 0; padding: 28px 22px; max-width: none; background: var(--white); }
}

/* Stats: white tiles */
.stats { padding-top: 24px; padding-bottom: 64px; }
.stats__grid { border-top: 0; gap: 16px; }
.stats__item { background: var(--white); border-radius: var(--radius); padding: 24px 26px; justify-content: flex-end; }
.stats__value { font-size: 40px; }

/* Sections */
.section--sand { background: var(--sand); }
.section--dark { background: var(--dark); }
.section--accent { background: var(--sage-soft); color: var(--ink); }
.section--accent .h2 { color: var(--ink); }
.section--accent a { color: var(--ink); }
.lead--on-accent { color: var(--body); }
.contact-details__label { color: var(--accent); }
.logos { background: transparent; }
.logos__item { border: 0; background: var(--white); border-radius: var(--radius-sm); }

/* Cards: white, rounded, photo in an inner rounded frame */
.product-card {
  border: 0; border-radius: var(--radius); padding: 12px; background: var(--white);
  transition: transform .15s, box-shadow .15s;
}
.product-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(46, 43, 38, 0.08); border-color: transparent; }
.product-card .image-slot { border-radius: var(--radius-sm); }
img.product-card__img, img.product__thumb { background: #FBFAF7; }
.product-card__body { padding: 16px 8px 8px; }
.product-card__name { font-size: 24px; }
.product-card__meta { color: var(--accent); font-size: 13px; }
.badge-new { border-radius: 999px; background: var(--accent); top: 14px; left: 14px; font-family: var(--font-body); letter-spacing: 0.02em; }
.enquiry-add--card { top: 22px; right: 22px; border-color: var(--line); }
.enquiry-add--card.is-added { background: var(--accent); border-color: var(--accent); }

.cap-grid { background: transparent; border: 0; gap: 16px; }
.cap { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--dark-line); border-radius: var(--radius); }
.cap__num { color: var(--accent-on-dark); }
.market, .principle, .certs { border: 0; border-radius: var(--radius); background: var(--white); }
.section--sand .market { background: var(--white); }
.certs__item { border-radius: var(--radius-sm); border-style: solid; border-color: var(--line); }
.step { border-top-width: 2px; }
.timeline__item::before { background: var(--accent); }
.timeline__year { color: var(--accent); }

/* Inner pages */
.page-header { border-bottom: 0; }
.breadcrumbs [aria-current] { color: var(--accent); }
.stage__img, .feature-img, .about__img, .facility-grid__item .image-slot, .team-card__img,
.product__main-img { border-radius: var(--radius); }
img.product__main-img { border: 0; }
.product__thumb { border-radius: var(--radius-sm); }
.spec-table { border: 0; border-radius: var(--radius); overflow: hidden; }
.stage-index a { border-radius: 999px; }
.faq__item summary::after { color: var(--accent); }

/* Closing call to action: soft sage block instead of a solid band */
.cta-band { background: transparent; color: var(--ink); padding-block: clamp(40px, 6vw, 72px); }
.cta-band__inner { background: var(--sage-soft); border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 56px); }
.cta-band__lead { color: var(--body); }
.cta-band .btn--light { background: var(--ink); color: var(--ground); }
.cta-band .btn--light:hover { background: #000; color: var(--white); }
.cta-band .btn--outline-light { border-color: var(--ink); color: var(--ink); }
.cta-band .btn--outline-light:hover { background: var(--ink); color: var(--ground); }

/* Forms */
.quote-card { border-radius: var(--radius-lg); }
.field input, .field select, .field textarea, .enquiry-row__qty input { border-radius: var(--radius-sm); border-color: var(--line-strong); }
.enquiry-row__img { border-radius: var(--radius-sm); border-color: var(--line); }
.enquiry-list { border-top: 0; background: var(--white); border-radius: var(--radius); padding: 4px 20px; }
.enquiry-row:last-child { border-bottom: 0; }

/* Footer */
.site-footer { background: var(--dark); }
.site-footer__bottom { border-top-color: var(--dark-line); }
@media (max-width: 560px) {
  .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stats__item { padding: 18px 16px; justify-content: flex-end; }
  .stats__value { font-size: 24px; }
  .stats__label { font-size: 13px; }
}

/* F: bolder grotesk headings, square-ish buttons */
.h2, .page-header__title, .hero__title, .cta-band__title, .stage__title, .product-card__name,
.cap__title, .market__name, .principle__title, .certs__title, .stats__value, .quote-card__title,
.site-footer__brand, .brand__name, .enquiry-row__name, .team-card__name, .step__title {
  font-weight: 600; letter-spacing: -0.035em;
}
.timeline__year { font-weight: 600; letter-spacing: -0.03em; }
.btn { border-radius: 14px; }
.site-nav, .site-nav a, .enquiry-link, .mobile-nav summary { border-radius: 14px; }
.site-header { padding-top: 12px; }
.site-header__inner { background: var(--white); border-radius: 18px; padding: 10px 12px 10px 18px; }
.site-nav { background: transparent; }
.site-nav a.is-active { background: var(--ground); }
.brand__mark { border-radius: 12px; background: var(--ink); color: var(--white); font-family: var(--font-body); font-weight: 700; }
.brand__name { font-weight: 700; font-size: 21px; letter-spacing: -0.02em; }
.utility-bar { background: var(--ink); }
.serif-i { font-family: var(--font-accent); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.cta-band__inner { background: var(--white); }
.stats__item { border-radius: var(--radius); }

/* F hero: bento grid */
.hero-f { max-width: 1440px; margin: 12px auto 0; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: 300px 300px; gap: 12px; }
.hero-f__copy { grid-column: span 6; grid-row: span 2; background: var(--white); border-radius: var(--radius-lg);
  padding: clamp(28px, 3.4vw, 48px); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.hero-f__title { margin: 0; font: 600 clamp(44px, 5.4vw, 78px)/0.98 var(--font-display); letter-spacing: -0.045em; color: var(--ink); }
.hero-f__lead { margin: 0; font-size: 18px; line-height: 1.55; color: var(--body); max-width: 520px; }
.hero-f__tile { border-radius: var(--radius-lg); overflow: hidden; position: relative; }
.hero-f__tile--wide { grid-column: span 6; }
.hero-f__tile--half { grid-column: span 3; }
.hero-f__tile .image-slot { width: 100%; height: 100%; object-fit: cover; }
.hero-f__chip { position: absolute; left: 16px; bottom: 16px; background: var(--white); border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: none; }
.hero-f__stat { grid-column: span 3; background: var(--accent); color: var(--white); border-radius: var(--radius-lg);
  padding: 26px; display: flex; flex-direction: column; justify-content: space-between; }
.hero-f__stat-num { font: 600 clamp(64px, 6.4vw, 92px)/0.9 var(--font-display); letter-spacing: -0.05em; }
.hero-f__stat-label { font-size: 15px; font-weight: 500; color: var(--accent-tint); }
@media (max-width: 960px) {
  .hero-f { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; }
  .hero-f__copy, .hero-f__tile--wide { grid-column: 1 / -1; grid-row: auto; }
  .hero-f__tile--wide { aspect-ratio: 3 / 2; }
  .hero-f__stat, .hero-f__tile--half { grid-column: span 1; min-height: 200px; }
}

/* Phones and tablets: the enquiry count moves onto the menu button so the brand name keeps its space.
   The "Enquiry list" link (with count) is inside the menu. */
@media (max-width: 960px) {
  .site-header__actions { display: none; }
  .mobile-nav summary { position: relative; }
  .mobile-nav__badge {
    position: absolute; top: -6px; right: -6px;
    min-width: 20px; height: 20px; padding: 0 5px; font-size: 11px;
    box-shadow: 0 0 0 2px var(--ground);
  }
}

/* ---------- Polish: logos, certifications, timeline, team ---------- */
/* Client logos: one even strip, each logo boxed to the same visual size */
.logos__inner { flex-direction: column; align-items: stretch; gap: 16px; }
.logos__list { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; flex: none; }
.logos__item { height: 72px; padding: 12px 16px; }
.logos__item img { width: 100%; height: 100%; max-height: 40px; object-fit: contain; }
@media (max-width: 960px) { .logos__list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 480px) { .logos__item { height: 60px; padding: 10px; } }

/* Certifications: tidy pill tags instead of stretched boxes */
.certs__list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.certs__item {
  flex: 0 0 auto; height: auto; padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--ground);
  font-size: 14px; font-weight: 600; color: var(--ink);
}

/* Milestones: all in one row on desktop, vertical on phones */
.timeline { grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); list-style: none; padding: 0; }
@media (max-width: 640px) {
  .timeline { grid-template-columns: 1fr; border-left: 2px solid var(--ink); margin-left: 6px; }
  .timeline__item { border-top: 0; padding: 0 0 26px 24px; }
  .timeline__item::before { top: 8px; left: -7px; }
}

/* Team: keep card size steady however many people are shown */
.team-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }

/* Hero: full photo on top, text card overlapping only the rug at its lower edge */
.hero-d__media {
  min-height: 0; display: flex; flex-direction: column; align-items: stretch;
  overflow: visible; border-radius: 0; background: transparent;
}
.hero-d__img {
  position: relative; inset: auto; width: 100%; height: auto;
  aspect-ratio: 16 / 8; object-position: center 30%; border-radius: var(--radius-lg);
}
.hero-d__card {
  position: relative; margin: -72px 40px 0; max-width: none; padding: 36px 40px;
  background: var(--white); border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(46, 43, 38, 0.10);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 20px 56px; align-items: center;
}
.hero-d__head, .hero-d__body { display: flex; flex-direction: column; gap: 16px; }
.hero-d__body .btn-row { margin-top: 4px; }
@media (max-width: 960px) {
  .hero-d__img { aspect-ratio: 3 / 2; object-position: center; }
  .hero-d__card { grid-template-columns: 1fr; margin: -40px 16px 0; padding: 28px 24px; }
}
@media (max-width: 480px) {
  .hero-d__card { margin: -28px 10px 0; padding: 24px 20px; }
}

/* Phones: client logos three to a row, with a short last row centred */
@media (max-width: 640px) {
  .logos__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
  .logos__item { flex: 0 0 calc((100% - 20px) / 3); height: 64px; padding: 10px 12px; }
}

/* Closing call-to-action card: line its edges up with the page content and give it breathing room above */
.cta-band { padding-block: clamp(40px, 6vw, 72px); }
.cta-band__inner {
  width: calc(100% - 2 * var(--gutter));
  max-width: calc(var(--container) - 2 * var(--gutter));
  margin-inline: auto;
}

/* One content column for everything: menu bar, hero grid and sections share the same edges */
.hero-f { max-width: var(--container); }
.site-header__inner {
  width: calc(100% - 2 * var(--gutter));
  max-width: calc(var(--container) - 2 * var(--gutter));
  margin-inline: auto;
}
