/* ==========================================================================
   SpendWise - Responsive Stylesheet
   ========================================================================== */

/* --- Mobile Navigation Drawer (Hidden on Desktop) --- */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100vh;
  background-color: var(--bg-card);
  z-index: 999;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  transition: right var(--transition-normal);
}

.mobile-nav-drawer.active {
  right: 0;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.mobile-drawer-close {
  font-size: 1.75rem;
  color: var(--text-primary);
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.mobile-nav-links a {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* --- Media Queries --- */

/* Large Desktop (1440px+) */
@media (min-width: 1440px) {
  .container {
    max-width: 1320px;
  }
}

/* Desktop & Laptop (1025px - 1280px) */
@media (max-width: 1280px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablet Landscape (769px - 1024px) */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-subtitle {
    margin: 0 auto 2rem;
  }

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

  .hero-mockup-wrapper {
    margin-top: 1rem;
  }

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

  .dashboard-showcase-card {
    grid-template-columns: 1fr;
    padding: 2rem;
    gap: 2rem;
  }

  .banner-grid {
    grid-template-columns: 1fr;
  }

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

/* Tablet Portrait & Large Mobile (481px - 768px) */
@media (max-width: 768px) {
  .nav-links, .nav-actions .btn {
    display: none;
  }

  .mobile-nav-toggle {
    display: block;
  }

  .hero-section {
    padding-top: 7.5rem;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .security-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .floating-card-1 {
    left: -10px;
  }

  .floating-card-2 {
    right: -10px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* Small Mobile (320px - 480px) */
@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem;
  }

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

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

  .features-grid {
    grid-template-columns: 1fr;
  }

  .phone-mockup-frame {
    width: 270px;
  }

  .floating-card {
    padding: 0.6rem 0.85rem;
  }

  .floating-card .amount {
    font-size: 0.85rem;
  }

  .dashboard-showcase-card {
    padding: 1.5rem 1rem;
  }

  .metrics-list {
    grid-template-columns: 1fr;
  }

  .banner-card {
    padding: 1.5rem;
  }

  .pricing-card {
    padding: 1.5rem;
  }

  .download-section {
    padding: 2.5rem 1rem;
  }
}
