/* ==========================================================================
   Raylin Energy — wholesale catalogue theme
   Design tokens derived from trade-distributor catalogue conventions.
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Roboto:wght@300;400;500;700&display=swap");

:root {
  /* brand */
  --brand:        #1578D0;
  --brand-hover:  #0F63B0;
  --brand-dark:   #073864;
  --brand-deep:   #044178;
  --brand-tint:   #E8F2FB;

  /* semantic */
  --green:        #0DA449;
  --green-bright: #3EC064;
  --green-tint:   #F2FAF5;
  --gold:         #DEA251;
  --red:          #E03B3B;
  --red-tint:     #FDECEC;

  /* neutrals */
  --ink:          #121212;
  --ink-2:        #1C2128;
  --muted:        #7D8698;
  --muted-2:      #9CA3AF;
  --line:         #E2E6EC;
  --line-soft:    #EEF1F5;
  --bg:           #FFFFFF;
  --bg-soft:      #F5F5F7;
  --search-bg:    #F3F3F3;

  /* geometry */
  --radius:       4px;
  --radius-lg:    8px;
  --pill:         999px;
  --wrap:         80rem;     /* 1280px */
  --wrap-narrow:  78rem;
  --shadow-card:  1px 4px 16px rgba(1, 136, 204, .28);
  --shadow-pop:   0 8px 28px rgba(18, 18, 18, .12);

  /* type */
  --font-display: "Outfit", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Roboto", "Helvetica Neue", Arial, sans-serif;
  --font-mono:    "Inconsolata", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1.25; }
p { margin: 0; }
table { border-collapse: collapse; width: 100%; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.wrap-narrow { max-width: var(--wrap-narrow); margin: 0 auto; padding: 0 16px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.demo-bar {
  background: #C0392B; color: #fff; font-size: 12.5px; line-height: 1.5;
  padding: 7px 16px; text-align: center;
}
.demo-bar b { background: rgba(255,255,255,.2); padding: 1px 6px; border-radius: 3px; letter-spacing: .06em; margin-right: 6px; }
.demo-bar code { font-family: var(--font-mono); background: rgba(255,255,255,.15); padding: 1px 5px; border-radius: 3px; }

.site-header { position: sticky; top: 0; z-index: 60; background: var(--brand-dark); }

.hdr-main { display: flex; align-items: center; gap: 12px; padding: 9px 16px; }
.hdr-burger { display: none; color: #fff; }
.hdr-logo { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.hdr-logo-mark {
  width: 34px; height: 34px; border-radius: 6px; flex: 0 0 auto;
  background: linear-gradient(140deg, var(--brand) 0%, var(--green-bright) 100%);
  display: grid; place-items: center; color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: 16px;
}
.hdr-logo-txt { color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -.01em; white-space: nowrap; }
.hdr-logo-txt small { display: block; font-size: 9.5px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: #9dc0dd; }

.hdr-locale {
  display: flex; align-items: center; gap: 7px; color: #fff; font-size: 13px;
  padding: 6px 8px; border-radius: var(--radius); white-space: nowrap;
}
.hdr-locale:hover { background: var(--brand-deep); }
.hdr-locale .divider { width: 1px; height: 14px; background: rgba(255,255,255,.3); }
.hdr-locale .flag {
  width: 17px; height: 12px; border-radius: 2px; position: relative; overflow: hidden;
  background: #00247D; flex: 0 0 auto;
}
.hdr-locale .flag::before { content: ""; position: absolute; inset: 0; background:
  linear-gradient(#fff, #fff) 50% 0/100% 2px no-repeat,
  linear-gradient(#fff, #fff) 50% 100%/100% 2px no-repeat,
  linear-gradient(#fff, #fff) 0 50%/2px 100% no-repeat,
  linear-gradient(#fff, #fff) 100% 50%/2px 100% no-repeat,
  linear-gradient(#fff, #fff) 50% 50%/100% 4px no-repeat,
  linear-gradient(#fff, #fff) 50% 50%/4px 100% no-repeat; }

.hdr-search { flex: 1; min-width: 0; position: relative; }
.hdr-search input {
  width: 100%; height: 40px; border: 0; border-radius: var(--radius);
  background: var(--search-bg); padding: 0 42px 0 14px; font-size: 14px; outline: none;
}
.hdr-search input::placeholder { color: var(--muted-2); }
.hdr-search button {
  position: absolute; right: 0; top: 0; height: 40px; width: 42px;
  display: grid; place-items: center; color: var(--muted);
}
.hdr-search button:hover { color: var(--brand); }
.search-suggest {
  position: absolute; left: 0; right: 0; top: 44px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-pop);
  max-height: 380px; overflow: auto; z-index: 70;
}
.search-suggest a { display: flex; gap: 10px; padding: 9px 13px; border-bottom: 1px solid var(--line-soft); align-items: center; }
.search-suggest a:last-child { border-bottom: 0; }
.search-suggest a:hover { background: var(--bg-soft); }
.search-suggest .s-name { font-size: 13px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-suggest .s-code { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }

.hdr-actions { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.hdr-act { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 5px 9px; border-radius: var(--radius); color: #fff; }
.hdr-act:hover { background: var(--brand-deep); }
.hdr-act span { font-size: 10.5px; line-height: 1; white-space: nowrap; }
.hdr-act .badge {
  position: absolute; transform: translate(14px, -6px);
  background: var(--green); color: #fff; font-size: 10px; font-weight: 700;
  min-width: 16px; height: 16px; border-radius: 999px; display: grid; place-items: center; padding: 0 4px;
}

/* nav row */
.hdr-nav { display: flex; gap: 32px; padding: 0 16px; }
.hdr-nav a {
  display: block; padding: 12px 0; color: rgba(255,255,255,.86); font-size: 14px; font-weight: 400;
  border-bottom: 2px solid transparent; transition: .12s;
}
.hdr-nav a:hover { color: #fff; border-bottom-color: rgba(255,255,255,.5); }
.hdr-nav a.active { color: #fff; font-weight: 500; border-bottom-color: #fff; }
.hdr-nav .mega { position: relative; }
.hdr-nav .mega > a { display: flex; align-items: center; gap: 5px; }
.mega-panel {
  position: absolute; top: 100%; left: -16px; min-width: 260px; background: #fff;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg); box-shadow: var(--shadow-pop);
  padding: 8px 0; display: none; z-index: 80;
}
.mega:hover .mega-panel { display: block; }
.mega-panel a { color: var(--ink); padding: 8px 18px; border: 0; font-size: 13.5px; }
.mega-panel a:hover { background: var(--bg-soft); color: var(--brand); }

.hdr-nav .has-sub { position: relative; }
.hdr-nav .has-sub > a { display: flex; align-items: center; gap: 5px; }
.sub-panel {
  position: absolute; top: 100%; left: -16px; min-width: 260px; background: #fff;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg); box-shadow: var(--shadow-pop);
  padding: 8px 0; display: none; z-index: 80;
}
.has-sub:hover .sub-panel { display: block; }
.sub-panel a { color: var(--ink); padding: 8px 18px; border: 0; font-size: 13.5px; }
.sub-panel a:hover { background: var(--bg-soft); color: var(--brand); }

/* primary CTA in header — for project assessment */
.hdr-act.hdr-cta {
  background: var(--gold);
  color: var(--brand-dark);
  font-weight: 600;
  margin-left: 6px;
  padding: 6px 12px;
}
.hdr-act.hdr-cta:hover { background: #E5B670; color: var(--brand-dark); }
.hdr-act.hdr-cta span { font-size: 11.5px; color: var(--brand-dark); }
@media (max-width: 1024px) { .hdr-act.hdr-cta { display: none; } }

/* utility strip */
.util-strip { background: var(--bg-soft); border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.util-strip .wrap { display: flex; align-items: center; gap: 20px; height: 36px; overflow: hidden; }
.util-strip b { color: var(--ink-2); font-weight: 500; }
.util-strip .dot { width: 3px; height: 3px; border-radius: 50%; background: #c8cfd8; }

/* ==========================================================================
   CATEGORY ICON BAR
   ========================================================================== */
.catbar { border-bottom: 1px solid var(--line); background: #fff; }
.catbar-grid {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 16px;
  max-width: 65.5rem; margin: 0 auto; padding: 18px 16px;
}
.cat-tile { display: block; text-align: center; }
.cat-tile .ico { width: 72px; height: 72px; margin: 0 auto; display: grid; place-items: center; }
.cat-tile .ico svg { width: 100%; height: 100%; }
.cat-tile .ico-on { display: none; }
.cat-tile:hover .ico-off { display: none; }
.cat-tile:hover .ico-on { display: block; }
.cat-tile label { display: block; margin-top: 8px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.cat-tile:hover label { color: var(--green); }
.cat-tile.active .ico-off { display: none; }
.cat-tile.active .ico-on { display: block; }
.cat-tile.active label { color: var(--green); font-weight: 500; }
.cat-tile .n { display: block; font-size: 11px; color: var(--muted-2); margin-top: 1px; }

/* breadcrumb / page head */
.page-head { padding: 16px 0 0; }
.crumbs { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--brand); }
.crumbs em { font-style: normal; color: var(--ink-2); }
.page-head h1 { font-size: 26px; margin-top: 10px; letter-spacing: -.01em; }
.page-head .lede { color: var(--muted); font-size: 14px; margin-top: 5px; max-width: 760px; }

/* ==========================================================================
   CATALOGUE
   ========================================================================== */
.catalog { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 24px; padding: 20px 0 64px; align-items: start; }

/* sidebar */
.sidebar { border: 1px solid var(--line); border-radius: var(--radius); position: sticky; top: 96px; background: #fff; }
.sb-head { padding: 13px 15px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.sb-head h3 { font-size: 14px; font-weight: 600; }
.sb-head .sb-clear { font-size: 12px; color: var(--brand); }
.sb-head .sb-clear:hover { text-decoration: underline; }

.sb-group { border-bottom: 1px solid var(--line-soft); }
.sb-group:last-child { border-bottom: 0; }
.sb-toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 12px 15px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); text-align: left;
}
.sb-toggle:hover { color: var(--brand); }
.sb-toggle .caret { transition: transform .18s; color: var(--muted); }
.sb-group.collapsed .caret { transform: rotate(-90deg); }
.sb-body { padding: 0 15px 12px; }
.sb-group.collapsed .sb-body { display: none; }
.sb-opt { display: flex; align-items: center; gap: 9px; padding: 5px 0; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.sb-opt:hover { color: var(--brand); }
.sb-opt input { width: 15px; height: 15px; accent-color: var(--green); flex: 0 0 auto; margin: 0; cursor: pointer; }
.sb-opt .lb { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-opt .ct { font-size: 11.5px; color: var(--muted-2); }
.sb-opt input:disabled + .lb { color: var(--muted-2); }
.sb-more { font-size: 12.5px; color: var(--brand); padding: 6px 0 0; cursor: pointer; }
.sb-more:hover { text-decoration: underline; }
.sb-price { padding: 2px 15px 14px; }
.sb-price-row { display: flex; align-items: center; gap: 8px; }
.sb-price-row input {
  width: 100%; min-width: 0; height: 34px; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0 9px; font-size: 13px; outline: none;
}
.sb-price-row input:focus { border-color: var(--brand); }
.sb-apply {
  width: 100%; margin-top: 8px; height: 34px; border: 1px solid var(--brand); color: var(--brand);
  border-radius: var(--radius); font-size: 13px; font-weight: 500; background: #fff;
}
.sb-apply:hover { background: var(--brand); color: #fff; }

/* chips row */
.chips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 2px 0 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px; background: var(--green-tint);
  border-radius: var(--pill); padding: 4px 9px; font-size: 12px; color: var(--green);
}
.chip button { display: grid; place-items: center; color: var(--green); opacity: .75; font-size: 13px; line-height: 1; }
.chip button:hover { opacity: 1; }
.chips .clear-all { font-size: 12px; color: var(--muted); padding: 4px 8px; }
.chips .clear-all:hover { color: var(--red); }

/* toolbar */
.cat-toolbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; background: #fff;
}
.cat-toolbar .res { font-size: 13.5px; color: var(--muted); }
.cat-toolbar .res b { color: var(--ink); }
.cat-toolbar .grow { flex: 1; }
.cat-toolbar select, .cat-toolbar input[type=search] {
  height: 34px; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0 9px; font-size: 13px; background: #fff; outline: none;
}
.cat-toolbar input[type=search] { flex: 1; min-width: 150px; }
.cat-toolbar select:focus, .cat-toolbar input:focus { border-color: var(--brand); }
.view-toggle { display: flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.view-toggle button { padding: 7px 10px; color: var(--muted); }
.view-toggle button.on { background: var(--brand-tint); color: var(--brand); }

.sample-note {
  display: flex; align-items: center; gap: 10px; background: #FFFBEB; border: 1px solid #F5E2B8;
  border-left: 3px solid var(--gold); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 14px; font-size: 13px; color: #7A5A19;
}
.sample-note b { color: #6B4E12; }
.sample-note a { color: var(--brand); text-decoration: underline; }

/* product grid + cards */
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.product-grid.list-view { grid-template-columns: 1fr; }
.product-grid.list-view .product-card { flex-direction: row; align-items: flex-start; gap: 16px; }
.product-grid.list-view .pc-thumb { width: 150px; flex: 0 0 150px; margin-bottom: 0; }

.product-card {
  position: relative; display: flex; flex-direction: column; gap: 0;
  padding: 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: #fff; border-top: 1px solid transparent; border-left: 1px solid transparent;
  transition: border-color .12s, box-shadow .12s; min-width: 0;
}
.product-card:hover { border-color: var(--brand); box-shadow: var(--shadow-card); z-index: 2; }

.badge-ph {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  font-size: 9.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  background: #FFF6E6; color: #9A6B12; border: 1px solid #EDD9AE; border-radius: 3px; padding: 2px 5px;
}
.badge-stock {
  position: absolute; top: 8px; left: 8px; z-index: 3;
  font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  border-radius: 3px; padding: 3px 6px; color: #fff; background: var(--green);
}
.badge-stock.indent { background: var(--gold); }
.badge-stock.backorder { background: var(--muted-2); }
.promo-flag {
  position: absolute; top: 8px; left: 8px; z-index: 3; background: var(--gold); color: #fff;
  font-size: 10px; font-weight: 700; padding: 3px 7px; border-radius: 3px; letter-spacing: .04em;
}

.pc-thumb {
  aspect-ratio: 1 / 1; width: 100%; margin-bottom: 12px; padding: 4px;
  display: grid; place-items: center; background: #fff; border: 0; overflow: hidden;
}
.pc-thumb img, .pc-thumb svg, .pc-thumb .ph { width: 100%; height: 100%; object-fit: contain; }
.pc-body { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }

.pc-brand { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 3px; }
.pc-name {
  font-size: 14px; line-height: 18px; color: var(--ink-2); font-weight: 400;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 52px;
}
.product-card:hover .pc-name { color: var(--brand); }
.pc-code {
  font-family: var(--font-mono); font-size: 13px; line-height: 17px; color: var(--muted); font-weight: 400;
  margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 34px;
}
.pc-specs { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.pc-specs span { font-size: 11px; background: var(--bg-soft); border-radius: 3px; padding: 2px 6px; color: var(--muted); }

.pc-price { margin-top: 10px; min-height: 30px; display: flex; align-items: flex-end; }
.price-num { display: flex; align-items: flex-start; color: var(--ink); white-space: nowrap; }
.price-num .cur { font-size: 13px; font-weight: 500; padding-top: 2px; }
.price-num .int { font-size: 22px; line-height: 26px; font-weight: 600; font-family: var(--font-display); }
.price-num .dec { font-size: 13px; font-weight: 600; padding-top: 2px; }
.price-num .unit { font-size: 11.5px; color: var(--muted); align-self: flex-end; padding-left: 4px; padding-bottom: 3px; }
.price-was { font-size: 12px; color: var(--muted-2); text-decoration: line-through; font-weight: 300; }
.price-login {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px;
  border: 1px solid var(--brand); color: var(--brand); border-radius: var(--radius);
  font-size: 13px; font-weight: 500;
}
.price-login:hover { background: var(--brand); color: #fff; }

.pc-actions { margin-top: 10px; display: flex; gap: 8px; align-items: center; }
.pc-actions .btn { flex: 1; }
.icon-btn {
  width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted);
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.icon-btn.on { border-color: var(--red); color: var(--red); }

/* toolbar above grid — keep the card grid flush; keep it light */

/* empty */
.empty-state { border: 1px dashed var(--line); border-radius: var(--radius-lg); padding: 56px 24px; text-align: center; }
.empty-state h3 { font-size: 17px; margin-bottom: 6px; }
.empty-state p { color: var(--muted); font-size: 13.5px; }

/* pagination */
.pager { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 26px 0 0; }
.pager button {
  min-width: 34px; height: 34px; padding: 0 9px; border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 13px; color: var(--ink-2); background: #fff;
}
.pager button:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.pager button.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.pager button:disabled { color: #ccd2da; cursor: default; }
.pager .dots { color: var(--muted); padding: 0 4px; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 36px; padding: 0 15px; border-radius: var(--radius);
  font-size: 13.5px; font-weight: 500; border: 1px solid transparent; white-space: nowrap;
  transition: .12s; cursor: pointer;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: #0B8E3F; }
.btn-outline { border-color: var(--line); color: var(--ink-2); background: #fff; }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost { color: var(--brand); }
.btn-ghost:hover { background: var(--brand-tint); }
.btn-lg { height: 44px; padding: 0 22px; font-size: 15px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ==========================================================================
   PRODUCT DETAIL
   ========================================================================== */
.pdp { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 40px; padding: 22px 0 20px; align-items: start; }
.pdp-gallery { display: flex; gap: 14px; }
.pdp-thumbs { display: flex; flex-direction: column; gap: 8px; flex: 0 0 72px; }
.pdp-thumbs button { width: 72px; height: 72px; border: 1px solid var(--line); border-radius: var(--radius); padding: 6px; background: #fff; }
.pdp-thumbs button.on { border-color: var(--brand); }
.pdp-thumbs svg { width: 100%; height: 100%; }
.pdp-main {
  flex: 1; aspect-ratio: 1 / 1; border: 1px solid var(--line); border-radius: var(--radius);
  display: grid; place-items: center; padding: 40px; background: #fff; position: relative;
}
.pdp-main svg, .pdp-main img, .pdp-main .ph { width: 88%; height: 88%; object-fit: contain; }

.pdp-buy h1 { font-size: 24px; line-height: 1.3; letter-spacing: -.01em; }
.pdp-brandpill {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 7px;
}
.pdp-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 10px; font-size: 13px; color: var(--muted); }
.pdp-meta .code { font-family: var(--font-mono); color: var(--ink-2); }
.pdp-meta .stock { display: inline-flex; align-items: center; gap: 5px; color: var(--green); font-weight: 500; }
.pdp-meta .stock i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); display: block; }
.pdp-meta .stock.indent { color: var(--gold); }
.pdp-meta .stock.indent i { background: var(--gold); }

.pdp-pricebox { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 18px; padding: 16px 0; }
.pdp-pricebox .lbl { font-size: 12.5px; color: var(--muted); }
.pdp-pricebox .val { display: flex; align-items: baseline; gap: 10px; margin-top: 4px; }
.pdp-pricebox .val b { font-family: var(--font-display); font-size: 32px; line-height: 38px; font-weight: 700; letter-spacing: -.02em; }
.pdp-pricebox .val .ex { font-size: 12.5px; color: var(--muted); }
.pdp-pricebox .tiers { margin-top: 12px; }
.pdp-pricebox .tiers table { font-size: 13px; }
.pdp-pricebox .tiers th { text-align: left; font-weight: 500; color: var(--muted); padding: 6px 0; border-bottom: 1px solid var(--line-soft); font-size: 12px; }
.pdp-pricebox .tiers td { padding: 6px 0; border-bottom: 1px solid var(--line-soft); }
.pdp-pricebox .tiers td:last-child { text-align: right; font-weight: 600; font-family: var(--font-display); }
.gate {
  border: 1px dashed var(--brand); background: var(--brand-tint); border-radius: var(--radius);
  padding: 16px; margin-top: 18px; text-align: center;
}
.gate h4 { font-size: 15px; color: var(--brand-dark); margin-bottom: 5px; }
.gate p { font-size: 13px; color: var(--ink-2); margin-bottom: 12px; }

.pdp-cta { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.pdp-cta .btn { flex: 1; min-width: 150px; }
.pdp-assure { margin-top: 18px; border-top: 1px solid var(--line-soft); padding-top: 14px; display: grid; gap: 9px; }
.pdp-assure div { display: flex; gap: 9px; font-size: 13px; color: var(--ink-2); align-items: flex-start; }
.pdp-assure svg { flex: 0 0 17px; margin-top: 1px; }

/* tabs */
.pdp-tabs { border-top: 1px solid var(--line); margin-top: 8px; }
.tabnav { display: flex; gap: 26px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabnav button {
  padding: 14px 0; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent;
  white-space: nowrap; font-weight: 400;
}
.tabnav button:hover { color: var(--ink); }
.tabnav button.on { color: var(--brand); border-bottom-color: var(--brand); font-weight: 500; }
.tabpane { padding: 24px 0 8px; display: none; }
.tabpane.on { display: block; }

.spec-table { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; max-width: 900px; }
.spec-table tr:nth-child(odd) { background: var(--bg-soft); }
.spec-table th {
  text-align: left; font-weight: 500; color: var(--muted); width: 260px;
  padding: 11px 16px; font-size: 13px; vertical-align: top; border-bottom: 1px solid var(--line-soft);
}
.spec-table td { padding: 11px 16px; font-size: 13.5px; color: var(--ink-2); border-bottom: 1px solid var(--line-soft); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }

.dl-list { display: grid; gap: 10px; max-width: 760px; }
.dl-row {
  display: flex; align-items: center; gap: 14px; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px;
}
.dl-row:hover { border-color: var(--brand); }
.dl-row .ic { width: 38px; height: 38px; border-radius: var(--radius); background: var(--red-tint); color: var(--red); display: grid; place-items: center; flex: 0 0 38px; font-size: 10px; font-weight: 700; }
.dl-row .ic.doc { background: var(--brand-tint); color: var(--brand); }
.dl-row .t { flex: 1; min-width: 0; }
.dl-row .t b { display: block; font-size: 13.5px; font-weight: 500; }
.dl-row .t span { font-size: 12px; color: var(--muted); }

.prose { max-width: 820px; font-size: 14px; line-height: 1.7; color: var(--ink-2); }
.prose h3 { font-size: 16px; margin: 22px 0 8px; }
.prose h3:first-child { margin-top: 0; }
.prose p { margin-bottom: 12px; color: var(--muted); }
.prose ul { list-style: disc; padding-left: 20px; margin-bottom: 14px; }
.prose li { margin-bottom: 5px; color: var(--muted); }
.prose strong { color: var(--ink-2); font-weight: 500; }

/* ==========================================================================
   SECTIONS / HOME
   ========================================================================== */
.section { padding: 48px 0; }
.section.tight { padding: 32px 0; }
.section.soft { background: var(--bg-soft); }
.sec-head { margin-bottom: 26px; }
.sec-head .eyebrow {
  font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand); display: block; margin-bottom: 7px;
}
.sec-head h2 { font-size: 25px; letter-spacing: -.01em; }
.sec-head p { color: var(--muted); font-size: 14px; margin-top: 7px; max-width: 720px; }
.sec-head.split { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* hero */
.hero { background: linear-gradient(115deg, #06305A 0%, #0A4B86 52%, #1268A8 100%); color: #fff; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; padding: 54px 0 58px; }
.hero h1 { font-size: 40px; line-height: 1.16; letter-spacing: -.025em; font-weight: 700; }
.hero h1 em { font-style: normal; color: #7FD4A0; }
.hero p.sub { margin-top: 16px; font-size: 15.5px; line-height: 1.65; color: rgba(255,255,255,.84); max-width: 560px; }
.hero-cta { display: flex; gap: 11px; margin-top: 24px; flex-wrap: wrap; }
.hero-cta .btn-outline { background: transparent; border-color: rgba(255,255,255,.42); color: #fff; }
.hero-cta .btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.1); color: #fff; }
.hero-facts { display: flex; gap: 30px; margin-top: 30px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.18); flex-wrap: wrap; }
.hero-facts b { display: block; font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.hero-facts span { font-size: 12.5px; color: rgba(255,255,255,.7); }
.hero-panel { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius-lg); padding: 20px; }
.hero-panel h3 { font-size: 15px; margin-bottom: 12px; }
.hero-panel ul { display: grid; gap: 9px; }
.hero-panel li { display: flex; gap: 9px; font-size: 13.5px; color: rgba(255,255,255,.85); align-items: flex-start; }
.hero-panel li svg { flex: 0 0 16px; margin-top: 2px; color: #7FD4A0; }

/* brand cards */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.aud-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.cap-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; display: block; }
.card:hover { border-color: var(--brand); box-shadow: var(--shadow-card); }
.card h3 { font-size: 16px; margin-bottom: 7px; }
.card p { font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.card .tag { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); display: block; margin-bottom: 8px; }

.cap-card { text-align: center; padding: 20px 14px; }
.cap-card .kwh { font-family: var(--font-display); font-size: 25px; font-weight: 700; color: var(--brand); letter-spacing: -.02em; }
.cap-card .lb { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.cap-card .use { font-size: 12px; color: var(--ink-2); margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-soft); }

.aud-card { text-align: center; padding: 22px 14px; }
.aud-card .ic { width: 40px; height: 40px; margin: 0 auto 10px; border-radius: var(--radius); background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; }
.aud-card b { display: block; font-size: 13.5px; font-family: var(--font-display); }
.aud-card span { font-size: 12px; color: var(--muted); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
.step { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: relative; }
.step::before {
  counter-increment: s; content: counter(s, decimal-leading-zero);
  font-family: var(--font-display); font-size: 13px; font-weight: 700; color: var(--brand);
  display: block; margin-bottom: 9px; letter-spacing: .06em;
}
.step b { display: block; font-size: 14.5px; font-family: var(--font-display); margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* CTA band */
.cta-band { background: var(--brand-dark); color: #fff; border-radius: var(--radius-lg); padding: 34px 38px; display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.cta-band h2 { font-size: 23px; letter-spacing: -.01em; }
.cta-band p { color: rgba(255,255,255,.75); font-size: 14px; margin-top: 6px; }

/* references */
.ref-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ref-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.ref-card:hover { border-color: var(--brand); box-shadow: var(--shadow-card); }
.ref-shot { aspect-ratio: 4/3; background: linear-gradient(150deg, #EEF3F9, #DCE7F2); display: grid; place-items: center; position: relative; }
.ref-shot .lbl { position: absolute; left: 10px; bottom: 10px; background: rgba(7,56,100,.86); color: #fff; font-size: 11px; padding: 3px 8px; border-radius: 3px; }
.ref-body { padding: 15px 17px; }
.ref-body b { display: block; font-family: var(--font-display); font-size: 15px; margin-bottom: 5px; }
.ref-body p { font-size: 13px; color: var(--muted); }
.ref-meta { display: flex; gap: 14px; margin-top: 11px; padding-top: 11px; border-top: 1px solid var(--line-soft); font-size: 12px; color: var(--muted); }
.ref-meta b { color: var(--ink-2); font-family: var(--font-body); font-weight: 500; font-size: 12.5px; }

/* ==========================================================================
   CONTACT / FORMS
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 38px; padding: 22px 0 60px; align-items: start; }
.form-row { margin-bottom: 15px; }
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
label.fl { display: block; font-size: 12.5px; font-weight: 500; color: var(--ink-2); margin-bottom: 5px; }
label.fl .req { color: var(--red); }
.inp, .sel, .txa {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0 12px; height: 40px; font-size: 14px; outline: none; background: #fff;
}
.txa { padding: 11px 12px; height: auto; min-height: 110px; resize: vertical; line-height: 1.5; }
.inp:focus, .sel:focus, .txa:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(21,120,208,.12); }
.inp.err, .sel.err, .txa.err { border-color: var(--red); }
.hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.fld-err { font-size: 12px; color: var(--red); margin-top: 4px; display: none; }
.fld-err.on { display: block; }
.check-row { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.check-row input { margin-top: 2px; accent-color: var(--green); }

.side-panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.side-panel + .side-panel { margin-top: 16px; }
.side-panel h3 { font-size: 15px; margin-bottom: 12px; }
.side-line { display: flex; gap: 11px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); align-items: flex-start; }
.side-line:last-child { border-bottom: 0; }
.side-line svg { flex: 0 0 17px; color: var(--brand); margin-top: 2px; }
.side-line b { display: block; font-size: 13.5px; font-weight: 500; }
.side-line span { font-size: 12.5px; color: var(--muted); }
.form-ok { background: var(--green-tint); border: 1px solid #BEE7CF; border-left: 3px solid var(--green); border-radius: var(--radius); padding: 14px 16px; color: #0A6E32; font-size: 13.5px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--brand-dark); color: rgba(255,255,255,.72); margin-top: 56px; }
.ft-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 34px; padding: 44px 0 34px; }
.ft-brand .hdr-logo-mark { margin-bottom: 12px; }
.ft-brand p { font-size: 13px; line-height: 1.7; max-width: 330px; }
.ft-col h4 { font-size: 13px; color: #fff; margin-bottom: 13px; letter-spacing: .02em; }
.ft-col a { display: block; font-size: 13px; padding: 4px 0; }
.ft-col a:hover { color: #fff; }
.ft-legal { border-top: 1px solid rgba(255,255,255,.14); padding: 16px 0 26px; font-size: 12px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ft-legal a:hover { color: #fff; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1240px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pdp { grid-template-columns: minmax(0, 1fr) 370px; gap: 30px; }
  .catbar-grid { gap: 12px; }
}
@media (max-width: 1024px) {
  .catbar-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 18px; }
  .catalog { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .pdp { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-in { grid-template-columns: 1fr; gap: 30px; padding: 40px 0; }
  .hero h1 { font-size: 33px; }
  .grid-4, .aud-grid, .cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ref-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ft-top { grid-template-columns: 1fr 1fr; gap: 26px; }
}
@media (max-width: 860px) {
  .hdr-nav, .hdr-locale { display: none; }
  .hdr-burger { display: block; }
  .hdr-main { flex-wrap: wrap; }
  .hdr-search { order: 3; flex: 1 1 100%; }
  .util-strip .wrap { gap: 12px; font-size: 11.5px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: 1fr; }
  .pdp-thumbs { flex-direction: row; flex: 1 1 100%; }
  .pdp-gallery { flex-direction: column-reverse; }
}
@media (max-width: 560px) {
  .catbar-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cat-tile .ico { width: 54px; height: 54px; }
  .product-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-4, .aud-grid, .cap-grid, .steps, .ref-grid { grid-template-columns: 1fr; }
  .ft-top { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
  .form-row.two { grid-template-columns: 1fr; }
  .cta-band { padding: 24px; }
}

/* ---------- trade sign-in modal ---------- */
.rl-modal { position: fixed; inset: 0; z-index: 200; background: rgba(7, 56, 100, .48);
  display: grid; place-items: center; padding: 20px; }
.rl-modal-box { position: relative; width: 100%; max-width: 396px; background: #fff;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-pop); padding: 26px 26px 22px; }
.rl-modal-box h3 { font-size: 20px; margin-bottom: 6px; }
.rl-modal-box > p { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.rl-modal-box label { display: block; font-size: 12.5px; font-weight: 500; color: var(--ink-2); margin-bottom: 12px; }
.rl-modal-box label input { display: block; width: 100%; margin-top: 5px; padding: 9px 11px;
  border: 1px solid var(--line); border-radius: var(--radius); font-size: 14px; }
.rl-modal-box label input:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.rl-modal-err { font-size: 12.5px; color: var(--red); background: var(--red-tint);
  border-radius: var(--radius); padding: 7px 10px; margin-bottom: 12px; }
.rl-modal-foot { font-size: 12.5px; color: var(--muted); margin-top: 14px; text-align: center; }
.rl-modal-foot a { color: var(--brand); text-decoration: underline; }
.rl-modal-x { position: absolute; top: 10px; right: 14px; font-size: 24px; line-height: 1; color: var(--muted-2); }
.rl-modal-x:hover { color: var(--ink); }
/* account modal: sign-in / apply tabs */
.rl-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--bg-soft);
  border-radius: var(--radius); padding: 4px; margin-bottom: 16px; }
.rl-tab { border: 0; background: transparent; padding: 8px 10px; border-radius: 6px;
  font: inherit; font-size: 13px; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.rl-tab.is-on { background: #fff; color: var(--brand); box-shadow: 0 1px 3px rgba(7, 56, 100, .12); }
.rl-modal-err.is-ok { color: var(--green, #0DA449); background: var(--green-tint, #F2FAF5); }
.rl-link { border: 0; background: none; padding: 0 0 12px; font: inherit; font-size: 12.5px;
  color: var(--brand); text-decoration: underline; cursor: pointer; }
.rl-hint { display: block; font-weight: 400; color: var(--muted-2); font-size: 11.5px; }
.price-login.js-signin, button.price-login { border: 1px solid var(--line); background: var(--bg-soft); }
button.price-login { width: 100%; justify-content: center; }

/* ---------- warehouses (6 national branches) ---------- */
.wh-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.wh-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; background: #fff; }
.wh-card:hover { border-color: var(--brand); box-shadow: var(--shadow-card); }
.wh-card h3 { font-size: 16px; display: flex; align-items: center; gap: 7px; }
.wh-card h3 .st { font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--green); background: var(--green-tint); border-radius: var(--pill); padding: 2px 8px; }
.wh-card .wh-addr { font-size: 13px; color: var(--muted); margin-top: 7px; }
.wh-card .wh-mail { font-size: 13px; margin-top: 6px; }
.wh-card .wh-mail a { color: var(--brand); }
.wh-note { margin-top: 18px; font-size: 13px; color: var(--muted); border-left: 3px solid var(--brand);
  background: var(--brand-tint); padding: 11px 14px; border-radius: 0 var(--radius) var(--radius) 0; }
.wh-note a { color: var(--brand); text-decoration: underline; }
.ft-offices { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px;
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 26px; padding-top: 22px; }
.ft-offices h4 { font-family: var(--font-display); font-size: 14px; font-weight: 700; margin-bottom: 7px; }
.ft-offices p { font-size: 12.5px; color: rgba(255,255,255,.62); }
.ft-offices a { font-size: 12.5px; color: rgba(255,255,255,.62); }
.ft-offices a:hover { color: #fff; }
@media (max-width: 1080px) { .wh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ft-offices { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .wh-grid { grid-template-columns: 1fr; }
  .ft-offices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- stacking fixes (these were rendering inline) ---------- */
.hero-facts span { display: block; }
.cap-card .kwh, .cap-card .lb, .cap-card .use { display: block; }
.aud-card span { display: block; }

/* [hidden] must win over component display rules */
[hidden] { display: none !important; }

/* ---------- real logo artwork (falls back to the R text mark if missing) ----------
   The artwork is dark navy + gold + green, so it sits on a white plate to stay
   legible on the dark header. */
.hdr-logo-img {
  height: 38px; width: auto; display: none; object-fit: contain;
  background: #fff; padding: 6px 9px; border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .22);
}
@media (max-width: 560px) { .hdr-logo-img { height: 30px; padding: 5px 7px; } }

/* ==========================================================================
   COMMERCIAL & INDUSTRIAL — independent site sections (Phase 5+)
   Reuses design tokens (--brand, --brand-dark, --gold, --ink-2, --muted).
   ========================================================================== */

/* Generic CI page intro — banded dark hero, smaller than wholesale */
.ci-hero {
  background: linear-gradient(115deg, #06305A 0%, #0A4B86 52%, #1268A8 100%);
  color: #fff;
}
.ci-hero .wrap { padding: 44px 0 50px; max-width: var(--wrap); margin: 0 auto; }
.ci-hero h1 { font-size: 36px; line-height: 1.15; letter-spacing: -.02em; font-weight: 700; max-width: 760px; }
.ci-hero h1 em { font-style: normal; color: #7FD4A0; }
.ci-hero p.sub { margin-top: 14px; font-size: 16px; line-height: 1.6; color: rgba(255,255,255,.85); max-width: 720px; }
.ci-hero .ci-cta { display: flex; gap: 11px; margin-top: 22px; flex-wrap: wrap; }
.ci-hero .ci-bullets {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 28px;
  padding-top: 22px; border-top: 1px solid rgba(255,255,255,.16);
}
.ci-hero .ci-bullets div {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 12px 14px;
}
.ci-hero .ci-bullets b { display: block; font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.ci-hero .ci-bullets span { font-size: 12.5px; color: rgba(255,255,255,.78); display: block; margin-top: 2px; }
@media (max-width: 1024px) { .ci-hero .ci-bullets { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .ci-hero .ci-bullets { grid-template-columns: 1fr; } }

/* Cap cards on CI pages — bigger labels than wholesale */
.ci-cap-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1024px) { .ci-cap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .ci-cap-grid { grid-template-columns: 1fr; } }
.ci-cap-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; }
.ci-cap-card:hover { border-color: var(--brand); box-shadow: var(--shadow-card); }
.ci-cap-card .kwh {
  display: block; font-family: var(--font-display); font-size: 22px; font-weight: 700;
  letter-spacing: -.01em; color: var(--brand-dark); margin-bottom: 6px;
}
.ci-cap-card .lb { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.ci-cap-card .use { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.55; }

/* Industry strip — high-density icons */
.ci-industries { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .ci-industries { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .ci-industries { grid-template-columns: 1fr; } }
.ci-industry {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; background: #fff;
}
.ci-industry .ico {
  flex: 0 0 36px; width: 36px; height: 36px; border-radius: 8px;
  background: var(--brand-tint); color: var(--brand);
  display: grid; place-items: center;
}
.ci-industry h4 { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.ci-industry p { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* Process steps (CI pages) */
.ci-steps { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .ci-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .ci-steps { grid-template-columns: 1fr; } }
.ci-step {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; background: #fff; position: relative;
}
.ci-step .n {
  font-family: var(--font-display); font-size: 14px; font-weight: 700;
  color: var(--brand); display: inline-block; margin-bottom: 8px;
}
.ci-step h4 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.ci-step p { font-size: 13px; color: var(--muted); line-height: 1.55; }

/* FAQ */
.faq-list { display: grid; gap: 10px; max-width: 820px; }
.faq-item {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 16px 18px; font-size: 15px; font-weight: 600; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 20px; color: var(--brand); line-height: 1; transition: transform .15s;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .body { padding: 0 18px 16px; font-size: 14px; color: var(--muted); line-height: 1.65; }
.faq-item .body p { margin-bottom: 8px; }
.faq-item .body p:last-child { margin-bottom: 0; }

/* Inline disclosure — bare <details> used for secondary detail blocks
   (full delivery process, 21-input project file). Matches .faq-item. */
details.disclose {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft);
}
details.disclose > summary {
  list-style: none; cursor: pointer;
  padding: 16px 18px; font-size: 15px; font-weight: 600; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
details.disclose > summary::-webkit-details-marker { display: none; }
details.disclose > summary::after {
  content: "+"; font-size: 20px; color: var(--brand); line-height: 1; transition: transform .15s;
}
details.disclose[open] > summary::after { content: "\2212"; }
details.disclose > summary:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
@media (max-width: 700px) { details.disclose > summary { font-size: 14px; padding: 14px 15px; } }

/* CI form — distinct from trade contact form */
.ci-form-wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; }
@media (max-width: 1024px) { .ci-form-wrap { grid-template-columns: 1fr; } }
.ci-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.ci-form .form-row { margin-bottom: 14px; }
.ci-form label.fl { display: block; font-size: 13px; font-weight: 500; margin-bottom: 5px; color: var(--ink); }
.ci-form .inp, .ci-form .sel, .ci-form .txa {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 9px 11px; font-size: 14px; font-family: inherit; color: var(--ink); background: #fff;
}
.ci-form .inp:focus, .ci-form .sel:focus, .ci-form .txa:focus {
  border-color: var(--brand); outline: 0; box-shadow: 0 0 0 3px var(--brand-tint);
}
.ci-form .txa { min-height: 100px; resize: vertical; }
.ci-form .form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .ci-form .form-row.two { grid-template-columns: 1fr; } }
.ci-form .req { color: #d04040; }
.ci-form .fld-err { color: #d04040; font-size: 12px; margin-top: 4px; display: none; }
.ci-form .fld-err.on { display: block; }
.ci-form .err { border-color: #d04040 !important; }
.ci-form .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.ci-form .check-row { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--ink-2); }
.ci-form .check-row input { margin-top: 3px; }
.ci-form .file-row {
  border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 12px 14px; font-size: 13px; color: var(--muted);
  display: flex; gap: 10px; align-items: center; cursor: pointer;
}
.ci-form .file-row:hover { border-color: var(--brand); }
.ci-form .file-row .file-meta { font-size: 11.5px; color: var(--muted-2); }
.ci-form .btn-primary { background: var(--brand); color: #fff; border: 0; }
.ci-form .btn-primary:hover { background: var(--brand-hover); }
.ci-form .ci-form-ok {
  background: var(--green-tint); border: 1px solid #BEE7CF;
  border-left: 3px solid var(--green); border-radius: var(--radius);
  padding: 14px 16px; color: #0A6E32; font-size: 13.5px; margin-bottom: 16px;
  display: flex; gap: 10px; align-items: flex-start;
}
.ci-form .ci-form-ok svg { flex: 0 0 18px; margin-top: 1px; }
.ci-form .ci-form-fallback {
  background: #FFF8E6; border: 1px solid #F0DBA0; border-left: 3px solid var(--gold);
  border-radius: var(--radius); padding: 14px 16px; color: #6b4f12; font-size: 13.5px;
  margin-bottom: 16px; display: flex; gap: 10px; align-items: flex-start;
}
.ci-form .ci-form-fallback svg { flex: 0 0 18px; margin-top: 1px; }
.ci-form .ci-form-fallback a { color: inherit; text-decoration: underline; }
.ci-form .hp-field { position: absolute; left: -9999px; top: -9999px; }

/* CI side panel — different from trade side-panel */
.ci-side {
  background: var(--bg-soft); border-radius: var(--radius); padding: 22px;
  border: 1px solid var(--line-soft);
}
.ci-side h3 { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.ci-side .ci-bullet { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; font-size: 13.5px; color: var(--ink-2); }
.ci-side .ci-bullet svg { flex: 0 0 17px; color: var(--brand); margin-top: 2px; }
.ci-side hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }

/* Section spacing helper for CI pages */
.ci-section { padding: 42px 0; }
.ci-section.soft { background: var(--bg-soft); }

/* Project list — for projects.html (will only show real cases) */
.proj-list { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1024px) { .proj-list { grid-template-columns: 1fr; } }
.proj-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; padding: 20px;
}
.proj-card h3 { font-size: 16px; margin-bottom: 6px; }
.proj-card .meta { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.proj-card p { font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }
.proj-empty {
  background: var(--bg-soft); border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 28px; text-align: center; color: var(--muted);
}

/* ==========================================================================
   Cloudflare Turnstile widget (Fix A) — must sit inside form
   ========================================================================== */
.ci-form .cf-turnstile { min-height: 65px; }
.ci-form .cf-turnstile iframe { max-width: 100%; }
.ci-form .cf-turnstile[data-theme="auto"] { /* inherit from body */ }
@media (max-width: 560px) {
  .ci-form .cf-turnstile { transform: scale(0.92); transform-origin: 0 0; }
}

/* ==========================================================================
   Reference projects (case-image grid)
   ========================================================================== */
.cases-grid {
  display: flex;
  gap: 18px;
  margin-top: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-padding: 0 4px;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--brand) transparent;
}
.cases-grid::-webkit-scrollbar { height: 8px; }
.cases-grid::-webkit-scrollbar-track { background: var(--bg-soft); border-radius: 4px; }
.cases-grid::-webkit-scrollbar-thumb { background: var(--brand); border-radius: 4px; }
.case-card {
  flex: 0 0 calc((100% - 36px) / 3);
  scroll-snap-align: start;
  min-width: 0;
}
.case-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.case-card .case-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: var(--bg-soft);
}
.case-card .case-body {
  padding: 14px 16px 16px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
}
.case-card .case-body b { color: var(--ink); }
.case-card .case-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-dark);
  background: var(--brand-tint);
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}
.case-card .case-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line-soft);
}
.cases-foot {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 16px;
  line-height: 1.6;
}
@media (max-width: 1100px) { .case-card { flex-basis: calc((100% - 18px) / 2); } }
@media (max-width: 700px)  { .case-card { flex-basis: 88%; } }

/* ==========================================================================
   Trust bar (Westpac + EcoVantage mention — text only, no logos)
   ========================================================================== */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 24px;
  padding: 16px 20px;
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  font-size: 13.5px;
  color: var(--ink-2);
  margin-top: 18px;
}
.trust-bar .tb-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 6px;
}
.trust-bar .tb-item b { color: var(--ink); font-weight: 600; }
.trust-bar .tb-item .tb-note { color: var(--muted); font-size: 12.5px; }
@media (max-width: 700px) { .trust-bar { flex-direction: column; align-items: flex-start; } }


/* ==========================================================================
   Two-path quick orientation (home page hero)
   ========================================================================== */
.hero-paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.hero-path {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.hero-path:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-card);
  transform: translateY(-1px);
}
.hero-path h3 { font-size: 18px; margin: 6px 0 8px; color: var(--ink); }
.hero-path p  { font-size: 14px; color: var(--ink-2); line-height: 1.55; margin: 0 0 12px; }
.hp-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg-soft);
  padding: 3px 9px;
  border-radius: 4px;
}
.hp-tag--ci {
  color: #fff;
  background: var(--brand);
}
.hp-cta {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
}
@media (max-width: 720px) { .hero-paths { grid-template-columns: 1fr; } }
