/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --primary: #1e3a5f;
  --primary-light: #2d5a8e;
  --green: #22c55e;
  --green-dark: #16a34a;
  --bg: #ffffff;
  --bg-alt: #f0fdf4;
  --bg-dark: #0f172a;
  --text: #1e293b;
  --text-light: #64748b;
  --text-inv: #f8fafc;
  --border: #e2e8f0;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.04);
  --shadow-lg: 0 4px 12px rgba(0,0,0,.1), 0 12px 32px rgba(0,0,0,.06);
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --container: 1100px;
  --container-narrow: 700px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }
img, svg { max-width: 100%; display: block; }

/* ── Skip Link ── */
.skip-link {
  position: absolute; top: -100%; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; padding: .5rem 1rem;
  border-radius: var(--radius-sm); font-size: .85rem; font-weight: 600;
  z-index: 200; transition: top .2s;
}
.skip-link:focus { top: .5rem; }

/* ── Container ── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 1.5rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font); font-weight: 600; font-size: .95rem;
  padding: .65rem 1.5rem; border-radius: var(--radius-sm);
  border: 2px solid transparent; cursor: pointer;
  transition: all .2s; white-space: nowrap;
}
.btn-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(245,158,11,.3); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; transform: translateY(-1px); }
.btn-lg { padding: .85rem 2rem; font-size: 1.05rem; }
.btn-sm { padding: .45rem 1.1rem; font-size: .85rem; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; height: 72px;
}
.logo { font-weight: 800; font-size: 1.2rem; color: var(--primary); }
.nav-list { display: flex; align-items: center; gap: 2rem; }
.nav-list a { font-size: .9rem; font-weight: 500; color: var(--text-light); transition: color .2s; }
.nav-list a:hover { color: var(--primary); }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

/* ── Hero ── */
.hero {
  padding: 5rem 0 4rem;
  background: linear-gradient(135deg, #fffbeb 0%, #f0fdf4 50%, #eff6ff 100%);
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800;
  color: var(--primary); margin-bottom: 1.2rem;
}
.highlight { color: var(--accent-hover); }
.hero-sub {
  font-size: 1.15rem; color: var(--text-light);
  max-width: 520px; margin-bottom: 2rem; line-height: 1.7;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-stats { display: flex; gap: 2.5rem; }
.stat { display: flex; flex-direction: column; }
.stat strong { font-size: 1.6rem; font-weight: 800; color: var(--primary); }
.stat span { font-size: .82rem; color: var(--text-light); font-weight: 500; }
.hero-visual { display: flex; justify-content: center; align-items: center; }
.solar-panel-graphic svg {
  width: 100%; max-width: 400px;
  filter: drop-shadow(0 8px 24px rgba(30,58,95,.15));
}

/* ── Sections ── */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem); color: var(--primary); margin-bottom: .75rem;
}
.section-header p {
  font-size: 1.1rem; color: var(--text-light); max-width: 520px; margin: 0 auto;
}
.page-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--primary); margin-bottom: .5rem;
}
.page-intro { color: var(--text-light); font-size: 1.05rem; margin-bottom: 2.5rem; }

/* ── Intro Prose ── */
.intro-prose p {
  font-size: 1.05rem; color: var(--text); line-height: 1.8; margin-bottom: 1rem;
}
.intro-prose p:last-child { margin-bottom: 0; }
.intro-prose strong { color: var(--primary); font-weight: 600; }

/* ── Steps ── */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.step-card {
  position: relative; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem 1.5rem; text-align: center;
  box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.step-number {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  width: 32px; height: 32px; background: var(--green); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .85rem;
}
.step-icon { color: var(--primary); margin: .5rem auto 1rem; width: 48px; display: flex; justify-content: center; }
.step-card h3 { font-size: 1.15rem; margin-bottom: .6rem; color: var(--primary); }
.step-card p { font-size: .92rem; color: var(--text-light); line-height: 1.6; }

/* ── Benefits ── */
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.benefit-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.8rem 1.5rem;
  box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.benefit-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.benefit-icon { margin-bottom: 1rem; }
.benefit-card h3 { font-size: 1.05rem; margin-bottom: .5rem; color: var(--primary); }
.benefit-card p { font-size: .9rem; color: var(--text-light); line-height: 1.6; }

/* ── Post Grid ── */
.post-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.post-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.post-card-img { display: block; overflow: hidden; }
.post-card-img img {
  width: 100%; height: 200px; object-fit: cover;
  transition: transform .3s;
}
.post-card:hover .post-card-img img { transform: scale(1.03); }
.post-card-body { padding: 1.5rem; }
.post-meta { display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; flex-wrap: wrap; }
.post-meta time { font-size: .8rem; color: var(--text-light); }
.tag {
  font-size: .7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .04em; background: #fef3c7; color: #92400e;
  padding: .15rem .5rem; border-radius: 4px;
}
.post-card h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.post-card h3 a { color: var(--primary); }
.post-card h3 a:hover { color: var(--accent-hover); }
.post-card p { font-size: .9rem; color: var(--text-light); line-height: 1.6; }
.read-more {
  display: inline-block; margin-top: .75rem;
  font-size: .85rem; font-weight: 600; color: var(--accent-hover);
}
.read-more:hover { text-decoration: underline; }

/* ── Page Grid ── */
.page-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.page-card {
  display: block; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
  text-decoration: none; color: inherit;
}
.page-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.page-card img {
  width: 100%; height: 160px; object-fit: cover;
}
.page-card-body { padding: 1.25rem; }
.page-card-body h3 { font-size: 1.1rem; color: var(--primary); margin-bottom: .35rem; }
.page-card-body p { font-size: .88rem; color: var(--text-light); line-height: 1.6; }

@media (max-width: 900px) {
  .page-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
}
@media (min-width: 601px) and (max-width: 900px) {
  .page-grid { grid-template-columns: repeat(2, 1fr); max-width: none; }
}

/* ── Single Post ── */
.post-title {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem); color: var(--primary); margin: .5rem 0 2rem;
}
.post-body.prose { margin-bottom: 3rem; }
.prose h2 { font-size: 1.3rem; color: var(--primary); margin: 2rem 0 .75rem; }
.prose h3 { font-size: 1.1rem; color: var(--primary); margin: 1.5rem 0 .5rem; }
.prose p { margin-bottom: 1rem; color: var(--text); font-size: .95rem; }
.prose ul, .prose ol { margin: 0 0 1rem 1.5rem; }
.prose li { margin-bottom: .4rem; font-size: .95rem; }
.prose a { color: var(--accent-hover); text-decoration: underline; }
.back-link {
  display: inline-block; margin-top: 2rem;
  font-size: .9rem; font-weight: 500; color: var(--text-light);
}
.back-link:hover { color: var(--primary); }

/* ── Post Hero Image ── */
.post-hero-img {
  width: 100%; border-radius: var(--radius); margin-bottom: 2rem;
}

/* ── Product CTA ── */
.product-cta { margin: 2rem 0; text-align: center; }

/* ── Loading Skeletons ── */
@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.skeleton-line {
  height: 14px; border-radius: 6px;
  background: linear-gradient(90deg, var(--border) 25%, #f1f0ed 37%, var(--border) 63%);
  background-size: 800px 100%;
  animation: shimmer 1.6s ease infinite;
}
.skeleton-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
}
.skeleton-card-img {
  width: 100%; height: 200px;
  background: linear-gradient(90deg, var(--border) 25%, #f1f0ed 37%, var(--border) 63%);
  background-size: 800px 100%;
  animation: shimmer 1.6s ease infinite;
}
.skeleton-card-body { padding: 1.5rem; display: flex; flex-direction: column; gap: .65rem; }
.skeleton-card-body .skeleton-line:nth-child(1) { width: 35%; height: 10px; }
.skeleton-card-body .skeleton-line:nth-child(2) { width: 80%; height: 18px; }
.skeleton-card-body .skeleton-line:nth-child(3) { width: 100%; }
.skeleton-card-body .skeleton-line:nth-child(4) { width: 90%; }
.skeleton-card-body .skeleton-line:nth-child(5) { width: 25%; height: 12px; margin-top: .25rem; }

/* Article skeleton */
.skeleton-article { max-width: 760px; margin: 3rem auto; padding: 0 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.skeleton-article .skeleton-line:nth-child(1) { width: 20%; height: 10px; }
.skeleton-article .skeleton-line:nth-child(2) { width: 70%; height: 32px; border-radius: 8px; }
.skeleton-article .skeleton-line:nth-child(3) { width: 50%; height: 14px; }
.skeleton-article .skeleton-hero {
  width: 100%; height: 300px; border-radius: var(--radius); margin: .5rem 0;
  background: linear-gradient(90deg, var(--border) 25%, #f1f0ed 37%, var(--border) 63%);
  background-size: 800px 100%;
  animation: shimmer 1.6s ease infinite;
}
.skeleton-article .skeleton-body { display: flex; flex-direction: column; gap: .6rem; margin-top: .5rem; }
.skeleton-article .skeleton-body .skeleton-line { width: 100%; }
.skeleton-article .skeleton-body .skeleton-line:nth-child(2) { width: 95%; }
.skeleton-article .skeleton-body .skeleton-line:nth-child(3) { width: 60%; }
.skeleton-article .skeleton-body .skeleton-line:nth-child(5) { width: 85%; }
.skeleton-article .skeleton-body .skeleton-line:nth-child(6) { width: 92%; }
.skeleton-article .skeleton-body .skeleton-line:nth-child(7) { width: 40%; }

/* ── Affiliate Box ── */
.affiliate-box {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 2px solid var(--accent);
  border-radius: var(--radius); padding: 2rem; margin: 2rem 0; text-align: center;
}
.affiliate-heading { font-size: 1.15rem; font-weight: 700; color: var(--primary); margin-bottom: .4rem; }
.affiliate-text { font-size: .9rem; color: var(--text-light); margin-bottom: 1.2rem; max-width: 440px; margin-left: auto; margin-right: auto; }
.affiliate-links { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* ── Deals Steps ── */
.deals-steps { margin: 2rem 0 2.5rem; }
.deal-step {
  display: flex; gap: 1.2rem; align-items: flex-start;
  padding: 1.2rem 0; border-bottom: 1px solid var(--border);
}
.deal-step:last-child { border-bottom: none; }
.step-num {
  flex-shrink: 0; width: 36px; height: 36px;
  background: var(--accent); color: #fff; font-weight: 700;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
}
.deal-step h3 { font-size: 1rem; color: var(--primary); margin-bottom: .25rem; }
.deal-step p { font-size: .9rem; color: var(--text-light); }
.deal-step a { color: var(--accent-hover); text-decoration: underline; }

/* ── Footer ── */
.site-footer {
  background: var(--bg-dark); color: var(--text-inv); padding: 3rem 0 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; margin-bottom: 2rem;
}
.footer-brand { font-weight: 700; font-size: 1rem; margin-bottom: .4rem; }
.footer-tagline { font-size: .82rem; color: rgba(255,255,255,.5); line-height: 1.6; max-width: 340px; }
.footer-grid h4 {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .06em;
  color: rgba(255,255,255,.35); margin-bottom: .75rem;
}
.footer-grid ul li { margin-bottom: .4rem; }
.footer-grid a { font-size: .88rem; color: rgba(255,255,255,.65); transition: color .2s; }
.footer-grid a:hover { color: #fff; }
.footer-copy {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.5rem; font-size: .78rem; color: rgba(255,255,255,.3); text-align: center;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { order: -1; }
  .solar-panel-graphic svg { max-width: 300px; }
  .steps-grid, .benefits-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 600px) {
  .nav-toggle { display: flex; }
  .nav-list {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; background: #fff;
    border-bottom: 1px solid var(--border); padding: 1.5rem; gap: 1rem;
    box-shadow: var(--shadow-lg);
  }
  .nav-list.is-open { display: flex; }
  .hero { padding: 3rem 0; }
  .hero-stats { gap: 1.5rem; }
  .stat strong { font-size: 1.3rem; }
  .section { padding: 3.5rem 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (min-width: 601px) and (max-width: 900px) {
  .benefits-grid { grid-template-columns: repeat(2, 1fr); max-width: none; }
  .steps-grid { grid-template-columns: repeat(3, 1fr); max-width: none; }
}

@media (min-width: 640px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}
