/* =============================================
   هزینه احداث نیروگاه خورشیدی — style.css
   ============================================= */

/* ---------- Variables ---------- */
:root{
  --primary:#00C6A9;
  --primary-dark:#00a68e;
  --accent:#F9E65C;
  --white:#ffffff;

  --grad:linear-gradient(135deg,#00C6A9,#00a68e);
  --navy:#0a2647;

  --bg:#f5f9f9;
  --panel:#ffffff;
  --ink:#123;
  --heading:#0d2b34;
  --muted:#4a5a60;
  --faint:#8a9aa0;
  --line:#e4edee;
  --soft:#eef7f6;
  --mint:#d6f5ef;

  --radius:18px;
  --radius-sm:12px;
  --shadow:0 6px 22px rgba(10,38,71,.07);
  --shadow-lg:0 18px 50px rgba(10,38,71,.13);
}

/* ---------- Scope Reset ---------- */
.sw-scope { font-family: 'Vazirmatn', Tahoma, sans-serif; color: var(--ink); line-height: 1.85; }
.sw-scope *, .sw-scope *::before, .sw-scope *::after { box-sizing: border-box; }
.sw-scope img { max-width: 100%; height: auto; }
.sw-scope a { color: var(--primary-dark); text-decoration: none; }
.sw-scope a:hover { text-decoration: underline; }
.sw-wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.ltr { direction: ltr; unicode-bidi: isolate; }

/* ---------- Reveal Animation ---------- */
.sw-reveal { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .65s ease; }
.sw-reveal.visible { opacity: 1; transform: translateY(0); }

/* ============ HERO ============ */
.sw-hero { padding: 0; margin-bottom: 0; }
.sw-hero-card {
  background: linear-gradient(135deg, #0a2647 0%, #114b5f 50%, #0d6e5e 100%);
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
  position: relative;
}
.sw-hero-card::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(249,230,92,.12), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(0,198,169,.15), transparent 40%);
  pointer-events: none;
}
.sw-hero-inner {
  position: relative; z-index: 1;
  max-width: 850px; margin: 0 auto;
  padding: 48px 28px 44px; text-align: center;
}
.sw-crumb { font-size: .82rem; color: rgba(255,255,255,.55); margin-bottom: 14px; }
.sw-crumb a { color: rgba(255,255,255,.65); }
.sw-crumb a:hover { color: #fff; text-decoration: underline; }
.sw-pill {
  display: inline-block;
  background: rgba(255,255,255,.1); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.18);
  color: var(--accent); font-size: .88rem; font-weight: 700;
  padding: 7px 20px; border-radius: 999px; margin-bottom: 18px;
}
.sw-hero h1 {
  color: #fff; font-size: clamp(1.55rem, 4vw, 2.3rem);
  font-weight: 900; line-height: 1.55; margin: 0 0 16px;
}
.sw-hero h1 em { font-style: normal; color: var(--accent); }
.sw-hero-lead {
  color: rgba(255,255,255,.82); font-size: 1rem;
  line-height: 1.95; margin-bottom: 26px; max-width: 750px; margin-inline: auto;
}
.sw-hero-stats {
  display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 22px;
}
.sw-hstat {
  background: rgba(255,255,255,.08); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px; padding: 14px 18px; text-align: center; min-width: 130px;
}
.sw-hstat .v { color: var(--accent); font-size: 1.35rem; font-weight: 900; }
.sw-hstat .v small { font-size: .7em; font-weight: 600; }
.sw-hstat .l { color: rgba(255,255,255,.6); font-size: .78rem; margin-top: 2px; }
.sw-hero-meta { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; font-size: .82rem; color: rgba(255,255,255,.5); }

/* ============ LAYOUT ============ */
.sw-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; margin-top: 36px; align-items: start; }
@media (max-width: 900px) { .sw-layout { grid-template-columns: 1fr; } .sw-aside { display: none; } }

/* ---------- Sidebar ---------- */
.sw-aside { position: relative; }
.sw-sticky { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 16px; }

.sw-box {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow);
}
.sw-box-head {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; border: none; background: var(--soft); cursor: pointer;
  padding: 14px 16px; font-weight: 800; font-size: .92rem; color: var(--heading);
  font-family: inherit;
}
.sw-box-head .arw { font-size: 1.1rem; transition: transform .3s; }
.sw-box-head.open .arw { transform: rotate(180deg); }
.sw-box-body { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.sw-box-body.open { max-height: 800px; }
.sw-box-inner { padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 2px; }
.sw-toc-link {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 8px; font-size: .87rem; color: var(--muted);
  border-right: 3px solid transparent; transition: .2s;
}
.sw-toc-link:hover, .sw-toc-link.active {
  background: var(--soft); color: var(--primary-dark);
  border-right-color: var(--primary); text-decoration: none;
}
.sw-toc-link .n {
  background: var(--soft); color: var(--primary-dark);
  width: 22px; height: 22px; border-radius: 6px;
  display: grid; place-items: center; font-size: .72rem; font-weight: 800; flex-shrink: 0;
}

.sw-side-cta {
  background: var(--navy); color: #fff; border-radius: var(--radius-sm);
  padding: 20px 18px; text-align: center;
}
.sw-side-cta h4 { font-size: .95rem; margin: 0 0 6px; }
.sw-side-cta p { font-size: .82rem; color: rgba(255,255,255,.6); margin: 0 0 10px; }
.sw-side-cta .phone { display: block; font-size: 1.15rem; font-weight: 900; color: var(--accent); margin-bottom: 12px; }
.btnrow { display: flex; gap: 8px; }
.mini {
  flex: 1; display: block; text-align: center;
  padding: 8px 0; border-radius: 8px; font-size: .82rem; font-weight: 700;
  background: var(--primary); color: #fff;
}
.mini:hover { text-decoration: none; opacity: .9; }
.mini.wa { background: #25d366; }

/* RATING */
.sw-rating{display:flex;align-items:center;gap:14px;flex-wrap:wrap;background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:16px 22px;box-shadow:var(--shadow);margin:10px 0 26px}
.sw-rating .score{font-size:34px;font-weight:900;color:var(--heading);line-height:1}
.sw-rating .stars{color:var(--accent);font-size:20px;letter-spacing:2px;-webkit-text-stroke:.5px #e0cf3f}
.sw-rating .votes{font-size:13px;color:var(--faint)}

/* ============ ARTICLE ============ */
.sw-article { min-width: 0; }

/* ---------- Section ---------- */
.sw-sec {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px 28px;
  margin-bottom: 28px; box-shadow: var(--shadow);
}
.sw-sec h2 {
  font-size: 1.3rem; font-weight: 900; color: var(--heading);
  margin: 0 0 18px; padding-bottom: 14px; border-bottom: 2px solid var(--line);
}
.sw-sec h3 {
  font-size: 1.05rem; font-weight: 800; color: var(--heading);
  margin: 24px 0 12px; padding-right: 12px; border-right: 4px solid var(--primary);
}
.sw-sec p { margin-bottom: 14px; }

.sw-card {
  background: linear-gradient(135deg, var(--soft), var(--mint));
  border-radius: var(--radius-sm); padding: 24px;
}
.sw-lead { font-size: 1.05rem; line-height: 2; }
.sw-mark { background: linear-gradient(to bottom, transparent 55%, rgba(0,198,169,.2) 55%); padding: 0 3px; font-weight: 800; }
.sw-phone-inline { color: var(--primary-dark); font-weight: 800; }
.sw-link { color: var(--primary-dark); font-weight: 700; border-bottom: 1px dashed var(--primary); }

/* ---------- Snippet ---------- */
.sw-snippet {
  background: linear-gradient(135deg, var(--mint), var(--soft));
  border: 2px solid var(--primary); border-radius: var(--radius-sm);
  padding: 26px 24px 22px; margin-bottom: 20px; position: relative;
}
.sw-snippet-badge {
  position: absolute; top: -13px; right: 18px;
  background: var(--primary); color: #fff;
  padding: 4px 14px; border-radius: 999px; font-size: .78rem; font-weight: 700;
}
.sw-snippet p { margin: 0; font-size: 1.02rem; }

/* ---------- Grid / Features ---------- */
.sw-grid { display: grid; gap: 16px; margin: 18px 0; }
.sw-g2 { grid-template-columns: repeat(2, 1fr); }
.sw-g3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 700px) { .sw-g2, .sw-g3 { grid-template-columns: 1fr; } }

.sw-feat {
  background: var(--soft); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 20px; transition: .25s;
}
.sw-feat:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-3px); }
.sw-feat.center { text-align: center; }
.sw-feat.compact { padding: 14px; }
.sw-feat.row { display: flex; gap: 14px; align-items: flex-start; text-align: right; }
.sw-feat h4 { font-size: .95rem; font-weight: 800; color: var(--heading); margin: 0 0 6px; }
.sw-feat p { font-size: .88rem; color: var(--muted); margin: 0; }

.sw-ico {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center; font-size: 1.5rem; flex-shrink: 0;
  background: var(--mint); margin-bottom: 10px;
}
.sw-feat.center .sw-ico { margin-inline: auto; }
.sw-feat.row .sw-ico { margin-bottom: 0; }
.sw-ico.amber { background: #fff3cd; }

/* ---------- Table ---------- */
.sw-table-wrap {
  overflow-x: auto; border: 1px solid var(--line);
  border-radius: var(--radius-sm); margin: 18px 0;
}
.sw-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.sw-table th {
  background: var(--navy); color: #fff;
  padding: 13px 16px; text-align: right; font-weight: 700; font-size: .88rem;
}
.sw-table td { padding: 13px 16px; border-bottom: 1px solid var(--line); }
.sw-table tbody tr:hover { background: var(--soft); }
.sw-table tbody tr.hi { background: var(--mint); }
.sw-table tbody tr.hi td { font-weight: 700; }
.sw-table-note { font-size: .82rem; color: var(--faint); margin-top: 8px; }

/* ---------- List ---------- */
.sw-list { padding-right: 22px; margin: 14px 0; }
.sw-list li { margin-bottom: 10px; }

/* ---------- Note ---------- */
.sw-note {
  display: flex; gap: 12px; align-items: flex-start;
  border-radius: var(--radius-sm); padding: 16px 18px; margin: 16px 0;
  font-size: .92rem;
}
.sw-note.tip { background: var(--soft); border-right: 4px solid var(--primary); }
.sw-note.warn { background: #fff8e1; border-right: 4px solid #ffc107; }
.sw-note.compact { padding: 12px 14px; font-size: .85rem; }
.sw-note .em { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }

/* ---------- Quote ---------- */
.sw-quote {
  background: linear-gradient(135deg, #fff8e1, #fff3cd);
  border-right: 5px solid var(--accent); border-radius: var(--radius-sm);
  padding: 20px 24px; font-style: italic; color: var(--muted);
  margin: 18px 0; line-height: 2;
}

/* ---------- Visual Bars ---------- */
.sw-bars { display: grid; gap: 14px; margin: 22px 0; }
.sw-bar-item { display: grid; gap: 6px; }
.sw-bar-label { font-size: .88rem; font-weight: 700; color: var(--heading); }
.sw-bar-track { height: 14px; background: var(--soft); border-radius: 999px; overflow: hidden; }
.sw-bar-fill {
  height: 100%; width: 0%; background: var(--grad);
  border-radius: 999px; transition: width 1.4s ease;
}
.sw-bar-fill.animated { width: calc(var(--w) * 1%); }
.sw-bar-val { font-size: .82rem; font-weight: 800; color: var(--primary-dark); }

/* ---------- Total Box ---------- */
.sw-total-box {
  text-align: center; padding: 28px;
  background: linear-gradient(135deg, var(--mint), var(--soft));
  border: 2px solid var(--primary); border-radius: var(--radius); margin: 22px 0;
}
.sw-total-box.industrial { background: linear-gradient(135deg, #e8eaf6, #c5cae9); border-color: #5c6bc0; }
.sw-total-label { font-size: .92rem; color: var(--muted); margin-bottom: 8px; }
.sw-total-value { font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 900; color: var(--heading); }

/* ---------- Price Cards ---------- */
.sw-price-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 20px 0; }
@media (max-width: 600px) { .sw-price-cards { grid-template-columns: 1fr; } }
.sw-price-card {
  background: var(--panel); border: 2px solid var(--line);
  border-radius: var(--radius); padding: 28px 22px; text-align: center;
  position: relative; transition: .3s;
}
.sw-price-card:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.sw-price-card.featured { border-color: var(--primary); background: linear-gradient(180deg, var(--mint), var(--panel)); }
.sw-price-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--primary); color: #fff;
  padding: 4px 14px; border-radius: 999px; font-size: .75rem; font-weight: 700;
}
.sw-price-kw { font-size: 1.5rem; font-weight: 900; color: var(--heading); margin-bottom: 10px; }
.sw-price-amount { font-size: 1.2rem; font-weight: 900; color: var(--primary-dark); margin-bottom: 18px; }
.sw-price-amount small { font-size: .78rem; font-weight: 600; color: var(--muted); }
.sw-price-card ul { list-style: none; padding: 0; text-align: right; }
.sw-price-card ul li {
  padding: 7px 0; font-size: .88rem; color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.sw-price-card ul li:last-child { border-bottom: none; }

/* ---------- Steps ---------- */
.sw-steps { display: grid; gap: 0; margin: 20px 0; position: relative; padding-right: 36px; }
.sw-steps::before {
  content: ''; position: absolute; right: 16px; top: 0; bottom: 0;
  width: 3px; background: var(--grad); border-radius: 2px;
}
.sw-step {
  position: relative; padding: 16px 18px 16px 16px;
  background: var(--soft); border: 1px solid var(--line);
  border-radius: var(--radius-sm); margin-bottom: 14px;
  opacity: 0; transform: translateX(18px); transition: .5s ease;
}
.sw-step.visible { opacity: 1; transform: translateX(0); }
.sw-step:last-child { margin-bottom: 0; }
.sw-step .num {
  position: absolute; right: -36px; top: 16px;
  width: 32px; height: 32px; background: var(--grad); color: #fff;
  border-radius: 50%; display: grid; place-items: center;
  font-weight: 900; font-size: .85rem; box-shadow: 0 4px 12px rgba(0,198,169,.3); z-index: 2;
}
.sw-step h4 { font-size: .98rem; font-weight: 800; color: var(--heading); margin: 0 0 4px; border: none; padding: 0; }
.sw-step p { font-size: .86rem; color: var(--muted); margin: 0; }

/* ---------- Pros/Cons ---------- */
.sw-pc { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 18px 0; }
@media (max-width: 600px) { .sw-pc { grid-template-columns: 1fr; } }
.sw-pc-col {
  border-radius: var(--radius); padding: 22px; border: 2px solid;
}
.sw-pc-col.pros { background: #f0fff8; border-color: #48bb78; }
.sw-pc-col.cons { background: #fff5f5; border-color: #fc8181; }
.sw-pc-col h4 { font-size: 1.05rem; font-weight: 900; margin: 0 0 14px; border: none; padding: 0; }
.sw-pc-col ul { list-style: none; padding: 0; }
.sw-pc-col ul li {
  padding: 7px 0; font-size: .9rem; color: var(--muted);
  border-bottom: 1px dashed var(--line);
}
.sw-pc-col ul li:last-child { border-bottom: none; }

/* ---------- FAQ ---------- */
.sw-faq-item {
  background: var(--soft); border: 1px solid var(--line);
  border-radius: var(--radius-sm); margin-bottom: 10px;
  overflow: hidden; cursor: pointer; transition: .3s;
}
.sw-faq-item:hover { border-color: var(--primary); }
.sw-faq-item.active { border-color: var(--primary); box-shadow: var(--shadow); }
.sw-faq-q {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; font-weight: 700; color: var(--heading);
}
.sw-faq-q .qi {
  width: 28px; height: 28px; background: var(--grad); color: #fff;
  border-radius: 50%; display: grid; place-items: center; font-size: .72rem;
  font-weight: 900; flex-shrink: 0;
}
.sw-faq-q .qt { flex: 1; font-size: .95rem; }
.sw-faq-q .qa { font-size: .7rem; color: var(--faint); transition: transform .3s; }
.sw-faq-item.active .sw-faq-q .qa { transform: rotate(180deg); }
.sw-faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .35s; padding: 0 18px; }
.sw-faq-item.active .sw-faq-a { max-height: 280px; padding: 0 18px 16px; }
.sw-faq-a p { font-size: .92rem; color: var(--muted); line-height: 2; margin: 0; }

/* ---------- Contact ---------- */
.sw-contact {
  background: linear-gradient(135deg, var(--navy), #154c79);
  color: #fff; border-radius: var(--radius); padding: 36px 28px;
  text-align: center; margin-bottom: 28px;
}
.sw-contact h2 { color: #fff; border: none; padding: 0; }
.sw-contact p { color: rgba(255,255,255,.8); }
.big-phone { display: block; font-size: 1.6rem; font-weight: 900; color: var(--accent); margin: 16px 0; }
.btns { display: flex; justify-content: center; gap: 12px; margin-bottom: 14px; }
.sw-btn {
  display: inline-block; padding: 13px 28px; border-radius: 999px;
  font-weight: 800; font-size: .95rem; transition: .25s;
  background: var(--primary); color: #fff; border: none; cursor: pointer;
}
.sw-btn:hover { opacity: .9; transform: translateY(-2px); text-decoration: none; }
.sw-btn.navy { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); }
.sw-btn.yellow { background: var(--accent); color: var(--navy); }
.sw-btn.lg { padding: 16px 36px; font-size: 1.1rem; }
.sw-author-line { font-size: .82rem; color: rgba(255,255,255,.5); margin: 0; }

/* ---------- CTA Banner ---------- */
.sw-cta-banner {
  background: var(--grad); border-radius: var(--radius);
  padding: 36px 28px; text-align: center; margin-bottom: 28px;
}
.sw-cta-banner h3 { color: #fff; font-size: 1.3rem; margin: 0 0 10px; }
.sw-cta-banner p { color: rgba(255,255,255,.85); margin: 0 0 18px; }


/* ---------- Related ---------- */
.sw-related { margin-bottom: 28px; }
.sw-related h3 {
  font-size: 1.15rem; font-weight: 900; color: var(--heading);
  margin: 0 0 16px; padding-right: 12px; border-right: 4px solid var(--primary);
}
.sw-rel-grid { display: grid; gap: 12px; }
.sw-rel {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-sm); transition: .3s; box-shadow: var(--shadow);
}
.sw-rel:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); transform: translateX(-4px); text-decoration: none; }
.sw-rel .thumb {
  width: 52px; height: 52px; background: var(--soft);
  border-radius: var(--radius-sm); display: grid; place-items: center;
  font-size: 1.6rem; flex-shrink: 0;
}
.sw-rel span:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.sw-rel .cat { font-size: .75rem; font-weight: 700; color: var(--primary); }
.sw-rel .name { font-size: .92rem; font-weight: 700; color: var(--heading); }
.sw-rel .meta { font-size: .8rem; color: var(--faint); }
.sw-rel .arrow { font-size: 1.1rem; color: var(--faint); flex-shrink: 0; transition: .3s; }
.sw-rel:hover .arrow { color: var(--primary); }

/* ---------- Rating ---------- */
.sw-rating {
  display: flex; align-items: center; gap: 14px; justify-content: center;
  padding: 20px; margin-bottom: 28px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-sm); box-shadow: var(--shadow);
}
.sw-rating .score { font-size: 2rem; font-weight: 900; color: var(--heading); }
.sw-rating .stars { color: #ffc107; font-size: 1.2rem; }
.sw-rating .votes { font-size: .82rem; color: var(--faint); }

/* ============ RESPONSIVE ============ */
@media (max-width: 700px) {
  .sw-hero-inner { padding: 36px 18px 32px; }
  .sw-sec { padding: 22px 18px; }
  .sw-hstat { min-width: 100px; padding: 10px 14px; }
  .sw-price-cards { grid-template-columns: 1fr; }
  .sw-steps { padding-right: 32px; }
  .sw-steps::before { right: 13px; }
  .sw-step .num { right: -32px; width: 28px; height: 28px; font-size: .78rem; }
}

@media (max-width: 480px) {
  .sw-hero h1 { font-size: 1.4rem; }
  .sw-hero-lead { font-size: .92rem; }
  .sw-hero-stats { gap: 8px; }
  .sw-hstat { min-width: 90px; }
  .btns { flex-direction: column; }
  .sw-pc { grid-template-columns: 1fr; }
}