/* Layout: a fabricator's spec sheet. Cool brushed-steel neutrals, one heat-tint accent,
   a straw→bronze→blue "weld bead" line under each page title, model numbers in mono. */
:root {
  --bg: #eef1f3;
  --surface: #e2e7ea;
  --panel: #f8f9fa;
  --fg: #151a1e;
  --muted: #56626b;
  --line: #c7cfd5;
  --accent: #8d5a1c;       /* bronze heat tint */
  --accent-fg: #ffffff;
  --weld: linear-gradient(90deg, #c9a45a 0%, #a8652a 38%, #6b3f6e 62%, #2f5f93 100%);
  --steel: linear-gradient(135deg, #f7f9fa 0%, #d9dfe3 45%, #f1f4f6 55%, #cfd6db 100%);

  --f-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --s-1: .375rem; --s-2: .75rem; --s-3: 1rem; --s-4: 1.5rem; --s-5: 2.5rem; --s-6: 4rem; --s-7: 6rem;
  --radius: 4px;
  --wrap: 72rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1417; --surface: #172027; --panel: #1b252c; --fg: #e7ecef; --muted: #98a5ae;
    --line: #2b363e; --accent: #d9a35a; --accent-fg: #17110a;
    --steel: linear-gradient(135deg, #2a343b 0%, #1b242a 45%, #2d383f 55%, #1a2227 100%);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1417; --surface: #172027; --panel: #1b252c; --fg: #e7ecef; --muted: #98a5ae;
  --line: #2b363e; --accent: #d9a35a; --accent-fg: #17110a;
  --steel: linear-gradient(135deg, #2a343b 0%, #1b242a 45%, #2d383f 55%, #1a2227 100%);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 1.0625rem/1.6 var(--f-body); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--fg); color: var(--bg); padding: .5rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; }
.muted { color: var(--muted); }
.mono { font-family: var(--f-mono); font-feature-settings: "zero"; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: max(1rem, 4vw); }

/* Type scale */
/* 8.4vw keeps one-word titles ("BACKSPLASHES") inside a 320px phone; break-word is a last resort below that. */
.h1 { font: 800 clamp(1.6rem, 8.4vw, 4.6rem)/0.98 var(--f-display); font-stretch: 125%; letter-spacing: -.01em; margin: 0; text-wrap: balance; text-transform: uppercase; overflow-wrap: break-word; }
.h2 { font: 750 clamp(1.6rem, 3vw, 2.2rem)/1.05 var(--f-display); font-stretch: 118%; margin: 0; text-transform: uppercase; letter-spacing: .005em; text-wrap: balance; }
.h3 { font: 700 1.2rem/1.2 var(--f-display); font-stretch: 112%; margin: 0; display: block; }
.eyebrow { font: 500 .8rem/1.45 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 var(--s-3); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; max-width: 36rem; margin: 0; color: var(--fg); }
.lead-sm { max-width: 32rem; margin: var(--s-3) 0 var(--s-4); }
.prose { max-width: 40rem; }
.prose p { margin: 0 0 var(--s-3); }
.weld { height: 4px; width: min(14rem, 60%); background: var(--weld); border-radius: 2px; margin: var(--s-4) 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; background: var(--fg); color: var(--bg); border: 1px solid var(--fg);
  font: 600 .95rem/1 var(--f-body); padding: .95rem 1.35rem; border-radius: var(--radius); text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s; }
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn-sm { padding: .6rem .9rem; font-size: .875rem; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Header */
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid var(--line); }
.bar-in { max-width: var(--wrap); margin-inline: auto; padding: .7rem max(1rem, 4vw); display: flex; align-items: center; gap: var(--s-4); }
.brand { font: 800 1.15rem/1 var(--f-display); font-stretch: 125%; letter-spacing: .02em; text-decoration: none; }
.brand span { color: var(--accent); }
.nav { display: flex; gap: var(--s-4); list-style: none; margin: 0 0 0 auto; padding: 0; font-size: .95rem; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--fg); }
.bar-end { display: flex; align-items: center; gap: var(--s-3); }
.lang { font: 500 .8rem/1 var(--f-mono); text-decoration: none; border: 1px solid var(--line); padding: .45rem .55rem; border-radius: var(--radius); }
.btn-sm { white-space: nowrap; }
@media (max-width: 760px) { .nav { display: none; } .bar-end { margin-left: auto; } }
@media (max-width: 420px) { .bar-in { gap: var(--s-2); } .bar-end { gap: var(--s-2); } .bar .brand { font-size: .9rem; } .bar .btn-sm { padding: .55rem .65rem; font-size: .8rem; } }
@media (max-width: 340px) { .bar .btn-sm { display: none; } }

/* Hero */
.hero { padding-block: var(--s-6) var(--s-6); border-bottom: 1px solid var(--line); }
.hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--s-6); align-items: center; }
.hero-copy { min-width: 0; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-5); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); margin: var(--s-5) 0 0; padding-top: var(--s-4); border-top: 1px solid var(--line); }
.facts div { min-width: 0; }
.facts dt { font: 750 1.5rem/1 var(--f-display); font-stretch: 118%; }
.facts dd { margin: .35rem 0 0; font-size: .85rem; color: var(--muted); line-height: 1.35; }
.hero-fig { margin: 0; position: relative; }
.hero-fig img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: var(--radius); background: var(--steel); }
.hero-fig figcaption { position: absolute; left: var(--s-3); bottom: var(--s-3); background: var(--bg); color: var(--fg); font-size: .75rem;
  letter-spacing: .06em; text-transform: uppercase; padding: .4rem .6rem; border-radius: 2px; }
/* Two-column hero: the text column is ~45% of the page, sized so "INOXYDABLE," (8.7em) fits. */
@media (min-width: 861px) { .hero .h1 { font-size: min(4.9vw, 3.4rem); } }
@media (max-width: 860px) { .hero-in { grid-template-columns: 1fr; gap: var(--s-5); } .hero { padding-block: var(--s-5); } }
@media (max-width: 420px) { .facts dt { font-size: 1.2rem; } }

/* Bands */
.band { padding-block: var(--s-7); }
.band-alt { background: var(--surface); }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-2) var(--s-4); margin-bottom: var(--s-5); }
.sec-head p { margin: 0; max-width: 34rem; }
@media (max-width: 700px) { .band { padding-block: var(--s-6); } }

.about { display: grid; grid-template-columns: 14rem 1fr; gap: var(--s-5); }
.sign { font-family: var(--f-mono); font-size: .85rem; color: var(--muted); }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; gap: var(--s-4); } }

/* Products */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.product { display: flex; flex-direction: column; background: var(--panel); text-decoration: none; color: var(--fg); min-width: 0; }
.product:hover { color: var(--fg); }
.product-img { display: grid; place-items: center; aspect-ratio: 16 / 10; background: var(--steel); padding: var(--s-4); border-bottom: 1px solid var(--line); }
.product-img img { max-height: 100%; width: auto; mix-blend-mode: multiply; transition: transform .3s ease; }
.product:hover .product-img img { transform: translateY(-3px) scale(1.03); }
.product-body { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-4); flex: 1; }
.more { margin-top: auto; font: 500 .85rem/1 var(--f-mono); color: var(--accent); text-decoration: none; padding-top: var(--s-2); }
@media (max-width: 860px) { .products { grid-template-columns: 1fr; } }

/* Services: a real sequence (quote → ship → install) */
.steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); padding: 0; margin: var(--s-5) 0 0; }
.steps li { counter-increment: s; border-top: 2px solid var(--fg); padding-top: var(--s-3); min-width: 0; }
.steps li::before { content: "0" counter(s); font: 500 .8rem/1 var(--f-mono); color: var(--accent); display: block; margin-bottom: var(--s-3); }
.steps p { margin: var(--s-2) 0 0; color: var(--muted); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: var(--s-4); } }

/* Gallery */
.gallery { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.gallery li { min-width: 0; }
.g-item { display: block; width: 100%; padding: 0; border: 0; background: var(--steel); border-radius: var(--radius); overflow: hidden; cursor: zoom-in; }
.g-item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .4s ease; }
.g-item:hover img { transform: scale(1.04); }
.g-cap { display: block; font-size: .85rem; color: var(--muted); margin-top: .45rem; }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 1200px); }
.lightbox::backdrop { background: rgb(8 11 13 / .88); }
.lightbox img { max-height: 82vh; width: auto; margin-inline: auto; border-radius: var(--radius); }
.lb-cap { color: #e7ecef; text-align: center; margin: .75rem 0 0; font-size: .9rem; }
.lb-close { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 1rem); right: 1rem; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  border: 0; background: #e7ecef; color: #151a1e; font-size: 1.6rem; line-height: 1; cursor: pointer; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: var(--s-6); }
.contact > * { min-width: 0; }
.contact-list { margin: 0; display: grid; gap: var(--s-3); }
.contact-list div { display: grid; grid-template-columns: 6.5rem 1fr; gap: var(--s-3); padding-top: var(--s-3); border-top: 1px solid var(--line); }
.contact-list dt { font: 500 .78rem/1.6 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.contact-list dd { margin: 0; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; gap: var(--s-5); } }

.form { display: grid; gap: var(--s-3); background: var(--panel); border: 1px solid var(--line); padding: var(--s-4); border-radius: var(--radius); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.field { display: grid; gap: .35rem; min-width: 0; margin: 0; border: 0; padding: 0; }
.field label, .field legend { font-size: .85rem; font-weight: 500; }
.field legend { margin-bottom: .35rem; padding: 0; }
input, textarea { font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem .8rem; width: 100%; }
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
textarea { resize: vertical; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips legend { width: 100%; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-block; font-size: .875rem; padding: .45rem .75rem; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; background: var(--bg); }
.chip input:checked + span { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; }
.form-end { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }
.form-status { margin: 0; font-size: .9rem; min-width: 0; flex: 1 1 14rem; }
.form-status.ok { color: #2e7a4a; }
.form-status.err { color: #b3372a; }
:root[data-theme="dark"] .form-status.ok { color: #7fd09c; }
:root[data-theme="dark"] .form-status.err { color: #f08a7c; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .form-status.ok { color: #7fd09c; }
  :root:not([data-theme="light"]) .form-status.err { color: #f08a7c; }
}

/* Sub pages */
.sub-hero { padding-block: var(--s-6) var(--s-5); border-bottom: 1px solid var(--line); }
.sub-hero-tall { padding-block: var(--s-7); border: 0; }
.crumbs { font: 500 .8rem/1 var(--f-mono); color: var(--muted); margin: 0 0 var(--s-4); }
.crumbs a { text-decoration: none; }
.ticks { list-style: none; padding: 0; margin: var(--s-4) 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.ticks li { padding-left: 1.2rem; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .62em; width: .6rem; height: 2px; background: var(--accent); }
.sinks .ticks { flex-direction: column; }

.models { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.models-3 { grid-template-columns: repeat(3, 1fr); }
.model { background: var(--panel); padding: var(--s-4); display: flex; flex-direction: column; gap: .3rem; min-width: 0; margin: 0; }
.model img { height: 7.5rem; width: 100%; object-fit: contain; margin-bottom: var(--s-3); mix-blend-mode: multiply; }
.model-id { font-size: .85rem; color: var(--accent); margin: 0; }
.model-name { margin: 0; font-weight: 600; }
.model-lg img { height: 14rem; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .model img, :root:not([data-theme="light"]) .product-img img { mix-blend-mode: normal; background: #e9edef; border-radius: var(--radius); padding: .5rem; } }
:root[data-theme="dark"] .model img, :root[data-theme="dark"] .product-img img { mix-blend-mode: normal; background: #e9edef; border-radius: var(--radius); padding: .5rem; }
@media (max-width: 900px) { .models { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .models, .models-3 { grid-template-columns: 1fr; } }

.sinks { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); align-items: start; }
.sinks > * { min-width: 0; }
.sink-img { max-width: 18rem; margin-top: var(--s-4); background: #fff; border-radius: var(--radius); padding: .5rem; }
.table-wrap { overflow-x: auto; }
.sink-table { width: 100%; border-collapse: collapse; font-family: var(--f-mono); font-size: .9rem; font-variant-numeric: tabular-nums; background: var(--panel); }
.sink-table caption { text-align: left; font-family: var(--f-body); font-weight: 600; padding-bottom: var(--s-2); }
.sink-table th, .sink-table td { padding: .6rem .8rem; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.sink-table th { font-weight: 500; color: var(--muted); }
@media (max-width: 860px) { .sinks { grid-template-columns: 1fr; gap: var(--s-5); } }

.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--s-6); align-items: start; }
.split > * { min-width: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.adv { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5) var(--s-5); margin: var(--s-5) 0 0; }
.adv div { min-width: 0; }
.adv dt { font: 700 1.05rem/1.2 var(--f-display); font-stretch: 112%; text-transform: uppercase; }
.adv dd { margin: .4rem 0 0; color: var(--muted); }
@media (max-width: 860px) { .adv { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .adv { grid-template-columns: 1fr; } }

.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); }
.cta-text { font-size: 1.2rem; max-width: 42rem; margin: 0; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding-block: var(--s-5); background: var(--bg); }
.foot-in { display: grid; grid-template-columns: 1fr 1fr auto; gap: var(--s-4); align-items: start; }
.foot-in > * { min-width: 0; }
.brand-foot { margin: 0 0 .4rem; }
.foot p { margin: 0; }
.foot-contact { display: grid; gap: .25rem; font-size: .95rem; }
.social { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; font-size: .95rem; }
@media (max-width: 760px) { .foot-in { grid-template-columns: 1fr; } }

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

/* 404: French block under the English one */
.nf-alt { margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.nf-alt .lead { margin: var(--s-3) 0 var(--s-4); }
