/* Deep Solar Ghana design overlay 2026-11-29. One stylesheet, loaded after Base.*.css.
   Selectors match the LIVE html. Scoped (data-astro-cid) rules are beaten with !important on purpose. */

/* 1, 2, 4: hero photo (figure.hero-media has the browser default 40px side margin) */
.hero-media { margin: 0; }
.hero-media::after { content: ''; position: absolute; inset: auto 0 0 0; height: 48%; background: linear-gradient(to top, rgba(5, 20, 40, .66), rgba(5, 20, 40, 0)); pointer-events: none; }
.hero-media figcaption { z-index: 1; }

@media (max-width: 900px) {
  .hero-media { aspect-ratio: 4 / 3; }
  .hero .lede { margin-top: 14px; }
  .hero .btn-row { margin-top: 20px; flex-wrap: nowrap; gap: 8px; }
  .hero .btn-row .btn { flex: 1 1 0; min-width: 0; padding-inline: 8px; gap: 6px; font-size: .98rem; white-space: nowrap; }
  .hero-proof { gap: 0 16px; margin-top: 8px; font-size: .9rem; }
}

/* 3: WhatsApp float: smaller, never under the hero caption, room above the footer's last line */
@media (max-width: 760px) {
  .wa-float { width: 52px; height: 52px; opacity: .94; }
  .wa-float svg { width: 27px; height: 27px; }
  .hero-media figcaption { right: 76px; }
  .site-footer { padding-bottom: 96px; }
}

/* 5: tap targets 44px (touch and narrow screens; desktop keeps its tighter rows) */
@media (pointer: coarse), (max-width: 900px) {
  .brand { min-height: 44px; }
  .header-cta .btn { min-height: 44px; }
  .hero-proof a, .hero-proof span { min-height: 44px; margin-block: -4px; }
  .steps h3 { margin-bottom: 0; }
  .steps h3 a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-grid li + li { margin-top: 0; }
  .footer-grid a, .footer-base a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
  .socials a { width: 44px; height: 44px; }
  .breadcrumbs a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* 7: offer tag */
.tag { font-size: .875rem; }

/* 8: process steps, lighter on phone */
@media (max-width: 640px) {
  .steps li { border-top-width: 2px; }
  .steps li::before { font-size: 2rem; margin-bottom: 8px; }
}

/* 10: tall photo on home */
@media (max-width: 900px) {
  .photo[style*="4/5"] { aspect-ratio: 4 / 3 !important; }
}

/* 11: package copy runs the full card width */
.pkg p { max-width: none; }

/* 13: blog lead card (scoped styles in blog index) */
@media (min-width: 901px) {
  .post-card.lead { grid-template-columns: 1.2fr 1fr !important; }
}
.post-card.lead h2 { max-width: none !important; }

/* 15, 16: article video: left aligned with the text, capped so the first paragraph shows */
video.post-video { margin: 24px 0 8px !important; width: auto !important; height: min(70vh, 640px) !important; max-width: 100% !important; }
@media (max-width: 640px) { video.post-video { height: 60svh !important; } }

/* 19: reduced motion */
@media (prefers-reduced-motion: reduce) {
  .yt:hover img { transform: none; }
  .chip, .btn, .yt img, .yt .play { transition: none; }
}

/* 20: small text on night panels */
.night .small, .on-night .small, .night .hint, .on-night .hint { color: #d3deee; }

