/* ==========================================================================
   NIGHTLIFE HOSPITALITY - ADVANCED MOBILE RESPONSIVE DESIGN SYSTEM
   ========================================================================== */

/* --- Prevent Horizontal Scrolling Globally --- */
html, body {
  overflow-x: hidden !important;
  width: 100% !important;
  position: relative;
}

/* ==========================================================================
   1. TABLET & LAPTOP RESPONSIVE RULES (max-width: 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-text {
    text-align: center;
  }

  .hero-tagline-box {
    text-align: center;
    border-left: none;
    border-top: 3px solid var(--gold-primary);
    border-radius: var(--radius-sm);
  }

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

  .how-it-works-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .showcase-block, 
  .showcase-block.reverse {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .showcase-block.reverse .showcase-text {
    order: 1;
  }

  .showcase-block.reverse .showcase-media {
    order: 2;
  }

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

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

/* ==========================================================================
   2. TABLET PORTRAIT & MOBILE OVERLAY RULES (max-width: 820px)
   ========================================================================== */
@media (max-width: 820px) {
  .header-top-bar {
    display: none;
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
  }

  .main-nav {
    position: fixed;
    top: 65px;
    left: 0;
    width: 100%;
    height: calc(100vh - 65px);
    background: rgba(13, 14, 21, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 1.5rem;
    padding: 2.5rem 1.5rem;
    transform: translateX(100%);
    transition: var(--transition-normal);
    z-index: 999;
    overflow-y: auto;
  }

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

  .nav-item {
    width: 100%;
    text-align: center;
  }

  .nav-link {
    font-size: 1.1rem;
    padding: 0.75rem 0;
    justify-content: center;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    box-shadow: none;
    text-align: center;
    margin-top: 0.75rem;
    min-width: 100%;
    border-radius: var(--radius-sm);
    padding: 0.5rem 0;
  }

  .dropdown-item a {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
  }

  .dropdown-item a:hover {
    padding-left: 1rem;
    background: rgba(204, 170, 106, 0.2);
  }

  .protocol-timeline {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

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

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

/* ==========================================================================
   3. SMALL TABLET & PHABLET RULES (max-width: 600px)
   ========================================================================== */
@media (max-width: 600px) {
  .container {
    padding: 0 1.25rem;
  }

  .section-padding {
    padding: 4rem 0;
  }

  .page-header-banner {
    padding: 120px 0 40px;
  }

  .page-header-banner h1 {
    font-size: clamp(1.8rem, 6.5vw, 2.4rem);
  }

  .breadcrumb-nav {
    flex-wrap: wrap;
    font-size: 0.85rem;
  }

  .glass-card {
    padding: 1.5rem;
  }

  .escalation-protocol-box {
    padding: 1.25rem;
  }

  .terminal-highlight-card {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 1.5rem 1.25rem;
  }

  .terminal-icon {
    width: 55px;
    height: 55px;
    font-size: 1.5rem;
  }
}

/* ==========================================================================
   4. SMARTPHONE MOBILE RULES (max-width: 480px)
   ========================================================================== */
@media (max-width: 480px) {
  h1 {
    font-size: clamp(1.75rem, 7vw, 2.3rem);
  }

  h2 {
    font-size: clamp(1.35rem, 5.5vw, 1.85rem);
  }

  h3 {
    font-size: clamp(1.1rem, 4.5vw, 1.4rem);
  }

  p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .section-padding {
    padding: 3rem 0;
  }

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

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

  .hero-section {
    min-height: auto;
    padding-top: 105px;
    padding-bottom: 50px;
  }

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

  .btn-primary, 
  .btn-secondary {
    width: 100%;
    min-height: 48px;
    font-size: 0.95rem;
    padding: 0.85rem 1.25rem;
  }

  /* Prevent auto-zoom on iOS inputs */
  .form-control,
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  select,
  textarea {
    font-size: 16px !important;
    padding: 0.85rem 1rem;
    min-height: 48px;
  }

  textarea.form-control {
    min-height: 110px;
  }

  .step-card {
    padding: 2rem 1.25rem 1.75rem;
  }

  .step-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }

  .feature-list li {
    font-size: 0.95rem;
  }

  /* Consultation Modal Mobile Sizing */
  .modal-container form div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  .modal-overlay {
    padding: 0.75rem;
  }

  .modal-container {
    padding: 1.5rem 1.15rem;
    max-width: 95vw;
    max-height: 88vh;
    overflow-y: auto;
    border-radius: var(--radius-md);
  }

  .modal-close-btn {
    top: 0.85rem;
    right: 0.85rem;
    width: 38px;
    height: 38px;
  }
}

/* ==========================================================================
   5. ULTRA-SMALL SMARTPHONES (max-width: 360px)
   ========================================================================== */
@media (max-width: 360px) {
  .container {
    padding: 0 0.85rem;
  }

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

  .badge-tag {
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
  }

  .glass-card {
    padding: 1.15rem;
  }

  .modal-container {
    padding: 1.25rem 0.9rem;
  }
}
