/* North Kerf public site: glossy, professional finish shared by every customer-facing page.
   Loaded after each page's own styles, so these rules win. Colours come from each page's own --tokens. */
:root {
  --gloss-edge: rgba(255,255,255,.95);
  --lift: 0 1px 2px rgba(16,30,24,.05), 0 12px 32px -16px rgba(16,30,24,.25);
  --lift-hover: 0 2px 4px rgba(16,30,24,.06), 0 20px 40px -18px rgba(16,30,24,.35);
  --glass: linear-gradient(180deg, #ffffff 0%, #f6f8f8 100%);
  --btn-face: linear-gradient(180deg, #44916c 0%, #2f6b4f 55%, #275a42 100%);
  --btn-face-hi: linear-gradient(180deg, #4ea179 0%, #357857 55%, #2b6449 100%);
  --ghost-face: linear-gradient(180deg, #ffffff 0%, #edf1f0 100%);
  --radius: 14px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --gloss-edge: rgba(255,255,255,.1);
  --lift: 0 1px 2px rgba(0,0,0,.4), 0 14px 34px -16px rgba(0,0,0,.75);
  --lift-hover: 0 2px 4px rgba(0,0,0,.45), 0 22px 44px -18px rgba(0,0,0,.85);
  --glass: linear-gradient(180deg, #1d2924 0%, #161f1c 100%);
  --btn-face: linear-gradient(180deg, #78c9a0 0%, #5fae86 55%, #4f9a75 100%);
  --btn-face-hi: linear-gradient(180deg, #88d6ae 0%, #6abb91 55%, #59a67f 100%);
  --ghost-face: linear-gradient(180deg, #22302b 0%, #19231f 100%); } }
:root[data-theme="dark"] {
  --gloss-edge: rgba(255,255,255,.1);
  --lift: 0 1px 2px rgba(0,0,0,.4), 0 14px 34px -16px rgba(0,0,0,.75);
  --lift-hover: 0 2px 4px rgba(0,0,0,.45), 0 22px 44px -18px rgba(0,0,0,.85);
  --glass: linear-gradient(180deg, #1d2924 0%, #161f1c 100%);
  --btn-face: linear-gradient(180deg, #78c9a0 0%, #5fae86 55%, #4f9a75 100%);
  --btn-face-hi: linear-gradient(180deg, #88d6ae 0%, #6abb91 55%, #59a67f 100%);
  --ghost-face: linear-gradient(180deg, #22302b 0%, #19231f 100%); }

body { background:
  radial-gradient(900px 420px at 85% -120px, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%),
  radial-gradient(700px 360px at -10% 20%, color-mix(in srgb, var(--spark) 6%, transparent), transparent 70%),
  var(--bg); }

/* header: frosted glass with a fine highlight */
header.site, body > header {
  background: color-mix(in srgb, var(--surface) 78%, transparent); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent); box-shadow: inset 0 -1px 0 var(--gloss-edge), 0 6px 20px -16px rgba(0,0,0,.35);
}

/* glossy cards and boxes */
.card, .panel, .sheet, .quote, .table-wrap, .order, .price-box, .part, .sector, .stat, .file, .drop, .done {
  background: var(--glass) !important; border: 1px solid var(--line) !important; border-radius: var(--radius) !important;
  box-shadow: inset 0 1px 0 var(--gloss-edge), var(--lift);
}
.card, .panel, .sheet, .sector, .order { transition: box-shadow .2s, transform .2s; }
.sector:hover, .order:hover { box-shadow: inset 0 1px 0 var(--gloss-edge), var(--lift-hover); transform: translateY(-2px); }
.quote { overflow: hidden; }
.quote-result { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 7%, var(--surface)), color-mix(in srgb, var(--accent) 3%, var(--bg))) !important; }
.sectors { gap: 14px !important; background: none !important; border: 0 !important; }
.sector { position: relative; overflow: hidden; }
.sector::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--accent), var(--spark)); opacity: .85; }
.drop { border-style: dashed !important; }
.stat { padding: 10px 12px; }
.part[aria-current="true"] { border-color: var(--accent) !important; box-shadow: inset 0 0 0 1px var(--accent), var(--lift) !important; }
.file[aria-pressed="true"] { border-color: var(--accent) !important; box-shadow: inset 0 0 0 1px var(--accent), var(--lift) !important; }

/* spec strip: a single glossy bar */
.specs { background: var(--glass); box-shadow: inset 0 1px 0 var(--gloss-edge), var(--lift); }

/* glossy buttons */
.btn {
  background: var(--btn-face) !important; color: #fff !important; border: 1px solid color-mix(in srgb, var(--accent) 70%, #000) !important;
  border-radius: 10px !important; text-shadow: 0 1px 0 rgba(0,0,0,.2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 1px 2px rgba(0,0,0,.15), 0 8px 18px -10px color-mix(in srgb, var(--accent) 85%, transparent);
  transition: transform .08s, box-shadow .15s, background .15s; filter: none !important;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn { color: #0d1411 !important; text-shadow: none; } }
:root[data-theme="dark"] .btn { color: #0d1411 !important; text-shadow: none; }
.btn:hover:not(:disabled) { background: var(--btn-face-hi) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 2px 4px rgba(0,0,0,.15), 0 12px 24px -10px color-mix(in srgb, var(--accent) 90%, transparent); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn.ghost {
  background: var(--ghost-face) !important; color: var(--ink) !important; border-color: var(--line) !important; text-shadow: none;
  box-shadow: inset 0 1px 0 var(--gloss-edge), 0 1px 2px rgba(0,0,0,.06);
}
.btn.ghost:hover:not(:disabled) { border-color: var(--accent) !important; color: var(--accent) !important; }
/* dark mode: outline buttons keep light text (the rule above for solid buttons makes text dark) */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.ghost { color: var(--ink) !important; } :root:not([data-theme="light"]) .btn.ghost:hover:not(:disabled) { color: var(--accent) !important; } }
:root[data-theme="dark"] .btn.ghost { color: var(--ink) !important; }
:root[data-theme="dark"] .btn.ghost:hover:not(:disabled) { color: var(--accent) !important; }
footer .btn { background: linear-gradient(180deg, #ffffff, #e3e9e7) !important; color: #15201c !important; border-color: #ffffff !important; text-shadow: none; }

/* segmented controls and quantity ladder */
.seg button, .ladder button { border-radius: 8px; }
.seg button[aria-pressed="true"], .ladder button[aria-current="true"] { background: var(--btn-face) !important; color: #fff !important; border-color: transparent !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .seg button[aria-pressed="true"], :root:not([data-theme="light"]) .ladder button[aria-current="true"] { color: #0d1411 !important; } }

/* form fields: softly inset */
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], select, textarea {
  border-radius: 9px !important; box-shadow: inset 0 1px 2px rgba(0,0,0,.06);
}

/* chips and the price */
.chip, .tag, .test-badge { border-radius: 999px !important; }
.price { background: linear-gradient(180deg, var(--ink) 30%, color-mix(in srgb, var(--ink) 65%, var(--accent))); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* footer: deep glossy band */
footer:has(.legal) { background: linear-gradient(180deg, #1b2925 0%, #101816 100%) !important; color: #e6ecea; box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
footer:has(.legal) h2 { color: #fff !important; }
@media (prefers-reduced-motion: reduce) { .card, .panel, .sheet, .sector, .order, .btn { transition: none; } .sector:hover, .order:hover { transform: none; } }

/* shown inside the staff dashboard's panel: drop the site header */
.nk-embedded body > header { display: none; }

/* footer text: bright enough to read on the dark green band in light and dark mode */
footer:has(.legal) p, footer:has(.legal) li { color: #d3dfda !important; }
footer:has(.legal) .eyebrow { color: #9fd3b6 !important; opacity: 1 !important; }
footer:has(.legal) li a { color: #ffffff; text-decoration-color: rgba(159,211,182,.6); text-underline-offset: 3px; }
footer:has(.legal) li a:hover { color: #9fd3b6; }
footer:has(.legal) .legal { color: #b9c9c2; border-top-color: rgba(255,255,255,.14) !important; }
footer:has(.legal) .legal a { color: #e6ecea; }

/* WhatsApp contact button (bottom right on public pages) */
.wa-btn { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); z-index: 60;
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px 0 14px; border-radius: 999px;
  background: #25d366; color: #0b2e1a !important; text-decoration: none !important; font: 700 0.95rem/1 var(--font, Arial, sans-serif);
  box-shadow: 0 6px 18px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.35); transition: transform .15s, box-shadow .15s; }
.wa-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.35); }
.wa-btn svg { width: 26px; height: 26px; flex: none; }
.wa-btn:focus-visible { outline: 3px solid #e2632b; outline-offset: 3px; }
@media (max-width: 640px) { .wa-btn { width: 56px; height: 56px; padding: 0; justify-content: center; } .wa-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
@media (max-width: 640px) { body:has(.wa-btn) { padding-bottom: 76px; } }
@media print { .wa-btn { display: none; } }
body.nk-embedded .wa-btn { display: none; }
