/* ==========================================================================
   HARBORLIGHT CHURCH — RESPONSIVE OVERRIDES
   Base styles in style.css are written mobile-first with fluid clamp()
   values; this file handles structural changes at breakpoints (nav
   collapse, grid column counts, footer stacking).
   ========================================================================== */

/* ---- Up to tablet: collapse primary nav into hamburger drawer ---- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .theme-toggle { order: 2; }
}

@media (min-width: 961px) {
  .mobile-drawer, .hamburger { display: none !important; }
}

/* ---- Footer ---- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---- Hero ---- */
@media (max-width: 640px) {
  .hero { min-height: 82vh; }
  .hero-chips { gap: 0.6rem; }
  .chip-glass { min-width: 130px; padding: 0.7rem 1rem; }
  .hero-actions .btn { width: 100%; }
  .hero-actions { flex-direction: column; }
}

/* ---- Nav-more panel becomes a simple stacked list inside the drawer ---- */
@media (max-width: 960px) {
  .nav-more-panel { display: none !important; }
}

/* ---- Generic grid tightening on small screens ---- */
@media (max-width: 520px) {
  .grid { gap: 1.25rem; }
  .section { padding-block: 3rem; }
  h1 { font-size: var(--step-4); }
}

/* ---- Two-column layouts (e.g. sermon detail, blog post) stack on tablet ---- */
@media (max-width: 860px) {
  .split-layout { grid-template-columns: 1fr !important; }
  .split-layout aside { order: 2; }
}

/* ---- Tables (event lists) become card-like on narrow screens ---- */
@media (max-width: 640px) {
  .stack-on-mobile thead { display: none; }
  .stack-on-mobile tr { display: block; margin-bottom: 1rem; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.75rem; }
  .stack-on-mobile td { display: flex; justify-content: space-between; gap: 1rem; padding: 0.4rem 0; border: none; }
  .stack-on-mobile td::before { content: attr(data-label); font-weight: 700; color: var(--text-muted); }
}

/* ---- Page-component breakpoints ---- */
@media (max-width: 860px) {
  .blog-layout { grid-template-columns: 1fr; }
  .cta-banner { grid-template-columns: 1fr; text-align: center; }
  .cta-banner .flex-center { justify-content: center; }
  .sermon-toolbar { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .sermon-toolbar { grid-template-columns: 1fr; }
  .insta-grid { grid-template-columns: repeat(3, 1fr); }
  .prayer-wall { columns: 1; }
  .event-card { grid-template-columns: auto 1fr; }
  .event-card .btn { grid-column: 1 / -1; }
}
@media (max-width: 780px) {
  .prayer-wall { columns: 2; }
}

/* ---- Print (basic) ---- */
@media print {
  .navbar, .site-footer, .back-to-top, .mobile-drawer { display: none !important; }
}
