/*
Theme Name: Solar Assist
Theme URI: https://solarassist.com.ua
Author: Digital Agency WOWNOW.BIZ
Author URI: https://wownow.biz
Description: Кастомна тема для Solar Assist (бренд Storyge Energy). Bootstrap 5.3, DM Sans + DM Mono, темний акцент #171a1d, жовтий #f0c300.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: Private
Text Domain: solarassist
*/

/* ─── CSS VARIABLES ─────────────────────────────────── */
:root {
  --blk: #171a1d;
  --wh: #fff;
  --g100: #f4f4f4;
  --g200: #e8e8e8;
  --g300: #d0d0d0;
  --g400: #959595;
  --g600: #5c5c5c;
  --g800: #2e2e2e;
  --yw: #f0c300;
  --yw2: #c9a400;
  --f: 'DM Sans', sans-serif;
  --fm: 'DM Mono', monospace;
  --nh: 64px;
  --r: 12px;
  --r-lg: 20px;
  --r-pill: 980px;
  --bs-body-font-family: var(--f);
  --bs-body-color: var(--blk);
}

html { scroll-behavior: smooth; }
body { font-family: var(--f); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }

/* ─── NAV ───────────────────────────────────────────── */
#mainNav {
  height: var(--nh);
  background: var(--wh) !important;
  border-bottom: 1px solid var(--g200);
  padding: 0;
}
#mainNav .navbar-brand { flex-shrink: 0; display: flex; align-items: center; }
#mainNav .navbar-brand img { height: 32px; width: auto; }
#mainNav .nav-link {
  font-family: var(--f);
  font-size: 12px;
  color: var(--g600) !important;
  letter-spacing: .04em;
  padding: 0 16px !important;
  height: var(--nh);
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  transition: color .15s;
  white-space: nowrap;
  text-decoration: none;
}
#mainNav .nav-link:hover { color: var(--blk) !important; }
#mainNav .nav-link.active { color: var(--blk) !important; border-bottom-color: var(--blk); }
.nav-btn {
  font-family: var(--fm);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 8px 18px;
  border: 1px solid;
  cursor: pointer;
  transition: all .15s;
  border-radius: 0 !important;
  text-decoration: none;
  white-space: nowrap;
}
.nav-btn-outline { background: var(--g100); color: var(--blk); border-color: transparent; border-radius: var(--r-pill) !important; }
.nav-btn-outline:hover { background: var(--g200); color: var(--blk); border-color: transparent; }
.nav-btn-yw { background: var(--blk); color: var(--wh) !important; border-color: transparent; border-radius: var(--r-pill) !important; }
.nav-btn-yw:hover { background: var(--g800); border-color: transparent; }

/* Mobile nav */
@media (max-width: 800px) {
  #mainNav { height: auto !important; padding: 0 !important; }
  #mainNav > .container-fluid { height: 56px; padding-left: 20px !important; padding-right: 20px !important; flex-wrap: nowrap !important; }
  #navToggler { display: flex !important; flex-direction: column; justify-content: center; }
  #navMenu { display: none !important; flex-direction: column !important; align-items: stretch !important; position: absolute; top: 56px; left: 0; right: 0; background: var(--wh); border-bottom: 1px solid var(--g200); padding: 8px 0 16px; z-index: 999; box-shadow: 0 8px 24px rgba(0,0,0,.08); }
  #navMenu.open { display: flex !important; }
  #navMenu > div:first-child { flex-direction: column !important; align-items: stretch !important; gap: 0 !important; }
  #navMenu .nav-link { height: auto !important; padding: 12px 20px !important; border-bottom: 1px solid var(--g100) !important; font-size: 13px !important; }
  #navMenu .nav-link:last-child { border-bottom: none !important; }
  #navMenu > div:last-child { flex-direction: column !important; padding: 12px 20px 0; gap: 8px !important; }
  #navMenu .nav-btn { width: 100%; text-align: center; }
}

/* ─── SLIDE ──────────────────────────────────────────── */
.slide { min-height: 100vh; display: flex; flex-direction: column; background: var(--wh); padding: calc(var(--nh) + 16px) 24px 0; }
.slide-photo { width: 100%; height: 62vh; min-height: 380px; overflow: hidden; position: relative; border-radius: var(--r-lg); }
.slide-img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; filter: brightness(.96) contrast(1.02) saturate(.92); display: block; }
.slide-content { background: var(--wh); padding: 40px 8px 56px; flex: 1; }
.s-tag { font-family: var(--f); font-size: 14px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--g400); margin-bottom: 8px; display: block; }
.s-ttl { font-size: clamp(30px, 4vw, 52px); font-weight: 600; letter-spacing: -.03em; line-height: 1.06; margin-bottom: 12px; color: var(--blk); }
.s-ttl em { font-style: normal; color: var(--blk); }
.s-sub { font-size: 16px; font-weight: 400; line-height: 1.6; max-width: 620px; margin-bottom: 28px; color: var(--g600); }
.msr { display: flex; gap: 0; margin-bottom: 28px; flex-wrap: wrap; }
.ms { padding: 0 28px; border-right: 1px solid var(--g200); text-align: left; }
.ms:first-child { padding-left: 0; }
.ms:last-child { border-right: none; }
.ms-v { font-family: var(--f); font-size: 20px; font-weight: 600; letter-spacing: -.02em; display: block; color: var(--blk); }
.ms-v em { color: var(--g600); font-style: normal; font-size: 13px; font-weight: 400; }
.ms-l { font-size: 12px; display: block; margin-top: 2px; color: var(--g400); }

/* Buttons */
.btn-slide-wh { font-family: var(--f); font-size: 15px; font-weight: 500; background: var(--blk); color: var(--wh); border: none; padding: 12px 28px; border-radius: var(--r-pill); display: inline-flex; align-items: center; gap: 8px; transition: background .15s, transform .1s; }
.btn-slide-wh:hover { background: var(--g800); color: var(--wh); transform: scale(1.02); }
.btn-slide-gh { font-family: var(--f); font-size: 15px; font-weight: 500; background: var(--g100); color: var(--blk); border: none; padding: 12px 28px; border-radius: var(--r-pill); display: inline-flex; align-items: center; gap: 8px; transition: background .15s, transform .1s; }
.btn-slide-gh:hover { background: var(--g200); color: var(--blk); transform: scale(1.02); }

/* ─── SPECS BAND ─────────────────────────────────────── */
.specs-band { background: var(--wh); border-top: 1px solid var(--g200); border-bottom: 1px solid var(--g200); }
.sb-col { padding: 32px 40px; border-right: 1px solid var(--g200); }
.sb-col:last-child { border-right: none; }
.sb-val { font-family: var(--f); font-size: 28px; font-weight: 600; color: var(--blk); display: block; letter-spacing: -.02em; margin-bottom: 4px; }
.sb-val em { color: var(--g400); font-style: normal; font-size: 15px; font-weight: 400; }
.sb-key { font-size: 12px; color: var(--g400); }

/* ─── ANIMATIONS ──────────────────────────────────────── */
@keyframes hi { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:none} }
.a1{animation:hi .9s ease both}
.a2{animation:hi .9s .12s ease both}
.a3{animation:hi .9s .24s ease both}
.a4{animation:hi .9s .36s ease both}

/* ─── SECTION TITLES ─────────────────────────────────── */
.sec-title { font-size: clamp(28px, 3.5vw, 48px); font-weight: 600; letter-spacing: -.03em; line-height: 1.08; margin-bottom: 12px; color: var(--blk); }
.sec-lead { font-size: 16px; color: var(--g600); line-height: 1.65; max-width: 560px; font-weight: 400; }
.rev { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.rev.vis { opacity: 1; transform: none; }

/* ─── CALC ───────────────────────────────────────────── */
.calc-card { background: var(--g100); border: none; padding: 32px; border-radius: var(--r-lg); }
.cf-field { margin-bottom: 20px; }
.cf-label { display: flex; justify-content: space-between; font-size: 13px; color: var(--g600); margin-bottom: 8px; }
.cf-label span { font-weight: 500; color: var(--blk); font-size: 13px; }
input[type=range] { width: 100%; -webkit-appearance: none; height: 3px; background: var(--g200); outline: none; cursor: pointer; border-radius: 2px; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--blk); cursor: pointer; transition: transform .15s; }
input[type=range]:hover::-webkit-slider-thumb { transform: scale(1.15); }
.cf-sel, .cf-inp { width: 100%; padding: 11px 16px; background: var(--wh); border: none; color: var(--blk); font-family: var(--f); font-size: 14px; outline: none; transition: box-shadow .2s; border-radius: var(--r); box-shadow: 0 0 0 1px var(--g200); }
.cf-sel:focus, .cf-inp:focus { box-shadow: 0 0 0 2px var(--blk); }
.cf-submit { width: 100%; padding: 14px 24px; background: var(--blk); color: var(--wh); font-family: var(--f); font-size: 15px; font-weight: 500; border: none; cursor: pointer; transition: background .15s, transform .1s; border-radius: var(--r-pill); }
.cf-submit:hover { background: var(--g800); transform: scale(1.01); }
.cf-note { font-size: 12px; color: var(--g400); text-align: center; margin-top: 8px; }
.seg-btn { font-family: var(--f); font-size: 13px; font-weight: 500; padding: 9px 12px; background: var(--wh); border: none; color: var(--g600); cursor: pointer; transition: all .15s; width: 100%; border-radius: var(--r); box-shadow: 0 0 0 1px var(--g200); }
.seg-btn:hover { color: var(--blk); box-shadow: 0 0 0 1px var(--g400); }
.seg-btn.active { background: var(--blk); color: var(--wh); box-shadow: none; }
.res-panel { display: flex; flex-direction: column; gap: 12px; }
.res-hero { background: var(--g100); border-radius: var(--r-lg); padding: 28px 32px; }
.res-label { font-size: 12px; color: var(--g400); margin-bottom: 4px; }
.res-val { font-family: var(--f); font-size: 48px; font-weight: 600; letter-spacing: -.03em; color: var(--blk); line-height: 1; }
.res-unit { font-size: 16px; font-weight: 400; color: var(--g600); margin-left: 4px; }
.res-sub { font-size: 13px; color: var(--g600); margin-top: 8px; }
.res-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.ri { background: var(--g100); border-radius: var(--r); padding: 16px; text-align: center; }
.ri-v { font-family: var(--f); font-size: 20px; font-weight: 600; display: block; letter-spacing: -.02em; color: var(--blk); }
.ri-l { font-size: 11px; color: var(--g400); display: block; margin-top: 3px; }
.chart-wrap { background: var(--g100); border-radius: var(--r-lg); padding: 20px; }
.chart-wrap-lbl { font-size: 11px; color: var(--g400); margin-bottom: 12px; }

/* ─── FINANCING ──────────────────────────────────────── */
.fc-grid { display: flex; flex-wrap: wrap; gap: 16px; }
.fc { background: var(--g100); border-radius: var(--r-lg); padding: 40px 36px; transition: background .2s, transform .15s; flex: 1 1 220px; }
.fc:hover { background: var(--g200); transform: translateY(-2px); }
.fc.feat { background: var(--blk); }
.fc.feat:hover { background: var(--g800); transform: translateY(-2px); }
.fc-p { font-size: 12px; font-weight: 600; color: var(--yw); margin-bottom: 16px; }
.fc-t { font-size: 22px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 10px; color: var(--blk); }
.fc.feat .fc-t { color: var(--wh); }
.fc-s { font-size: 15px; line-height: 1.65; margin-bottom: 10px; color: var(--g600); }
.fc.feat .fc-s { color: rgba(255,255,255,.6); }
.fc-d { font-size: 13px; line-height: 1.65; color: var(--g400); }
.fc.feat .fc-d { color: rgba(255,255,255,.35); }
.fc-num { font-size: 12px; color: var(--g300); margin-bottom: 16px; display: block; }

/* ─── WHY GRID ───────────────────────────────────────── */
.why-grid { display: flex; flex-wrap: wrap; gap: 16px; }
.wc { background: var(--g100); border-radius: var(--r-lg); padding: 40px 36px; transition: background .2s, transform .15s; flex: 1 1 280px; }
.wc:hover { background: var(--g200); transform: translateY(-2px); }
.wc-n { font-size: 12px; font-weight: 500; color: var(--g400); margin-bottom: 16px; }
.wc-t { font-size: 20px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 10px; color: var(--blk); }
.wc-d { font-size: 15px; color: var(--g600); line-height: 1.7; }

/* ─── PROCESS ────────────────────────────────────────── */
.proc-steps { display: flex; flex-wrap: wrap; gap: 16px; position: relative; }
.pst { background: var(--g100); border-radius: var(--r-lg); padding: 40px 28px 32px; text-align: center; flex: 1 1 160px; transition: background .2s, transform .15s; }
.pst:hover { background: var(--g200); transform: translateY(-2px); }
.ps-num { width: 52px; height: 52px; border-radius: 50%; background: var(--wh); display: flex; align-items: center; justify-content: center; font-family: var(--f); font-size: 18px; font-weight: 600; margin: 0 auto 20px; position: relative; z-index: 1; transition: all .2s; color: var(--blk); }
.pst:hover .ps-num { background: var(--blk); color: var(--wh); }
.ps-t { font-size: 15px; font-weight: 600; margin-bottom: 8px; color: var(--blk); }
.ps-s { font-size: 13px; color: var(--g600); line-height: 1.65; margin-bottom: 10px; }
.ps-d { font-size: 12px; color: var(--g400); font-weight: 500; }

/* ─── CASES ──────────────────────────────────────────── */
.cc-grid { display: flex; flex-wrap: wrap; gap: 16px; }
.cc { background: var(--g100); border-radius: var(--r-lg); overflow: hidden; transition: background .2s, transform .15s; flex: 1 1 280px; }
.cc:hover { background: var(--g200); transform: translateY(-2px); }
.cc-th { height: 220px; position: relative; overflow: hidden; display: flex; align-items: flex-end; justify-content: flex-start; padding: 20px 24px; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.cc-lbl { font-size: 11px; color: rgba(80,80,80,0.6); position: relative; z-index: 1; }
.cc-body { padding: 24px 28px 28px; }
.cc-type { font-size: 11px; color: var(--g400); margin-bottom: 8px; font-weight: 500; }
.cc-name { font-size: 17px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 16px; line-height: 1.35; color: var(--blk); }
.cc-f { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--g200); padding-top: 14px; }
.cf2 { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,.04); font-size: 13px; }
.cf2:last-child { border-bottom: none; }
.cf2-k { color: var(--g600); }
.cf2-v { font-weight: 600; color: var(--blk); }
.cf2-v.yw { color: var(--yw2); }

/* ─── STATS BAND ─────────────────────────────────────── */
.stats-band { background: var(--g100); border-top: 1px solid var(--g200); border-bottom: 1px solid var(--g200); }
.sti { padding: 48px 32px; text-align: center; border-right: 1px solid var(--g200); }
.sti:last-child { border-right: none; }
.sti-v { font-family: var(--f); font-size: 48px; font-weight: 600; letter-spacing: -.04em; color: var(--blk); line-height: 1; }
.sti-u { font-size: 24px; font-weight: 300; color: var(--g400); }
.sti-l { font-size: 13px; color: var(--g400); margin-top: 8px; font-weight: 400; }

/* ─── CTA ────────────────────────────────────────────── */
.cta-sec { background: var(--g100); border-top: 1px solid var(--g200); padding: 88px 0; }
.cta-inp { flex: 1; padding: 13px 18px; background: var(--wh); border: none; color: var(--blk); font-family: var(--f); font-size: 15px; outline: none; transition: box-shadow .2s; border-radius: var(--r-pill); box-shadow: 0 0 0 1px var(--g200); }
.cta-inp::placeholder { color: var(--g400); }
.cta-inp:focus { box-shadow: 0 0 0 2px var(--blk); }
.cta-sub { font-family: var(--f); font-size: 15px; font-weight: 500; background: var(--blk); color: var(--wh); border: none; padding: 13px 28px; cursor: pointer; white-space: nowrap; transition: background .15s, transform .1s; border-radius: var(--r-pill); }
.cta-sub:hover { background: var(--g800); transform: scale(1.02); }

/* ─── FOOTER ─────────────────────────────────────────── */
.site-footer { background: var(--blk); padding: 36px 0; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.footer-logo img { height: 28px; width: auto; }
.fnav { display: flex; gap: 24px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.fnav a { font-size: 13px; color: var(--g600); transition: color .15s; }
.fnav a:hover { color: var(--g300); }
.fcopy { font-size: 12px; color: var(--g800); }

/* ─── CONTAINER ──────────────────────────────────────── */
.container-fluid.px-section { padding-left: 64px !important; padding-right: 64px !important; }

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 800px) {
  .container-fluid.px-section { padding-left: 24px !important; padding-right: 24px !important; }
  .slide-photo { height: 48vw; min-height: 240px; }
  .slide-content { padding: 32px 0 40px; }
  .s-ttl { font-size: clamp(24px, 5.5vw, 40px); }
  .s-sub { font-size: 14px; }
  .msr { flex-wrap: wrap; }
  .ms { border-right: none; padding: 0 20px 0 0; }
  .site-footer .d-flex { flex-direction: column; align-items: flex-start; gap: 16px; }
  .fnav { gap: 12px 20px; }
  section { padding-top: 56px !important; padding-bottom: 48px !important; }
  .sec-title { font-size: clamp(22px, 5vw, 36px); }
  .sti { flex: 0 0 50%; max-width: 50%; border-right: none; border-bottom: 1px solid var(--g200); padding: 28px 16px; }
  .sti:nth-child(odd) { border-right: 1px solid var(--g200); }
  .sti:nth-last-child(-n+2) { border-bottom: none; }
  .sti-v { font-size: 32px; }
  .fc { flex: 0 0 50%; max-width: 50%; padding: 28px 24px; }
  .wc { flex: 0 0 50%; max-width: 50%; padding: 28px 24px; }
  .pst { flex: 0 0 50%; max-width: 50%; padding: 32px 20px 24px; }
  .cc { flex: 0 0 50%; max-width: 50%; }
  .cc-th { height: 180px; }
  .calc-card { padding: 20px; }
  .res-val { font-size: 34px; }
}
@media (max-width: 540px) {
  .fc { flex: 0 0 100%; max-width: 100%; }
  .wc { flex: 0 0 100%; max-width: 100%; }
  .cc { flex: 0 0 100%; max-width: 100%; }
  .pst { flex: 0 0 100%; max-width: 100%; }
}
@media (max-width: 480px) {
  .slide-photo { height: 56vw; min-height: 200px; }
  .slide-content { padding: 24px 0 32px; }
  .s-ttl { font-size: clamp(22px, 7vw, 34px); }
  .s-sub { display: none; }
  .msr { display: none; }
  section { padding-top: 40px !important; padding-bottom: 36px !important; }
  .sti { flex: 0 0 100%; max-width: 100%; }
}
