/* MegaClad's new look (2026 v3): the home page and the PUF panels page. Photo-led, rounded, Instrument Sans with the
   serif italic for one word. The older pages (construction, real estate, contact) still use styles.css.
   Also restyles the enquiry popup (enquire.js) and the cookie choice (consent.js) for these pages. */
@font-face { font-family: "Instrument Sans"; font-weight: 400 700; font-display: swap; src: url(/fonts/instrument-sans-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Sans"; font-weight: 400 700; font-display: swap; src: url(/fonts/instrument-sans-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-display: swap; src: url(/fonts/instrument-serif-italic-latin.woff2) format("woff2"); }
:root {
  --stone: #f3efea; --stone-2: #e8e3dc; --card: #fffdf9;
  --graphite: #0f1114; --ink-2: #2a2d35; --muted: #5d6168; --steel: #8b8f94; --line: #d8d2c9;
  --orange: #ff7a00; --orange-ink: #a85106; --on-dark: #a3a8b2;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --wrap: 1360px; --gutter: clamp(16px, 4vw, 56px);
  /* the older system's names, for the product range and the popups */
  --paper: var(--stone); --paper-2: var(--stone-2); --ink: var(--graphite);
  --accent: #b95a06; --accent-hi: var(--orange); --accent-ink: var(--orange-ink); --on-ink: #ece9e2; --on-ink-muted: var(--on-dark);
  color-scheme: only light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--stone); color: var(--ink-2); font: 400 1.0625rem/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { color: var(--graphite); margin: 0; font-weight: 500; }
p { margin: 0; }
.s { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--graphite); color: #fff; padding: 8px 14px; z-index: 30; }
.skip:focus { left: 8px; }
.label { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.label::before { content: ""; width: 22px; height: 1.5px; background: var(--orange); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 999px; font: 600 1rem/1 var(--sans); text-decoration: none; border: 0; cursor: pointer; transition: transform .2s, background .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-or { background: var(--orange); color: var(--graphite); }
.btn-or:hover { background: #ff8c1f; }
.btn-accent { background: var(--orange); color: var(--graphite); }
.btn-accent:hover { background: #ff8c1f; }
.btn-white { background: #fff; color: var(--graphite); }
.btn-ink { background: var(--graphite); color: #fff; }
.btn-ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.6); }
.btn-line { color: var(--graphite); box-shadow: inset 0 0 0 1.5px var(--graphite); }
.btn-sm { padding: 10px 16px; font-size: .9rem; }

/* Reveal on scroll (only with JavaScript, so nothing stays hidden without it) */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1); }
.js .rv.in { opacity: 1; transform: none; }

/* Header: sits over the dark hero */
.top { position: absolute; z-index: 6; left: 0; right: 0; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 84px; }
.bar > a img { height: 26px; width: auto; }
.main-nav { display: flex; gap: 28px; font-size: .95rem; align-items: center; }
.main-nav > a, .dd > a { text-decoration: none; color: rgba(255,255,255,.86); }
.main-nav > a:hover, .dd > a:hover { color: #fff; }
.main-nav > a.btn { color: var(--graphite); padding: 11px 18px; font-size: .9rem; }
.main-nav [aria-current="page"] { color: #fff; }
.dd { position: relative; padding: 14px 0; }
.dd > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-3px) rotate(45deg); }
.dd-panel { position: absolute; top: 100%; left: -18px; width: 330px; padding: 10px; background: #fff; border-radius: 20px; box-shadow: 0 24px 60px rgba(0,0,0,.25); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s; }
.dd:hover .dd-panel, .dd:focus-within .dd-panel { opacity: 1; visibility: visible; transform: none; }
.dd-panel a { display: block; padding: 8px 14px; border-radius: 12px; text-decoration: none; color: var(--graphite); }
.dd-panel a:hover { background: var(--stone); }
.dd-panel b { display: block; font-weight: 600; font-size: .95rem; }
.dd-panel small { color: var(--muted); font-size: .82rem; }
.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; position: relative; z-index: 21; padding: 11px 18px; border-radius: 999px; background: var(--orange); color: var(--graphite); font-weight: 600; font-size: .9rem; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary .o, .menu:not([open]) summary .c { display: none; }
.menu:not([open]) nav { display: none; }
.menu nav { position: fixed; inset: 0; z-index: 20; overflow-y: auto; background: var(--graphite); padding: 100px var(--gutter) 48px; display: grid; align-content: start; gap: 4px; }
.menu nav > a { color: #fff; text-decoration: none; font-size: 1.6rem; letter-spacing: -0.03em; padding: 6px 0; }
.menu .sub { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 2px 0 14px; }
.menu .sub a { color: var(--on-dark); text-decoration: none; font-size: .95rem; }
@media (max-width: 1060px) { .main-nav { display: none; } .menu { display: block; } .bar > a img { height: 22px; } }

/* Questions */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 24px 44px 24px 0; position: relative; font-weight: 500; font-size: clamp(1.1rem, 1.6vw, 1.35rem); letter-spacing: -0.02em; color: var(--graphite); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 18px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--stone-2); font-size: 1.3rem; font-weight: 400; color: var(--graphite); }
.faq details[open] summary::after { content: "–"; background: var(--orange); }
.faq details p { padding: 0 0 24px; color: var(--muted); max-width: 46em; }
.faq a { color: var(--orange-ink); }

/* Closing call to action */
.cta-band { background: var(--orange); color: var(--graphite); padding: clamp(70px, 9vw, 120px) 0; }
.cta-band h2 { font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: .98; letter-spacing: -0.045em; max-width: 16ch; }
.cta-band p { margin-top: 20px; max-width: 34em; font-size: 1.1rem; }
.cta-band .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.cta-band .btn-or { background: var(--graphite); color: #fff; }
.cta-band .btn-ghost { color: var(--graphite); box-shadow: inset 0 0 0 1.5px var(--graphite); }

/* Footer with the big wordmark */
.foot { background: var(--graphite); color: var(--on-dark); padding: 80px 0 0; overflow: hidden; }
.foot-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px; font-size: .95rem; }
.foot h2 { margin: 0 0 14px; color: #fff; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.foot a, .foot .hours { display: block; text-decoration: none; padding: 4px 0; }
.foot a:hover { color: #fff; }
.foot img { height: 26px; width: auto; margin-bottom: 18px; }
.foot address { font-style: normal; margin-top: 14px; max-width: 30em; font-size: .9rem; }
.wordmark { margin-top: 70px; font-size: clamp(4rem, 18vw, 18rem); line-height: .78; letter-spacing: -0.07em; font-weight: 600; color: #1d2027; white-space: nowrap; user-select: none; }
.legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .82rem; padding: 18px 0 26px; border-top: 1px solid rgba(255,255,255,.1); }
.legal a { display: inline; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } }

/* Enquiry popup (enquire.js) */
.enquire { border: 0; padding: 0; border-radius: 24px; width: min(480px, calc(100% - 32px)); max-height: calc(100dvh - 32px); background: var(--stone); color: var(--ink-2); overflow: auto; }
.enquire::backdrop { background: rgba(15, 17, 20, .62); }
html:has(.enquire[open]) { overflow: hidden; }
.enq-body { position: relative; padding: 34px 28px 24px; }
.enq-body .eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--orange-ink); }
.enq-body h2 { font-size: 1.7rem; margin: 10px 0 6px; letter-spacing: -0.03em; }
.enq-body .lead { color: var(--muted); }
.enq-form, .enq-done { display: grid; gap: 14px; }
.enq-form[hidden], .enq-done[hidden] { display: none; }
.enq-form label { display: grid; gap: 6px; font-weight: 600; font-size: 0.92rem; color: var(--graphite); }
.enq-opt { font-weight: 400; color: var(--muted); }
.enq-form input, .enq-form select, .enq-form textarea { width: 100%; font: inherit; font-weight: 400; color: var(--graphite); background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.enq-form textarea { resize: vertical; min-height: 84px; }
.enq-form input:focus, .enq-form select:focus, .enq-form textarea:focus { outline: 2px solid var(--orange); outline-offset: 0; border-color: var(--graphite); }
.enq-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.enq-error { color: var(--orange-ink); font-weight: 600; font-size: 0.95rem; }
.enq-send, .enq-done .btn { justify-self: start; background: var(--orange); color: var(--graphite); }
.enq-send:disabled { opacity: .6; cursor: default; }
.enq-note { font-size: 0.85rem; color: var(--muted); }
.enq-x { position: absolute; top: 14px; right: 18px; width: 36px; height: 36px; border: 0; background: transparent; font-size: 1.6rem; line-height: 1; color: var(--muted); cursor: pointer; }
.enq-x:hover { color: var(--graphite); }

/* Cookie choice (consent.js): Accept and Reject look the same */
.consent { position: fixed; z-index: 25; left: 16px; right: 16px; bottom: 16px; max-width: 440px; display: grid; gap: 14px; padding: 18px 20px; border-radius: 20px; background: var(--graphite); color: var(--on-ink); font-size: 0.95rem; line-height: 1.5; }
.consent[hidden] { display: none; }
.consent p { margin: 0; }
.consent p a { color: var(--orange); }
.consent div { display: flex; gap: 10px; }
.consent .btn { background: var(--stone); color: var(--graphite); }
.consent .btn:hover { background: #fff; }

@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; transition: none; } }
