/* ============================================================
   LEMAR SunTech — premium.css  (iOS 27 Liquid Glass skin)
   Loaded AFTER style.css / lemar-shared.css on every page.
   Upgrades navigation, cards, buttons and imagery to a frosted
   liquid-glass look in both light and dark themes.
   ============================================================ */

/* ---------- WebP <picture> wrappers ----------
   premium.js wraps product/logo/project <img> tags in <picture> to
   offer a WebP source with a JPG/PNG fallback. <picture> has no
   rendering box of its own — making it `display:contents` keeps it
   invisible to layout so flex/grid containers (.hp-img, .bs-logo,
   .br-logo-wrap, etc.) size the inner <img> exactly as before. ---------- */
picture { display: contents; }

/* ---------- Glass navigation ----------
   Background/border are owned by style.css / lemar-shared.css
   (theme-variable driven: white nav by default, dark on toggle).
   Only the extra saturation polish lives here. ---------- */
nav {
  backdrop-filter: blur(20px) saturate(1.5) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.5) !important;
}

/* ---------- Liquid-glass cards, sitewide ---------- */
.hp-card, .pc, .project-card, .info-card, .feature, .mission-card,
.vision-card, .value-card, .why-strip-card, .contact-card,
.form-container, .product-card, .why-item, .stat-item {
  border-radius: 24px !important;
  backdrop-filter: blur(22px) saturate(1.6);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  border: 1px solid var(--g-border, rgba(255, 255, 255, 0.4)) !important;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0.28, 1),
              box-shadow 0.35s cubic-bezier(0.32, 0.72, 0.28, 1) !important;
}
.hp-card:hover, .pc:hover, .project-card:hover, .info-card:hover,
.feature:hover, .value-card:hover {
  transform: translateY(-5px) scale(1.012);
}
.hp-card:active, .pc:active, .project-card:active { transform: scale(0.985); }

/* ---------- Pill buttons ---------- */
.btn, .hp-btn, .pc-btn, .product-btn, .submit-btn, .mm-wa-btn {
  border-radius: 100px !important;
  transition: transform 0.22s cubic-bezier(0.32, 0.72, 0.28, 1),
              box-shadow 0.25s ease, filter 0.25s ease !important;
  box-shadow: 0 10px 26px -8px rgba(232, 85, 0, 0.55),
              inset 0 1px 1.5px rgba(255, 255, 255, 0.55) !important;
}
.btn:active, .hp-btn:active, .pc-btn:active, .product-btn:active,
.submit-btn:active { transform: scale(0.94) !important; }
.wa-btn, .lang-btn, .theme-btn, .mm-lang-btn {
  border-radius: 100px !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* ---------- Brand pills / filter chips ---------- */
.br-pill, .filter-btn {
  border-radius: 100px !important;
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  transition: all 0.25s cubic-bezier(0.32, 0.72, 0.28, 1) !important;
}
.br-pill:active, .filter-btn:active { transform: scale(0.92); }

/* ---------- Product / project imagery ---------- */
.pc-img img.logo-photo, .hp-img img.logo-photo {
  object-fit: contain !important;
  background: #fff !important;
  padding: 14% !important;
}
.hp-img img { border-radius: 0 0 0 0; }
.hp-brand {
  display: inline-block;
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber, #f5a800);
  background: rgba(245, 168, 0, 0.12);
  border: 1px solid rgba(245, 168, 0, 0.28);
  padding: 3px 10px; border-radius: 100px; margin-bottom: 8px;
}

/* projects (media page) */
.prj-img {
  position: relative; aspect-ratio: 4/3.2; overflow: hidden;
  border-radius: 18px; margin: 10px 10px 0;
  border: 1px solid rgba(255, 170, 70, 0.18);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.55);
}
.prj-img img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.project-card { cursor: pointer; }
.project-card:hover .prj-img img { transform: scale(1.07); }
.prj-view {
  position: absolute; inset-inline-end: 12px; bottom: 12px;
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  border-radius: 100px; color: #fff; font-size: .8rem;
  background: rgba(20, 8, 4, 0.55); border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: .85; transition: all .25s;
}
.project-card:hover .prj-view { background: var(--sun, #ff6b00); opacity: 1; }
.pm-img.prj { height: min(72vw, 420px); background: #17090b; }
.pm-img.prj img { object-fit: contain; padding: 0; transform: none !important; }
.prj-size {
  position: absolute; top: 12px; inset-inline-end: 12px;
  font-size: 0.68rem; font-weight: 800; color: #fff;
  background: rgba(232, 85, 0, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 4px 12px; border-radius: 100px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px -4px rgba(232, 85, 0, 0.6);
}
.prj-loc { font-size: 0.82rem; opacity: 0.75; margin: 4px 0 8px; }
.prj-desc { font-size: 0.85rem; line-height: 1.65; }
.prj-type {
  position: absolute; top: 12px; inset-inline-start: 12px;
  font-size: 0.66rem; font-weight: 800; letter-spacing: .03em; color: #ffe9c9;
  background: rgba(20, 8, 4, 0.72);
  border: 1px solid rgba(255, 175, 75, 0.35);
  padding: 4px 12px; border-radius: 100px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}


/* decorative hero glow-drift / light-sweep / sunrise animations removed
   for a flat, product-focused hero (see style.css .hero) */
.hero-sunrise { display: none; }

/* ---- Product video support ---- */
.pc-play {
  position: absolute; inset-inline-end: 12px; top: 12px;
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: 100px; color: #fff; font-size: .74rem; padding-inline-start: 2px;
  background: linear-gradient(135deg, var(--fire, #e84300), var(--sun, #ff6b00));
  box-shadow: 0 4px 14px rgba(255,90,0,.5), 0 0 0 4px rgba(255,120,20,.18);
  z-index: 2;
}
.prj-play {
  inset-inline-end: auto; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 52px; height: 52px; font-size: 1.05rem;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.project-card:hover .prj-play { transform: translate(-50%, -50%) scale(1.1); }
.pm-img.pm-video { background: #17090b; height: auto; }
.pm-img.pm-video video {
  display: block; width: 100%; max-height: min(72vw, 460px);
  border-radius: 28px 28px 0 0;
}

.prj-empty {
  grid-column: 1/-1; text-align: center; padding: 44px 20px;
  font-size: .92rem; opacity: .65;
}

/* ---- Media page: section head, stats, filters ---- */
.prj-head { text-align: center; margin-bottom: 26px; }
.prj-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .64rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--fire, #e84300); margin-bottom: 10px;
}
[data-theme="dark"] .prj-eyebrow { color: var(--amber, #ffb000); }
.prj-eyebrow::before, .prj-eyebrow::after {
  content: ''; width: 22px; height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--fire, #e84300));
}
.prj-eyebrow::after { background: linear-gradient(90deg, var(--fire, #e84300), transparent); }
[data-theme="dark"] .prj-eyebrow::before, [data-theme="dark"] .prj-eyebrow::after { background: linear-gradient(90deg, transparent, var(--amber, #ffb000)); }
[data-theme="dark"] .prj-eyebrow::after { background: linear-gradient(90deg, var(--amber, #ffb000), transparent); }
.prj-head h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.3rem); font-weight: 900; letter-spacing: -.03em;
  background: linear-gradient(148deg, var(--t1, #170500) 0%, var(--fire, #e84300) 45%, var(--sun, #ff6b00) 100%);
  background-size: 220% 220%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
[data-theme="dark"] .prj-head h2 {
  background: linear-gradient(148deg, #fff 0%, rgba(255,215,145,.97) 45%, var(--amber, #ffb000) 100%);
  background-size: 220% 220%;
  -webkit-background-clip: text; background-clip: text;
}
.prj-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  max-width: 860px; margin: 0 auto 30px;
}
@media (max-width: 700px) { .prj-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.ps-tile {
  text-align: center; padding: 18px 10px 15px;
  background: var(--g-bg, rgba(36,15,11,.9));
  border: 1px solid var(--g-border, rgba(255,170,70,.16));
  border-radius: 20px;
  position: relative; overflow: hidden;
}
.ps-tile::before {
  content: ''; position: absolute; top: 0; left: 20%; right: 20%; height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(255,180,60,.55), transparent);
}
.ps-tile i { color: var(--amber, #ffb000); font-size: .95rem; margin-bottom: 8px; display: block; }
.ps-tile .ps-n {
  font-size: 1.45rem; font-weight: 900; letter-spacing: -.02em; line-height: 1.1;
  color: var(--t1, #fff4ec); font-variant-numeric: tabular-nums;
}
.ps-tile .ps-l { font-size: .64rem; font-weight: 700; opacity: .62; margin-top: 4px; letter-spacing: .03em; }

.prj-filters {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 8px; margin: 0 auto 34px; padding: 0 16px;
}
.pf-n {
  display: inline-block; min-width: 20px; padding: 1px 6px; margin-inline-start: 4px;
  border-radius: 100px; font-size: .68rem; font-weight: 800;
  background: rgba(255,160,60,.16); color: var(--amber, #ffb000);
}
.pf-btn.active .pf-n { background: rgba(255,255,255,.22); color: #fff; }

.project-info { padding: 16px 18px 18px; }
.project-info h3 { font-size: .98rem; font-weight: 800; line-height: 1.4; letter-spacing: -.01em; }
.prj-loc i { color: var(--amber, #ffb000); margin-inline-end: 4px; font-size: .74rem; }
.prj-desc {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  opacity: .78;
}
.prj-more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
  font-size: .74rem; font-weight: 800; color: var(--amber, #ffb000);
  transition: gap .25s;
}
.prj-more i { font-size: .66rem; transition: transform .25s; }
.project-card:hover .prj-more { gap: 10px; }
[dir="rtl"] .prj-more i { transform: scaleX(-1); }
.prj-img::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 42%;
  background: linear-gradient(180deg, transparent, rgba(10,3,2,.42));
  pointer-events: none;
}
.pf-btn {
  font-family: var(--font); font-size: .8rem; font-weight: 700;
  padding: 9px 22px; border-radius: 100px; cursor: pointer;
  color: var(--t2, #ecc491);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 150, 50, 0.22);
  transition: all .25s var(--eout, ease);
}
.pf-btn:hover { border-color: rgba(255, 150, 50, 0.5); color: var(--t1, #fff4ec); }
.pf-btn.active {
  color: #fff;
  background: linear-gradient(135deg, var(--fire, #e84300), var(--sun, #ff6b00) 55%, var(--amber, #ffb000));
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(255, 90, 0, 0.4);
}

/* ---------- Mobile menu glass ---------- */
.mobile-menu {
  backdrop-filter: blur(30px) saturate(1.8) !important;
  -webkit-backdrop-filter: blur(30px) saturate(1.8) !important;
}

/* ---------- Footer ---------- */
footer {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 185, 110, 0.14) !important;
}

/* ---------- Softer section transitions ---------- */
.section-divider { border-radius: 100px; }
img { -webkit-user-drag: none; }

/* ---------- Calculator-page friendliness on small phones ---------- */
@media (max-width: 380px) {
  .wrap { padding: 14px 12px 40px !important; }
  .card { padding: 16px !important; border-radius: 20px !important; }
  .results { gap: 8px !important; }
  .fact .f-val { font-size: 14px !important; }
}

/* ---------- Catalog card styles (shared with brand pages) ----------
   Copied from products.html so brand-*.html render the same cards. */
.prod-grid-wrap{max-width:1100px;margin:0 auto;padding:22px 24px 80px;}
.prod-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;}

/* PREMIUM PRODUCT CARD */
.pc{position:relative;display:flex;flex-direction:column;background:var(--g-bg);border:1px solid var(--g-border);border-radius:24px;overflow:hidden;box-shadow:var(--g-shadow);transition:transform .42s var(--spring),box-shadow .42s var(--eout),border-color .22s;will-change:transform;}
[data-theme="dark"] .pc{background:rgba(20,5,0,.78);}
.pc::before{content:'';position:absolute;top:0;left:0;right:0;height:1px;background:linear-gradient(90deg,transparent 5%,rgba(255,255,255,0.82) 50%,transparent 95%);z-index:3;pointer-events:none;}
.pc::after{content:'';position:absolute;top:-40%;left:-20%;width:80%;height:60%;background:radial-gradient(ellipse,rgba(232,85,0,0.08),transparent 70%);pointer-events:none;opacity:0;transition:opacity .34s var(--eout);}
.pc:hover::after{opacity:1;}
.pc:hover{transform:translateY(-14px) scale(1.016);border-color:rgba(232,85,0,0.36);box-shadow:0 2px 4px rgba(0,0,0,0.06),0 20px 52px rgba(0,0,0,0.18),0 0 0 1px rgba(232,85,0,0.22),0 1px 0 rgba(255,255,255,0.82) inset;}
[data-theme="dark"] .pc:hover{background:rgba(52,20,14,.90);}

/* Card image */
.pc-img{width:100%;height:200px;overflow:hidden;position:relative;background:linear-gradient(135deg,#160200,#2a0800);flex-shrink:0;}
.pc-img img{width:100%;height:100%;object-fit:cover;transition:transform .52s cubic-bezier(.22,1,.36,1);}
.pc:hover .pc-img img{transform:scale(1.10);}
.pc-img::after{content:'';position:absolute;inset:0;z-index:1;background:linear-gradient(to top,rgba(8,2,0,0.50) 0%,transparent 55%);pointer-events:none;}

/* Badges */
.pc-badge-cat,.pc-badge-brand{position:absolute;z-index:2;font-size:.55rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;padding:3px 10px;border-radius:var(--rF);border:1px solid transparent;}
.pc-badge-cat{top:10px;left:10px;background:rgba(0,0,0,0.56);border-color:rgba(255,255,255,0.16);color:#ffd166;}
.pc-badge-brand{top:10px;right:10px;background:rgba(232,85,0,0.86);border-color:rgba(255,255,255,0.20);color:#fff;box-shadow:0 2px 8px rgba(232,85,0,0.30);}

/* Card body */
.pc-body{padding:20px 18px 18px;display:flex;flex-direction:column;flex:1;position:relative;z-index:2;}
.pc-body h3{font-size:.94rem;font-weight:800;color:var(--t1);line-height:1.26;letter-spacing:-.016em;margin-bottom:10px;}
.pc-specs{display:flex;gap:4px;flex-wrap:wrap;margin-bottom:11px;}
.pc-spec{font-size:.57rem;font-weight:700;letter-spacing:.04em;padding:2px 8px;border-radius:var(--rF);background:rgba(232,85,0,0.08);border:1px solid rgba(232,85,0,0.18);color:var(--sun);transition:background .18s;}
.pc:hover .pc-spec{background:rgba(232,85,0,0.14);}
[data-theme="dark"] .pc-spec{background:rgba(232,85,0,0.13);color:#ffd166;}
.pc-body p{font-size:.76rem;color:var(--t2);line-height:1.60;flex:1;margin-bottom:16px;}
.pc-btn{width:100%;padding:12px;border:none;border-radius:var(--rF);cursor:pointer;font-size:.79rem;font-weight:700;color:#fff;font-family:var(--font);background:var(--fire);position:relative;box-shadow:0 2px 10px rgba(255,90,0,0.22);display:flex;align-items:center;justify-content:center;gap:7px;transition:background .2s var(--eout),transform .2s var(--eout),box-shadow .2s var(--eout);}
.pc-btn:hover{background:#c23a00;transform:translateY(-2px);box-shadow:0 4px 14px rgba(255,90,0,0.30);}
.pc-btn:active{transform:translateY(0);}

.pc-img img.real-photo{object-fit:contain;background:#fff;padding:10px;}

/* Responsive */

.prod-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;}
@media(max-width:860px){.prod-grid{grid-template-columns:repeat(2,1fr);gap:14px;}}
@media(max-width:560px){.prod-grid{grid-template-columns:1fr;}}

/* "Coming soon" panel for brands with no products yet */
.brand-soon{
  grid-column:1/-1;
  text-align:center;padding:56px 24px 64px;
  background:rgba(255,255,255,.035);
  border:1px solid rgba(232,113,10,.16);border-radius:26px;
  margin:12px 0 30px;
}
.brand-soon .bs-logo{
  width:120px;height:72px;margin:0 auto 18px;background:#fff;border-radius:16px;
  display:flex;align-items:center;justify-content:center;padding:10px;
}
.brand-soon .bs-logo img{max-width:100%;max-height:100%;object-fit:contain;}
.brand-soon h3{font-size:1.3rem;font-weight:800;margin-bottom:10px;color:var(--amber-gold,#f5a800);}
.brand-soon p{font-size:.9rem;line-height:1.75;opacity:.78;max-width:520px;margin:0 auto 22px;}
.brand-soon .bs-btn{max-width:280px;margin:0 auto;}

/* Category section headings on brand pages */
.cat-head{
  grid-column:1/-1;
  display:flex;align-items:center;gap:14px;
  margin:26px 0 2px;
}
.cat-head:first-child{margin-top:4px;}
.cat-head span{
  font-size:.98rem;font-weight:800;letter-spacing:.05em;text-transform:uppercase;
  color:var(--amber-gold,#f5a800);white-space:nowrap;
}
.cat-head::after{
  content:"";flex:1;height:1px;
  background:linear-gradient(90deg,rgba(232,113,10,.45),rgba(232,113,10,.04));
}
[dir="rtl"] .cat-head::after{
  background:linear-gradient(-90deg,rgba(232,113,10,.45),rgba(232,113,10,.04));
}
@media(max-width:560px){
  .cat-head{margin:18px 0 0;}
  .cat-head span{font-size:.85rem;}
}

/* ---------- Variable fallbacks for brand pages (zero specificity:
   style.css definitions always win on pages that load it) ---------- */
:where(:root) {
  --sun:#ff6b00; --fire:#e84300; --amber:#ffb000; --gold:#ffd166; --cream:#fff8ee;
  --g-bg:rgba(255,255,255,0.88); --g-border:rgba(255,255,255,0.60);
  --g-shadow:0 1px 2px rgba(58,20,0,0.05), 0 10px 34px rgba(58,20,0,0.10), 0 1px 0 rgba(255,255,255,0.95) inset;
  --g-shadow-h:0 6px 12px rgba(58,20,0,0.08), 0 34px 80px rgba(58,20,0,0.22), 0 0 0 1px rgba(232,85,0,0.30);
  --t1:#170500; --t2:#43220a; --t3:#744020; --tm:#96522e;
  --b1:rgba(140,70,0,0.12); --b2:rgba(190,100,20,0.20);
  --rF:100px; --spring:cubic-bezier(0.34,1.56,0.64,1); --eout:cubic-bezier(0,0,0.2,1);
  --font:'Inter',-apple-system,'SF Pro Display',system-ui,sans-serif;
}
:where([data-theme="dark"]) {
  --g-bg:rgba(36,15,11,0.90); --g-border:rgba(255,170,70,0.16);
  --g-shadow:0 1px 2px rgba(0,0,0,0.30), 0 12px 34px rgba(0,0,0,0.46), 0 1px 0 rgba(255,190,80,0.08) inset;
  --g-shadow-h:0 8px 12px rgba(0,0,0,0.32), 0 34px 80px rgba(0,0,0,0.58), 0 0 0 1px rgba(255,120,20,0.42);
  --t1:#fff4ec; --t2:#ecc491; --t3:#ce7c38; --tm:#ab5f2e;
  --b1:rgba(255,130,30,0.16); --b2:rgba(255,130,30,0.30);
}

/* ============================================================
   CLEAN PRODUCT CARDS v2 — simpler, calmer layout
   (overrides the copied products.html card styles above)
   ============================================================ */
.pc-img {
  height: 185px !important;
  background: #fff !important;
}
.pc-img::after { content: none !important; }          /* no dark overlay */
.pc-img img {
  object-fit: contain !important;                      /* full product visible */
  padding: 14px !important;
  background: #fff;
}
.pc-img img.logo-photo { padding: 20% !important; }
.pc:hover .pc-img img { transform: scale(1.04) !important; }
.pc-badge-cat, .pc-badge-brand { display: none !important; }

.pc:hover { transform: translateY(-6px) !important; }

.pc-body { padding: 16px 16px 16px !important; }
.pc-meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-bottom: 9px;
}
.pc-brand {
  font-size: 0.6rem; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--amber, #f5a800);
  background: rgba(245, 168, 0, 0.12);
  border: 1px solid rgba(245, 168, 0, 0.3);
  padding: 3px 10px; border-radius: 100px;
}
.pc-cat { font-size: 0.62rem; font-weight: 600; color: var(--t3); }
.pc-body h3 {
  font-size: 0.95rem !important;
  margin-bottom: 7px !important;
  min-height: 2.5em;
}
.pc-desc {
  font-size: 0.79rem !important; color: var(--t3) !important;
  line-height: 1.62 !important; margin-bottom: 12px !important;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.pc-specs { gap: 5px !important; margin-bottom: 14px !important; }
.pc-btn { width: 100%; justify-content: center; }

/* ============================================================
   PRODUCT DETAIL WINDOW (opens when a product card is tapped)
   ============================================================ */
.pc, .hp-card { cursor: pointer; }
.pm-overlay {
  position: fixed; inset: 0; z-index: 5000;
  background: rgba(8, 2, 0, 0.55);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  display: flex; align-items: flex-end; justify-content: center;
  animation: pmFade 0.28s ease;
}
@keyframes pmFade { from { opacity: 0; } }
.pm-sheet {
  position: relative; width: min(560px, 100%);
  max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--g-bg); border: 1px solid var(--g-border);
  border-radius: 28px 28px 0 0;
  backdrop-filter: blur(30px) saturate(1.8);
  -webkit-backdrop-filter: blur(30px) saturate(1.8);
  box-shadow: 0 -20px 70px rgba(0, 0, 0, 0.45);
  animation: pmUp 0.38s cubic-bezier(0.32, 0.72, 0.28, 1);
}
[data-theme="dark"] .pm-sheet { background: rgba(20, 6, 0, 0.94); }
@keyframes pmUp { from { transform: translateY(60px); opacity: 0.4; } }
@media (min-width: 640px) {
  .pm-overlay { align-items: center; padding: 24px; }
  .pm-sheet { border-radius: 28px; max-height: 88vh; }
}
.pm-close {
  position: absolute; top: 14px; inset-inline-end: 14px; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--g-border);
  background: rgba(0, 0, 0, 0.35); color: #fff; font-size: 15px; cursor: pointer;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: grid; place-items: center;
  transition: transform 0.2s;
}
.pm-close:active { transform: scale(0.88); }
.pm-img {
  width: 100%; height: min(46vw, 300px);
  background: #fff; display: flex; align-items: center; justify-content: center;
  border-radius: 28px 28px 0 0; overflow: hidden;
}
.pm-img img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.pm-img img.pm-logo { padding: 20%; }
.pm-body { padding: 20px 22px 26px; }
.pm-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.pm-body h3 { font-size: 1.15rem; font-weight: 800; color: var(--t1); line-height: 1.45; margin-bottom: 8px; }
.pm-desc { font-size: 0.88rem; color: var(--t3); line-height: 1.75; margin-bottom: 6px; }
.pm-h {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--amber, #f5a800); margin: 16px 0 8px;
}
.pm-list { margin: 0; padding-inline-start: 20px; }
.pm-list li { font-size: 0.86rem; color: var(--t2); line-height: 1.9; }
.pm-wa { width: 100%; justify-content: center; margin-top: 18px; }

/* ============================================================
   TOP-BAR LANGUAGE SWITCHER — clearly visible on first open
   ============================================================ */
.top-langs {
  display: flex; align-items: center; gap: 5px;
}
.top-langs i { font-size: 0.78rem !important; margin-inline-end: 2px; }
.tl-btn {
  border: 1px solid rgba(140,70,0,0.25);
  background: rgba(0,0,0,0.05);
  color: #7a4010;
  font: 700 0.72rem/1 var(--font, sans-serif);
  padding: 6px 13px; border-radius: 100px; cursor: pointer;
  transition: all 0.22s cubic-bezier(0.32, 0.72, 0.28, 1);
}
.tl-btn:active { transform: scale(0.92); }
.tl-btn.active {
  background: #e05a00;
  border-color: transparent; color: #fff;
  box-shadow: 0 2px 8px -2px rgba(224, 90, 0, 0.5);
}
[data-theme="dark"] .tl-btn {
  border-color: rgba(255, 185, 110, 0.35);
  background: rgba(255, 255, 255, 0.06);
  color: #ffd8a8;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
[data-theme="dark"] .tl-btn.active {
  background: linear-gradient(135deg, #f5a800, #e85500);
  box-shadow: 0 4px 14px -4px rgba(232, 85, 0, 0.7);
}
@media (max-width: 640px) {
  .topbar { justify-content: center; row-gap: 6px; }
  .tl-btn { padding: 7px 14px; font-size: 0.74rem; }
}

/* ============================================================
   VISUAL POLISH v3 — designed product visuals, richer hero
   ============================================================ */

/* ---- Designed visual for products without a photo ---- */
.pc-viz {
  position: relative; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(130% 130% at 18% 0%,
              color-mix(in srgb, var(--bc) 20%, #ffffff) 0%, #ffffff 68%);
  overflow: hidden;
}
[data-theme="dark"] .pc-viz {
  background: radial-gradient(130% 130% at 18% 0%,
              color-mix(in srgb, var(--bc) 34%, #180700) 0%, #140500 72%);
}
.pc-viz-logo {
  max-width: 58%; max-height: 42%; object-fit: contain;
  background: #fff; padding: 12px 18px; border-radius: 14px;
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.25), 0 1px 0 rgba(255,255,255,.8) inset;
  position: relative; z-index: 2;
}
.pc-viz-ic {
  position: absolute; bottom: -14px; inset-inline-end: -8px; z-index: 1;
  font-size: 6.2rem; color: var(--bc); opacity: 0.13;
  transform: rotate(-8deg);
}
.pc-viz::before {
  content: ""; position: absolute; top: -30%; left: -10%;
  width: 70%; height: 60%; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--bc) 30%, transparent), transparent 70%);
  opacity: .5;
}
.pm-img .pc-viz { border-radius: 28px 28px 0 0; }

/* ---- Brand rail: bigger, cleaner ---- */
.br-pill { padding: 9px 16px !important; gap: 9px !important; }
.br-logo-wrap, .br-text-logo {
  width: 72px !important; height: 40px !important;
  border-radius: 10px !important; padding: 5px !important;
}
.br-pill span { font-size: 0.72rem; font-weight: 700; }

/* ---- Hero: shimmering لمر سن تک ---- */
.hero-ps {
  background: linear-gradient(100deg, #a82c00 15%, #e84300 35%, #ff8a1f 50%, #e84300 65%, #a82c00 85%) !important;
  background-size: 220% auto !important;
  -webkit-background-clip: text !important; background-clip: text !important;
  -webkit-text-fill-color: transparent !important; color: transparent !important;
  animation: heroShine 5.5s linear infinite, psPowerUpLight .9s ease-out .15s both;
}
[data-theme="dark"] .hero-ps {
  background: linear-gradient(100deg, #f5a800 15%, #ffe9b0 35%, #fff7dd 50%, #ffe9b0 65%, #f5a800 85%) !important;
  background-size: 220% auto !important;
  -webkit-background-clip: text !important; background-clip: text !important;
  -webkit-text-fill-color: transparent !important; color: transparent !important;
  animation: heroShine 5.5s linear infinite, psPowerUpDark .9s ease-out .15s both;
}
@keyframes heroShine { to { background-position: -220% center; } }

/* One-time "power on" flicker as the logo text arrives — a solar
   panel catching light, not a decorative glow that lingers. */
@keyframes psPowerUpLight {
  0%   { filter: brightness(.35) saturate(.4) drop-shadow(0 0 0 rgba(232,85,0,0)); }
  55%  { filter: brightness(1.55) saturate(1.25) drop-shadow(0 0 18px rgba(232,85,0,.55)); }
  100% { filter: brightness(1) saturate(1) drop-shadow(0 0 0 rgba(232,85,0,0)); }
}
@keyframes psPowerUpDark {
  0%   { filter: brightness(.45) saturate(.5) drop-shadow(0 0 0 rgba(245,168,0,0)); }
  55%  { filter: brightness(1.08) saturate(1.1) drop-shadow(0 0 20px rgba(245,168,0,.55)); }
  100% { filter: brightness(1) saturate(1) drop-shadow(0 0 18px rgba(245,168,0,.35)); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-ps { animation: none !important; filter: none !important; }
  [data-theme="dark"] .hero-ps { filter: drop-shadow(0 0 18px rgba(245,168,0,.35)) !important; }
}

/* ---- Hero sun: breathing glow + rotating rays ---- */
.hero-sun { animation: sunBreathe 6s ease-in-out infinite alternate; }
@keyframes sunBreathe {
  from { filter: brightness(1); }
  to   { filter: brightness(1.18) drop-shadow(0 0 34px rgba(245,168,0,.5)); }
}
.hero-sun::after {
  content: ""; position: absolute; inset: -46%;
  background: repeating-conic-gradient(from 0deg,
    rgba(255, 209, 102, 0.16) 0deg 7deg, transparent 7deg 24deg);
  border-radius: 50%;
  -webkit-mask: radial-gradient(circle, transparent 38%, #000 42%, transparent 72%);
  mask: radial-gradient(circle, transparent 38%, #000 42%, transparent 72%);
  animation: sunRays 40s linear infinite;
  pointer-events: none;
}
@keyframes sunRays { to { transform: rotate(360deg); } }

/* ---- Popular cards: smooth 3D tilt base ---- */
#hpGrid .hp-card {
  transform-style: preserve-3d;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.3s ease !important;
  will-change: transform;
}

/* ---- Respect reduced-motion preference ---- */
@media (prefers-reduced-motion: reduce) {
  .hero-ps, .hero-sun, .hero-sun::after { animation: none !important; }
  #hpGrid .hp-card { transition: none !important; }
}

/* Old nav language pills removed — the top-bar switcher replaces them */
nav#mainNav .lang-btn { display: none !important; }

/* ============================================================
   BRAND CIRCLES — story-style brand filter with logo + name
   ============================================================ */
.brand-rail { gap: 14px !important; padding: 6px 2px 10px !important; }
.br-pill {
  flex-direction: column !important;
  background: transparent !important;
  border: none !important; box-shadow: none !important;
  padding: 2px !important; gap: 7px !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
}
.br-logo-wrap, .br-text-logo {
  width: 66px !important; height: 66px !important;
  border-radius: 50% !important; padding: 12px !important;
  background: #fff !important;
  border: 2.5px solid rgba(255, 185, 110, 0.25) !important;
  box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.45) !important;
  transition: border-color 0.25s, transform 0.25s cubic-bezier(0.32, 0.72, 0.28, 1), box-shadow 0.25s !important;
  display: flex; align-items: center; justify-content: center;
}
.br-text-logo { font-size: 1.3rem !important; }
.br-pill:hover .br-logo-wrap, .br-pill:hover .br-text-logo { transform: translateY(-3px); }
.br-pill.active .br-logo-wrap, .br-pill.active .br-text-logo {
  border-color: var(--sun, #e85500) !important;
  box-shadow: 0 0 0 3px rgba(232, 85, 0, 0.22), 0 10px 24px -6px rgba(232, 85, 0, 0.5) !important;
}
.br-pill span {
  font-size: 0.66rem !important; font-weight: 700 !important;
  max-width: 74px; text-align: center; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.br-pill.active span { color: var(--amber, #f5a800) !important; }
@media (max-width: 640px) {
  .br-logo-wrap, .br-text-logo { width: 58px !important; height: 58px !important; padding: 10px !important; }
  .brand-rail { gap: 11px !important; }
}

/* ============================================================
   MOBILE: compact 2-column product grid (4–6 cards per screen;
   tap a card for the full detail window)
   ============================================================ */
@media (max-width: 640px) {
  .prod-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
  .prod-grid-wrap { padding: 14px 12px 60px !important; }
  .pc-img { height: 118px !important; }
  .pc-body { padding: 10px 11px 12px !important; }
  .pc-meta { margin-bottom: 6px; }
  .pc-cat { display: none !important; }
  .pc-brand { font-size: 0.52rem !important; padding: 2px 8px !important; }
  .pc-body h3 {
    font-size: 0.76rem !important; line-height: 1.35 !important;
    min-height: 3.1em !important; margin-bottom: 6px !important;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  }
  .pc-desc, .pc-specs { display: none !important; }
  .pc-btn { padding: 9px 6px !important; font-size: 0.68rem !important; }
  .pc-viz-logo { max-width: 70% !important; padding: 8px 12px !important; }
  .pc-viz-ic { font-size: 3.6rem !important; }
  .results-info { width: 100%; text-align: center; }
  /* home popular cards a bit tighter too */
  .hp-body { padding: 14px 14px 16px !important; }
  .hp-body p { font-size: 0.8rem; }
}

/* brand circle text fixes */
.br-pill, .br-pill:visited { text-decoration: none !important; }
.br-pill span { color: var(--t2, #e6bd85) !important; max-width: 80px; }
.br-pill.active span { color: var(--amber, #f5a800) !important; }
.br-text-logo { color: #e85500 !important; font-size: 1.5rem !important; background: #fff !important; }

/* ============================================================
   PRODUCT SEARCH BAR + official page link
   ============================================================ */
.prod-search {
  position: relative; max-width: 560px; margin: 2px auto 12px;
}
.prod-search i {
  position: absolute; inset-inline-start: 16px; top: 50%;
  transform: translateY(-50%);
  color: var(--amber, #f5a800) !important; font-size: 0.85rem !important;
}
.prod-search input {
  width: 100%; padding: 12px 18px; padding-inline-start: 42px;
  border-radius: 100px; border: 1px solid rgba(255, 185, 110, 0.28);
  background: rgba(255, 255, 255, 0.06); color: var(--t1, #fff4ec);
  font: 600 0.85rem/1.2 var(--font, sans-serif); outline: none;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.22s, box-shadow 0.22s;
}
.prod-search input::placeholder { color: rgba(255, 205, 155, 0.45); }
.prod-search input:focus {
  border-color: var(--sun, #e85500);
  box-shadow: 0 0 0 4px rgba(232, 85, 0, 0.16);
}
[data-theme="light"] .prod-search input { background: rgba(255, 255, 255, 0.75); color: #170500; }

.pm-link {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 10px; padding: 12px;
  border-radius: 100px; border: 1px solid rgba(255, 185, 110, 0.3);
  color: var(--amber, #f5a800); text-decoration: none;
  font-size: 0.8rem; font-weight: 700;
  transition: background 0.2s, transform 0.2s;
}
.pm-link:active { transform: scale(0.97); }
.pm-link:hover { background: rgba(245, 168, 0, 0.08); }

/* ============================================================
   SMOOTH MOBILE — performance + compact popular grid
   ============================================================ */

/* Blur effects are the biggest mobile GPU cost — on phones keep
   them only for the nav, mobile menu and detail sheet. */
@media (max-width: 768px) {
  .hp-card, .pc, .project-card, .info-card, .feature, .mission-card,
  .vision-card, .value-card, .why-strip-card, .contact-card,
  .form-container, .product-card, .why-item, .stat-item,
  .br-pill, .filter-btn, .wa-btn, .lang-btn, .theme-btn, .mm-lang-btn,
  .prod-search input, .tl-btn {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  [data-theme="dark"] .hp-card { background: rgba(24, 8, 0, 0.92) !important; }
  [data-theme="light"] .hp-card { background: rgba(255, 253, 248, 0.96) !important; }
  .hero-sun::after { display: none; }   /* rotating rays: desktop only */
  .hero-ps { filter: none; }            /* glow drop-shadow: desktop only */
}

/* Popular products: compact 2-column grid on phones */
@media (max-width: 640px) {
  .hp-grid { display: grid !important; grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
  .hp-card { border-radius: 18px !important; }
  .hp-img { height: 116px !important; }
  .hp-img img { width: 100%; height: 100%; object-fit: contain !important; background: #fff; padding: 8px; }
  .hp-body { padding: 10px 11px 12px !important; }
  .hp-body h3 {
    font-size: 0.76rem !important; line-height: 1.35 !important;
    min-height: 3.05em; margin: 4px 0 8px !important;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  }
  .hp-body p { display: none !important; }
  .hp-brand { font-size: 0.52rem !important; padding: 2px 8px !important; margin-bottom: 4px; }
  .hp-btn { width: 100%; display: flex; justify-content: center; padding: 9px 6px !important; font-size: 0.68rem !important; }
}

/* Below-the-fold home sections render lazily (major speed win) */
.live-sect, .why-section, .features-wrapper, .contact-premium, .why-strip {
  content-visibility: auto;
  contain-intrinsic-size: auto 640px;
}

/* On phones the brand-visual tiles are clean white like photo tiles */
@media (max-width: 640px) {
  .pc-viz, [data-theme="dark"] .pc-viz { background: #fff !important; }
  .pc-viz::before { opacity: 0.3; }
  .pc-viz-ic { opacity: 0.1 !important; }
  .pc-viz-logo { box-shadow: none !important; padding: 0 !important; }
}

/* Popular grid: no full-width last card on phones */
@media (max-width: 860px) {
  .hp-grid .hp-card:last-child { grid-column: auto !important; }
}

/* ============================================================
   PRODUCT PHOTO ZOOM — factory photos have big white margins,
   so scale them up inside the frame for a closer, clearer view.
   (Designed images like the 5kW package card are excluded.)
   ============================================================ */
.pc-img img.real-photo {
  padding: 2px !important;
  transform: scale(1.28);
}
.pc:hover .pc-img img.real-photo { transform: scale(1.34) !important; }
.hp-img img {
  padding: 2px !important;
  transform: scale(1.26);
}
.pm-img img { transform: scale(1.14); }

/* designed/composed images keep their full frame */
img[src*="package-5kw"], img[src*="package-bk"] {
  transform: none !important;
  padding: 0 !important;
}
.pc:hover .pc-img img[src*="package-5kw"],
.pc:hover .pc-img img[src*="package-bk"] { transform: scale(1.03) !important; }

