/* ==========================================================================
   Joinery Xperts — styles.css (v4, November 2026)
   Retail-specialist positioning. Near-monochrome, gallery-style layout:
   white ground, near-black type, one grey, generous space. Archivo only.
   ========================================================================== */
@font-face { font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%; src: url(../fonts/archivo.woff2) format("woff2"); }
:root {
  --paper: #ffffff; --white: #ffffff; --tint: #f4f4f2;
  --ink: #121514; --ink-2: #646a66; --forest: #121514; --oak: #121514; --oak-l: #ffffff;
  --sage: #8b918d; --sage-l: #b9beba;
  --line: #dfe1de; --line-inv: rgba(255, 255, 255, .18);
  --wrap: 1320px; --gut: clamp(20px, 4.5vw, 64px); --sec: clamp(64px, 9vw, 144px);
  --display: "Archivo", Arial, sans-serif; --text: "Archivo", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--text); font-size: 1rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.cta :focus-visible, .ftr :focus-visible, .lb :focus-visible { outline-color: #fff; }

h1, h2 { font-weight: 300; letter-spacing: -.028em; line-height: 1.06; text-wrap: balance; }
h1 { font-size: clamp(2.125rem, 5vw, 4.25rem); }
h2 { font-size: clamp(1.75rem, 3.3vw, 2.875rem); }
h3 { font-size: 1.0625rem; font-weight: 500; line-height: 1.35; }
.label { font-size: .6875rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); }
.lead { font-size: clamp(1.0625rem, 1.35vw, 1.25rem); line-height: 1.55; color: var(--ink-2); max-width: 46ch; }
.muted { color: var(--ink-2); }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.sec { padding-block: var(--sec); }
.sec--tint { background: var(--tint); }
.sec--line { border-top: 1px solid var(--line); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px; border: 1px solid var(--ink); background: var(--ink); color: #fff;
  font-size: .75rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .2s, color .2s; }
.btn:hover { background: transparent; color: var(--ink); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.tlink { font-size: .75rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 5px; }
.tlink:hover { color: var(--ink-2); border-color: var(--ink-2); }

/* Header */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); }
.hdr__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { width: 38px; height: 38px; }
.brand span { font-size: .8125rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: clamp(22px, 3vw, 44px); }
.nav a { font-size: .75rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; padding: 8px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.burger { display: none; width: 48px; height: 48px; border: 0; background: none; cursor: pointer; padding: 12px; margin-right: -12px; }
.burger i { display: block; height: 1.5px; background: var(--ink); margin: 6px 0; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
@media (max-width: 860px) {
  .burger { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 76px; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 4px var(--gut) 24px; }
  .nav.is-open { display: flex; }
  .nav a { padding: 18px 0; border-bottom: 1px solid var(--line); font-size: .8125rem; }
}

/* Home hero */
.hero { padding-block: clamp(48px, 7vw, 112px) 0; }
.hero__top { display: grid; gap: 28px; margin-bottom: clamp(40px, 6vw, 88px); }
.hero h1 { max-width: 17ch; margin-top: 22px; }
.hero__side { display: grid; gap: 28px; align-content: end; }
@media (min-width: 900px) { .hero__top { grid-template-columns: 1.6fr 1fr; align-items: end; gap: 64px; } }
.trio { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.trio figure:first-child { grid-column: 1 / -1; }
.trio img { width: 100%; height: 100%; object-fit: cover; }
.trio figure:first-child img { aspect-ratio: 16 / 10; }
.trio figure:not(:first-child) img { aspect-ratio: 1 / 1; }
@media (min-width: 900px) {
  .trio { grid-template-columns: 2.2fr 1fr; grid-template-rows: 1fr 1fr; }
  .trio figure:first-child { grid-column: 1; grid-row: 1 / 3; }
  .trio figure:first-child img { aspect-ratio: auto; }
  .trio figure:not(:first-child) img { aspect-ratio: 4 / 3; }
}
.cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-top: 14px; font-size: .8125rem; color: var(--ink-2); }

/* Clients */
.clients { display: grid; gap: 20px; padding-block: clamp(36px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.clients ul { display: flex; flex-wrap: wrap; gap: 10px clamp(24px, 4vw, 64px); }
.clients li { font-size: clamp(1.0625rem, 1.8vw, 1.5rem); font-weight: 300; letter-spacing: -.01em; }
@media (min-width: 900px) { .clients { grid-template-columns: 180px 1fr; align-items: baseline; } }

/* Section head */
.head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 72px); }
.head .label, .prose .label { display: block; margin-bottom: 14px; }
@media (min-width: 900px) { .head { grid-template-columns: 1.4fr 1fr; align-items: end; gap: 64px; } }

/* Product list */
.items { display: grid; border-top: 1px solid var(--ink); }
.items > div { padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.items p { color: var(--ink-2); font-size: .9375rem; max-width: 52ch; }
@media (min-width: 760px) { .items { grid-template-columns: 1fr 1fr; column-gap: 64px; } }
@media (min-width: 1100px) { .items--3 { grid-template-columns: repeat(3, 1fr); } }

/* Case studies */
.case { display: grid; gap: clamp(22px, 3.5vw, 64px); align-items: start; padding-block: clamp(36px, 5vw, 72px); border-top: 1px solid var(--line); }
.case:first-of-type { border-top: 1px solid var(--ink); }
.case__img { position: relative; display: block; width: 100%; border: 0; padding: 0; background: var(--tint); cursor: zoom-in; }
.case__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.case__count { position: absolute; left: 0; bottom: 0; background: #fff; color: var(--ink); font-size: .6875rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; padding: 10px 14px; }
.case__body { display: grid; gap: 18px; }
.case__body h2, .case__body h3.t { font-size: clamp(1.5rem, 2.4vw, 2.125rem); font-weight: 300; letter-spacing: -.02em; line-height: 1.1; }
.facts { border-top: 1px solid var(--line); margin-top: 6px; }
.facts > div { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.facts dt { font-size: .6875rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); padding-top: 3px; }
@media (min-width: 900px) {
  .case { grid-template-columns: 1.55fr 1fr; }
  .case--rev .case__img { order: 2; }
  .case--rev { grid-template-columns: 1fr 1.55fr; }
  .case__body { position: sticky; top: 108px; }
}

/* Points */
.points { display: grid; gap: 0 64px; border-top: 1px solid var(--ink); }
.points > div { padding: 24px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.points p { color: var(--ink-2); font-size: .9375rem; }
@media (min-width: 900px) { .points { grid-template-columns: repeat(3, 1fr); } .points > div { border-bottom: 0; } }

/* Spec + steps */
.split { display: grid; gap: clamp(32px, 5vw, 96px); }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1.2fr; align-items: start; } }
.spec { border-top: 1px solid var(--ink); }
.spec li { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.spec li span { color: var(--ink-2); text-align: right; }
.steps { counter-reset: s; border-top: 1px solid var(--ink); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 3rem 1fr; gap: 6px 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); font-size: .75rem; font-weight: 500; letter-spacing: .1em; color: var(--ink-2); line-height: 2.1; }
.steps p { color: var(--ink-2); font-size: .9375rem; max-width: 62ch; grid-column: 2; }
@media (min-width: 900px) { .steps li { grid-template-columns: 4rem 1fr 1.5fr; } .steps p { grid-column: 3; } }

/* Small grid (other sectors) */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 14px; }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 48px 20px; } }
.card { display: block; text-align: left; border: 0; padding: 0; background: none; cursor: zoom-in; width: 100%; }
.card__img { background: var(--tint); overflow: hidden; }
.card__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card h3 { margin-top: 14px; }
.card p { color: var(--ink-2); font-size: .875rem; }

/* Inner page head */
.phero { padding-block: clamp(48px, 7vw, 112px) clamp(40px, 5vw, 72px); }
.phero h1 { max-width: 18ch; margin-top: 22px; }
.phero p.intro { margin-top: clamp(22px, 3vw, 36px); font-size: clamp(1.0625rem, 1.35vw, 1.25rem); line-height: 1.55; color: var(--ink-2); max-width: 60ch; }
.phero p.intro a { color: var(--ink); }
.prose { display: grid; gap: 16px; }
.prose p { color: var(--ink-2); max-width: 60ch; }

/* CTA + footer */
.cta { background: var(--ink); color: #fff; padding-block: clamp(64px, 9vw, 136px); }
.cta__in { display: grid; gap: clamp(28px, 4vw, 64px); }
.cta h2 { max-width: 16ch; }
.cta p { color: var(--sage-l); max-width: 44ch; }
.cta a.mail { display: inline-block; font-size: clamp(1.25rem, 2.6vw, 2rem); font-weight: 300; letter-spacing: -.01em; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .4); padding-bottom: 6px; overflow-wrap: anywhere; }
.cta a.mail:hover { border-color: #fff; }
.cta__side { display: grid; gap: 22px; }
@media (min-width: 900px) { .cta__in { grid-template-columns: 1.3fr 1fr; align-items: end; } }
.ftr { background: var(--ink); color: var(--sage-l); border-top: 1px solid var(--line-inv); padding-block: clamp(40px, 5vw, 64px) 28px; font-size: .875rem; }
.ftr a { color: #fff; text-decoration: none; display: block; padding: 4px 0; }
.ftr a:hover { text-decoration: underline; text-underline-offset: 4px; }
.ftr__grid { display: grid; gap: 36px; grid-template-columns: 1fr 1fr; }
.ftr__brand { grid-column: 1 / -1; }
.ftr__brand img { width: 112px; margin-bottom: 16px; }
.ftr h4 { font-size: .6875rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--sage); margin-bottom: 10px; }
@media (min-width: 900px) { .ftr__grid { grid-template-columns: 2fr 1fr 1.4fr 1.6fr; } .ftr__brand { grid-column: auto; } }
.ftr__legal { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line-inv); display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; font-size: .75rem; color: var(--sage); }
.ftr__legal a { display: inline; padding: 0; color: var(--sage-l); text-decoration: underline; }

/* ---------- Contact ---------- */
.contact { display: grid; gap: clamp(36px, 6vw, 88px); }
@media (min-width: 861px) { .contact { grid-template-columns: 1fr 1.25fr; } }
.ways { border-top: 1px solid var(--line); }
.ways > div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.ways dt, .ways .k { font-size: .9375rem; color: var(--ink-2); }
.ways a, .ways .v { font-weight: 500; font-size: 1.1875rem; text-decoration: none; overflow-wrap: anywhere; }
.ways a:hover { color: var(--oak); }
.ways p.v { font-weight: 400; font-size: 1.0625rem; }
.form { display: grid; gap: 18px; }
.form .two { display: grid; gap: 18px; }
@media (min-width: 620px) { .form .two { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 500; font-size: .9375rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; font: inherit; color: var(--ink);
  background: var(--white); border: 1.5px solid var(--line); border-radius: 0;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--ink); }
.field.is-bad input, .field.is-bad textarea { border-color: #a23b2a; }
.field .err { color: #a23b2a; font-size: .875rem; min-height: 0; }
.form__status { font-weight: 500; }
.form__note { font-size: .9375rem; color: var(--ink-2); }

/* ---------- Privacy / long text ---------- */
.long { max-width: 68ch; display: grid; gap: 16px; }
.long h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-top: 24px; }
.long p, .long li { color: var(--ink-2); }
.long ul { list-style: disc; padding-left: 1.2em; display: grid; gap: 6px; }

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 100; background: #101612; color: var(--paper); display: none; grid-template-rows: auto 1fr auto; }
.lb.is-open { display: grid; }
.lb__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px var(--gut); }
.lb__title { font-weight: 600; }
.lb__title span { color: var(--sage-l); font-weight: 400; }
.lb__stage { position: relative; min-height: 0; display: grid; place-items: center; padding-inline: 8px; }
.lb__stage img { max-width: 100%; max-height: 100%; object-fit: contain; position: absolute; inset: 0; margin: auto; }
.lb button { background: none; border: 1.5px solid var(--line-inv); color: var(--paper); min-width: 48px; height: 48px; cursor: pointer; font-size: 1.25rem; }
.lb button:hover { background: var(--paper); color: var(--ink); }
.lb__nav { display: flex; justify-content: center; align-items: center; gap: 18px; padding: 14px var(--gut) 20px; }
.lb__nav[hidden] { visibility: hidden; display: flex; }
.lb__count { min-width: 5ch; text-align: center; font-variant-numeric: tabular-nums; }
body.lb-on { overflow: hidden; }


.contact h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.ways a, .ways .v { font-weight: 400; font-size: 1.125rem; }
.ways .k { font-size: .6875rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }
.field label { font-size: .6875rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.field input, .field select, .field textarea { border-width: 1px; }
.lb { background: #0d0f0e; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- Consistency pass: one label style, one body size, one caption size ---------- */
.label, .facts dt, .ways .k, .field label, .case__count, .ftr h4, .ftr__tag {
  font-size: .6875rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.muted, .prose p, .items p, .points p, .steps p, .spec li, .facts > div, .card p, .long p, .long li, .form__note, .cta p { font-size: .9375rem; }
.ways a, .ways .v, .ways p.v { font-size: 1.0625rem; font-weight: 400; }
.contact h2, .long h2 { font-size: 1.5rem; }
.cap { font-size: .8125rem; }
.ftr__tag { color: var(--sage); margin-top: 4px; line-height: 1.9; }
.ftr__brand img { margin-bottom: 18px; }

/* ---------- Floating call and WhatsApp buttons ---------- */
.fab { position: fixed; right: 16px; bottom: 16px; z-index: 40; display: grid; gap: 8px; }
.fab a { width: 48px; height: 48px; display: grid; place-items: center; background: var(--ink); color: #fff; border: 1px solid rgba(255, 255, 255, .35); transition: background .2s, color .2s; }
.fab a:hover { background: #fff; color: var(--ink); border-color: var(--ink); }
.fab svg { width: 20px; height: 20px; }
body.lb-on .fab { display: none; }
@media (min-width: 900px) { .fab { right: 24px; bottom: 24px; } }
.cta p.label, .prose p.label, .muted.label { font-size: .6875rem; }
.ftr__grid > div:last-child { grid-column: 1 / -1; }
@media (min-width: 900px) { .ftr__grid > div:last-child { grid-column: auto; } }
