/* =========================
   RESPONSIVE DESIGN (REFINED)
   ========================= */

/* TABLET & MOBILE */
@media (max-width: 992px) {
  .footer-redesign .footer-grid-layout {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }

  .footer-brand-block.centered {
    margin-bottom: 40px;
  }

  .footer-left-panel {
    align-items: center;
  }

  .logo-container img {
    height: 120px;
    /* Scale down logo slightly earlier */
  }
}

/* MOBILE ONLY */
@media (max-width: 768px) {
  :root {
    --container-padding: 20px;
  }

  body {
    padding-top: 100px !important;
    /* CRITICAL: Fixed the 'stuck halfway' issue by overriding aggressive desktop padding */
    overflow-x: hidden !important;
  }

  /* Keep glassmorphism but refine it */
  .glass-panel {
    padding: 30px 20px;
  }

  /* TYPOGRAPHY OVERRIDES */
  h1 {
    font-size: 2rem !important;
    line-height: 1.2 !important;
  }

  h2 {
    font-size: 1.6rem !important;
  }

  h3 {
    font-size: 1.3rem !important;
  }

  p {
    font-size: 1rem !important;
  }

  /* NAVIGATION */
  .navbar {
    padding: 10px 20px !important;
    gap: 15px !important;
    height: 120px !important;
    background: rgba(10, 11, 20, 0.95) !important;
    /* Add background for visibility when scrolling */
    backdrop-filter: blur(10px) !important;
  }

  /* Hide desktop-only nav elements */
  .nav-center,
  .btn-nav-cta {
    display: none !important;
  }

  .mobile-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: white;
    font-size: 1.6rem;
    cursor: pointer;
    z-index: 1001;
  }

  .logo-container {
    min-width: auto !important;
  }

  .logo-container img {
    height: 100px !important;
    /* Increased size for better mobile visibility */
  }

  /* HERO SECTION */
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-visual {
    order: -1;
    width: 60%;
    margin: 0 auto;
  }

  /* USE CASES / CAROUSEL */
  .carousel-slide {
    padding: 0 5px;
  }

  .carousel-btn {
    display: none !important;
  }

  /* FAQ */
  .faq-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .faq-sidebar {
    order: 2;
    display: flex;
    overflow-x: auto;
    padding: 10px 0;
    gap: 15px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .faq-sidebar::-webkit-scrollbar {
    display: none;
  }

  .faq-tab {
    flex-shrink: 0;
    width: 85%;
    scroll-snap-align: center;
    margin-bottom: 0;
  }

  .faq-content-area {
    order: 1;
  }

  /* FOOTER & MAP */
  .map-wrapper-enlarged {
    width: 100% !important;
    margin-left: 0 !important;
    max-width: 100% !important;
  }

  .footer-contact-info {
    flex-direction: column !important;
    gap: 20px !important;
    align-items: center !important;
  }

  /* MOBILE MENU OVERLAY */
  .mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #0f1724;
    background: rgba(10, 11, 20, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100000;
  }

  .mobile-menu.active {
    display: flex !important;
  }

  .mobile-links {
    list-style: none;
    padding: 0;
    text-align: center;
  }

  .mobile-links li {
    margin: 20px 0;
  }

  .mobile-links a {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
  }

  .mobile-close {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 2.2rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
  }
}