/* responsive.css */

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .nav-menu {
    display: none; /* Hide default nav menu on mobile */
  }

  .hamburger {
    display: flex; /* Show burger icon */
  }

  /* Mobile Nav Menu Overrides */
  header.sticky-header:has(.mobile-open) {
    height: 100vh !important;
    background: var(--bg-surface) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .nav-menu.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 4.5rem;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-surface);
    padding: 2rem 1.5rem;
    gap: 1.5rem;
    overflow-y: auto;
    z-index: 10000;
    border-top: 1px solid var(--border);
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }

  .nav-link {
    font-size: 1.15rem;
    padding: 0.85rem 0;
    width: 100%;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    justify-content: space-between;
    color: var(--text-primary);
    font-weight: 600;
  }

  .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    background-color: rgba(0, 0, 0, 0.02);
    border-left: 2px solid var(--primary);
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    display: none;
  }

  html.dark .dropdown-menu {
    background-color: rgba(255, 255, 255, 0.02);
  }

  .dropdown.active .dropdown-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .dropdown-toggle svg {
    transition: transform var(--transition-normal);
  }

  .dropdown.active .dropdown-toggle svg {
    transform: rotate(180deg);
  }

  .nav-actions {
    gap: 0.75rem;
  }

  .nav-actions .btn-primary {
    display: none; /* Hide main CTA on small screens in navbar, placed in mobile menu or hero */
  }

  .mobile-menu-cta {
    display: block !important;
    width: 100%;
    margin-top: 1rem;
  }

  /* Footer adjustments */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-brand {
    align-items: center;
    text-align: center;
  }

  .footer-brand .footer-desc {
    max-width: 100%;
  }

  .footer-title, .footer-links {
    text-align: center;
    align-items: center;
  }

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

@media (max-width: 480px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

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

  .nav-actions .btn-icon {
    width: 2.25rem;
    height: 2.25rem;
  }
}

/* Animations for Mobile Navigation */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
