/* MegaClad · the shared site header (desktop bar + Products mega menu + phone menu).
   The HTML is written into each page by tools/stamp-nav.mjs; behaviour is in nav.js. Everything is prefixed mcn-
   so it can sit on any page (new look, old look, catalogues) without clashing with the page's own styles.
   Other parts of a page can follow the bar with var(--mcn-top): the bar's height while it shows, 0 while it's
   tucked away, e.g. a sticky side rail: top: calc(var(--mcn-top, 0px) + 24px). */
@font-face { font-family: "Instrument Sans"; font-weight: 400 700; font-display: swap; src: url(/fonts/instrument-sans-latin.woff2) format("woff2"); }

:root { --mcn-h: 68px; --mcn-top: var(--mcn-h); --mcn-ease: cubic-bezier(.2,.7,.2,1);
  --mcn-ink: #0f1114; --mcn-ink2: #2a2d35; --mcn-muted: #5d6168; --mcn-line: #d8d2c9; --mcn-stone: #f3efea; --mcn-stone2: #e8e3dc; --mcn-card: #fffdf9; --mcn-orange: #ff7a00; --mcn-orange-ink: #a85106;
  --mcn-font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif; }
:root.mcn-away { --mcn-top: 0px; }
/* --mcn-stack: everything the shared bars cover at the top right now (header if showing + section bar) */
:root { --mcn-sec-h: 0px; --mcn-stack: calc(var(--mcn-top) + var(--mcn-sec-h)); }
:root:has(.mcn-sec) { --mcn-sec-h: 52px; }
html { scroll-padding-top: calc(var(--mcn-h) + var(--mcn-sec-h) + 8px); }
html.mcn-locked { overflow: hidden; }
.mcn-space { height: var(--mcn-h); }

/* ── The bar */
.mcn { position: fixed; z-index: 40; top: 0; left: 0; right: 0; height: var(--mcn-h); font-family: var(--mcn-font); color: var(--mcn-ink);
  background: rgba(243,239,234,.94); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--mcn-line);
  transition: transform .32s var(--mcn-ease), background-color .25s, color .25s, box-shadow .25s; }
/* Over a dark photo: see-through until you scroll (only with JavaScript, which turns it solid again) */
.mcn-js .mcn-over:not(.is-solid) { background: linear-gradient(rgba(10,11,13,.5), rgba(10,11,13,0)); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; color: #fff; }
.mcn.is-away { transform: translateY(-100%); }
.mcn *, .mcn-sheet * { box-sizing: border-box; }
.mcn svg, .mcn-sheet svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mcn :focus-visible, .mcn-sheet :focus-visible { outline: 2px solid var(--mcn-orange); outline-offset: 2px; }
.mcn-bar { max-width: 1360px; height: 100%; margin: 0 auto; padding: 0 clamp(16px, 4vw, 56px); display: flex; align-items: center; gap: 24px; }
.mcn-logo { flex: none; display: block; }
.mcn-logo img { height: 24px; width: auto; display: block; }
.mcn-l1 { display: none !important; }
.mcn-js .mcn-over:not(.is-solid) .mcn-l1 { display: block !important; }
.mcn-js .mcn-over:not(.is-solid) .mcn-l2 { display: none !important; }

.mcn-links { display: flex; align-items: center; gap: 2px; margin-left: 10px; }
.mcn-links > a, .mcn-prod { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 10px 12px; border: 0; border-radius: 999px; background: none; color: inherit; font: 500 .95rem/1 var(--mcn-font); text-decoration: none; cursor: pointer; opacity: .86; transition: opacity .15s, background-color .15s; }
.mcn-links > a:hover, .mcn-prod:hover, .mcn-prod[aria-expanded="true"] { opacity: 1; background: rgba(15,17,20,.06); }
.mcn-js .mcn-over:not(.is-solid) .mcn-links > a:hover, .mcn-js .mcn-over:not(.is-solid) .mcn-prod:hover { background: rgba(255,255,255,.14); }
.mcn-links > a[aria-current="page"], .mcn-prod.is-current { opacity: 1; }
.mcn-links > a[aria-current="page"]::after, .mcn-prod.is-current::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--mcn-orange); }
.mcn-chev { width: 10px; height: 10px; stroke-width: 1.6 !important; transition: transform .2s var(--mcn-ease); }
[aria-expanded="true"] > .mcn-chev { transform: rotate(180deg); }

.mcn-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.mcn-wa { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; opacity: .8; transition: opacity .15s, transform .2s; }
.mcn-wa:hover { opacity: 1; transform: translateY(-1px); }
.mcn-wa svg { width: 19px; height: 19px; }
.mcn-quote, .mcn-menu { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--mcn-orange); color: var(--mcn-ink); font: 600 .92rem/1 var(--mcn-font); text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .2s, background-color .2s; }
.mcn-quote:hover, .mcn-menu:hover { background: #ff8c1f; transform: translateY(-1px); }
.mcn-menu { display: none; padding: 0 16px; }
.mcn-menu svg { width: 16px; height: 16px; stroke-width: 1.8; }

/* ── Products mega menu */
.mcn-mega { position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100vh - var(--mcn-h)); max-height: calc(100dvh - var(--mcn-h)); overflow-y: auto; overscroll-behavior: contain;
  background: var(--mcn-card); color: var(--mcn-ink2); border-top: 1px solid var(--mcn-line); box-shadow: 0 30px 60px -20px rgba(0,0,0,.3);
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s var(--mcn-ease), transform .24s var(--mcn-ease), visibility 0s .24s; }
.mcn-mega.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .2s var(--mcn-ease), transform .24s var(--mcn-ease), visibility 0s; }
.mcn-cols { max-width: 1360px; margin: 0 auto; padding: 26px clamp(16px, 4vw, 56px) 18px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px 20px; }
.mcn-col .mcn-gh { margin: 0; padding: 0 10px 12px; display: flex; align-items: center; gap: 8px; font: 600 .72rem/1 var(--mcn-font); letter-spacing: .16em; text-transform: uppercase; color: var(--mcn-muted); white-space: nowrap; }
.mcn-col .mcn-gh::before { content: ""; width: 14px; height: 1.5px; background: var(--mcn-orange); }
.mcn-item { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 12px; color: var(--mcn-ink2); text-decoration: none; transition: background-color .15s; }
.mcn-item:hover, .mcn-item:focus-visible { background: var(--mcn-stone); }
.mcn-item[aria-current="page"] { background: var(--mcn-stone); box-shadow: inset 3px 0 0 var(--mcn-orange); }
.mcn-item img { width: 52px; height: 40px; display: block; object-fit: cover; border-radius: 8px; background: var(--mcn-stone2); }
.mcn-item b { display: block; color: var(--mcn-ink); font-weight: 600; font-size: .93rem; line-height: 1.25; }
.mcn-item small { display: block; margin-top: 2px; color: var(--mcn-muted); font-size: .8rem; line-height: 1.35; }
.mcn-3d, .mcn-beta { display: inline-block; vertical-align: 2px; margin-left: 4px; padding: 3px 5px; border-radius: 4px; font: 700 .6rem/1 var(--mcn-font); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.mcn-3d { background: var(--mcn-ink); color: #fff; }
.mcn-beta { box-shadow: inset 0 0 0 1px var(--mcn-muted); color: var(--mcn-muted); }
.mcn-mfoot { background: var(--mcn-stone); border-top: 1px solid var(--mcn-line); }
.mcn-mfoot span { display: block; max-width: 1360px; margin: 0 auto; padding: 14px clamp(16px, 4vw, 56px); font-size: .9rem; color: var(--mcn-muted); }
.mcn-mfoot a { color: var(--mcn-ink); font-weight: 600; text-decoration: none; }
.mcn-mfoot a:hover { color: var(--mcn-orange-ink); }
.mcn-mfoot a.mcn-all { margin-right: 24px; }
/* items follow each other in, left to right */
.mcn-mega .mcn-item, .mcn-mega .mcn-gh { opacity: 0; transform: translateY(6px); }
.mcn-mega.is-open .mcn-item, .mcn-mega.is-open .mcn-gh { opacity: 1; transform: none; transition: opacity .25s var(--mcn-ease) calc(var(--i, 0) * 14ms + 40ms), transform .3s var(--mcn-ease) calc(var(--i, 0) * 14ms + 40ms), background-color .15s; }
.mcn-scrim { position: fixed; z-index: 38; inset: 0; background: rgba(15,17,20,.35); opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s .2s; }
.mcn-scrim.is-on { opacity: 1; visibility: visible; transition: opacity .2s, visibility 0s; }

/* ── Phone menu */
.mcn-sheet { position: fixed; z-index: 50; inset: 0; display: flex; flex-direction: column; background: var(--mcn-stone); color: var(--mcn-ink2); font-family: var(--mcn-font);
  opacity: 0; transform: translateY(-12px); transition: opacity .22s var(--mcn-ease), transform .28s var(--mcn-ease); }
.mcn-sheet[hidden] { display: none; }
.mcn-sheet.is-open { opacity: 1; transform: none; }
.mcn-shtop { flex: none; height: var(--mcn-h); display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(16px, 4vw, 56px); border-bottom: 1px solid var(--mcn-line); }
.mcn-shtop img { height: 21px; width: auto; display: block; }
.mcn-x { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--mcn-card); box-shadow: inset 0 0 0 1px var(--mcn-line); color: var(--mcn-ink); cursor: pointer; }
.mcn-x svg { width: 18px; height: 18px; stroke-width: 1.8; }
.mcn-shbody { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 14px clamp(16px, 4vw, 56px) 24px; }
.mcn-find { position: relative; display: block; margin-bottom: 6px; }
.mcn-find svg { position: absolute; left: 14px; top: 15px; width: 18px; height: 18px; color: var(--mcn-muted); stroke-width: 1.8; }
.mcn-find input { width: 100%; height: 48px; padding: 0 14px 0 42px; border: 1px solid var(--mcn-line); border-radius: 14px; background: var(--mcn-card); color: var(--mcn-ink); font: 400 1rem var(--mcn-font); -webkit-appearance: none; appearance: none; }
.mcn-find input:focus { outline: 2px solid var(--mcn-orange); outline-offset: 0; border-color: transparent; }
.mcn-acc { border-bottom: 1px solid var(--mcn-line); }
.mcn-acc > button, .mcn-row { width: 100%; min-height: 58px; display: flex; align-items: center; gap: 12px; padding: 0 2px; border: 0; background: none; color: var(--mcn-ink); font: 500 1.25rem/1.2 var(--mcn-font); letter-spacing: -.02em; text-align: left; text-decoration: none; cursor: pointer; }
.mcn-row { border-bottom: 1px solid var(--mcn-line); }
.mcn-row[aria-current="page"], .mcn-acc > button.is-current { color: var(--mcn-orange-ink); }
.mcn-n { margin-left: auto; font: 500 .8rem/1 var(--mcn-font); letter-spacing: 0; color: var(--mcn-muted); }
.mcn-acc .mcn-chev { width: 14px; height: 14px; }
.mcn-accbody { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--mcn-ease); }
.mcn-acc.is-open > .mcn-accbody { grid-template-rows: 1fr; }
.mcn-accbody > div { overflow: hidden; }
.mcn-accin { padding-bottom: 14px; }
.mcn-sg .mcn-gh { margin: 0; padding: 14px 2px 6px; font: 600 .7rem/1 var(--mcn-font); letter-spacing: .16em; text-transform: uppercase; color: var(--mcn-muted); }
.mcn-sheet .mcn-item { grid-template-columns: 56px 1fr; min-height: 56px; padding: 6px 4px; }
.mcn-sheet .mcn-item img { width: 56px; height: 42px; }
.mcn-sheet .mcn-item:active { background: var(--mcn-stone2); }
.mcn-item[hidden], .mcn-sg[hidden] { display: none; }
.mcn-none { display: none; margin: 0; padding: 16px 2px; color: var(--mcn-muted); font-size: .95rem; }
.mcn-none.is-on { display: block; }
.mcn-none a { color: var(--mcn-ink); font-weight: 600; }
.mcn-shfoot { flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px clamp(16px, 4vw, 56px) calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--mcn-line); background: var(--mcn-card); }
.mcn-shfoot a { min-height: 50px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px var(--mcn-line); color: var(--mcn-ink); font: 600 .95rem/1 var(--mcn-font); text-decoration: none; }
.mcn-shfoot a.mcn-q { grid-column: 1 / -1; background: var(--mcn-orange); box-shadow: none; }
.mcn-shfoot svg { width: 18px; height: 18px; }

/* ── Catalogue section bar: pinned under the header, and at the very top while the header is tucked away */
.mcn-sec { position: sticky; z-index: 30; top: var(--mcn-top); height: var(--mcn-sec-h); font-family: var(--mcn-font); background: rgba(255,253,249,.95); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--mcn-line); transition: top .32s var(--mcn-ease); }
.mcn-sec *, .mcn-act * { box-sizing: border-box; }
.mcn-sec svg, .mcn-act svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mcn-sec :focus-visible, .mcn-act :focus-visible { outline: 2px solid var(--mcn-orange); outline-offset: 2px; }
.mcn-sec-in { max-width: 1360px; height: 100%; margin: 0 auto; padding: 0 clamp(16px, 4vw, 56px); display: flex; align-items: center; gap: 16px; }
.mcn-sec-name { flex: none; display: inline-flex; align-items: center; gap: 10px; color: var(--mcn-ink); font: 600 .95rem/1 var(--mcn-font); letter-spacing: -.01em; text-decoration: none; white-space: nowrap; }
.mcn-sec-where { flex: none; display: inline-flex; align-items: center; gap: 8px; font: 500 .88rem/1 var(--mcn-font); color: var(--mcn-muted); white-space: nowrap; }
.mcn-sec-where::after { content: ""; width: 1px; height: 20px; margin-left: 8px; background: var(--mcn-line); }
.mcn-sec-up { color: var(--mcn-muted); text-decoration: none; }
.mcn-sec-up:hover { color: var(--mcn-ink); }
.mcn-sec-links { position: relative; flex: 1; min-width: 0; height: 100%; display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 90%, transparent); mask-image: linear-gradient(90deg, #000 90%, transparent); }
.mcn-sec-links::-webkit-scrollbar { display: none; }
.mcn-sec-links a { flex: none; padding: 8px 10px; border-radius: 999px; color: var(--mcn-muted); font: 500 .87rem/1 var(--mcn-font); text-decoration: none; white-space: nowrap; transition: color .2s, background-color .2s; }
.mcn-sec-links a:hover { color: var(--mcn-ink); }
.mcn-sec-links a.is-on { color: var(--mcn-ink); }
.mcn-sec-ink { position: absolute; left: 0; bottom: 0; width: 0; height: 2px; border-radius: 2px; background: var(--mcn-orange); pointer-events: none; transition: transform .35s var(--mcn-ease), width .35s var(--mcn-ease); }
.mcn-sec-acts { flex: none; display: flex; gap: 8px; }
.mcn-sec-acts a { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 14px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--mcn-line); color: var(--mcn-ink); font: 600 .84rem/1 var(--mcn-font); text-decoration: none; white-space: nowrap; transition: box-shadow .2s, background-color .2s, transform .2s; }
.mcn-sec-acts a:hover { box-shadow: inset 0 0 0 1.5px var(--mcn-ink); }
.mcn-sec-acts a.mcn-sec-dark { background: var(--mcn-ink); color: #fff; box-shadow: none; }
.mcn-sec-acts a.mcn-sec-q { background: var(--mcn-orange); box-shadow: none; }
.mcn-sec-acts a.mcn-sec-dark:hover, .mcn-sec-acts a.mcn-sec-q:hover { transform: translateY(-1px); }
.mcn-sec-acts svg { width: 15px; height: 15px; }
/* phones and tablets: the section bar's buttons are hidden, so the PDF gets its own pill at the right end */
.mcn-sec-pdf { display: none; }
/* the header's own quote button would repeat the section bar's */
:root.mcn-sec-on .mcn-end .mcn-quote { display: none; }

/* Phone action bar (catalogues): WhatsApp · Call · Quote, after the cover, out of the way of 3D builders */
.mcn-act { display: none; }

/* ── Sizes */
@media (max-width: 1240px) { .mcn-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 20px; } }
@media (max-width: 1060px) {
  :root { --mcn-h: 60px; }
  .mcn-links, .mcn-wa, .mcn-end .mcn-quote { display: none; }
  .mcn-menu { display: inline-flex; }
  .mcn-logo img { height: 21px; }
  .mcn-scrim { display: none; }
  :root:has(.mcn-sec) { --mcn-sec-h: 48px; }
  .mcn-sec-where, .mcn-sec-acts, .mcn-sec-ink { display: none; }
  .mcn-sec-in { padding: 0 0 0 clamp(16px, 4vw, 56px); }
  .mcn-sec-links { gap: 4px; padding-right: 24px; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .mcn-sec-links a { padding: 9px 13px; }
  .mcn-sec-links a.is-on { background: var(--mcn-ink); color: #fff; }
  .mcn-sec-pdf { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 34px; margin-right: clamp(10px, 3vw, 40px); padding: 0 12px; border-radius: 999px; background: var(--mcn-ink); color: #fff; font: 600 .82rem/1 var(--mcn-font); text-decoration: none; white-space: nowrap; }
  .mcn-sec-pdf svg { width: 15px; height: 15px; }
  .mcn-act { position: fixed; z-index: 35; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 6px; padding: 6px; border-radius: 18px; background: rgba(15,17,20,.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 14px 30px -10px rgba(0,0,0,.45); font-family: var(--mcn-font);
    transform: translateY(150%); transition: transform .35s var(--mcn-ease); }
  .mcn-act.is-on { transform: none; }
  .mcn-act a { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 7px; border-radius: 13px; color: #fff; font: 600 .88rem/1 var(--mcn-font); text-decoration: none; }
  .mcn-act a.mcn-act-q { background: var(--mcn-orange); color: var(--mcn-ink); }
  .mcn-act svg { width: 18px; height: 18px; }
  /* the catalogues' print button sits above the action bar */
  :root:has(.mcn-act) .print-btn { bottom: calc(84px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .mcn, .mcn *, .mcn-sheet, .mcn-sheet *, .mcn-scrim, .mcn-sec, .mcn-sec *, .mcn-act { transition-duration: .01ms !important; transition-delay: 0s !important; }
}
@media print { .mcn, .mcn-sheet, .mcn-scrim, .mcn-sec, .mcn-act { display: none !important; } .mcn-space { display: none; } }
