/* ==========================================================================
   Garment factory B2B site
   Palette: indigo dye, cutting-table grey, tape-measure yellow
   Type: Archivo (variable width). Wide and heavy for display, normal for text.
   ========================================================================== */

:root {
  --indigo: #1e2a5a;
  --indigo-deep: #141c40;
  --indigo-soft: #33427f;
  --paper: #f2f4f7;
  --mat: #e6ebf2;
  --mat-line: #cfd7e3;
  --white: #ffffff;
  --tape: #f4c430;
  --tape-deep: #d9a800;
  --ink: #1b2030;
  --steel: #5d6679;
  --line: #d5dae3;
  --ok: #2f7d5b;
  --error: #b3261e;

  --font: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius-s: 4px;
  --radius-m: 10px;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

img, svg { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--indigo); text-underline-offset: 3px; }
a:hover { color: var(--indigo-soft); }

:focus-visible {
  outline: 3px solid var(--tape);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--tape); color: var(--ink); padding: .6rem 1rem; font-weight: 700;
}
.skip-link:focus { top: 1rem; }

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

/* ---------- Type ---------- */

h1, h2, h3, h4 { margin: 0; line-height: 1.08; color: var(--ink); }

.display {
  font-size: clamp(2.5rem, 6.2vw, 4.75rem);
  font-weight: 800;
  font-stretch: 118%;
  letter-spacing: -0.02em;
  line-height: 1.0;
  max-width: 13ch;
}
@media (min-width: 1000px) { .hero .display { max-width: none; } }

h2, .h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.625rem);
  font-weight: 760;
  font-stretch: 112%;
  letter-spacing: -0.015em;
}

h3, .h3 { font-size: 1.25rem; font-weight: 680; font-stretch: 104%; line-height: 1.25; }

.lede { font-size: clamp(1.125rem, 1.6vw, 1.3rem); color: var(--steel); max-width: 58ch; margin: 1.25rem 0 0; }
.muted { color: var(--steel); }
.small { font-size: .9rem; }

/* A section heading with its intro sitting to the right on wide screens */
.section-head { display: grid; gap: 1rem 3rem; margin-bottom: 2.5rem; }
.section-head p { margin: 0; color: var(--steel); max-width: 52ch; }
@media (min-width: 900px) {
  .section-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; }
}

/* ---------- Stitch line: the recurring divider ---------- */

.stitch {
  height: 2px; border: 0; margin: 0;
  background-image: repeating-linear-gradient(90deg, var(--indigo) 0 12px, transparent 12px 20px);
  opacity: .35;
}
.stitch--light { background-image: repeating-linear-gradient(90deg, var(--white) 0 12px, transparent 12px 20px); opacity: .3; }

/* ---------- Buttons ---------- */

.btn {
  --btn-bg: var(--indigo); --btn-fg: var(--white); --btn-border: var(--indigo);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .75rem 1.4rem;
  font: inherit; font-weight: 700; font-size: 1rem; font-stretch: 106%;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 2px solid var(--btn-border); border-radius: var(--radius-s);
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { --btn-bg: var(--indigo-soft); --btn-border: var(--indigo-soft); color: var(--btn-fg); }
.btn--tape { --btn-bg: var(--tape); --btn-fg: var(--ink); --btn-border: var(--tape); }
.btn--tape:hover { --btn-bg: #ffd65a; --btn-border: #ffd65a; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--indigo); --btn-border: currentColor; }
.btn--ghost:hover { --btn-bg: var(--indigo); --btn-fg: var(--white); --btn-border: var(--indigo); }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: var(--white); --btn-border: rgba(255,255,255,.55); }
.btn--ghost-light:hover { --btn-bg: var(--white); --btn-fg: var(--indigo); --btn-border: var(--white); }
.btn--small { min-height: 40px; padding: .5rem 1rem; font-size: .925rem; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(242, 244, 247, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 44px; height: 44px; flex: none; }
.brand-name { font-weight: 800; font-stretch: 115%; font-size: 1.05rem; line-height: 1.1; letter-spacing: -0.01em; }
.brand-name small { display: block; font-weight: 500; font-stretch: 100%; font-size: .78rem; color: var(--steel); letter-spacing: 0; }

.nav { display: flex; align-items: center; gap: .25rem; }
.nav a:not(.btn) {
  position: relative; padding: .5rem .8rem; border-radius: var(--radius-s);
  color: var(--ink); text-decoration: none; font-weight: 560; font-size: .98rem;
}
.nav a:not(.btn):hover { background: var(--mat); color: var(--ink); }
.nav a[aria-current="page"]:not(.btn)::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .2rem; height: 2px;
  background-image: repeating-linear-gradient(90deg, var(--indigo) 0 6px, transparent 6px 10px);
}
.nav .btn { margin-left: .75rem; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius-s);
  background: var(--white); color: var(--ink); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .75rem var(--gutter) 1.25rem; background: var(--paper);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: .85rem .25rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a[aria-current="page"]:not(.btn)::after { left: .25rem; right: auto; width: 3rem; }
  .nav .btn { margin: 1rem 0 0; }
}

/* ---------- Hero ---------- */

.hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem); }
.hero-grid { display: grid; gap: 2rem; margin-top: .5rem; }
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: end; }
}
.hero-note { justify-self: end; border-left: 3px solid var(--tape); padding: .25rem 0 .25rem 1.25rem; color: var(--steel); max-width: 40ch; }
.hero-note strong { color: var(--ink); display: block; font-size: 1.05rem; margin-bottom: .25rem; }

/* ---------- Lead-time estimator: the signature element ---------- */

.estimator {
  position: relative;
  background: var(--indigo);
  color: var(--white);
  border-radius: var(--radius-m);
  overflow: hidden;
  isolation: isolate;
}
/* faint twill weave texture, like denim */
.estimator::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .09;
  background-image: repeating-linear-gradient(135deg, var(--white) 0 1px, transparent 1px 7px);
}
.estimator-inner { padding: clamp(1.5rem, 4vw, 3rem); }
.estimator h2 { color: var(--white); font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
.estimator-intro { color: rgba(255,255,255,.75); margin: .6rem 0 0; max-width: 60ch; }

.estimator-top { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .estimator-top { grid-template-columns: minmax(0, 1fr) auto; align-items: end; } }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.75rem; }
.chip {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 42px; padding: .4rem .9rem .4rem .45rem;
  font: inherit; font-size: .95rem; font-weight: 600;
  color: inherit; background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.22); border-radius: 999px; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.chip:hover { background: rgba(255,255,255,.14); }
.chip[aria-pressed="true"] { background: var(--white); color: var(--indigo); border-color: var(--white); }
.chip svg { width: 30px; height: 30px; }

@media (max-width: 640px) {
  .brand-name small { display: none; }
  .estimator .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * clamp(1.5rem, 4vw, 3rem)); padding-inline: clamp(1.5rem, 4vw, 3rem); padding-bottom: .25rem; scrollbar-width: none; }
  .estimator .chip { flex: none; }
}

/* The tape */
.tape-wrap { margin-top: 2.25rem; }
.tape-label { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .75rem; }
.tape-label span { color: rgba(255,255,255,.7); font-size: .95rem; }
.tape-qty { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; font-stretch: 115%; color: var(--tape); }
.tape-qty small { font-size: .5em; font-weight: 600; color: rgba(255,255,255,.75); font-stretch: 100%; margin-left: .35rem; }

.tape {
  position: relative; height: 76px;
  background-color: var(--tape);
  border-radius: 3px;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.12), 0 8px 24px rgba(0,0,0,.25);
  color: var(--ink);
  overflow: hidden;
}
.tape-track { position: absolute; top: 0; bottom: 0; left: 22px; right: 22px; }
.tape-ticks { position: absolute; inset: 0; pointer-events: none; }
.tape-ticks .tick { position: absolute; top: 0; width: 1.5px; background: var(--ink); transform: translateX(-50%); }
.tape-ticks .tick--minor { height: 14px; opacity: .55; }
.tape-ticks .tick--mid { height: 22px; opacity: .75; }
.tape-ticks .tick--major { height: 32px; width: 2px; }
.tape-ticks .num {
  position: absolute; top: 34px; transform: translateX(-50%);
  font-size: .8rem; font-weight: 700; font-stretch: 90%; white-space: nowrap;
}
.tape-ticks .num.is-active { color: var(--indigo); font-weight: 900; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) { .tape-ticks .num--odd { display: none; } }
.tape-fill {
  position: absolute; left: -22px; top: 0; bottom: 0; box-sizing: content-box; padding-left: 22px;
  background: rgba(30, 42, 90, .12);
  border-right: 3px solid var(--indigo);
  pointer-events: none;
  transition: width .18s ease;
}
.tape-fill::after {
  /* the red hook marker at the end of a tape measure */
  content: ""; position: absolute; right: -9px; bottom: -1px;
  border: 7.5px solid transparent; border-bottom: 10px solid #c8102e;
}

.tape input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0;
  opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; background: none;
}
/* hairline thumb so pointer position maps exactly onto the tape */
.tape input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 1px; height: 76px; }
.tape input[type="range"]::-moz-range-thumb { width: 1px; height: 76px; border: 0; }
.tape:focus-within { outline: 3px solid var(--white); outline-offset: 4px; }

.estimate {
  display: grid; gap: 1.5rem; margin-top: 2.25rem; padding-top: 1.75rem;
  border-top: 1px dashed rgba(255,255,255,.3);
}
@media (min-width: 900px) { .estimate { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; } }
.estimate-total { font-size: 1.05rem; color: rgba(255,255,255,.8); }
.estimate-total strong {
  display: block; color: var(--white);
  font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 800; font-stretch: 112%; line-height: 1.05; margin-bottom: .3rem;
}

/* Breakdown bar: sampling, sewing, finishing shown proportionally */
.breakdown-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.12); }
.breakdown-bar span { display: block; height: 100%; transition: flex-grow .25s ease; }
.seg-sample { background: #8fa0e0; }
.seg-sew { background: var(--tape); }
.seg-finish { background: #7fc8a9; }
.breakdown-legend { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: .9rem 0 0; padding: 0; list-style: none; font-size: .95rem; color: rgba(255,255,255,.85); }
.breakdown-legend li { display: flex; align-items: center; gap: .5rem; }
.breakdown-legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.breakdown-legend b { color: var(--white); }

.estimator-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem clamp(1.5rem, 4vw, 3rem);
  background: var(--indigo-deep); font-size: .92rem; color: rgba(255,255,255,.7);
}
.estimator-foot p { margin: 0; max-width: 62ch; }

/* ---------- Spec strip (key facts, read like a garment spec sheet) ---------- */

.spec-strip {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m);
}
@media (min-width: 900px) { .spec-strip { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.spec-strip div { padding: 1.25rem 1.4rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.spec-strip dt { font-size: .88rem; color: var(--steel); }
.spec-strip dd { margin: .2rem 0 0; font-size: 1.5rem; font-weight: 760; font-stretch: 110%; line-height: 1.2; }
.spec-strip dd small { font-size: .62em; font-weight: 600; color: var(--steel); font-stretch: 100%; }
@media (min-width: 900px) {
  .spec-strip div { border-bottom: 0; }
  .spec-strip div:last-child { border-right: 0; }
}
@media (max-width: 899px) {
  .spec-strip div:nth-child(2n) { border-right: 0; }
  .spec-strip div:last-child { grid-column: 1 / -1; border-bottom: 0; }
}

/* ---------- Sections ---------- */

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--white { background: var(--white); }
.section--indigo { background: var(--indigo); color: var(--white); }
.section--indigo h2, .section--indigo h3 { color: var(--white); }
.section--indigo .section-head p { color: rgba(255,255,255,.75); }

/* ---------- Cutting mat (background for garment illustrations) ---------- */

.mat {
  position: relative;
  background-color: var(--mat);
  background-image:
    linear-gradient(var(--mat-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--mat-line) 1px, transparent 1px);
  background-size: 16px 16px;
  background-position: -1px -1px;
}

/* ---------- Category grid ---------- */

.cat-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.cat {
  display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 1.25rem; align-items: center;
  padding: 1.25rem; background: var(--white); color: var(--ink); text-decoration: none;
  transition: background-color .15s ease;
}
.cat:hover { background: #fafbfd; color: var(--ink); }
.cat .mat { width: 120px; height: 120px; border-radius: var(--radius-s); display: grid; place-items: center; }
.cat .mat svg { width: 92px; height: 92px; transition: transform .25s ease; }
.cat:hover .mat svg { transform: rotate(-4deg) scale(1.04); }
.cat h3 { margin-bottom: .35rem; }
.cat p { margin: 0; color: var(--steel); font-size: .95rem; }
.cat .cat-link { display: inline-block; margin-top: .6rem; font-weight: 650; color: var(--indigo); font-size: .95rem; text-decoration: underline; text-decoration-thickness: 1px; }

/* ---------- Process steps (a real sequence, so numbered) ---------- */

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.steps li { position: relative; padding: 1.75rem 1.5rem 1.75rem 0; counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 1.1rem;
  border-radius: 50%; background: var(--tape); color: var(--ink);
  font-weight: 800; font-size: 1.1rem; font-stretch: 110%;
}
/* the thread that joins the steps */
.steps li::after {
  content: ""; position: absolute; top: calc(1.75rem + 21px); left: 52px; right: 8px; height: 2px;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.45) 0 8px, transparent 8px 14px);
}
.steps li:last-child::after { display: none; }
.steps h3 { margin-bottom: .5rem; }
.steps p { margin: 0; color: rgba(255,255,255,.75); font-size: .98rem; }
@media (max-width: 999px) {
  .steps li { padding: 0 0 2rem 64px; }
  .steps li::before { position: absolute; left: 0; top: 0; }
  .steps li::after {
    top: 52px; bottom: 8px; left: 21px; right: auto; width: 2px; height: auto;
    background-image: repeating-linear-gradient(180deg, rgba(255,255,255,.45) 0 8px, transparent 8px 14px);
  }
}

/* ---------- Floor plan ---------- */

.floor-preview { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 1000px) { .floor-preview { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); } }

.floor { padding: clamp(1rem, 3vw, 1.75rem); border-radius: var(--radius-m); border: 1px solid var(--mat-line); }
.floor-zone + .floor-zone { margin-top: 1.25rem; }
.floor-zone-label { display: flex; justify-content: space-between; font-size: .88rem; font-weight: 650; color: var(--steel); margin-bottom: .5rem; }
.floor-row { display: flex; flex-wrap: wrap; gap: 8px; }

.machine {
  position: relative; width: 58px; height: 58px; padding: 0;
  display: grid; place-items: center;
  background: var(--white); border: 1.5px solid var(--indigo); border-radius: 6px;
  color: var(--indigo); cursor: default; font: inherit;
}
.machine svg { width: 34px; height: 34px; }
.machine[data-group="cutting"] { background: var(--indigo); color: var(--white); }
.machine[data-group="finishing"] { background: var(--tape); border-color: var(--ink); color: var(--ink); }
.machine:hover, .machine:focus-visible { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(20, 28, 64, .18); }
.machine { transition: transform .15s ease, box-shadow .15s ease; }
.machine .tip {
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  width: max-content; max-width: 220px; padding: .45rem .65rem; border-radius: var(--radius-s);
  background: var(--ink); color: var(--white); font-size: .82rem; line-height: 1.35; text-align: left;
  opacity: 0; pointer-events: none; transition: opacity .12s ease; z-index: 5;
}
.machine:hover .tip, .machine:focus-visible .tip { opacity: 1; }
.floor--large .machine { width: 72px; height: 72px; }
.floor--large .machine svg { width: 42px; height: 42px; }

.legend { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; list-style: none; padding: 0; margin: 1.25rem 0 0; font-size: .92rem; color: var(--steel); }
.legend li { display: flex; align-items: center; gap: .5rem; }
.legend i { width: 14px; height: 14px; border-radius: 3px; border: 1.5px solid var(--indigo); display: inline-block; background: var(--white); }
.legend i.cutting { background: var(--indigo); }
.legend i.finishing { background: var(--tape); border-color: var(--ink); }

/* ---------- CTA band ---------- */

.cta-band { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .cta-band { grid-template-columns: minmax(0, 1.4fr) auto; } }
.cta-band p { color: rgba(255,255,255,.78); margin: 1rem 0 0; max-width: 54ch; }
.cta-band .btn-row { margin-top: 0; }

/* ---------- Page header (inner pages) ---------- */

.page-head { padding: clamp(2.75rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 2.75rem); }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; font-stretch: 118%; letter-spacing: -0.02em; }
.crumbs { font-size: .9rem; color: var(--steel); margin-bottom: 1rem; }
.crumbs a { color: var(--steel); }

/* ---------- Catalog ---------- */

.toolbar {
  position: sticky; top: var(--header-h); z-index: 20;
  display: grid; gap: .9rem; padding: 1rem 0;
  background: var(--paper); border-bottom: 1px solid var(--line);
}
@media (min-width: 900px) { .toolbar { grid-template-columns: minmax(0, 1fr) 260px 200px; align-items: center; } }
.toolbar .chips { margin: 0; }
.toolbar .chip { background: var(--white); border-color: var(--line); color: var(--ink); padding: .4rem 1rem; min-height: 40px; }
.toolbar .chip:hover { border-color: var(--indigo); background: var(--white); }
.toolbar .chip[aria-pressed="true"] { background: var(--indigo); border-color: var(--indigo); color: var(--white); }
.toolbar .chip .count { font-size: .8rem; opacity: .7; }

.field-inline { position: relative; }
.field-inline svg { position: absolute; left: .85rem; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--steel); pointer-events: none; }
.field-inline input { padding-left: 2.5rem; }

.result-count { margin: 1.5rem 0 1rem; color: var(--steel); font-size: .95rem; }

.catalog { display: grid; gap: 1.5rem; }
@media (min-width: 720px) { .catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .catalog { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.style-card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden;
}
.style-card .mat { aspect-ratio: 4 / 3; display: grid; place-items: center; border-bottom: 1px solid var(--line); }
.style-card .mat svg { width: 46%; height: auto; }
.style-card .mat img { width: 100%; height: 100%; object-fit: cover; }
.style-card .tag {
  position: absolute; top: .9rem; left: .9rem; padding: .25rem .6rem; border-radius: var(--radius-s);
  background: var(--white); border: 1px solid var(--line); font-size: .8rem; font-weight: 600; color: var(--steel);
}
.style-card .tag--featured { left: auto; right: .9rem; background: var(--tape); border-color: var(--tape); color: var(--ink); }
.style-body { padding: 1.4rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.style-body h3 { font-size: 1.3rem; }
.style-body > p { margin: .5rem 0 0; color: var(--steel); font-size: .97rem; }

.spec { margin: 1.25rem 0 0; display: grid; grid-template-columns: auto minmax(0, 1fr); font-size: .93rem; border-top: 1px solid var(--line); }
.spec dt, .spec dd { padding: .55rem 0; border-bottom: 1px solid var(--line); margin: 0; }
.spec dt { color: var(--steel); padding-right: 1.25rem; }
.spec dd { font-weight: 600; }

.quick-estimate { margin-top: 1rem; padding: .85rem 1rem; background: var(--paper); border-radius: var(--radius-s); font-size: .92rem; }
.quick-estimate label { display: flex; align-items: center; justify-content: space-between; gap: .75rem; color: var(--steel); }
.quick-estimate input { width: 110px; min-height: 36px; padding: .3rem .6rem; font-size: .95rem; text-align: right; }
.quick-estimate output { display: block; margin-top: .45rem; font-weight: 650; color: var(--ink); }

.style-actions { margin-top: auto; padding-top: 1.25rem; display: flex; gap: .6rem; }
.style-actions .btn { flex: 1; }

.empty {
  grid-column: 1 / -1; padding: 3rem 1.5rem; text-align: center;
  background: var(--white); border: 1.5px dashed var(--mat-line); border-radius: var(--radius-m);
}
.empty h3 { margin-bottom: .5rem; }
.empty p { color: var(--steel); margin: 0 0 1.25rem; }

/* ---------- Capacity page ---------- */

.cap-grid { display: grid; gap: 2.5rem; }
@media (min-width: 1000px) { .cap-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; } }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--white); }
table.data { width: 100%; border-collapse: collapse; font-size: .96rem; min-width: 520px; }
table.data th, table.data td { padding: .85rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { font-weight: 650; color: var(--steel); font-size: .88rem; background: #fafbfd; }
table.data tr:last-child td { border-bottom: 0; }
table.data td.num, table.data th.num { text-align: right; }
.group-dot { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: .5rem; border: 1.5px solid var(--indigo); vertical-align: 1px; }
.group-dot.cutting { background: var(--indigo); }
.group-dot.finishing { background: var(--tape); border-color: var(--ink); }

.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.bars li { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr) 5.5rem; gap: .9rem; align-items: center; font-size: .95rem; }
.bars .bar { height: 12px; background: var(--mat); border-radius: 999px; overflow: hidden; }
.bars .bar span { display: block; height: 100%; background: var(--indigo); border-radius: 999px; }
.bars .val { text-align: right; font-weight: 700; }
@media (max-width: 600px) {
  .bars li { grid-template-columns: minmax(0, 1fr) auto; }
  .bars .bar { grid-column: 1 / -1; grid-row: 2; }
}

.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); padding: clamp(1.25rem, 3vw, 2rem); }
.panel h3 { margin-bottom: .75rem; }

.formula { margin: 1rem 0 0; padding: 1rem 1.1rem; background: var(--paper); border-left: 3px solid var(--tape); border-radius: 0 var(--radius-s) var(--radius-s) 0; font-size: .95rem; }
.formula b { font-weight: 700; }

.checks { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .checks { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.check { border-top: 3px solid var(--tape); padding-top: 1.25rem; }
.check h3 { margin-bottom: .5rem; }
.check p { margin: 0; color: var(--steel); }

/* ---------- Forms ---------- */

label { font-weight: 600; font-size: .95rem; }
input, select, textarea {
  width: 100%; min-height: 48px; padding: .7rem .9rem;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1.5px solid var(--mat-line); border-radius: var(--radius-s);
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { min-height: 130px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: #aab4c4; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(30, 42, 90, .15); }
select {
  appearance: none; padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6679' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center; background-size: 18px;
}

.quote-layout { display: grid; gap: 2.5rem; padding-bottom: clamp(3.5rem, 8vw, 6rem); }
@media (min-width: 1000px) { .quote-layout { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; } }

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); padding: clamp(1.25rem, 4vw, 2.5rem); }
.form-card fieldset { border: 0; padding: 0; margin: 0; }
.form-card fieldset + fieldset { margin-top: 2rem; padding-top: 2rem; border-top: 1px dashed var(--mat-line); }
.form-card legend { float: left; width: 100%; font-size: 1.2rem; font-weight: 720; font-stretch: 108%; padding: 0; margin-bottom: 1.1rem; }
.form-card legend + * { clear: both; }

.fields { display: grid; gap: 1.1rem 1.25rem; }
@media (min-width: 640px) { .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: .4rem; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field .opt { font-weight: 400; color: var(--steel); }
.field .hint { font-size: .87rem; color: var(--steel); margin: 0; }
.field .error { font-size: .87rem; color: var(--error); margin: 0; font-weight: 600; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); }

.moq-hint { font-size: .9rem; margin: .2rem 0 0; padding: .6rem .8rem; border-radius: var(--radius-s); background: var(--paper); color: var(--steel); }
.moq-hint.is-low { background: #fdecea; color: var(--error); }
.moq-hint.is-ok { background: #e7f3ed; color: var(--ok); }

.drop {
  position: relative; display: grid; place-items: center; gap: .35rem; text-align: center;
  padding: 1.75rem 1rem; border: 1.5px dashed var(--mat-line); border-radius: var(--radius-m);
  background: var(--paper); color: var(--steel); cursor: pointer; transition: border-color .15s ease, background-color .15s ease;
  font-weight: 400;
}
.drop:hover, .drop.is-over { border-color: var(--indigo); background: var(--mat); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; min-height: 0; }
.drop strong { color: var(--ink); }
.drop svg { width: 28px; height: 28px; color: var(--indigo); }
.drop .file-name { font-weight: 650; color: var(--indigo); }

.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2rem; }
.form-foot p { margin: 0; font-size: .9rem; color: var(--steel); max-width: 44ch; }
.form-alert { margin-top: 1rem; padding: .85rem 1rem; border-radius: var(--radius-s); background: #fdecea; color: var(--error); font-weight: 600; font-size: .95rem; }

.side { display: grid; gap: 1.5rem; }
@media (min-width: 1000px) { .side { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
.side-steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.side-steps li { position: relative; padding: 0 0 1.1rem 2.5rem; counter-increment: s; }
.side-steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--indigo); color: var(--white); font-size: .85rem; font-weight: 700;
}
.side-steps li:last-child { padding-bottom: 0; }
.side-steps b { display: block; }
.side-steps span { color: var(--steel); font-size: .95rem; }

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.contact-list a { display: flex; align-items: center; gap: .75rem; font-weight: 600; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.contact-list svg { width: 20px; height: 20px; flex: none; }

.success { text-align: center; padding: clamp(2rem, 6vw, 3.5rem) 1rem; }
.success-mark { width: 72px; height: 72px; margin: 0 auto 1.5rem; }
.success-mark circle { fill: var(--tape); }
.success h2 { margin-bottom: .75rem; }
.success p { color: var(--steel); max-width: 48ch; margin: 0 auto; }
.reference {
  display: inline-block; margin: 1.5rem 0; padding: .6rem 1.2rem; border-radius: var(--radius-s);
  background: var(--paper); border: 1.5px dashed var(--indigo);
  font-size: 1.4rem; font-weight: 800; font-stretch: 115%; letter-spacing: .02em;
}

/* ---------- Footer ---------- */

.site-footer { background: var(--indigo-deep); color: rgba(255,255,255,.75); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; font-size: .96rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--white); }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); } }
.footer-grid h4 { color: var(--white); font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer .brand { color: var(--white); }
.site-footer .brand-name small { color: rgba(255,255,255,.6); }
.footer-about { margin: 1.25rem 0 0; max-width: 38ch; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; font-size: .88rem; }

/* ---------- WhatsApp floating button ---------- */

.wa-float {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: var(--white); box-shadow: 0 8px 20px rgba(0,0,0,.2);
}
.wa-float:hover { color: var(--white); transform: scale(1.05); }
.wa-float { transition: transform .15s ease; }
.wa-float svg { width: 28px; height: 28px; }

/* ---------- Loading placeholders ---------- */

.skeleton { background: linear-gradient(90deg, var(--mat) 25%, #f3f6fa 50%, var(--mat) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius-s); }
@keyframes shimmer { to { background-position: -200% 0; } }

.load-error { padding: 1.25rem; border-radius: var(--radius-m); background: #fdecea; color: var(--error); font-weight: 600; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Page-load moment: the hero headline and tape arrive together ---------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); animation: rise .7s cubic-bezier(.2, .7, .2, 1) forwards; }
  .reveal-2 { animation-delay: .12s; }
  .reveal-3 { animation-delay: .24s; }
  @keyframes rise { to { opacity: 1; transform: none; } }
  .tape-fill.is-intro { transition: width 1.1s cubic-bezier(.2, .7, .2, 1); }
}

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

/* ==========================================================================
   Small-batch pricing
   ========================================================================== */

/* Small-batch terms */
.terms { display: grid; gap: 1.5rem; margin: 0; }
@media (min-width: 800px) { .terms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .terms { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.terms div { border-top: 3px solid var(--indigo); padding-top: 1.1rem; }
.terms dt { font-size: 1.15rem; font-weight: 720; font-stretch: 106%; }
.terms dd { margin: .4rem 0 0; color: var(--steel); }

/* FAQ */
.faq { max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.2rem 2.5rem 1.2rem 0; position: relative;
  font-weight: 680; font-size: 1.1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .4rem; top: 50%; width: 12px; height: 12px;
  border-right: 2px solid var(--indigo); border-bottom: 2px solid var(--indigo);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { margin: 0 0 1.25rem; color: var(--steel); max-width: 65ch; }

/* Small-order line on catalog cards */
.style-price { margin: .9rem 0 0; font-size: .95rem; color: var(--steel); }
.style-price b { color: var(--ink); font-size: 1.15rem; font-weight: 780; font-stretch: 108%; }

/* Small-batch badge in the hero */
.badge-small {
  display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1.25rem;
  padding: .35rem .8rem .35rem .4rem; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line); font-size: .92rem; font-weight: 600; color: var(--ink);
}
.badge-small b { background: var(--tape); border-radius: 999px; padding: .1rem .55rem; font-weight: 800; }

.estimate-price { margin: .9rem 0 0; color: rgba(255,255,255,.8); font-size: 1.02rem; }
.estimate-price b { color: var(--tape); font-weight: 800; }

/* WhatsApp buttons: the main way buyers contact DLB Thread Works */
.btn--wa { --btn-bg: #1f9d55; --btn-fg: #fff; --btn-border: #1f9d55; }
.btn--wa:hover { --btn-bg: #17834a; --btn-border: #17834a; color: #fff; }
.panel--wa { border-color: #bfe3cc; background: #f3fbf6; }
.style-actions .btn--ghost { flex: 0 0 auto; }

/* Logo image in header and footer */
img.brand-mark { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.site-footer img.brand-mark { background: #fff; }
