/* ============================================================
   style.css — homesolarpanels.ie
   Palette: deep purple, teal/cyan, green accent, white background
   Fonts: Inter (headings) + DM Sans (body)
   Logo colours: purple #6B3FA0, teal #00B4C8, green #5CB85C
   ============================================================ */

/* ── CSS Variables ── */
:root {
  /* Brand colours — extracted from logo */
  --solar-purple:   #6B3FA0;   /* "HOME SOLAR" purple — primary brand */
  --solar-purple-d: #4e2d78;   /* darker purple — hover */
  --solar-teal:     #00B4C8;   /* "HOME SOLAR PANELS" teal — accent */
  --solar-teal-d:   #0098aa;   /* darker teal — hover */
  --solar-green:    #5CB85C;   /* ring green — positive indicators */
  --solar-green-d:  #449944;   /* darker green */

  /* Functional aliases */
  --brand-primary:  var(--solar-purple);
  --brand-hover:    var(--solar-purple-d);
  --accent:         var(--solar-teal);
  --accent-light:   #33c6d8;
  --gold:           var(--solar-teal);     /* reuse teal where muc used gold */
  --gold-light:     var(--accent-light);

  /* Page colours */
  --bg:             #F8FAFC;   /* near-white with slight blue tint */
  --bg-dark:        #EEF2F7;   /* slightly darker section bg */
  --white:          #FFFFFF;
  --dark-hero:      #0D1B2A;   /* very dark navy for hero/footer */

  /* Text */
  --text-dark:      #0D1B2A;   /* near-black */
  --text-mid:       #3D5068;   /* mid navy-grey */
  --text-light:     #7A90A8;   /* light grey */

  /* Border */
  --border:         #D8E4F0;

  /* Typography */
  --font-head:    'Inter', system-ui, sans-serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  /* Spacing */
  --section-pad:  5rem;
  --section-sm:   3rem;

  /* Layout */
  --container:    1200px;
  --radius:       8px;
  --radius-sm:    4px;
}

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

html { font-size: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-dark);
  background: var(--bg);
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--brand-primary); text-decoration: none; }
a:hover { color: var(--brand-hover); }

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── Screen reader only ── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

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

/* ── Eyebrow label ── */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

/* ── Section spacing ── */
.section     { padding: var(--section-pad) 0; }
.section-sm  { padding: var(--section-sm) 0; }

/* ── Section intro block ── */
.section-intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}
.section-intro h2 { margin-bottom: 0.75rem; }
.section-lead {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ── Section CTA ── */
.section-cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  text-decoration: none;
}
.btn-primary {
  background: var(--brand-primary);
  color: var(--white);
  border-color: var(--brand-primary);
}
.btn-primary:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  color: var(--white);
}
.btn-secondary {
  background: transparent;
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}
.btn-secondary:hover {
  background: var(--brand-primary);
  color: var(--white);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
  color: var(--white);
}
.btn-teal {
  background: var(--solar-teal);
  color: var(--white);
  border-color: var(--solar-teal);
}
.btn-teal:hover {
  background: var(--solar-teal-d);
  border-color: var(--solar-teal-d);
  color: var(--white);
}


/* ============================================================
   NAV
   ============================================================ */
.site-header {
  position: relative;
  z-index: 100;
}

.site-header--hero {
  position: absolute;
  top: 0; left: 0; right: 0;
}

.site-header--solid {
  position: sticky;
  top: 0;
  background: var(--dark-hero);
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  gap: 1rem;
}

.nav-logo { text-decoration: none; flex-shrink: 0; }
.nav-logo-img {
  display: block;
  height: 72px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  flex-wrap: wrap;
}
.nav-menu li a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
}
.nav-menu li a:hover {
  background: rgba(255,255,255,0.12);
  color: var(--white);
}
.nav-menu li a.nav-cta {
  background: var(--solar-teal);
  color: var(--white);
  padding: 0.5rem 1rem;
}
.nav-menu li a.nav-cta:hover { background: var(--solar-teal-d); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}
.nav-hamburger:hover { background: rgba(255,255,255,0.12); }
.hamburger-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-has-dropdown { position: relative; }

.nav-dropdown-toggle {
  display: flex !important;
  align-items: center;
  gap: 0.3rem;
}

.nav-chevron {
  flex-shrink: 0;
  transition: transform 0.2s ease;
  opacity: 0.7;
}

.nav-has-dropdown.is-open .nav-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 260px;
  background: var(--dark-hero);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  padding: 0.5rem 0;
  z-index: 300;
  list-style: none;
}

.nav-has-dropdown.is-open .nav-dropdown { display: block; }

.nav-dropdown li a {
  display: block;
  padding: 0.6rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(255,255,255,0.8);
  border-radius: 0;
  transition: background 0.15s, color 0.15s;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-dropdown li:last-child a { border-bottom: none; }
.nav-dropdown li a:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}

@media (max-width: 820px) {
  .nav-dropdown {
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: rgba(255,255,255,0.05);
    padding: 0;
    margin: 0.25rem 0 0.25rem 1rem;
    border-left: 2px solid var(--solar-teal);
  }
  .nav-has-dropdown.is-open .nav-dropdown { display: block; }
  .nav-dropdown li a { font-size: 0.9rem; padding: 0.55rem 1rem; }
  .nav-dropdown-toggle { justify-content: space-between; }
}

@media (max-width: 820px) {
  .nav-hamburger { display: flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(13,27,42,0.97);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0.25rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    z-index: 200;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu li a { font-size: 1rem; padding: 0.75rem 1rem; }
}


/* ============================================================
   HERO
   ============================================================ */
.hero-wrap { position: relative; }

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(13,27,42,0.90) 0%,
    rgba(13,27,42,0.72) 45%,
    rgba(13,27,42,0.45) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding-top: 8rem;
  padding-bottom: 5rem;
}

@media (max-width: 820px) { .hero-inner { padding-top: 6rem; } }

.hero-eyebrow { color: var(--accent-light); margin-bottom: 1rem; }

.hero-heading {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.hero-sub {
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--accent-light);
  margin-bottom: 1rem;
}

.hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Trust bar below hero CTAs */
.hero-trust {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
}
.hero-trust-item svg { color: var(--solar-green); flex-shrink: 0; }

@media (max-width: 600px) {
  .hero { min-height: 80vh; }
  .hero-inner { padding-top: 4rem; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { text-align: center; }
}


/* ============================================================
   WHAT WE COVER — 2×2 image-overlay cards
   ============================================================ */
.what-we-do { background: var(--white); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.feature-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/9;
  text-decoration: none;
  background: var(--dark-hero);
}

.feature-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}
.feature-card:hover .feature-card-img { transform: scale(1.05); }

.feature-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(13,27,42,0.88) 0%,
    rgba(13,27,42,0.45) 50%,
    rgba(13,27,42,0.15) 100%
  );
  transition: background 0.3s;
}
.feature-card:hover .feature-card-overlay {
  background: linear-gradient(
    to top,
    rgba(13,27,42,0.93) 0%,
    rgba(13,27,42,0.58) 55%,
    rgba(13,27,42,0.25) 100%
  );
}

/* Colour-block fallback for cards with no image */
.feature-card--purple { background: var(--solar-purple); }
.feature-card--teal   { background: #0d3a40; }
.feature-card--green  { background: #1a3a20; }
.feature-card--navy   { background: #0d1b2a; }

.feature-card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1.75rem;
  z-index: 2;
}

.feature-card h3 {
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 0.4rem;
  line-height: 1.2;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.feature-card p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.55;
  margin: 0;
}

.feature-card-arrow {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.feature-card-arrow svg {
  width: 18px;
  height: 18px;
  color: var(--dark-hero);
  transition: color 0.2s;
}
.feature-card:hover .feature-card-arrow {
  background: var(--solar-teal);
  transform: scale(1.08);
}
.feature-card:hover .feature-card-arrow svg { color: var(--white); }

@media (max-width: 640px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card  { aspect-ratio: 4/3; }
}


/* ============================================================
   NEWSLETTER BAND
   ============================================================ */
.newsletter-band {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
  background: var(--dark-hero);
}

/* Colour-based background — no image needed */
.newsletter-band-bg-colour {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0d1b2a 0%, #1a2f4a 50%, #0d2a35 100%);
}

.newsletter-band-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13,27,42,0.3);
}

.newsletter-band-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.newsletter-band-text { flex: 1; min-width: 280px; }

.newsletter-band-text .eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.newsletter-band-text .eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 4px;
  background: var(--solar-teal);
  border-radius: 2px;
  flex-shrink: 0;
}

.newsletter-band-text h2 {
  color: var(--white);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.newsletter-band-text h2 em {
  font-style: normal;
  color: var(--solar-teal);
}
.newsletter-band-text p {
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
  margin-bottom: 0;
  max-width: 400px;
  line-height: 1.65;
}

.newsletter-band-form {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.newsletter-band-form-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.newsletter-band-field {
  flex: 1;
  min-width: 140px;
}
.newsletter-band-form input,
.newsletter-band-form select {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.92);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 0.95rem;
  appearance: none;
  -webkit-appearance: none;
}
.newsletter-band-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
.newsletter-band-form select option { color: var(--text-dark); background: var(--white); }
.newsletter-band-form select optgroup { color: var(--text-light); font-weight: 600; font-size: 0.8rem; }
.newsletter-band-form input::placeholder { color: #999; }
.newsletter-band-form input:focus,
.newsletter-band-form select:focus {
  outline: 2px solid var(--solar-teal);
  background: var(--white);
}

.btn-newsletter {
  padding: 0.9rem 2rem;
  background: var(--solar-teal);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
  align-self: flex-start;
}
.btn-newsletter:hover {
  background: var(--solar-teal-d);
  transform: translateY(-1px);
}

@media (max-width: 860px) {
  .newsletter-band-inner { gap: 2.5rem; }
  .newsletter-band-form-row { flex-direction: column; }
  .newsletter-band-field { min-width: 0; }
  .btn-newsletter { align-self: stretch; text-align: center; }
}
@media (max-width: 600px) {
  .newsletter-band { padding: 3.5rem 0; }
  .newsletter-band-inner { flex-direction: column; gap: 2rem; }
  .newsletter-band-text, .newsletter-band-form { min-width: 0; width: 100%; }
}


/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal-page { background: var(--bg); }
.legal-page-inner { max-width: 800px; margin: 0 auto; }
.legal-page-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border);
}
.legal-page-header .breadcrumb { margin-bottom: 1rem; }
.legal-page-header h1 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin-bottom: 0.5rem; }
.legal-updated { font-size: 0.85rem; color: var(--text-light); margin: 0; }
.legal-content h2 {
  font-size: 1.15rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}
.legal-content p { font-size: 0.95rem; color: var(--text-mid); line-height: 1.75; margin-bottom: 1rem; }
.legal-content ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-content ul li { font-size: 0.95rem; color: var(--text-mid); line-height: 1.7; padding: 0.2rem 0; }
.legal-content a { color: var(--brand-primary); text-decoration: underline; text-underline-offset: 2px; }
.legal-content a:hover { color: var(--brand-hover); }


/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-page { background: var(--bg); }
.about-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.about-img-grid { display: flex; flex-direction: column; gap: 1rem; }
.about-img-main img { width: 100%; border-radius: var(--radius); box-shadow: 0 8px 32px rgba(13,27,42,0.12); display: block; }
.about-img-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.about-img-row img { width: 100%; border-radius: var(--radius); box-shadow: 0 4px 16px rgba(13,27,42,0.1); display: block; aspect-ratio: 4/3; object-fit: cover; }
.about-welcome { font-size: clamp(1.8rem, 3.5vw, 2.5rem); line-height: 1.15; margin-bottom: 1.25rem; }
.about-welcome-brand { color: var(--brand-primary); display: block; }
.about-page-text > p { color: var(--text-mid); line-height: 1.7; margin-bottom: 1.5rem; font-size: 0.975rem; }
.about-goals-box {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.75rem;
}
.about-goals-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg-dark); border: 2px solid var(--brand-primary);
  color: var(--brand-primary); font-size: 1.1rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.about-goals-box h3 { font-size: 1rem; margin-bottom: 0.6rem; }
.about-goals-box p { font-size: 0.875rem; color: var(--text-mid); line-height: 1.65; margin-bottom: 0.6rem; }
.about-pillars { display: flex; flex-direction: column; gap: 0.75rem; }
.about-pillar {
  background: var(--white); border: 1px solid var(--border);
  border-left: 3px solid var(--brand-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.25rem;
}
.about-pillar h3 { font-size: 0.95rem; margin-bottom: 0.4rem; }
.about-pillar p { font-size: 0.85rem; color: var(--text-mid); line-height: 1.65; margin-bottom: 0.5rem; }
.about-pillar-link { font-size: 0.8rem; font-weight: 600; color: var(--brand-primary); }
.about-pillar-link:hover { color: var(--brand-hover); }
@media (max-width: 860px) { .about-page-grid { grid-template-columns: 1fr; gap: 2.5rem; } }


/* ============================================================
   ALTERNATING CONTENT ROWS
   ============================================================ */
.content-row { background: var(--white); }
.content-row--alt { background: var(--bg-dark); }
.content-row-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.content-row--reverse .content-row-inner { direction: rtl; }
.content-row--reverse .content-row-inner > * { direction: ltr; }
.content-row-img img { width: 100%; border-radius: var(--radius); box-shadow: 0 8px 32px rgba(13,27,42,0.12); }
.content-row-text h2 { margin-bottom: 1rem; }
.content-row-text p { color: var(--text-mid); font-size: 1.05rem; line-height: 1.7; margin-bottom: 1rem; }
.content-row-text .btn { margin-top: 0.5rem; }
@media (max-width: 800px) {
  .content-row-inner { grid-template-columns: 1fr; gap: 2rem; }
  .content-row--reverse .content-row-inner { direction: ltr; }
  .content-row--reverse .content-row-text { order: 2; }
  .content-row--reverse .content-row-img  { order: 1; }
}


/* ============================================================
   STATS / QUICK FACTS BAR
   ============================================================ */
.stats-bar {
  background: var(--solar-purple);
  padding: 3rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-item {}
.stat-number {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-label {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.4;
}
@media (max-width: 700px) { .stats-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 400px) { .stats-grid { grid-template-columns: 1fr; } }


/* ============================================================
   ABOUT BAND
   ============================================================ */
.about-band { background: var(--white); }
.about-band-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-band-img img { width: 100%; border-radius: var(--radius); box-shadow: 0 8px 32px rgba(13,27,42,0.15); }
.about-band-text h2 { margin-bottom: 1rem; }
.about-band-text p { color: var(--text-mid); margin-bottom: 1.5rem; font-size: 1.05rem; line-height: 1.7; }
@media (max-width: 800px) { .about-band-inner { grid-template-columns: 1fr; gap: 2rem; } }


/* ============================================================
   BLOG / POST CARDS
   ============================================================ */
.blog-section { background: var(--bg); }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.post-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.2s;
}
.post-card:hover { box-shadow: 0 12px 40px rgba(13,27,42,0.12); transform: translateY(-4px); }
.post-card-img-wrap { overflow: hidden; aspect-ratio: 3/2; }
.post-card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.post-card:hover .post-card-img-wrap img { transform: scale(1.04); }
.post-card-body { padding: 1.25rem 1.5rem 1.5rem; }
.post-card-meta-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.6rem; }
.post-card-date { font-size: 0.8rem; color: var(--text-light); }
.post-card-cat { font-size: 0.75rem; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; }
.post-card-title { font-size: 1rem; margin-bottom: 0.5rem; line-height: 1.35; }
.post-card-title a { color: var(--text-dark); }
.post-card-title a:hover { color: var(--brand-primary); }
.post-card-excerpt { font-size: 0.875rem; color: var(--text-mid); line-height: 1.55; margin-bottom: 1rem; }
.post-card-link { font-size: 0.85rem; font-weight: 600; color: var(--brand-primary); }
.post-card-link:hover { color: var(--brand-hover); }
@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .blog-grid { grid-template-columns: 1fr; } }


/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--dark-hero);
  color: rgba(255,255,255,0.75);
  padding-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo { display: inline-block; margin-bottom: 1rem; text-decoration: none; }
.footer-logo-img { height: 64px; width: auto; object-fit: contain; }
.footer-tagline { font-size: 0.9rem; line-height: 1.6; color: rgba(255,255,255,0.65); margin-bottom: 0.75rem; }
.footer-email { display: inline-block; font-size: 0.875rem; color: var(--accent-light); margin-bottom: 1.25rem; }
.footer-email:hover { color: var(--white); }
.footer-social { display: flex; gap: 0.75rem; margin-bottom: 1.25rem; }
.footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7);
  transition: background 0.2s, color 0.2s;
}
.footer-social a:hover { background: var(--solar-teal); color: var(--white); }
.footer-partner { margin-top: 0.5rem; }
.footer-partner-label { font-size: 0.75rem; color: rgba(255,255,255,0.45); display: block; margin-bottom: 0.25rem; }
.footer-partner-link { font-size: 0.875rem; color: var(--accent-light); font-weight: 600; }
.footer-partner-link:hover { color: var(--white); }
.footer-heading { font-family: var(--font-head); font-size: 1rem; font-weight: 600; color: var(--white); margin-bottom: 1rem; }
.footer-nav { list-style: none; }
.footer-nav li { margin-bottom: 0.5rem; }
.footer-nav a { font-size: 0.875rem; color: rgba(255,255,255,0.65); transition: color 0.15s; }
.footer-nav a:hover { color: var(--accent-light); }
.footer-newsletter-desc { font-size: 0.875rem; color: rgba(255,255,255,0.65); margin-bottom: 1rem; line-height: 1.6; }
.footer-newsletter-form { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-newsletter-form input {
  padding: 0.7rem 0.9rem; border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.06);
  color: var(--white); font-family: var(--font-body); font-size: 0.875rem; width: 100%;
}
.footer-newsletter-form input::placeholder { color: rgba(255,255,255,0.35); }
.footer-newsletter-form input:focus { outline: 2px solid var(--accent); background: rgba(255,255,255,0.1); }
.footer-county-select {
  padding: 0.7rem 2.2rem 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  color: rgba(255,255,255,0.7);
  font-family: var(--font-body);
  font-size: 0.875rem;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.footer-county-select option { color: var(--text-dark); background: var(--white); }
.footer-county-select:focus { outline: 2px solid var(--accent); }
.footer-bottom { padding: 1.25rem 0; }
.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.4); text-align: center; margin: 0; }
.footer-copy a { color: rgba(255,255,255,0.5); }
.footer-copy a:hover { color: var(--accent-light); }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }


/* ============================================================
   POST / ARTICLE PAGES
   ============================================================ */
.post-hero-wrap { position: relative; }

.post-hero {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.post-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,27,42,0.88) 0%, rgba(13,27,42,0.4) 60%, rgba(13,27,42,0.1) 100%);
}
.post-hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 5rem;
  padding-bottom: 2.5rem;
  max-width: 780px;
}
.post-hero-eyebrow { color: var(--accent-light); margin-bottom: 0.75rem; }
.post-hero-heading { font-size: clamp(1.6rem, 4vw, 2.75rem); color: var(--white); margin-bottom: 0.75rem; }
.post-hero-meta { display: flex; gap: 0.5rem; font-size: 0.875rem; color: rgba(255,255,255,0.7); }

/* Breadcrumb */
.post-breadcrumb-bar {
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 0;
}
.breadcrumb {
  display: flex; gap: 0.5rem; align-items: center;
  list-style: none; font-size: 0.8rem; color: var(--text-light);
}
.breadcrumb li:not(:last-child)::after { content: '›'; margin-left: 0.5rem; color: var(--border); }
.breadcrumb a { color: var(--brand-primary); }
.breadcrumb a:hover { color: var(--brand-hover); }

/* Post layout */
.post-layout { background: var(--bg); }
.post-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}
.post-content {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  border: 1px solid var(--border);
}
.post-content h2 { margin-top: 2rem; margin-bottom: 0.75rem; }
.post-content h3 { margin-top: 1.5rem; margin-bottom: 0.6rem; }
.post-content p { color: var(--text-mid); }
.post-lead {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-dark) !important;
  border-left: 4px solid var(--solar-teal);
  padding-left: 1rem;
  margin-bottom: 1.5rem;
}
.post-figure { margin: 2rem 0; }
.post-figure img { border-radius: var(--radius); width: 100%; }
.post-figure figcaption { font-size: 0.8rem; color: var(--text-light); text-align: center; margin-top: 0.5rem; }
.post-blockquote {
  border-left: 4px solid var(--solar-teal);
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  background: var(--bg);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-mid);
}
.post-checklist { list-style: none; margin: 1rem 0; }
.post-checklist li {
  padding: 0.4rem 0 0.4rem 1.75rem;
  position: relative;
  font-size: 0.95rem;
  color: var(--text-mid);
  border-bottom: 1px solid var(--border);
}
.post-checklist li::before { content: '✓'; position: absolute; left: 0; color: var(--solar-green); font-weight: 700; }
.post-cta-inline {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
}
.post-cta-inline p { margin-bottom: 1rem; color: var(--text-mid); }

/* Info / callout box */
.post-info-box {
  background: #f0f7ff;
  border: 1px solid #b8d4f0;
  border-left: 4px solid var(--solar-teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.post-info-box p { font-size: 0.9rem; color: var(--text-mid); margin: 0; line-height: 1.65; }
.post-info-box p + p { margin-top: 0.6rem; }

/* Grant link box */
.grant-link-box {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #f0faf2;
  border: 1px solid #a8dab5;
  border-left: 4px solid var(--solar-green);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.grant-link-box-icon { font-size: 1.5rem; flex-shrink: 0; }
.grant-link-box p { font-size: 0.9rem; color: var(--text-mid); margin: 0; line-height: 1.65; }
.grant-link-box a { color: var(--solar-green-d); font-weight: 600; }

/* FAQ */
.faq-header { margin-bottom: 1rem; }
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 0; background: none; border: none; cursor: pointer;
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 600;
  color: var(--text-dark); text-align: left; gap: 1rem;
}
.faq-question:hover { color: var(--brand-primary); }
.faq-icon { font-size: 1.4rem; line-height: 1; color: var(--solar-teal); flex-shrink: 0; transition: transform 0.2s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { display: none; padding-bottom: 1rem; }
.faq-item.open .faq-answer { display: block; }
.faq-answer p { font-size: 0.9rem; color: var(--text-mid); }

/* Post tags */
.post-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.tag {
  font-size: 0.8rem; font-weight: 600; background: var(--bg-dark);
  color: var(--text-mid); border: 1px solid var(--border);
  border-radius: 999px; padding: 0.3rem 0.75rem;
}
.tag:hover { background: var(--brand-primary); color: var(--white); border-color: var(--brand-primary); }

/* Bio block */
.bio-block {
  display: flex; gap: 1.25rem; align-items: flex-start;
  margin-top: 2.5rem; padding: 1.5rem;
  background: var(--bg); border-radius: var(--radius); border: 1px solid var(--border);
}
.bio-logo a { display: block; flex-shrink: 0; }
.bio-logo-img { width: 80px; height: auto; object-fit: contain; border-radius: var(--radius-sm); }
.bio-site-name { font-family: var(--font-head); font-weight: 700; color: var(--text-dark); margin-bottom: 0.25rem; }
.bio-desc { font-size: 0.875rem; color: var(--text-mid); margin: 0; }

/* Related posts */
.related-posts { margin-top: 2.5rem; }
.related-posts-title { font-size: 1.1rem; margin-bottom: 1.25rem; }
.related-posts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

/* Sidebar */
.post-sidebar { position: sticky; top: 2rem; }
.sidebar-widget {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem;
}
.sidebar-heading {
  font-family: var(--font-head); font-size: 1rem; font-weight: 700;
  color: var(--text-dark); margin-bottom: 1rem; padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--solar-teal);
}
.sidebar-thumb-list { list-style: none; }
.sidebar-thumb-item { margin-bottom: 1rem; }
.sidebar-thumb-link { display: flex; gap: 0.75rem; text-decoration: none; }
.sidebar-thumb-img { flex-shrink: 0; }
.sidebar-thumb-img img { border-radius: var(--radius-sm); width: 80px; height: 60px; object-fit: cover; }
.sidebar-thumb-badge {
  display: inline-block; font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  background: var(--solar-teal); color: var(--white);
  padding: 0.15rem 0.4rem; border-radius: 2px; margin-bottom: 0.2rem;
}
.sidebar-thumb-badge--new { background: var(--brand-primary); }
.sidebar-thumb-title { font-size: 0.85rem; font-weight: 600; color: var(--text-dark); line-height: 1.3; margin-bottom: 0.2rem; }
.sidebar-thumb-link:hover .sidebar-thumb-title { color: var(--brand-primary); }
.sidebar-thumb-date { font-size: 0.75rem; color: var(--text-light); }
.sidebar-cat-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.sidebar-cat-tag {
  font-size: 0.8rem; font-weight: 600; background: var(--bg-dark);
  color: var(--text-mid); border: 1px solid var(--border);
  border-radius: 999px; padding: 0.3rem 0.75rem;
  transition: background 0.15s, color 0.15s;
}
.sidebar-cat-tag:hover { background: var(--brand-primary); color: var(--white); border-color: var(--brand-primary); }
.sidebar-newsletter { background: var(--dark-hero); border-color: var(--dark-hero); }
.sidebar-newsletter-icon { font-size: 1.75rem; margin-bottom: 0.5rem; }
.sidebar-newsletter .sidebar-heading { color: var(--white); border-color: var(--solar-teal); }
.sidebar-newsletter-desc { font-size: 0.85rem; color: rgba(255,255,255,0.65); margin-bottom: 1rem; }
.sidebar-newsletter-form { display: flex; flex-direction: column; gap: 0.6rem; }
.sidebar-newsletter-form input {
  padding: 0.65rem 0.85rem; border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.06);
  color: var(--white); font-family: var(--font-body); font-size: 0.875rem; width: 100%;
}
.sidebar-newsletter-form input::placeholder { color: rgba(255,255,255,0.35); }
.sidebar-newsletter-form input:focus { outline: 2px solid var(--solar-teal); }

@media (max-width: 900px) {
  .post-grid { grid-template-columns: 1fr; }
  .post-sidebar { position: static; }
  .related-posts-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .post-content { padding: 1.5rem; }
  .related-posts-grid { grid-template-columns: 1fr; }
}


/* ============================================================
   BLOG INDEX PAGE
   ============================================================ */
.blog-index-header {
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0 0;
}
.blog-index-header .breadcrumb { margin-bottom: 1.25rem; }
.blog-index-title { font-size: clamp(1.8rem, 4vw, 2.75rem); margin-bottom: 0.75rem; }
.blog-index-lead { font-size: 1rem; color: var(--text-mid); max-width: 640px; line-height: 1.7; margin-bottom: 1.75rem; }
.blog-filter-tabs {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  background: var(--bg-dark); border: 1px solid var(--border);
  border-bottom: none; border-radius: 5px 5px 0 0;
  padding: 1rem 1.25rem; margin: 0 -1px;
}
.blog-filter-tab {
  font-family: var(--font-body); font-size: 0.825rem; font-weight: 600;
  padding: 0.5rem 1.1rem; border-radius: 999px;
  border: 2px solid var(--border); background: var(--bg);
  color: var(--text-mid); cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s; white-space: nowrap;
}
.blog-filter-tab:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.blog-filter-tab.is-active { background: var(--brand-primary); border-color: var(--brand-primary); color: var(--white); }
.blog-index-section { background: var(--bg-dark); }
.blog-index-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.blog-index-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); box-shadow: 0 2px 8px rgba(13,27,42,0.05);
  transition: box-shadow 0.2s, transform 0.2s; display: flex; flex-direction: column;
}
.blog-index-card:hover { box-shadow: 0 12px 40px rgba(13,27,42,0.12); transform: translateY(-4px); }
.blog-index-card-img { position: relative; overflow: hidden; aspect-ratio: 3/2; flex-shrink: 0; }
.blog-index-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; display: block; }
.blog-index-card:hover .blog-index-card-img img { transform: scale(1.04); }
.blog-index-cat-badge {
  position: absolute; top: 0.85rem; left: 0.85rem;
  background: var(--brand-primary); color: var(--white);
  font-family: var(--font-body); font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 0.3rem 0.75rem; border-radius: 999px; z-index: 2; white-space: nowrap;
}
.blog-index-card-body { padding: 1.25rem 1.5rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.blog-index-date { font-size: 0.775rem; color: var(--text-light); display: block; margin-bottom: 0.5rem; }
.blog-index-card-title { font-size: 1.05rem; line-height: 1.3; margin-bottom: 0.6rem; flex-grow: 0; }
.blog-index-card-title a { color: var(--text-dark); text-decoration: none; }
.blog-index-card-title a:hover { color: var(--brand-primary); }
.blog-index-excerpt { font-size: 0.875rem; color: var(--text-mid); line-height: 1.6; margin-bottom: 1rem; flex: 1; }
.blog-index-read-more {
  font-size: 0.85rem; font-weight: 700; color: var(--brand-primary);
  text-transform: uppercase; letter-spacing: 0.04em; text-decoration: none; margin-top: auto;
}
.blog-index-read-more:hover { color: var(--brand-hover); }
@media (max-width: 900px) { .blog-index-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) {
  .blog-index-grid { grid-template-columns: 1fr; }
  .blog-filter-tabs { gap: 0.35rem; }
  .blog-filter-tab { font-size: 0.775rem; padding: 0.4rem 0.85rem; }
}


/* ============================================================
   SOLAR-SPECIFIC COMPONENTS
   ============================================================ */

/* Comparison cards — 2 col grid */
.solar-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.solar-compare-card {
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
}
.solar-compare-card--pro { background: #f0f7f0; border-color: #a8dab5; }
.solar-compare-card--con { background: #f7f3f0; border-color: #d8c0a8; }
.solar-compare-card h3 { font-size: 1rem; margin-bottom: 0.75rem; }
.solar-compare-card--pro h3 { color: var(--solar-green-d); }
.solar-compare-card--con h3 { color: var(--text-mid); }
.solar-compare-card ul { list-style: none; padding: 0; margin: 0; }
.solar-compare-card ul li { font-size: 0.875rem; color: var(--text-mid); padding: 0.3rem 0 0.3rem 1.25rem; position: relative; border-bottom: 1px solid var(--border); line-height: 1.5; }
.solar-compare-card ul li:last-child { border-bottom: none; }
.solar-compare-card--pro ul li::before { content: '✓'; position: absolute; left: 0; color: var(--solar-green); font-weight: 700; }
.solar-compare-card--con ul li::before { content: '→'; position: absolute; left: 0; color: var(--text-light); }

/* Cost estimate boxes */
.cost-estimate-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.cost-estimate-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--solar-purple);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}
.cost-estimate-card h3 { font-size: 1rem; color: var(--text-dark); margin-bottom: 0.5rem; }
.cost-estimate-price { font-size: 1.75rem; font-weight: 700; color: var(--solar-purple); line-height: 1; margin-bottom: 0.4rem; }
.cost-estimate-note { font-size: 0.8rem; color: var(--text-light); margin: 0; }
@media (max-width: 640px) { .cost-estimate-grid { grid-template-columns: 1fr; } }

/* Step process list */
.solar-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
}
.solar-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}
.solar-step-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--solar-purple); color: var(--white);
  font-weight: 700; font-size: 1rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.solar-step h3 { font-size: 0.95rem; color: var(--text-dark); margin-bottom: 0.4rem; }
.solar-step p { font-size: 0.875rem; color: var(--text-mid); line-height: 1.6; margin: 0; }

/* Data comparison table (generic) */
.solar-table-wrap { overflow-x: auto; margin: 1.5rem 0; border-radius: var(--radius); border: 1px solid var(--border); }
.solar-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.solar-table thead tr { background: var(--dark-hero); color: var(--white); }
.solar-table th { padding: 0.9rem 1.1rem; text-align: left; font-family: var(--font-head); font-weight: 600; font-size: 0.875rem; }
.solar-table td { padding: 0.8rem 1.1rem; border-bottom: 1px solid var(--border); color: var(--text-mid); vertical-align: middle; }
.solar-table tbody tr:last-child td { border-bottom: none; }
.solar-table tbody tr:nth-child(even) { background: var(--bg-dark); }
.solar-table tbody tr:hover { background: var(--bg); }
.solar-table-good td { color: var(--solar-green-d); font-weight: 600; }
.solar-table-note { font-size: 0.8rem; color: var(--text-light); text-align: center; margin-top: 0.75rem; }

/* Sources section */
.post-sources {
  margin-top: 2.5rem; padding: 1.5rem;
  background: var(--bg-dark); border: 1px solid var(--border); border-radius: var(--radius);
}
.post-sources-heading {
  font-size: 0.9rem; font-family: var(--font-body); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-light); margin-bottom: 0.75rem;
}
.post-sources-list { list-style: decimal; padding-left: 1.25rem; margin: 0; }
.post-sources-list li { font-size: 0.8rem; color: var(--text-light); line-height: 1.6; padding: 0.3rem 0; border-bottom: 1px solid var(--border); }
.post-sources-list li:last-child { border-bottom: none; }
.post-sources-list a { color: var(--brand-primary); font-weight: 600; word-break: break-word; }
.post-sources-list a:hover { color: var(--brand-hover); }


/* ============================================================
   UTILITY
   ============================================================ */
.text-center { text-align: center; }


/* ============================================================
   SOLAR INVESTMENT CALCULATOR — #sic
   ============================================================ */
.sic-section { background: var(--bg-dark); }
.sic-wrap { max-width: 560px; margin: 0 auto; }

#sic * { box-sizing: border-box; }
#sic label { font-size: 13px; color: #666; display: block; margin-bottom: 6px; }

#sic .sic-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 0; border-bottom: 0.5px solid #e5e5e5; font-size: 13px;
}
#sic .sic-row:last-child { border-bottom: none; }
#sic .sic-row .val { font-weight: 500; color: #1a1a1a; }
#sic .sic-row.grant .val { color: var(--solar-green-d); }
#sic .sic-row.total { padding-top: 10px; }
#sic .sic-row.total .lbl { font-weight: 500; font-size: 14px; }
#sic .sic-row.total .val { font-size: 22px; font-weight: 500; color: var(--solar-green-d); }

#sic .sic-grid2 {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; margin-bottom: 1.5rem;
}
#sic .sic-card {
  background: #f8f8f6; border-radius: 8px; padding: 12px 14px;
}
#sic .sic-card .lbl { font-size: 12px; color: #666; margin-bottom: 4px; }
#sic .sic-card .num { font-size: 20px; font-weight: 500; color: var(--solar-purple); }

#sic .toggle-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 0.5px solid #e5e5e5; margin-bottom: 1.5rem;
}
#sic .sic-switch { position: relative; width: 40px; height: 22px; flex-shrink: 0; }
#sic .sic-switch input { opacity: 0; width: 0; height: 0; }
#sic .knob {
  position: absolute; inset: 0; background: #ccc;
  border-radius: 99px; cursor: pointer; transition: background 0.2s;
}
#sic .knob:before {
  content: ''; position: absolute; width: 16px; height: 16px;
  left: 3px; top: 3px; background: white; border-radius: 50%; transition: transform 0.2s;
}
#sic .sic-switch input:checked + .knob { background: var(--solar-teal); }
#sic .sic-switch input:checked + .knob:before { transform: translateX(18px); }

#sic .pb-bar-wrap {
  height: 8px; background: #f0f0ee; border-radius: 99px;
  margin: 10px 0 4px; overflow: hidden;
}
#sic .pb-bar {
  height: 8px; border-radius: 99px;
  background: var(--solar-green); transition: width 0.3s;
}
#sic .pb-labels {
  display: flex; justify-content: space-between;
  font-size: 12px; color: #888; margin-bottom: 1.5rem;
}

#sic .results-box {
  background: var(--white); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 1.25rem;
  border: 1px solid var(--border);
}

#sic .slider-wrap {
  display: flex; gap: 10px; align-items: center; margin-bottom: 1.5rem;
}
#sic .slider-wrap input[type=range] {
  flex: 1; accent-color: var(--solar-teal); cursor: pointer;
}
#sic .readout {
  min-width: 48px; text-align: right;
  font-weight: 600; font-size: 15px; color: var(--solar-purple);
}

#sic .disclaimer {
  font-size: 11px; color: #aaa; margin-top: 1.25rem; line-height: 1.6;
  border-top: 0.5px solid #e5e5e5; padding-top: 1rem;
}
#sic .context-note {
  font-size: 12px; color: #888; background: #f8f8f6;
  border-radius: 8px; padding: 10px 12px;
  margin-bottom: 1.5rem; line-height: 1.5;
}
#sic .sic-cta-row {
  margin: 1.25rem 0 0;
  text-align: center;
}

/* Solar calculator standalone page — explainer */
.sol-exp { font-size: 15px; color: #1a1a1a; max-width: 720px; margin: 0 auto; }
.sol-exp h3 { font-size: 1.25em; margin: 0 0 6px; color: #1a1a1a; }
.sol-exp .sol-intro { color: #555; font-size: 0.9em; margin: 0 0 28px; line-height: 1.6; }
.sol-exp .sol-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 28px; }
.sol-exp .sol-card { border: 1px solid var(--border); border-radius: 10px; padding: 18px 20px; }
.sol-exp .sol-card .sol-label { font-size: 0.78em; text-transform: uppercase; letter-spacing: 0.06em; color: #888; margin-bottom: 6px; }
.sol-exp .sol-card .sol-title { font-size: 1em; font-weight: 700; color: #1a1a1a; margin-bottom: 6px; }
.sol-exp .sol-card .sol-body { font-size: 0.88em; color: #555; line-height: 1.55; }
.sol-exp .sol-card .sol-figure { font-size: 1.3em; font-weight: 700; color: var(--solar-green-d); margin-bottom: 4px; }
.sol-exp .sol-formula {
  background: #f8f8f6; border-left: 3px solid var(--solar-teal);
  border-radius: 0 8px 8px 0; padding: 14px 18px; margin-bottom: 28px;
  font-size: 0.9em; color: #333; line-height: 1.7;
}
.sol-exp .sol-formula strong { color: var(--solar-teal); }
.sol-exp .sol-assumptions { border: 1px solid var(--border); border-radius: 10px; padding: 18px 20px; margin-bottom: 28px; }
.sol-exp .sol-assumptions h4 { font-size: 0.95em; margin: 0 0 12px; color: #1a1a1a; }
.sol-exp .sol-assumptions table { width: 100%; border-collapse: collapse; font-size: 0.88em; }
.sol-exp .sol-assumptions td { padding: 7px 0; border-bottom: 1px solid #f0f0f0; vertical-align: top; }
.sol-exp .sol-assumptions tr:last-child td { border-bottom: none; }
.sol-exp .sol-assumptions td:first-child { color: #888; width: 55%; padding-right: 12px; }
.sol-exp .sol-assumptions td:last-child { font-weight: 600; color: #1a1a1a; }
.sol-exp .sol-disclaimer { font-size: 0.8em; color: #aaa; line-height: 1.6; border-top: 1px solid #e5e5e5; padding-top: 16px; }

/* calculator page layout */
.calc-page-grid {
  display: grid;
  grid-template-columns: 480px 1fr;
  gap: 4rem;
  align-items: start;
}
.calc-page-sticky { position: sticky; top: 2rem; }

@media (max-width: 960px) {
  .calc-page-grid { grid-template-columns: 1fr; gap: 3rem; }
  .calc-page-sticky { position: static; }
  .sol-exp .sol-grid { grid-template-columns: 1fr; }
}
