:root {
  --navy: #0F2A47;
  --navy-deep: #0A1D33;
  --navy-soft: #1B3A5E;
  --amber: #F5A623;
  --amber-deep: #E08A12;
  --blue: #2C64B0;
  --ink: #13202F;
  --muted: #5A6878;
  --line: #DCE2EA;
  --bg: #F4F6F9;
  --white: #FFFFFF;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(15, 42, 71, .06), 0 8px 24px rgba(15, 42, 71, .08);
  --head: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--white); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.12; letter-spacing: -.015em; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.3rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
button, input, select, textarea { font: inherit; }

.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: var(--navy); padding: 8px 14px; border-radius: 6px; z-index: 200; font-weight: 600; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Top bar + header */
.topbar { background: var(--navy-deep); color: #B9C6D6; font-size: 14px; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 4px 22px; justify-content: flex-end; padding: 7px 0; }
.topbar a { color: #E3EAF2; text-decoration: none; }
.topbar a:hover { color: var(--amber); }
.site-header { position: sticky; top: 0; z-index: 100; background: var(--navy); box-shadow: 0 2px 12px rgba(0, 0, 0, .18); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 74px; }
.brand img { height: 50px; width: auto; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav > a, .nav .dd > button { color: #E3EAF2; text-decoration: none; font-weight: 500; font-size: 15px; padding: 10px 11px; border-radius: 6px; background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.nav > a:hover, .nav .dd > button:hover, .nav > a[aria-current="page"], .nav .dd.current > button { color: var(--amber); }
.dd { position: relative; }
.dd > button::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.dd-menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 290px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; display: none; }
.dd-menu a { display: block; padding: 9px 12px; border-radius: 6px; color: var(--ink); text-decoration: none; font-size: 15px; }
.dd-menu a:hover, .dd-menu a[aria-current="page"] { background: var(--bg); color: var(--blue); }
.dd.open .dd-menu { display: block; }
@media (hover: hover) and (min-width: 1081px) { .dd:hover .dd-menu, .dd:focus-within .dd-menu { display: block; } .dd::before { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; } }
.nav .nav-cta { margin-left: 8px; }
.basket-link { position: relative; }
.basket-count { background: var(--amber); color: var(--navy); font-size: 12px; font-weight: 700; min-width: 20px; height: 20px; border-radius: 10px; display: inline-grid; place-items: center; padding: 0 5px; }
.basket-count[data-n="0"] { display: none; }
.menu-toggle { display: none; background: none; border: 1px solid rgba(255, 255, 255, .25); border-radius: 6px; color: #fff; padding: 9px 12px; cursor: pointer; font-weight: 600; font-size: 15px; }
@media (max-width: 1080px) {
  .menu-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); flex-direction: column; align-items: stretch; padding: 8px 24px 20px; max-height: calc(100vh - 74px); overflow-y: auto; border-top: 1px solid rgba(255, 255, 255, .1); }
  .nav.open { display: flex; }
  .nav > a, .nav .dd > button { padding: 12px 4px; width: 100%; justify-content: space-between; font-size: 16px; }
  .dd-menu { position: static; box-shadow: none; background: var(--navy-soft); min-width: 0; }
  .dd-menu a { color: #E3EAF2; }
  .dd-menu a:hover { background: rgba(255, 255, 255, .06); color: var(--amber); }
  .nav .nav-cta { margin: 10px 0 0; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 6px; font-weight: 600; font-size: 16px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s; line-height: 1.2; text-align: center; }
.btn-primary { background: var(--amber); color: var(--navy); }
.btn-primary:hover { background: #FFB940; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-soft); }
.btn-outline { border-color: currentColor; color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-light { border-color: rgba(255, 255, 255, .6); color: #fff; background: transparent; }
.btn-light:hover { background: #fff; color: var(--navy); }
.btn-wa { background: #1FAF54; color: #fff; }
.btn-wa:hover { background: #17923f; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .32; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy) 18%, rgba(15, 42, 71, .55) 70%, rgba(15, 42, 71, .3)); }
.hero .wrap { position: relative; padding: clamp(64px, 9vw, 120px) 0 clamp(56px, 8vw, 104px); }
.hero h1 { color: #fff; max-width: 820px; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #D3DDE8; max-width: 720px; }
.eyebrow { display: inline-block; font-family: var(--head); text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 600; color: var(--amber-deep); margin-bottom: 12px; }
.hero .eyebrow, .dark .eyebrow { color: var(--amber); }
.page-hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.page-hero .wrap { padding: clamp(48px, 7vw, 88px) 0; position: relative; }
.page-hero h1 { color: #fff; max-width: 900px; }
.page-hero .tagline { font-family: var(--head); font-size: clamp(1.15rem, 2vw, 1.45rem); color: var(--amber); margin-bottom: .8em; max-width: 820px; }
.page-hero p { color: #D3DDE8; max-width: 760px; font-size: 1.08rem; }
.page-hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(245, 166, 35, .22), transparent 70%); }
.crumbs { font-size: 14px; color: #9FB0C4; margin-bottom: 18px; }
.crumbs a { color: #C9D5E2; text-decoration: none; }
.crumbs a:hover { color: var(--amber); }

/* Sections */
.section { padding: clamp(56px, 7vw, 92px) 0; }
.section.tint { background: var(--bg); }
.section.dark { background: var(--navy); color: #D3DDE8; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 1.06rem; }
.dark .section-head p { color: #B9C6D6; }
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); margin: 0; }
.card.accent { border-top: 4px solid var(--amber); }
a.card { text-decoration: none; color: inherit; transition: box-shadow .15s, transform .15s; display: block; }
a.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
a.card .more { display: inline-block; margin-top: 14px; color: var(--blue); font-weight: 600; font-size: 15px; }
.icon { width: 46px; height: 46px; border-radius: 10px; background: #FFF3DE; color: var(--amber-deep); display: grid; place-items: center; margin-bottom: 16px; }
.icon svg { width: 24px; height: 24px; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: clamp(28px, 5vw, 64px); align-items: start; }
.vm { display: grid; gap: 16px; }
.vm .card { border-left: 4px solid var(--amber); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.chips li { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 500; font-size: 15px; color: var(--navy); }
.dark .chips li, .page-hero .chips li { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); color: #fff; }

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 36px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%; background: var(--amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F2A47' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 14px no-repeat; }
.checks strong { color: var(--navy); }
.dark .checks strong { color: #fff; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: step; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); }
.steps li { counter-increment: step; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--head); font-weight: 700; font-size: 1.5rem; color: var(--amber-deep); display: block; margin-bottom: 6px; }
.steps strong { display: block; color: var(--navy); font-family: var(--head); font-size: 1.08rem; margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: 15.5px; }

/* Work gallery */
.work { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }
.work figure { margin: 0; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.work img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--bg); }
.work figcaption { padding: 14px 18px; font-weight: 600; color: var(--navy); font-size: 15.5px; }

/* CTA band */
.cta-band { background: linear-gradient(110deg, var(--navy) 0%, var(--navy-soft) 100%); color: #D3DDE8; border-radius: 14px; padding: clamp(28px, 4vw, 48px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { color: #fff; margin: 0 0 .3em; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.cta-band p { margin: 0; max-width: 640px; }
.cta-band a:not(.btn) { color: var(--amber); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 18px; }
.stat { background: var(--white); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.stat b { display: block; font-family: var(--head); font-size: 2.4rem; color: var(--navy); line-height: 1; margin-bottom: 8px; }
.stat span { color: var(--muted); font-size: 15px; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
table { border-collapse: collapse; width: 100%; font-size: 15.5px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg); font-family: var(--head); color: var(--navy); font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary { cursor: pointer; padding: 18px 54px 18px 22px; font-weight: 600; color: var(--navy); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--amber-deep); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--muted); }

/* Industries / projects */
.ind-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); }
.ind { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--navy); color: #fff; min-height: 300px; display: flex; align-items: flex-end; }
.ind img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ind::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 29, 51, .05) 30%, rgba(10, 29, 51, .92)); }
.ind div { position: relative; z-index: 1; padding: 24px; }
.ind small { font-family: var(--head); color: var(--amber); font-weight: 700; letter-spacing: .1em; }
.ind h3 { color: #fff; margin: 4px 0 6px; font-size: 1.35rem; }
.ind p { margin: 0; color: #D3DDE8; font-size: 15.5px; }
.projects { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr)); }
.project { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.project img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--bg); }
.project .body { padding: 22px; }
.project .num { font-family: var(--head); font-size: 13px; letter-spacing: .12em; color: var(--amber-deep); font-weight: 700; }
.project h3 { margin: 6px 0 14px; }
.project dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 15px; }
.project dt { color: var(--muted); }
.project dd { margin: 0; color: var(--ink); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.pill { border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: 8px 16px; cursor: pointer; font-weight: 500; font-size: 15px; color: var(--navy); }
.pill[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Forms */
.form { background: var(--white); color: var(--ink); border-radius: 12px; padding: clamp(22px, 3vw, 34px); border: 1px solid var(--line); display: grid; gap: 16px; }
.form-row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 14.5px; color: var(--navy); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #A9B4C2; border-radius: 6px; background: #fff; color: var(--ink); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.hp { display: none; }
.form-note { font-size: 14px; color: var(--muted); margin: 0; }
.form-status { font-weight: 600; color: #17803a; margin: 0; }

/* Contact */
.contact-list { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.contact-list div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.contact-list div:last-child { border-bottom: 0; }
.contact-list dt { font-weight: 600; color: var(--navy); }
.contact-list dd { margin: 0; }
.social { display: flex; flex-wrap: wrap; gap: 10px; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #A9B8CA; font-size: 15px; }
.site-footer .wrap { padding: 60px 0 28px; }
.foot-grid { display: grid; gap: 36px; grid-template-columns: 1.4fr repeat(3, 1fr); }
@media (max-width: 900px) { .foot-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer a { color: #C9D5E2; text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot-logo img { height: 54px; width: auto; margin-bottom: 14px; }
.foot-base { border-top: 1px solid #22395A; margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 14px; }

/* Floating WhatsApp */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; background: #1FAF54; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* Solar calculator */
.calc { display: grid; gap: 24px; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 960px) { .calc { grid-template-columns: 1fr; } }
.calc-panel { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: clamp(18px, 2.5vw, 28px); }
.calc-panel h3 { display: flex; align-items: center; gap: 10px; }
.calc-panel h3 .n { width: 28px; height: 28px; border-radius: 50%; background: var(--amber); color: var(--navy); display: inline-grid; place-items: center; font-size: 14px; flex: none; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chipbtns { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chipbtns button { border: 1px dashed #A9B4C2; background: var(--bg); border-radius: 999px; padding: 7px 13px; cursor: pointer; font-size: 14.5px; color: var(--navy); }
.chipbtns button:hover { border-style: solid; border-color: var(--blue); }
.loads td, .loads th { padding: 8px 8px; }
.loads input { width: 100%; min-width: 58px; min-height: 40px; padding: 6px 8px; border: 1px solid #A9B4C2; border-radius: 6px; }
.loads input[type="text"] { min-width: 150px; }
.loads .rm { background: none; border: 0; color: #B3261E; cursor: pointer; font-size: 20px; padding: 4px 8px; }
.loads tfoot td { font-weight: 700; color: var(--navy); background: var(--bg); }
.range-row { display: flex; align-items: center; gap: 14px; }
.range-row input[type="range"] { flex: 1; accent-color: var(--amber-deep); }
.range-row output { font-family: var(--head); font-weight: 700; color: var(--navy); min-width: 72px; }
.result { position: sticky; top: 96px; background: var(--navy); color: #D3DDE8; border-radius: 12px; padding: clamp(20px, 2.5vw, 28px); }
.result h3 { color: #fff; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.kpi { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 8px; padding: 12px 14px; }
.kpi small { display: block; color: #9FB0C4; font-size: 13px; }
.kpi b { font-family: var(--head); color: #fff; font-size: 1.15rem; }
.opt { border-radius: 10px; padding: 16px; margin-bottom: 12px; background: #fff; color: var(--ink); }
.opt.b { border: 2px solid var(--amber); }
.opt h4 { margin: 0 0 4px; font-size: 1rem; }
.opt .price { font-family: var(--head); font-size: 1.35rem; font-weight: 700; color: var(--navy); }
.opt p { margin: 4px 0 0; font-size: 14.5px; color: var(--muted); }
.result .disclaimer { font-size: 13.5px; color: #9FB0C4; margin: 8px 0 0; }
.loadsheet td { height: 38px; }
@media print {
  body * { visibility: hidden; }
  #loadsheet, #loadsheet * { visibility: visible; }
  #loadsheet { position: absolute; left: 0; top: 0; width: 100%; }
  #loadsheet .no-print { display: none; }
}

/* Shop */
.shop-tools { display: grid; gap: 12px; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); margin-bottom: 18px; }
@media (max-width: 760px) { .shop-tools { grid-template-columns: 1fr; } }
.shop-tools input, .shop-tools select { width: 100%; min-height: 50px; padding: 10px 14px; border: 1px solid #A9B4C2; border-radius: 8px; background: #fff; }
.shop-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.products { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); }
.product { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.product .ph { aspect-ratio: 1; background: #fff; display: grid; place-items: center; border-bottom: 1px solid var(--line); cursor: pointer; padding: 0; border-width: 0 0 1px; width: 100%; }
.product .ph img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.noimg { color: #8C99A8; font-size: 14px; display: grid; place-items: center; gap: 6px; text-align: center; width: 100%; height: 100%; background: repeating-linear-gradient(45deg, #F4F6F9, #F4F6F9 10px, #EEF1F5 10px, #EEF1F5 20px); }
.noimg svg { width: 36px; height: 36px; stroke: #A9B4C2; }
.product .pb { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.sku { font-size: 12.5px; color: var(--muted); letter-spacing: .04em; font-family: ui-monospace, Menlo, Consolas, monospace; }
.product h3 { font-family: var(--body); font-size: 15.5px; font-weight: 600; line-height: 1.35; margin: 0; letter-spacing: 0; }
.product h3 button, .product h3 a { all: unset; cursor: pointer; }
.product h3 button:hover, .product h3 a:hover { color: var(--blue); text-decoration: underline; }
.product h3 button:focus-visible { outline: 3px solid var(--amber); }
.pprice { font-family: var(--head); font-weight: 700; color: var(--navy); font-size: 1.15rem; margin-top: auto; padding-top: 6px; }
.pprice small { font-family: var(--body); font-weight: 400; color: var(--muted); font-size: 13.5px; }
.pprice.req { font-size: 1rem; color: var(--amber-deep); }
.product .btn { width: 100%; margin-top: 6px; }
.cat-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); margin-bottom: 36px; }
.cat-card { text-align: left; border: 1px solid var(--line); background: var(--white); border-radius: var(--radius); padding: 18px; cursor: pointer; color: var(--ink); text-decoration: none; display: block; }
.cat-card:hover, .cat-card[aria-pressed="true"] { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.cat-card b { display: block; font-family: var(--head); color: var(--navy); font-size: 1.08rem; margin-bottom: 4px; }
.cat-card span { color: var(--muted); font-size: 14.5px; display: block; }
.cat-card em { font-style: normal; display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--amber-deep); }

dialog { border: 0; border-radius: 14px; padding: 0; width: min(880px, 100% - 24px); max-height: calc(100vh - 32px); box-shadow: 0 20px 60px rgba(0, 0, 0, .35); color: var(--ink); }
dialog::backdrop { background: rgba(10, 29, 51, .6); }
.dlg-close { position: absolute; right: 10px; top: 10px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--bg); font-size: 22px; cursor: pointer; z-index: 2; }
.pd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 700px) { .pd { grid-template-columns: 1fr; } }
.pd-img { background: #fff; display: grid; place-items: center; min-height: 280px; border-right: 1px solid var(--line); }
.pd-img img { width: 100%; max-height: 460px; object-fit: contain; padding: 18px; }
.pd-body { padding: 30px 28px; display: flex; flex-direction: column; gap: 10px; }
.pd-body h2 { font-size: 1.5rem; margin: 0; }
.pd-body .desc { color: var(--muted); margin: 0; }
.pd-body .pprice { font-size: 1.6rem; margin: 6px 0; }
.qty { display: flex; align-items: center; gap: 10px; }
.qty input { width: 80px; min-height: 46px; padding: 6px 10px; border: 1px solid #A9B4C2; border-radius: 6px; }
.share { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 6px; }
.share p { font-size: 14px; font-weight: 600; color: var(--navy); margin: 0 0 8px; }
.share div { display: flex; flex-wrap: wrap; gap: 8px; }
.share a, .share button { border: 1px solid var(--line); background: var(--white); border-radius: 6px; padding: 7px 12px; font-size: 14px; cursor: pointer; color: var(--navy); text-decoration: none; }
.share a:hover, .share button:hover { border-color: var(--navy); }

.drawer { position: fixed; inset: 0 0 0 auto; width: min(460px, 100%); background: var(--white); z-index: 150; transform: translateX(105%); transition: transform .25s ease; display: flex; flex-direction: column; box-shadow: -10px 0 40px rgba(0, 0, 0, .25); }
.drawer.open { transform: none; }
.drawer-backdrop { position: fixed; inset: 0; background: rgba(10, 29, 51, .55); z-index: 140; display: none; }
.drawer-backdrop.open { display: block; }
.drawer header { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer header h2 { margin: 0; font-size: 1.3rem; }
.drawer .items { flex: 1; overflow-y: auto; padding: 8px 22px; }
.bitem { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.bitem img, .bitem .noimg { width: 56px; height: 56px; object-fit: contain; border-radius: 6px; border: 1px solid var(--line); }
.bitem .noimg svg { width: 20px; height: 20px; }
.bitem b { font-size: 14.5px; display: block; line-height: 1.3; }
.bitem small { color: var(--muted); }
.bitem .ctrl { display: flex; align-items: center; gap: 6px; }
.bitem .ctrl input { width: 58px; min-height: 36px; padding: 4px 6px; border: 1px solid #A9B4C2; border-radius: 6px; }
.bitem .ctrl button { background: none; border: 0; color: #B3261E; cursor: pointer; font-size: 13px; text-decoration: underline; }
.drawer footer { padding: 18px 22px 22px; border-top: 1px solid var(--line); display: grid; gap: 10px; background: var(--bg); }
.drawer footer .total { display: flex; justify-content: space-between; font-weight: 700; font-family: var(--head); font-size: 1.15rem; color: var(--navy); }
.drawer footer .field input { min-height: 44px; }
.empty { text-align: center; color: var(--muted); padding: 40px 10px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(120px); background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 8px; z-index: 300; transition: transform .25s; font-weight: 500; box-shadow: var(--shadow); }
.toast.show { transform: translateX(-50%) translateY(0); }
.basket-fab { position: fixed; right: 18px; bottom: 86px; z-index: 90; }

.product-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: start; }
@media (max-width: 760px) { .product-page { grid-template-columns: 1fr; } }
.product-page .pd-img { border: 1px solid var(--line); border-radius: 12px; }
.product-page .pd-body { padding: 0; }

.thanks { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 24px; }
.thanks p { color: var(--muted); max-width: 520px; margin-inline: auto; }

/* Featured project cards */
.pgrid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); grid-auto-flow: dense; }
.pcard { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--navy); color: #fff; text-decoration: none; aspect-ratio: 4 / 3; }
.pcard.big { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; min-height: 100%; }
@media (max-width: 680px) { .pcard.big { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 3; } }
.pcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.pcard:hover img { transform: scale(1.05); }
.pcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 29, 51, 0) 35%, rgba(10, 29, 51, .92)); }
.pcard-tag { position: absolute; top: 14px; left: 14px; z-index: 1; background: var(--amber); color: var(--navy); font-size: 12.5px; font-weight: 700; padding: 5px 10px; border-radius: 4px; }
.pcard-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 18px 20px; }
.pcard h3 { color: #fff; margin: 0 0 4px; font-size: 1.1rem; }
.pcard.big h3 { font-size: clamp(1.25rem, 2.2vw, 1.7rem); }
.pcard p { margin: 0; color: #C9D5E2; font-size: 14px; }

/* Stats band */
.statband { background: var(--amber); color: var(--navy); }
.statband .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px; padding: 26px 0; }
.statband b { display: block; font-family: var(--head); font-size: clamp(1.8rem, 3.4vw, 2.5rem); line-height: 1; }
.statband span { font-weight: 600; font-size: 14.5px; }

/* Videos */
.vids { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); }
.vid { margin: 0; }
.vframe { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.vframe iframe, .vframe video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.vid figcaption { padding-top: 10px; font-weight: 600; color: inherit; }
.dark .vid figcaption { color: #fff; }

/* Clickable photos + lightbox */
.work img, .project img { cursor: zoom-in; }
.work figure { transition: box-shadow .15s; }
.work figure:hover { box-shadow: var(--shadow); }
.project { scroll-margin-top: 100px; }
.project:target { box-shadow: 0 0 0 3px var(--amber); }
.project[hidden] { display: none; }
dialog.lightbox { width: min(1100px, 100% - 24px); background: #000; color: #fff; overflow: visible; }
dialog.lightbox::backdrop { background: rgba(0, 0, 0, .88); }
.lightbox img { width: 100%; max-height: calc(100vh - 120px); object-fit: contain; border-radius: 10px; }
.lb-cap { text-align: center; margin: 10px 0 0; font-weight: 600; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); color: var(--navy); font-size: 28px; line-height: 1; cursor: pointer; z-index: 2; }
.lb-prev { left: 10px; } .lb-next { right: 10px; }

/* Showreel */
.reel { position: relative; aspect-ratio: 16 / 8; min-height: 320px; border-radius: 14px; overflow: hidden; background: #000; }
@media (max-width: 640px) { .reel { aspect-ratio: 4 / 5; } }
.reel-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1s ease; }
.reel-slide.on { opacity: 1; z-index: 1; }
.reel-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1); }
.reel-slide.on img { animation: kenburns 6s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.12) translate(2%, 1%); } to { transform: scale(1) translate(0, 0); } }
.reel-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 29, 51, 0) 45%, rgba(10, 29, 51, .9)); }
.reel-slide figcaption { position: absolute; left: 0; right: 0; bottom: 64px; z-index: 1; padding: 0 clamp(18px, 3vw, 34px); }
.reel-slide figcaption small { display: block; color: var(--amber); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: 13px; }
.reel-slide figcaption b { font-family: var(--head); color: #fff; font-size: clamp(1.3rem, 3vw, 2.2rem); line-height: 1.15; }
.reel-ui { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 3; display: flex; align-items: center; gap: 14px; padding: 0 clamp(18px, 3vw, 34px); }
.reel-dots { display: flex; gap: 6px; flex: 1; flex-wrap: wrap; }
.reel-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .45); cursor: pointer; padding: 0; }
.reel-dots button[aria-current="true"] { background: var(--amber); }
.reel-play { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); color: var(--navy); cursor: pointer; font-size: 13px; }
.reel-bar { position: absolute; left: 0; right: 0; top: 0; height: 4px; background: rgba(255, 255, 255, .15); z-index: 3; }
.reel-bar span { display: block; height: 100%; width: 0; background: var(--amber); }
.reel-bar span.run { animation: reelbar 6s linear forwards; }
@keyframes reelbar { to { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .reel-slide.on img, .reel-bar span.run { animation: none; } .reel-slide { transition: none; } }

/* Shop showcases across the site */
.nav > a.nav-shop { color: var(--amber); font-weight: 600; }
.nav > a.nav-shop::before { content: ""; width: 16px; height: 16px; margin-right: 2px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1.5'/%3E%3Ccircle cx='18' cy='20' r='1.5'/%3E%3Cpath d='M2 3h3l2.6 12.4a2 2 0 0 0 2 1.6h8.2a2 2 0 0 0 2-1.6L21.5 7H6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1.5'/%3E%3Ccircle cx='18' cy='20' r='1.5'/%3E%3Cpath d='M2 3h3l2.6 12.4a2 2 0 0 0 2 1.6h8.2a2 2 0 0 0 2-1.6L21.5 7H6'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (max-width: 1080px) { .nav > a.nav-shop { justify-content: flex-start; } }
.topbar .topbar-shop { color: var(--amber); font-weight: 600; }
a.shop-mini { text-decoration: none; color: inherit; transition: box-shadow .15s, transform .15s; }
a.shop-mini:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
a.shop-mini .ph { cursor: pointer; }
a.shop-mini:hover h3 { color: var(--blue); }
a.shop-mini .btn { pointer-events: none; }
.shop-strip .products { grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); }
.shop-tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); margin-bottom: 22px; }
.shop-tiles a { display: block; background: var(--navy); color: #fff; text-decoration: none; border-radius: var(--radius); padding: 18px 20px; border-left: 4px solid var(--amber); transition: background .15s; }
.shop-tiles a:hover { background: var(--navy-soft); }
.shop-tiles b { display: block; font-family: var(--head); font-size: 1.05rem; }
.shop-tiles span { color: var(--amber); font-size: 14px; font-weight: 600; }

/* ===== Document format =====
   Pages follow the layout of the STAV Energy website document: Arial throughout,
   plain navy headings, bordered info boxes, navy-header tables and captioned photo grids. */
:root {
  --navy: #10294A;
  --navy-deep: #0B1E37;
  --amber: #F6A821;
  --amber-deep: #EC8A12;
  --ink: #333F4F;
  --muted: #5B6778;
  --line: #D5DCE6;
  --bg: #F2F4F7;
  --head: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --body: Arial, "Helvetica Neue", Helvetica, sans-serif;
}
h1, h2, h3, h4 { letter-spacing: 0; }

.doc { width: min(900px, 100% - 40px); margin: 0 auto; padding: 44px 0 64px; font-size: 17px; line-height: 1.55; color: var(--ink); }
.doc h1 { font-size: 2em; font-weight: 700; color: var(--navy); margin: 0 0 .5em; line-height: 1.15; }
.doc h2 { font-size: 1.35em; font-weight: 700; color: var(--navy); margin: 1.8em 0 .55em; line-height: 1.25; }
.doc h3 { font-size: 1.1em; font-weight: 700; color: var(--navy); margin: 1.4em 0 .4em; line-height: 1.3; }
.doc p { margin: 0 0 .7em; }
.doc a:not(.btn) { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.doc a:not(.btn):hover { color: var(--amber-deep); }
.doc .doc-lead { margin-bottom: .45em; line-height: 1.3; }
.doc > img { width: 100%; height: auto; border-radius: 4px; margin: .4em 0 1.1em; }

.doc-list { margin: 0 0 1em; padding-left: 1.4em; }
.doc-list li { margin: 0 0 .4em; padding-left: .2em; }
.doc-list li::marker { color: var(--navy); font-weight: 700; }

.doc-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: .3em 0 1.2em; }
.doc-chips li { background: #E3EAF3; color: var(--navy); font-weight: 700; font-size: .86em; padding: 5px 12px; border-radius: 3px; }
.doc .social { display: flex; flex-wrap: wrap; gap: 8px; margin: .3em 0 1.2em; }

.doc-cta, .doc-amber, .doc-info, .doc-box { padding: 18px 22px; margin: 1.4em 0; border-radius: 4px; }
.doc-cta { background: #10294A; color: #DBE5F2; }
.doc-cta a:not(.btn) { color: #fff; }
.doc-amber { background: #F6A821; color: var(--navy); }
.doc-info { background: #EEF3F9; border-left: 4px solid var(--navy); }
.doc-box { border: 1px solid var(--line); }
.doc-cta p:last-child, .doc-amber p:last-child, .doc-info p:last-child { margin-bottom: 0; }

.doc-grid { display: grid; grid-template-columns: var(--cols); gap: 12px; margin: .5em 0 1.3em; }
.doc-cell { padding: 0; min-width: 0; }
.doc-cell.bordered { border: 1px solid var(--line); padding: 14px 16px; border-radius: 4px; background: #fff; }
.doc-cell.dark { color: #fff; padding: 12px 14px; text-align: center; }
.doc-cell.dark p { margin: 0; }
.doc-cell p:last-child { margin-bottom: 0; }
.doc-cell.empty { display: none; }
.doc-grid figure { margin: 0; }
.doc-grid img { width: 100%; max-width: none !important; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; display: block; }
.doc-grid.work img { cursor: zoom-in; }
.doc-grid figcaption { font-weight: 700; color: var(--navy); font-size: .9em; margin-top: 6px; }
.doc-grid.project { align-items: center; padding: 14px 0; border-top: 1px solid var(--line); margin: 0; gap: 20px; }
.doc-grid.project:last-child { border-bottom: 1px solid var(--line); }
.doc-grid.project img { cursor: zoom-in; }
.projects { margin: .5em 0 1.4em; }

.doc-table-wrap { overflow-x: auto; margin: .5em 0 1.3em; }
.doc-table { width: 100%; border-collapse: collapse; font-size: .92em; }
.doc-table th { background: #10294A; color: #fff; text-align: left; font-weight: 700; padding: 9px 12px; }
.doc-table td { border: 1px solid var(--line); padding: 8px 12px; vertical-align: top; }
.doc-table tbody tr:nth-child(even) td { background: #F7F9FC; }
.doc-table td:empty::after { content: "\00a0"; }

.doc-widget { margin: 1.2em 0 1.6em; }
.doc .calc, .doc .form { font-size: 16px; }
.doc .shop-widget .products { margin-top: 12px; }

@media (max-width: 680px) {
  .doc { padding-top: 28px; font-size: 16px; }
  .doc-grid { grid-template-columns: 1fr; }
  .doc-grid.project { gap: 12px; }
}
@media (min-width: 681px) and (max-width: 860px) {
  .doc-grid:not(.project) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Product details: about paragraph and key features */
.pd-details { margin: 34px 0 0; padding: 26px 28px; border: 1px solid var(--line); border-radius: 12px; background: #fff; max-width: 900px; }
.pd-details h2 { font-size: 1.3rem; margin: 0 0 .5em; color: var(--navy); }
.pd-details h3 { font-size: 1.05rem; margin: 1.1em 0 .4em; color: var(--navy); }
.pd-details p { margin: 0; line-height: 1.6; }
.pd-feats { margin: 0; padding-left: 1.3em; line-height: 1.55; }
.pd-feats li { margin: 0 0 .3em; }
.pd-feats li::marker { color: var(--amber-deep); }
.pd-body .pd-more { font-size: .95rem; line-height: 1.55; margin: 4px 0 0; }
.pd-body .pd-feats { font-size: .92rem; color: var(--ink); }

/* Product photo gallery */
.pd-img:has(.pd-thumbs) { display: flex; flex-direction: column; align-items: center; }
.pd-thumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0 14px 16px; }
.pd-thumbs button { padding: 0; border: 2px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; overflow: hidden; }
.pd-thumbs button[aria-current="true"] { border-color: var(--amber-deep); }
.pd-thumbs img { width: 64px; height: 64px; object-fit: contain; padding: 0 !important; max-height: none !important; }

/* Solar calculator section reused on the home page and solar product pages */
.solar-calc { margin: 2em 0 1.4em; }
.pd-calc { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.pd-calc h2 { font-size: 1.45rem; color: var(--navy); margin: 0 0 .4em; }
.pd-calc > p { color: var(--muted); max-width: 760px; margin: 0 0 1em; }
