/* CooLED — shared styles. Colours follow the 2026 datasheets: navy bars, orange accents, CooLED purple. */
:root {
  --purple: #4b1d5f;
  --purple-dark: #35123f;
  --navy: #1f2635;
  --orange: #c4461b;
  --orange-soft: #fbeee8;
  --sand: #f4f2ee;
  --ink: #1b1f27;
  --muted: #5b6270;
  --line: #e2e0dc;
  --white: #fff;
  --radius: 10px;
  --wrap: 1180px;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4.6vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); margin-bottom: .6em; display: block; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 62ch; }
.section { padding: 64px 0; }
.section.alt { background: var(--sand); }
.section-head { margin-bottom: 32px; max-width: 760px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: .8em 1.3em; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s; font-size: .98rem; cursor: pointer; }
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: #a93a14; }
.btn-ghost { border-color: currentColor; color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-outline { border-color: var(--purple); color: var(--purple); }
.btn-outline:hover { background: var(--purple); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(6px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
:root { --header-h: 84px; }
.logo { flex-shrink: 0; }
.logo img { height: 52px; width: auto; display: block; }
@media (max-width: 980px) { :root { --header-h: 72px; } .logo img { height: 44px; } }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .96rem; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--purple); }
.nav .btn { color: var(--white); padding: .55em 1.1em; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }
@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--white); flex-direction: column; align-items: stretch; gap: 0; border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; justify-content: center; }
}

/* Hero */
.hero { position: relative; color: var(--white); background: var(--navy); overflow: hidden; }
.hero img.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Home page banner: a new picture slides in from the right every 4 seconds */
.hero .hero-slides img.hero-bg { transform: translateX(100%); transition: transform .8s ease-in-out; }
.hero .hero-slides img.hero-bg.on { transform: translateX(0); }
.hero .hero-slides img.hero-bg.out { transform: translateX(-100%); }
.hero .hero-slides.no-slide img.hero-bg { transition: none; }
/* Light shade only behind the words; the rest of the picture stays clear */
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,24,36,.78) 0%, rgba(20,24,36,.62) 40%, rgba(20,24,36,0) 64%); }
@media (max-width: 860px) { .hero::after { background: rgba(20,24,36,.5); } }
.hero h1, .hero .lead, .hero .eyebrow { text-shadow: 0 1px 3px rgba(0,0,0,.55), 0 0 18px rgba(0,0,0,.35); }
.hero .wrap { position: relative; z-index: 1; padding-top: 96px; padding-bottom: 96px; }
.hero h1 { max-width: 17ch; }
.hero .lead { color: #fff; margin-bottom: 1.8em; }
.hero .eyebrow { color: #f3a27f; }

/* Trust strip */
.trust { background: var(--purple); color: var(--white); }
.trust ul { list-style: none; margin: 0; padding: 22px 16px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: var(--wrap); margin: 0 auto; }
.trust li { display: flex; flex-direction: column; font-size: .9rem; color: #e6d9ec; border-left: 3px solid var(--orange); padding-left: 12px; }
.trust strong { color: var(--white); font-size: 1.05rem; }
@media (max-width: 760px) { .trust ul { grid-template-columns: 1fr 1fr; } }

/* Cards */
.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s; }
a.card:hover { box-shadow: 0 10px 30px rgba(31,38,53,.12); transform: translateY(-2px); }
.card .media { background: linear-gradient(180deg, #f7f6f3, #ecebe7); height: 240px; display: flex; align-items: center; justify-content: center; padding: 18px; }
.card .media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.card .body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.card .tag { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }
.card h3 { margin: .3em 0 .4em; }
.card p { color: var(--muted); font-size: .94rem; }
.card .more { margin-top: auto; font-weight: 600; color: var(--purple); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin: 4px 0 16px; }
.stat { border-left: 3px solid var(--orange); padding-left: 10px; }
.stat b { display: block; font-size: 1.15rem; }
.stat span { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* Projects */
.project { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: var(--navy); }
.project img { width: 100%; height: 100%; object-fit: cover; }
.project figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; color: var(--white); background: linear-gradient(transparent, rgba(0,0,0,.78)); }
.project figcaption b { display: block; font-size: 1.02rem; }
.project figcaption span { font-size: .82rem; color: #e6e6e6; }
.flag { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: var(--orange); color: var(--white); padding: 3px 8px; border-radius: 4px; margin-bottom: 6px; }

/* Feature list */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 40px; }
@media (max-width: 700px) { .features { grid-template-columns: 1fr; } }
.feature { display: flex; gap: 14px; }
.feature .num { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--orange-soft); color: var(--orange); font-weight: 700; display: grid; place-items: center; }
.feature h3 { margin-bottom: .2em; }
.feature p { color: var(--muted); margin: 0; }

/* Split / CTA */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }
.cta { background: var(--navy); color: var(--white); border-radius: 16px; padding: 44px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.cta p { color: #c9cdd6; }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; padding: 28px 22px; } }

/* Offices */
.office { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.office .tag { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }
.office h3 { margin: .35em 0 .5em; }
.office p { font-size: .95rem; color: var(--muted); margin-bottom: .6em; }
.office a { text-decoration: none; font-weight: 500; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
thead th { background: var(--navy); color: var(--white); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
tbody tr:nth-child(even) { background: #faf9f7; }
td.code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-weight: 600; }
td.num, th.num { text-align: right; }
.spec-list { display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--navy); }
.spec-list div { display: grid; grid-template-columns: 150px 1fr; gap: 10px; padding: 11px 4px; border-bottom: 1px solid var(--line); font-size: .95rem; }
.spec-list dt { font-weight: 600; }
.spec-list dd { margin: 0; color: var(--muted); }
@media (max-width: 700px) { .spec-list { grid-template-columns: 1fr; } .spec-list div { grid-template-columns: 130px 1fr; } }

/* Product page */
.crumbs { font-size: .86rem; color: var(--muted); padding-top: 18px; }
.crumbs a { color: var(--muted); }
.product-top { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding-top: 28px; padding-bottom: 56px; }
@media (max-width: 860px) { .product-top { grid-template-columns: 1fr; gap: 24px; } }
.product-img { background: linear-gradient(180deg, #f7f6f3, #e9e7e2); border-radius: 16px; padding: 32px; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; position: relative; }
.product-img .badge { position: absolute; top: 18px; left: 18px; }
.badge { display: inline-block; background: var(--orange); color: var(--white); font-size: .74rem; font-weight: 700; letter-spacing: .1em; padding: 5px 10px; border-radius: 5px; }
.badge.cert { background: var(--purple); }
.apps { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.apps li { background: var(--sand); border-radius: 999px; padding: 5px 13px; font-size: .86rem; }
.big-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 22px 0 28px; }
.big-stats .stat b { font-size: 1.7rem; }
.dl-box { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--sand); border-radius: var(--radius); padding: 18px 22px; margin-top: 28px; }
.note { font-size: .84rem; color: var(--muted); margin-top: 10px; }
.subnav { position: sticky; top: var(--header-h); z-index: 10; background: var(--white); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 24px; overflow-x: auto; }
.subnav a { padding: 14px 0; white-space: nowrap; text-decoration: none; color: var(--muted); font-weight: 500; font-size: .93rem; }
.subnav a:hover { color: var(--purple); }

/* Downloads */
.dl-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.dl-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.dl-list .name { font-weight: 600; }
.dl-list .meta { font-size: .84rem; color: var(--muted); }
.dl-list a.get { flex: none; text-decoration: none; font-weight: 600; border: 2px solid var(--purple); border-radius: 999px; padding: .35em 1em; font-size: .88rem; }
.dl-list a.get:hover { background: var(--purple); color: var(--white); }
.pill-new { display: inline-block; font-size: .66rem; font-weight: 700; letter-spacing: .08em; background: var(--orange-soft); color: var(--orange); padding: 2px 7px; border-radius: 4px; margin-left: 6px; vertical-align: middle; }

/* Category list */
.cat-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 860px) { .cat-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .cat-list { grid-template-columns: 1fr; } }
.cat-list li { list-style: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--white); }
.cat-list ul, ul.cat-list { padding: 0; margin: 0; }
.cat-list .name { font-weight: 600; font-size: .95rem; }
.cat-list a { font-size: .86rem; font-weight: 600; text-decoration: none; white-space: nowrap; }

/* TODO markers (visible on staging only, to be resolved before go-live) */
.todo { background: #fff4c2; border: 1px dashed #c9a400; color: #6b5600; padding: 2px 8px; border-radius: 4px; font-size: .85rem; }

/* Footer */
.site-footer { background: var(--navy); color: #b9bfcb; padding: 56px 0 28px; font-size: .93rem; }
.site-footer a { color: #e3e6ec; text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--white); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 7px; }
.footer-bottom { border-top: 1px solid #343c4e; margin-top: 36px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .84rem; }

/* WhatsApp floating button */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; background: #1fa855; color: var(--white); border-radius: 999px; padding: 12px 18px; font-weight: 600; text-decoration: none; box-shadow: 0 6px 20px rgba(0,0,0,.2); display: flex; align-items: center; gap: 8px; font-size: .95rem; }
.wa-float svg { width: 20px; height: 20px; fill: currentColor; }

/* Project list */
.pl-add { font: inherit; font-size: .82rem; font-weight: 600; color: var(--purple); background: var(--white); border: 1.5px solid var(--purple); border-radius: 999px; padding: .3em .9em; cursor: pointer; white-space: nowrap; }
.pl-add:hover { background: var(--purple); color: var(--white); }
.pl-add.added { background: var(--purple); color: var(--white); }
.pl-pill { position: fixed; left: 18px; bottom: 18px; z-index: 60; background: var(--purple); color: var(--white); border-radius: 999px; padding: 12px 18px; font-weight: 600; text-decoration: none; box-shadow: 0 6px 20px rgba(0,0,0,.2); font-size: .95rem; }
.pl-toast { position: fixed; left: 50%; bottom: 84px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 70; background: var(--navy); color: var(--white); padding: 12px 18px; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.25); font-size: .93rem; max-width: calc(100vw - 32px); transition: opacity .2s, transform .2s; }
.pl-toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.pl-toast a { color: #f3a27f; font-weight: 600; }
.pl-remove { font: inherit; font-size: .84rem; background: none; border: 0; color: var(--orange); cursor: pointer; text-decoration: underline; padding: 0; }
.pl-qty { width: 84px; font: inherit; padding: .35em .5em; border: 1px solid var(--line); border-radius: 6px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.form-grid label { display: flex; flex-direction: column; gap: 4px; font-size: .88rem; font-weight: 600; }
.form-grid label.full { grid-column: 1 / -1; }
.form-grid input, .form-grid textarea { font: inherit; font-weight: 400; padding: .6em .75em; border: 1px solid #cfccc6; border-radius: 8px; background: var(--white); }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } .pl-pill { padding: 10px 14px; font-size: .88rem; } }
.notice { background: var(--orange-soft); border-left: 4px solid var(--orange); padding: 14px 18px; border-radius: 6px; margin-bottom: 24px; }
.btn-plain { background: none; border: 0; color: var(--muted); text-decoration: underline; font: inherit; cursor: pointer; padding: .8em .4em; }

/* Downlight finder */
.finder { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 26px; }
.finder-input { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-bottom: 14px; }
.finder-input label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .9rem; }
.finder-input input { font: inherit; font-size: 1.2rem; width: 160px; padding: .45em .7em; border: 1.5px solid var(--purple); border-radius: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chips button { font: inherit; font-size: .86rem; background: var(--sand); border: 1px solid var(--line); border-radius: 999px; padding: .35em .9em; cursor: pointer; }
.chips button:hover, .chips button.on { background: var(--purple); color: var(--white); border-color: var(--purple); }
.finder-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.finder-results li { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.finder-results img { width: 72px; height: 56px; object-fit: contain; }
.finder-results .fit { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); }
.finder-results .fit.exact { color: #1f7a3f; }
.finder-results b { display: block; }
.finder-results small { color: var(--muted); }
@media (max-width: 520px) { .finder-results li { grid-template-columns: 56px 1fr; } .finder-results li > a { grid-column: 1 / -1; } .finder-results img { width: 56px; } }

/* Range cards on family pages */
.range .media { height: 200px; }
.range ul { margin: 0 0 14px; padding-left: 1.1em; color: var(--muted); font-size: .9rem; }
.old-names { font-size: .8rem; color: var(--muted); }
.todo-box { background: #fff4c2; border: 1px dashed #c9a400; color: #4d3e00; padding: 16px 20px; border-radius: 8px; margin-top: 24px; font-size: .9rem; }
.todo-box ul { margin: .4em 0 0; padding-left: 1.2em; }

@media print {
  .site-header, .site-footer, .wa-float, .pl-pill, .pl-toast, .no-print, .pl-remove { display: none !important; }
  .section { padding: 16px 0; }
  .pl-qty { border: 0; width: auto; }
}
.product-img img { mix-blend-mode: multiply; }
td .pl-add { padding: .25em .75em; }
/* On phones, keep the part number and the Save button visible while the table scrolls sideways */
@media (max-width: 860px) {
  table[data-pl-done] td:last-child, table[data-pl-done] th:last-child { position: sticky; right: 0; background: var(--white); box-shadow: -6px 0 8px -6px rgba(0,0,0,.25); }
  table[data-pl-done] th:last-child { background: var(--navy); }
  table[data-pl-done] td.code, table[data-pl-done] th:first-child { position: sticky; left: 0; background: var(--white); box-shadow: 6px 0 8px -6px rgba(0,0,0,.25); z-index: 1; }
  table[data-pl-done] th:first-child { background: var(--navy); }
}
@media (max-width: 860px) { table[data-pl-done] tbody tr:nth-child(even) td.code, table[data-pl-done] tbody tr:nth-child(even) td:last-child { background: #faf9f7; } }
button.btn { font-family: inherit; }
@media (max-width: 600px) {
  .pl-wrap { border: 0; overflow: visible; }
  .pl-table thead { display: none; }
  .pl-table, .pl-table tbody { display: block; }
  .pl-table tr { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; background: var(--white) !important; }
  .pl-table td { border: 0; padding: 0; white-space: normal; }
  .pl-table td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .pl-table td:nth-child(3) { grid-row: 3; }
  .pl-table td:nth-child(4) { grid-row: 3; align-self: center; }
  .pl-table td:nth-child(5) { grid-row: 1; grid-column: 2; text-align: right; }
}
@media (max-width: 600px) { .pl-table td:nth-child(3)::before { content: "Qty "; font-size: .85rem; color: var(--muted); } }
.card[hidden], .pgroup[hidden] { display: none; }

/* Projects page */
.albums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 8px; }
@media (max-width: 1000px) { .albums { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .albums { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.album { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: var(--navy); color: var(--white); text-decoration: none; }
.album[hidden] { display: none; }
.album img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.album:hover img { transform: scale(1.04); }
.album span { position: absolute; left: 0; right: 0; bottom: 0; padding: 32px 12px 10px; background: linear-gradient(transparent, rgba(0,0,0,.8)); }
.album b { display: block; font-size: .95rem; line-height: 1.25; }
.album small { font-size: .78rem; color: #ddd; }
.ba { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; }
.ba-pair div { position: relative; }
.ba-pair img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.ba-pair .flag { position: absolute; top: 8px; left: 8px; }
.ba-pair small { display: block; font-size: .74rem; color: var(--muted); padding: 6px 8px 0; line-height: 1.3; }
.ba figcaption { padding: 12px 14px 16px; font-size: .92rem; }
.ba figcaption span { color: var(--orange); font-weight: 600; }
.lb { position: fixed; inset: 0; z-index: 100; background: #0f121a; color: var(--white); display: flex; flex-direction: column; }
.lb[hidden] { display: none; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; gap: 12px; }
.lb-top h2 { font-size: 1.1rem; margin: 0; }
.lb-x { background: none; border: 0; color: var(--white); font-size: 2rem; line-height: 1; cursor: pointer; padding: 4px 10px; }
.lb-stage { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; gap: 8px; padding: 0 8px; }
.lb-stage figure { margin: 0; flex: 1; min-height: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lb-stage img { max-width: 100%; max-height: calc(100% - 40px); width: auto; height: auto; object-fit: contain; border-radius: 6px; }
.lb-stage figcaption { padding: 8px; font-size: .92rem; color: #d4d7de; text-align: center; min-height: 2.4em; }
.lb-nav { background: rgba(255,255,255,.1); border: 0; color: var(--white); font-size: 2rem; width: 44px; height: 64px; border-radius: 8px; cursor: pointer; flex: none; }
.lb-strip { display: flex; gap: 6px; overflow-x: auto; padding: 8px 16px; }
.lb-strip button { flex: none; border: 2px solid transparent; padding: 0; border-radius: 4px; background: none; cursor: pointer; opacity: .6; }
.lb-strip button.on { border-color: var(--orange); opacity: 1; }
.lb-strip img { width: 72px; height: 54px; object-fit: cover; display: block; }
.lb-foot { display: flex; justify-content: space-between; padding: 6px 16px 14px; font-size: .86rem; color: #b9bfcb; }
.lb-foot a { color: #f3a27f; }
@media (max-width: 600px) { .lb-nav { display: none; } }

/* Reviews & tools */
.rating { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 0; }
.rating b { font-size: 2.2rem; }
.stars { color: #e3a008; letter-spacing: 2px; }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .reviews { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .reviews { grid-template-columns: 1fr; } }
.review { margin: 0; background: var(--sand); border-radius: var(--radius); padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.review blockquote { margin: 0; font-size: .98rem; }
.review figcaption { margin-top: auto; font-weight: 600; font-size: .9rem; color: var(--muted); }
.tools-strip { padding-top: 0; }
.card.tool .body { padding: 22px 24px; }

/* Guides & videos */
.article h2 { margin-top: 1.4em; font-size: 1.5rem; }
.videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .videos { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .videos { grid-template-columns: 1fr; } }
.video p { margin: 8px 0 0; font-weight: 600; font-size: .95rem; }
.yt, .video iframe { display: block; width: 100%; aspect-ratio: 16/9; border: 0; border-radius: var(--radius); overflow: hidden; position: relative; padding: 0; cursor: pointer; background: #000; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.yt .play { position: absolute; inset: 0; margin: auto; width: 64px; height: 44px; border-radius: 12px; background: #e62117; color: #fff; display: grid; place-items: center; font-size: 1.2rem; }

/* Energy calculator */
.calc { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }
.calc-form fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 18px; margin: 0 0 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
@media (max-width: 520px) { .calc-form fieldset { grid-template-columns: 1fr; } }
.calc-form legend { font-weight: 700; padding: 0 6px; }
.calc-form label { display: flex; flex-direction: column; gap: 4px; font-size: .88rem; font-weight: 600; }
.calc-form label.full { grid-column: 1 / -1; }
.calc-form input, .calc-form select { font: inherit; font-weight: 400; padding: .55em .7em; border: 1px solid #cfccc6; border-radius: 8px; background: var(--white); }
.calc-form small { font-weight: 400; color: var(--muted); font-size: .78rem; }
.calc-out { position: sticky; top: 90px; background: var(--navy); color: var(--white); border-radius: 16px; padding: 26px; }
.calc-out .big b { display: block; font-size: 2.6rem; line-height: 1.1; color: #fff; }
.calc-out .big span { color: #b9bfcb; }
.calc-out dl { margin: 18px 0 0; display: grid; gap: 0; }
.calc-out dl div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #343c4e; }
.calc-out dl div[hidden] { display: none; }
.calc-out dt { color: #b9bfcb; } .calc-out dd { margin: 0; font-weight: 600; }
button.btn-ghost { background: transparent; }
/* Google review QR (desktop only; phone users tap the button) */
.review-cta { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.qr { margin: 0; background: #fff; padding: 10px 10px 6px; border-radius: 10px; text-align: center; }
.qr img { width: 132px; height: 132px; image-rendering: pixelated; }
.qr figcaption { font-size: .75rem; color: var(--muted); margin-top: 2px; }
@media (max-width: 760px) { .qr { display: none; } }

/* Product hero picture: clean studio look — white spotlight, soft floor shadow, product centred with breathing room */
.product-img { background: radial-gradient(115% 85% at 50% 40%, #fff 0%, #fff 34%, #f5f3ef 66%, #e9e5dd 100%); border: 1px solid var(--line); border-radius: 20px; padding: 0; overflow: hidden; isolation: isolate; }
.product-img::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 12%; height: 6%; background: radial-gradient(closest-side, rgba(27,31,39,.22), rgba(27,31,39,0)); z-index: 0; pointer-events: none; }
.product-img::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: linear-gradient(90deg, var(--purple), var(--orange)); z-index: 2; }
.product-img img { position: relative; z-index: 1; width: auto; height: auto; max-width: 74%; max-height: 66%; object-fit: contain; mix-blend-mode: multiply; margin-bottom: 7%; transition: transform .4s ease; }
.product-img:hover img { transform: scale(1.03); }
.product-img .badge { z-index: 3; }
@media (max-width: 860px) { .product-img { aspect-ratio: 5 / 4; } .product-img img { max-height: 70%; } }
.card .media { background: radial-gradient(120% 90% at 50% 40%, #fff 0%, #fff 40%, #f3f1ec 80%, #ebe7e0 100%); padding: 22px 28px; }
.card .media img { max-width: 86%; max-height: 88%; width: auto; height: auto; }

/* Dimensional drawings & packing (from Product Catalogue 2027) */
.drawings { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.drawings.one { grid-template-columns: 1fr; }
.drawings figure { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; }
.drawings figure a { display: block; }
.drawings img { width: 100%; height: auto; display: block; }
.drawings figcaption { font-size: .9rem; color: var(--muted); margin-top: 10px; }
.drawings figcaption b { color: var(--ink); }
.section h3.sub { margin: 32px 0 12px; }

/* In-page links (#smart, #spd, #models …) stop below the sticky header and section menu */
section[id], h2[id], h3[id], .card[id], .pgroup[id] { scroll-margin-top: 150px; }
@media (max-width: 980px) { section[id], h2[id], h3[id], .card[id], .pgroup[id] { scroll-margin-top: 130px; } }
