/* ==========================================================================
   JAMES TAMANG MINISTRIES - RESPONSIVE STYLESHEET
   Supports: 1920px, 1440px, 1024px, 768px, 480px, 375px, 320px
   ========================================================================== */

/* --------------------------------------------------------------------------
   LARGE DESKTOPS & LAPTOPS (Max-Width: 1200px)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 1200px) {
  :root {
    --container-padding: 20px;
  }

  .desktop-nav {
    gap: 20px;
  }

  .nav-link {
    font-size: 0.9rem;
  }

  .mission-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .sermons-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

/* --------------------------------------------------------------------------
   TABLET LANDSCAPE & SMALL LAPTOPS (Max-Width: 1024px)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 1024px) {
  .desktop-nav,
  .header-actions .btn {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 50px;
  }

  .hero-content {
    max-width: 100%;
    margin: 0 auto;
  }

  .hero-eyebrow {
    justify-content: center;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-trust-bar {
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
  }

  .hero-image-wrapper {
    max-width: 380px;
    margin: 0 auto;
  }

  .intro-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .intro-content-block {
    padding-left: 0;
  }

  .intro-quote-card {
    position: relative;
    bottom: auto;
    right: auto;
    max-width: 100%;
    margin-top: 20px;
  }

  .book-showcase-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .book-visual-wrapper {
    margin-bottom: 20px;
  }

  .book-specs-grid,
  .book-purchase-row,
  .book-cta-group,
  .trust-badges-row {
    justify-content: center;
  }

  .newsletter-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 25px;
  }

  .newsletter-form {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* --------------------------------------------------------------------------
   TABLET PORTRAIT (Max-Width: 768px)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 768px) {
  :root {
    --header-height: 74px;
    --header-scrolled-height: 64px;
  }

  .site-logo-img {
    height: 44px;
  }

  .mission-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .sermons-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .intro-pillars {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .modal-container {
    max-height: 94vh;
    padding: 0;
    margin: 10px;
  }

  .modal-header {
    padding: 20px 20px 16px 20px;
  }

  .modal-body {
    padding: 20px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .modal-order-summary {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .summary-total {
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-bottom-flex {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .whatsapp-alt-block {
    flex-direction: column;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   MOBILE PHONES (Max-Width: 480px)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 480px) {
  :root {
    --container-padding: 16px;
  }

  .site-logo-img {
    height: 110px;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .book-purchase-row {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
  }

  .book-price-box {
    justify-content: center;
  }

  .qty-stepper {
    margin: 0 auto;
  }

  .book-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .book-cta-group .btn {
    width: 100%;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form .btn {
    width: 100%;
  }

  .qr-code-frame img {
    width: 180px;
    height: 180px;
  }

  .modal-steps-nav {
    flex-direction: column;
    gap: 6px;
  }

  .step-tab {
    text-align: center;
    padding: 8px 10px;
    font-size: 0.82rem;
  }

  .toast-notice {
    left: 16px;
    right: 16px;
    bottom: 16px;
    font-size: 0.88rem;
  }
}

/* --------------------------------------------------------------------------
   SMALL MOBILE PHONES (Max-Width: 360px)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 360px) {
  .site-logo-img {
    height: 32px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.65rem;
  }

  .price-current {
    font-size: 1.8rem;
  }

  .qr-code-frame img {
    width: 160px;
    height: 160px;
  }
}
