/* ===== Maxx Tech Solar Store & Distribution ===== */
*,*::before,*::after{box-sizing:border-box}
:root{
  /* Brand palette from logo (PIL, filtered by saturation) */
  --navy:#243c78;
  --orange:#fa5a00;
  --crimson:#a02832;
  --white-warm:#ece7e9;
  --white-pure:#fbfbfc;

  /* Derived UI tokens */
  --ink:#121b38;
  --ink-soft:#5c6080;
  --surface:#ffffff;
  --surface-2:#f4f5fa;
  --surface-3:#e8eaf2;
  --line:#dde0ec;
  --line-2:#cfd3e3;
  --wa:#25d366;
  --wa-deep:#128c4a;
  --ok:#1f9d55;

  --grad:linear-gradient(135deg,var(--navy) 0%,#1a3060 40%,var(--crimson) 100%);
  --grad-warm:linear-gradient(135deg,var(--orange) 0%,var(--crimson) 70%,var(--navy) 100%);

  --radius:14px;
  --radius-sm:9px;
  --shadow-sm:0 1px 2px rgba(18,27,56,.05),0 2px 8px rgba(18,27,56,.04);
  --shadow-md:0 6px 22px rgba(18,27,56,.10);
  --shadow-lg:0 20px 55px rgba(18,27,56,.20);
  --maxw:1200px;
  --font:'DM Sans',system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  --font-head:'Outfit',var(--font);
}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  margin:0;font-family:var(--font);color:var(--ink);background:var(--surface);
  line-height:1.58;font-size:16px;-webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
h1,h2,h3,h4{font-family:var(--font-head);line-height:1.12;margin:0;letter-spacing:-.02em;font-weight:800}
p{margin:0}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
button{font-family:inherit;cursor:pointer;border:0;background:none;color:inherit}
ul{margin:0;padding:0;list-style:none}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 clamp(16px,4vw,32px)}

/* ---------- Header ---------- */
.site-header{
  position:sticky;top:0;z-index:60;background:rgba(255,255,255,.92);
  backdrop-filter:saturate(1.4) blur(14px);border-bottom:1px solid var(--line);
}
.header-inner{display:flex;align-items:center;gap:18px;height:70px}
.brand{display:flex;align-items:center;gap:10px;flex-shrink:0}
.brand img{height:44px;width:auto}
.brand .bname{font-family:var(--font-head);font-weight:800;font-size:1.04rem;line-height:1;letter-spacing:-.02em}
.brand .btag{font-size:.6rem;letter-spacing:.13em;text-transform:uppercase;color:var(--ink-soft);font-weight:600}
.nav{display:flex;gap:4px;margin-left:auto;align-items:center}
.nav a{padding:9px 13px;border-radius:var(--radius-sm);font-weight:600;font-size:.92rem;color:var(--ink-soft);transition:.15s}
.nav a:hover{color:var(--ink);background:var(--surface-2)}
.header-cta{display:flex;align-items:center;gap:10px;flex-shrink:0}
.tel-link{display:flex;align-items:center;gap:6px;font-weight:700;font-size:.92rem;white-space:nowrap}
.tel-link svg{width:15px;height:15px;color:var(--orange)}
.btn-wa-header{
  display:inline-flex;align-items:center;gap:7px;background:var(--wa);color:#fff;
  padding:9px 14px;border-radius:var(--radius-sm);font-weight:700;font-size:.9rem;
  box-shadow:0 4px 14px rgba(37,211,102,.32);transition:.15s;white-space:nowrap;
}
.btn-wa-header:hover{background:var(--wa-deep);transform:translateY(-1px)}
.btn-wa-header svg{width:16px;height:16px}
.hamburger{display:none;margin-left:auto;width:42px;height:42px;border-radius:var(--radius-sm);
  align-items:center;justify-content:center;border:1px solid var(--line)}
.hamburger svg{width:22px;height:22px}

/* ---------- Hero ---------- */
.hero{position:relative;background:var(--navy);color:#fff;overflow:hidden}
.hero::before{
  content:"";position:absolute;inset:0;
  background:
    radial-gradient(70% 90% at 85% -15%,rgba(250,90,0,.35),transparent 55%),
    radial-gradient(60% 80% at 5% 110%,rgba(160,40,50,.45),transparent 60%),
    radial-gradient(50% 60% at 50% 30%,rgba(36,60,120,.3),transparent 50%);
}
.hero-inner{position:relative;display:grid;grid-template-columns:1.05fr .95fr;gap:clamp(32px,5vw,56px);
  align-items:center;padding:clamp(44px,7vw,80px) 0}
.hero-copy{max-width:580px}
.hero-eyebrow{
  display:inline-flex;align-items:center;gap:8px;font-size:.74rem;font-weight:700;
  letter-spacing:.12em;text-transform:uppercase;color:#fdd9c0;
  background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);
  padding:6px 12px;border-radius:999px;margin-bottom:20px;
}
.hero h1{
  font-size:clamp(2rem,4.5vw,3.4rem);font-weight:900;letter-spacing:-.03em;
  text-shadow:0 2px 20px rgba(0,0,0,.3);
}
.hero h1 span{display:inline}
.hero .lede{margin-top:18px;font-size:clamp(1rem,1.4vw,1.12rem);color:#c5cbe8;max-width:38ch}
.hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}
.btn{
  display:inline-flex;align-items:center;gap:9px;padding:14px 22px;border-radius:var(--radius);
  font-weight:700;font-size:.98rem;transition:.16s;white-space:nowrap;
}
.btn-primary{
  background:var(--orange);color:#fff;
  box-shadow:0 10px 30px rgba(250,90,0,.35);
}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 14px 38px rgba(250,90,0,.45);background:#e85100}
.btn-ghost{
  background:rgba(255,255,255,.07);color:#fff;
  border:1px solid rgba(255,255,255,.2);
}
.btn-ghost:hover{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.35)}
.btn svg{width:17px;height:17px}
.hero-trust{display:flex;flex-wrap:wrap;gap:16px;margin-top:26px}
.trust-item{display:flex;align-items:center;gap:7px;font-size:.82rem;font-weight:600;color:#c5cbe8}
.trust-item svg{width:16px;height:16px;color:var(--orange);flex-shrink:0}
.hero-visual{display:flex;justify-content:flex-end}
.hero-card{
  position:relative;background:linear-gradient(160deg,var(--white-pure),var(--white-warm));
  border-radius:20px;padding:28px;box-shadow:var(--shadow-lg);color:var(--ink);max-width:400px;
}
.hero-card .hc-badge{
  display:inline-block;background:var(--grad);color:#fff;font-weight:700;
  font-size:.66rem;letter-spacing:.1em;text-transform:uppercase;padding:5px 11px;border-radius:999px;
}
.hero-card h3{font-size:1.4rem;margin:14px 0 6px}
.hero-card p{color:var(--ink-soft);font-size:.92rem}
.hc-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:18px}
.hc-stat{
  background:#fff;border:1px solid var(--line);border-radius:var(--radius-sm);
  padding:12px 8px;text-align:center;
}
.hc-stat b{display:block;font-family:var(--font-head);font-size:1.35rem;font-weight:800;line-height:1;color:var(--navy)}
.hc-stat span{font-size:.7rem;color:var(--ink-soft);font-weight:600}

/* ---------- Strip (values + brands) ---------- */
.strip{padding:clamp(40px,6vw,72px) 0;background:var(--surface)}
.values{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin-bottom:40px}
.value{display:flex;align-items:flex-start;gap:12px;padding:18px;background:var(--surface-2);border-radius:var(--radius)}
.vi{
  display:flex;align-items:center;justify-content:center;width:40px;height:40px;
  flex-shrink:0;background:var(--grad);color:#fff;border-radius:var(--radius-sm);
}
.vi svg{width:20px;height:20px}
.value h4{font-size:.95rem;margin-bottom:2px}
.value p{font-size:.82rem;color:var(--ink-soft);line-height:1.45}
.brands{text-align:center}
.bl{font-weight:700;font-size:.78rem;letter-spacing:.1em;text-transform:uppercase;color:var(--ink-soft);margin-bottom:14px}
.brand-logos{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
.blogo{
  display:inline-flex;align-items:center;padding:9px 16px;background:#fff;
  border:1px solid var(--line);border-radius:var(--radius-sm);
  font-weight:700;font-size:.84rem;color:var(--navy);
  box-shadow:var(--shadow-sm);
}

/* ---------- Catalog ---------- */
.catalog{padding:clamp(36px,6vw,64px) 0}
.cat-head{margin-bottom:24px}
.cat-head h2{font-size:clamp(1.5rem,2.5vw,2rem);margin-bottom:6px;color:var(--navy)}
.cat-head p{color:var(--ink-soft);font-size:.94rem;max-width:50ch;margin-bottom:10px}
.count-pill{
  display:inline-block;background:var(--surface-2);color:var(--ink-soft);
  font-weight:700;font-size:.78rem;padding:7px 14px;border-radius:999px;
  border:1px solid var(--line);
}
.filterbar{
  position:sticky;top:70px;z-index:50;background:rgba(255,255,255,.94);
  backdrop-filter:saturate(1.4) blur(10px);border-bottom:1px solid var(--line);
  padding:12px 0;
}
.filter-row{display:flex;align-items:center;gap:10px}
.pills{display:flex;flex-wrap:wrap;gap:7px}
.pill{
  padding:8px 14px;border-radius:999px;font-weight:700;font-size:.82rem;
  border:1px solid var(--line);background:#fff;color:var(--ink-soft);transition:.15s;
  display:inline-flex;align-items:center;gap:6px;white-space:nowrap;
}
.pill:hover{border-color:var(--navy);color:var(--navy)}
.pill.active{background:var(--navy);color:#fff;border-color:var(--navy)}
.pill .c{font-size:.7rem;opacity:.65;font-weight:600}
.pill.active .c{opacity:.9}

/* ---------- Grid ---------- */
.cat-section{margin-bottom:36px}
.cat-section-head{
  display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 12px;
  margin-bottom:16px;padding-bottom:10px;border-bottom:2px solid var(--line-2);
}
.cat-section-head h3{font-size:1.18rem;color:var(--navy);font-weight:800}
.cat-section-head .n{
  background:var(--navy);color:#fff;font-weight:700;font-size:.72rem;
  padding:2px 8px;border-radius:999px;min-width:22px;text-align:center;
}
.cat-section-head .blurb{font-size:.8rem;color:var(--ink-soft);font-weight:500}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px}
.card{
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  overflow:hidden;transition:.15s;display:flex;flex-direction:column;
}
.card:hover{border-color:var(--navy);box-shadow:var(--shadow-md);transform:translateY(-1px)}
.card.selected{border-color:var(--navy);box-shadow:0 0 0 2px var(--navy),var(--shadow-sm)}
.card-img{
  position:relative;background:var(--surface-2);aspect-ratio:16/10;
  display:flex;align-items:center;justify-content:center;overflow:hidden;
}
.card-img img{width:100%;height:100%;object-fit:cover}
.card-brand{
  position:absolute;top:10px;left:10px;background:var(--navy);color:#fff;
  font-weight:700;font-size:.7rem;padding:4px 9px;border-radius:5px;
  letter-spacing:.04em;
}
.card-body{padding:14px 16px 16px;flex:1;display:flex;flex-direction:column}
.card-model{font-size:.72rem;text-transform:uppercase;letter-spacing:.06em;color:var(--orange);font-weight:700;margin-bottom:2px}
.card-name{font-family:var(--font-head);font-weight:800;font-size:1.06rem;color:var(--ink);margin-bottom:4px;line-height:1.2}
.card-spec{font-size:.82rem;color:var(--ink-soft);margin-bottom:6px;line-height:1.45}
.card-price{font-family:var(--font-head);font-weight:800;font-size:1.25rem;color:var(--crimson);margin-bottom:4px}
.card-price small{font-size:.7rem;font-weight:500;color:var(--ink-soft)}
.card-financing{font-size:.74rem;color:var(--ink-soft);margin-bottom:8px}
.card-add{margin-top:auto;padding-top:12px}
.add-btn{
  display:inline-flex;align-items:center;gap:7px;width:100%;justify-content:center;
  padding:10px 14px;border-radius:var(--radius-sm);
  font-weight:700;font-size:.88rem;transition:.15s;
  border:2px solid var(--navy);color:var(--navy);background:transparent;
}
.add-btn:hover{background:var(--navy);color:#fff}
.card.selected .add-btn{background:var(--ok);color:#fff;border-color:var(--ok)}
.card.selected .add-btn:hover{background:#17853d;border-color:#17853d}
.add-btn svg{width:16px;height:16px}

/* Price tag */
.price-tag{
  display:inline-flex;align-items:baseline;gap:3px;
  font-family:var(--font-head);font-weight:800;font-size:1.2rem;color:var(--crimson);
}
.price-tag small{font-size:.68rem;font-weight:500;color:var(--ink-soft)}
.price-monthly{font-size:.78rem;color:var(--ink-soft);margin-left:6px;font-weight:500}

/* ---------- Installers B2B ---------- */
.installers{padding:clamp(36px,6vw,64px) 0;background:var(--surface-2)}
.installer-block{display:grid;grid-template-columns:1fr 1fr;gap:clamp(24px,4vw,48px);align-items:center}
.section-eyebrow{
  display:inline-block;font-weight:700;font-size:.7rem;letter-spacing:.12em;
  text-transform:uppercase;color:var(--orange);margin-bottom:10px;
}
.installer-copy h2{font-size:clamp(1.5rem,2.5vw,2rem);margin-bottom:10px;color:var(--navy)}
.installer-lede{font-size:1rem;color:var(--ink-soft);max-width:42ch;margin-bottom:16px}
.installer-perks{display:flex;flex-direction:column;gap:8px;margin-bottom:22px}
.installer-perks li{
  display:flex;align-items:center;gap:8px;font-weight:600;font-size:.9rem;color:var(--ink);
}
.installer-perks li svg{width:16px;height:16px;color:var(--ok);flex-shrink:0}
.btn-installer{
  background:var(--grad);color:#fff;
  box-shadow:0 8px 24px rgba(36,60,120,.35);
}
.btn-installer:hover{transform:translateY(-2px);box-shadow:0 12px 32px rgba(36,60,120,.5)}
.btn-installer svg{width:18px;height:18px}
.installer-card{
  background:#fff;border-radius:var(--radius);padding:28px;
  box-shadow:var(--shadow-md);border:2px dashed var(--orange);
  text-align:center;
}
.ic-icon{font-size:2.4rem;display:block;margin-bottom:12px}
.installer-card h3{font-family:var(--font-head);font-weight:800;font-size:1.2rem;margin-bottom:8px;color:var(--navy)}
.installer-card p{font-size:.9rem;color:var(--ink-soft)}

/* ---------- Quote Bar ---------- */
.quote-bar{
  position:fixed;bottom:0;left:0;right:0;z-index:55;
  background:var(--navy);color:#fff;
  padding:14px clamp(16px,4vw,32px);
  display:flex;align-items:center;justify-content:space-between;
  transform:translateY(100%);transition:transform .25s ease;
  box-shadow:0 -6px 28px rgba(18,27,56,.25);
}
.quote-bar.show{transform:translateY(0)}
.qb-info{display:flex;align-items:baseline;gap:6px}
.qb-info b{font-family:var(--font-head);font-size:1.5rem;font-weight:800;line-height:1}
.qb-info span{font-size:.82rem;opacity:.8}
.open-quote{
  display:inline-flex;align-items:center;gap:8px;background:var(--orange);color:#fff;
  padding:11px 18px;border-radius:var(--radius-sm);font-weight:700;font-size:.92rem;
  transition:.15s;box-shadow:0 4px 16px rgba(250,90,0,.4);
}
.open-quote:hover{background:#e85100}
.open-quote svg{width:16px;height:16px}

/* ---------- Drawer ---------- */
.overlay{
  position:fixed;inset:0;background:rgba(18,27,56,.55);z-index:70;
  opacity:0;pointer-events:none;transition:opacity .25s;
}
.overlay.show{opacity:1;pointer-events:auto}
.drawer{
  position:fixed;top:0;right:0;bottom:0;width:min(440px,92vw);z-index:75;
  background:#fff;box-shadow:-10px 0 50px rgba(18,27,56,.25);
  display:flex;flex-direction:column;
  transform:translateX(105%);transition:transform .28s cubic-bezier(.4,0,.2,1);
}
.drawer.show{transform:translateX(0)}
.drawer-head{
  display:flex;align-items:center;justify-content:space-between;
  padding:18px 22px;border-bottom:1px solid var(--line);
}
.drawer-head h3{font-size:1.2rem;color:var(--navy)}
.drawer-head .sub{font-size:.8rem;color:var(--ink-soft);font-weight:600}
.drawer-close{width:38px;height:38px;border-radius:var(--radius-sm);display:flex;
  align-items:center;justify-content:center;border:1px solid var(--line)}
.drawer-close:hover{background:var(--surface-2)}
.drawer-close svg{width:18px;height:18px}
.drawer-body{flex:1;overflow-y:auto;padding:16px 22px}
.drawer-empty{
  display:flex;flex-direction:column;align-items:center;text-align:center;
  padding:40px 20px;color:var(--ink-soft);
}
.drawer-empty svg{width:48px;height:48px;opacity:.3;margin-bottom:14px}
.drawer-empty p{font-size:.88rem;line-height:1.5}
.q-item{
  display:flex;align-items:center;gap:12px;padding:10px 0;
  border-bottom:1px solid var(--line);
}
.q-item img{width:56px;height:40px;border-radius:6px;object-fit:cover}
.q-item .qi-info{flex:1;min-width:0}
.qi-brand{font-size:.68rem;text-transform:uppercase;letter-spacing:.06em;color:var(--orange);font-weight:700}
.qi-model{font-family:var(--font-head);font-weight:700;font-size:.92rem;line-height:1.3}
.qi-name{font-size:.78rem;color:var(--ink-soft)}
.qi-remove{
  width:32px;height:32px;flex-shrink:0;display:flex;align-items:center;justify-content:center;
  border-radius:6px;border:1px solid var(--line);transition:.15s;
}
.qi-remove:hover{background:#fef0f0;border-color:var(--crimson);color:var(--crimson)}
.qi-remove svg{width:14px;height:14px}

/* ---------- Drawer foot ---------- */
.drawer-foot{padding:18px 22px 22px;border-top:1px solid var(--line);background:var(--surface-2)}
.field{margin-bottom:12px}
.field label{display:block;font-weight:700;font-size:.82rem;margin-bottom:4px;color:var(--ink)}
.field input,.field select,.field textarea{
  width:100%;padding:10px 13px;border:1px solid var(--line);
  border-radius:var(--radius-sm);font-family:var(--font);font-size:.9rem;
  background:#fff;transition:.15s;
}
.field input:focus,.field select:focus,.field textarea:focus{outline:0;border-color:var(--navy);box-shadow:0 0 0 3px rgba(36,60,120,.1)}
.field textarea{resize:vertical;min-height:70px}
.send-wa{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  width:100%;padding:13px 18px;border-radius:var(--radius-sm);
  font-weight:700;font-size:.95rem;transition:.15s;
  background:var(--wa);color:#fff;
  box-shadow:0 4px 14px rgba(37,211,102,.3);
}
.send-wa:hover:not(:disabled){background:var(--wa-deep);transform:translateY(-1px)}
.send-wa:disabled{background:#bbb;color:#888;box-shadow:none;cursor:not-allowed}
.send-wa svg{width:18px;height:18px}
.drawer-note{font-size:.74rem;color:var(--ink-soft);text-align:center;margin-top:10px}

/* ---------- Mobile Nav ---------- */
.mobile-nav{
  position:fixed;top:0;right:0;bottom:0;width:min(300px,85vw);z-index:75;
  background:#fff;box-shadow:-10px 0 50px rgba(18,27,56,.25);
  display:flex;flex-direction:column;padding:16px 0;
  transform:translateX(105%);transition:transform .28s cubic-bezier(.4,0,.2,1);
}
.mobile-nav.show{transform:translateX(0)}
.mn-head{
  display:flex;align-items:center;justify-content:space-between;
  padding:4px 20px 14px;border-bottom:1px solid var(--line);margin-bottom:6px;
}
.mn-head strong{font-family:var(--font-head);font-size:1.1rem}
.mobile-nav a{
  display:block;padding:14px 20px;font-weight:600;font-size:.95rem;
  border-bottom:1px solid var(--line);transition:.1s;
}
.mobile-nav a:hover{background:var(--surface-2)}
.mobile-nav .tel-link,.mobile-nav a:last-child{border-bottom:0}

/* ---------- Footer ---------- */
.site-footer{padding:clamp(36px,6vw,60px) 0 28px;background:var(--ink);color:#c5cbe8}
.site-footer h4{color:#fff;font-size:.95rem;margin-bottom:10px}
.footer-grid{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:32px;margin-bottom:30px}
.footer-brand p{font-size:.85rem;line-height:1.55;margin-top:8px}
.footer-contact li{display:flex;align-items:center;gap:8px;margin-bottom:8px;font-size:.88rem}
.footer-contact li svg{width:15px;height:15px;flex-shrink:0;opacity:.7}
.footer-contact a{color:inherit}
.footer-contact a:hover{color:#fff}
.site-footer ul li{font-size:.85rem;margin-bottom:6px;color:#c5cbe8}
.footer-bottom{
  display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;
  padding-top:20px;border-top:1px solid rgba(255,255,255,.1);
  font-size:.78rem;color:rgba(255,255,255,.5);
}
.footer-credit{text-align:center;margin-top:16px;font-size:.74rem;color:rgba(255,255,255,.35)}
.footer-credit a{color:rgba(255,255,255,.55);text-decoration:underline}
.footer-credit a:hover{color:#fff}

/* No results */
.no-results{text-align:center;padding:50px 20px;color:var(--ink-soft);font-size:.92rem;line-height:1.6}
.no-results b{display:block;font-size:1rem;color:var(--ink);margin-bottom:6px}

/* ---------- Responsive ---------- */
@media(max-width:860px){
  .nav,.header-cta{display:none}
  .hamburger{display:flex}
  .hero-inner{grid-template-columns:1fr;gap:32px}
  .hero-visual{justify-content:center}
  .hero-card{max-width:100%}
  .values{grid-template-columns:repeat(2,1fr)}
  .installer-block{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr 1fr}
  .strip{padding:clamp(28px,5vw,44px) 0}
}
@media(max-width:540px){
  .hero h1{font-size:1.7rem}
  .hero .lede{font-size:.94rem}
  .hero-trust{gap:10px}
  .trust-item{font-size:.74rem}
  .hero-actions{flex-direction:column}
  .btn{justify-content:center}
  .values{grid-template-columns:1fr}
  .grid{grid-template-columns:1fr}
  .installer-block{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr}
  .footer-bottom{flex-direction:column;text-align:center}
  .cat-section-head h3{font-size:1rem}
  .quote-bar{padding:12px 16px}
  .qb-info b{font-size:1.2rem}
  .open-quote{font-size:.82rem;padding:9px 14px}
}