/* CARPLS demo — responsive overrides. !important required to beat inline styles. */

@media (max-width: 767px) {

  /* ── Header ── */
  .site-header-topbar { display: none !important; }
  .site-header-main {
    padding: 14px 20px !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
  }
  .site-header-nav { display: none !important; }
  .site-header-donate { display: none !important; }

  /* ── Hero ── */
  .hero-wrap { height: auto !important; }
  .hero-img { display: none !important; }
  .hero-overlay { display: none !important; }
  .hero-solid-left { display: none !important; }
  .hero-inner {
    padding: 52px 24px 56px !important;
    height: auto !important;
  }
  .hero-content { max-width: 100% !important; }
  .hero-heading { font-size: 34px !important; }

  /* ── Stat bar ── */
  .stat-bar-outer {
    margin: 0 auto !important;
    padding: 0 16px !important;
  }
  .stat-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .stat-grid > div {
    border-right: none !important;
    border-bottom: 1px solid #E8EEF1 !important;
  }
  .stat-grid > div:nth-child(3),
  .stat-grid > div:nth-child(4) {
    border-bottom: none !important;
  }

  /* ── Feature rows (Get Help / Get Involved / Give Back / Our Impact) ── */
  .feature-rows {
    gap: 0 !important;
    padding: 48px 0 0 !important;
  }
  .feature-row { padding: 0 !important; }
  .feature-bg { left: 0 !important; right: 0 !important; }
  .feature-inner {
    flex-direction: column !important;
    padding: 40px 24px 48px !important;
    gap: 24px !important;
    height: auto !important;
    align-items: stretch !important;
  }
  .feature-img {
    width: 100% !important;
    height: 220px !important;
    flex-shrink: unset !important;
  }
  .feature-text { padding: 0 !important; }

  /* ── News ── */
  .news-section { padding: 24px 20px 64px !important; }
  .news-grid { grid-template-columns: 1fr !important; }

  /* ── Quote strip ── */
  .quote-text { font-size: 19px !important; }

  /* ── Page banners (About / Staff) ── */
  .page-banner { height: 220px !important; }
  .page-banner-inner { padding: 0 24px 28px !important; }
  .page-banner-h1 { font-size: 26px !important; }

  /* ── About: pillars + numbers ── */
  .pillars-grid {
    grid-template-columns: 1fr !important;
    padding: 40px 24px 56px !important;
  }
  .numbers-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* ── Staff: exec + bio quote + attorney grids ── */
  .exec-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    padding: 40px 24px 24px !important;
  }
  .staff-quote-grid {
    grid-template-columns: 1fr !important;
    padding: 32px 24px !important;
  }
  .staff-quote-photo {
    width: 100px !important;
    height: 100px !important;
    margin: 0 auto 16px !important;
  }
  .staff-quote-text { font-size: 17px !important; }
  .staff-section { padding: 0 24px 40px !important; }
  .staff-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .extra-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* ── Footer ── */
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    padding: 40px 24px 24px !important;
    gap: 28px !important;
  }
  .footer-bottom {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    padding: 16px 24px !important;
  }
}

@media (max-width: 479px) {
  .site-header-main { padding: 12px 16px !important; }
  .hero-heading { font-size: 28px !important; }
  .stat-grid { grid-template-columns: 1fr !important; }
  .stat-grid > div:nth-child(3),
  .stat-grid > div:nth-child(4) { border-bottom: 1px solid #E8EEF1 !important; }
  .stat-grid > div:last-child { border-bottom: none !important; }
  .numbers-grid { grid-template-columns: 1fr !important; }
  .footer-grid { grid-template-columns: 1fr !important; }
  .extra-grid { grid-template-columns: 1fr !important; }
}
