/* ==========================================================================
   TOP 10 GORAKHPUR - RESPONSIVE DESIGN SYSTEM
   Adaptive Mobile, Tablet & Touch Device Styles (360px, 768px, 1024px, 1440px)
   ========================================================================== */

/* Tablet & Laptop (Max 1024px) */
@media (max-width: 1024px) {
  :root {
    --container-padding: 1.5rem;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .editorial-split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

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

  .stat-counter-box {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

/* Tablet & Mobile (Max 768px) */
@media (max-width: 768px) {
  :root {
    --container-padding: 1.25rem;
  }

  .section {
    padding: 4.5rem 0;
  }

  /* Mobile Navigation Drawer */
  .mobile-nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 82%;
    max-width: 360px;
    height: 100vh;
    background: var(--color-white);
    box-shadow: -8px 0 32px rgba(7, 27, 59, 0.2);
    flex-direction: column;
    align-items: flex-start;
    padding: 5.5rem 2rem 3rem 2rem;
    transition: right var(--transition-normal);
    z-index: 1001;
    overflow-y: auto;
  }

  .main-nav.active {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 1rem;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    font-size: 1.15rem;
    color: var(--color-navy);
    width: 100%;
    padding: 0.75rem 0;
  }

  .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
    margin-top: 0.5rem;
    background: var(--color-offwhite);
    display: none;
  }

  .has-dropdown.open .nav-dropdown {
    display: block;
  }

  .header-cta-btn {
    display: none;
  }

  .mobile-drawer-cta {
    display: inline-flex;
    margin-top: 1.5rem;
    width: 100%;
    justify-content: center;
  }

  /* Single Column Stacks */
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .grid-3 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .grid-4 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero-content {
    padding: 5rem 1rem 3rem 1rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

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

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

  .timeline-horizontal-wrapper {
    padding-bottom: 1.5rem;
  }

  .timeline-card {
    min-width: 280px;
    padding: 1.5rem;
  }

  .stat-counter-box {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }

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

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

  .footer-legal-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .newsletter-form {
    flex-direction: column;
    background: transparent;
    padding: 0;
    border: none;
  }

  .newsletter-input {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    padding: 0.9rem 1.4rem;
  }
}

/* Small Smartphone (Max 480px) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2.15rem;
  }

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

  .destination-content {
    padding: 1.25rem;
  }

  .blog-content {
    padding: 1.25rem;
  }

  .btn {
    padding: 0.75rem 1.4rem;
    font-size: 0.9rem;
  }

  .toast {
    min-width: calc(100vw - 2.5rem);
    margin: 0 1.25rem;
  }
}

/* Touch Devices: Disable custom cursor and heavy hover effects */
@media (hover: none) and (pointer: coarse) {
  .custom-cursor,
  .custom-cursor-dot {
    display: none !important;
  }

  * {
    cursor: auto !important;
  }

  .destination-card:hover {
    transform: none;
  }

  .blog-card:hover {
    transform: none;
  }
}

/* Accessibility: Respect Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .site-preloader {
    display: none !important;
  }
}
