/* =========================================
   RESPONSIVE STYLES — Mobile First
   ========================================= */

/* Smartphone (320px+) */
@media (max-width: 767px) {
  .main-nav {
    transform: translateX(100%) !important;
  }
  .main-nav.open {
    transform: translateX(0) !important;
  }
  .nav-list,
  .nav-actions {
    flex-direction: column !important;
  }
  .container {
    padding: 0 1rem;
  }

  .header-inner {
    height: 64px;
  }

  .brand-name {
    font-size: 1rem;
  }

  .brand-slogan {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 2rem 1rem;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 999;
    overflow-y: auto;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    gap: 1.5rem;
  }

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

  .nav-actions {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }

  .nav-actions .btn {
    width: 100%;
  }

  .hero {
    padding: 7rem 0 3rem;
    min-height: auto;
  }

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

  .hero-visual {
    min-height: 320px;
    order: -1;
  }

  .hero-card {
    padding: 1rem;
  }

  .hero-card--credit {
    top: 5%;
    left: 0;
  }

  .hero-card--debit {
    bottom: 10%;
    right: 0;
  }

  .hero-chart {
    left: 10%;
    bottom: 2%;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .section {
    padding: 4rem 0;
  }

  .section-title {
    font-size: 1.75rem;
  }

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

  .value-card {
    padding: 1.5rem;
  }

  .feature-row {
    flex-direction: column;
    gap: 1rem;
  }

  .feature-number {
    font-size: 1.5rem;
  }

  .cta-box {
    padding: 2rem 1.5rem;
  }

  .cta-actions {
    flex-direction: column;
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-brand {
    justify-content: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-nav ul {
    align-items: center;
  }

  /* Form Mobile */
  .form-card {
    padding: 1.5rem;
    border-radius: 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .type-selector {
    grid-template-columns: 1fr;
  }

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

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

  /* Dashboard Mobile */
  .dashboard-cards {
    grid-template-columns: 1fr;
  }

  .dashboard-charts {
    grid-template-columns: 1fr;
  }

  .chart-container {
    height: 260px;
  }

  .dashboard-actions {
    justify-content: stretch;
  }

  .dashboard-actions .btn {
    flex: 1;
  }

  .calendar-grid {
    gap: 0.25rem;
  }

  .calendar-day {
    font-size: 0.75rem;
  }

  .data-table {
    font-size: 0.875rem;
  }

  .data-table th,
  .data-table td {
    padding: 0.75rem;
  }

  .toast {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: none;
  }
}

/* Tablet (768px+) */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-visual {
    order: -1;
  }

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

  .dashboard-charts {
    grid-template-columns: 1fr;
  }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  .container {
    max-width: 1200px;
  }

  .hero-content {
    gap: 5rem;
  }

  .value-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Ultra-wide (1440px+) */
@media (min-width: 1440px) {
  .container {
    max-width: 1400px;
  }

  .hero {
    padding: 9rem 0 6rem;
  }

  .hero-content {
    gap: 7rem;
  }

  .hero-visual {
    min-height: 500px;
  }

  .value-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

/* Touch target adjustments */
@media (pointer: coarse) {
  .btn,
  .nav-link,
  .footer-nav a,
  .footer-social a,
  .calendar-day,
  .menu-toggle,
  .calendar-nav button {
    min-height: 44px;
  }

  .calendar-day {
    min-width: 44px;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .btn-primary,
  .btn-secondary,
  .btn-whatsapp {
    border: 2px solid currentColor;
  }

  .nav-link::after,
  .hero-chart__bar,
  .value-card__icon {
    background: currentColor;
  }
}
