/* Responsive CSS */

/* Container and Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

/* Mobile Navigation */
.mobile-nav-toggle {
  display: none;
}
.nav-links {
  display: flex;
  align-items: center;
}

/* Tablet */
@media (max-width: 992px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .grid-3, .grid-2 {
    grid-template-columns: 1fr;
  }
  
  .section {
    padding: 60px 0;
  }

  .mobile-nav-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--brand-dark);
  }

  .nav-right {
    display: none;
  }

  .nav-links {
    display: none !important; /* Hide desktop menu entirely */
  }

  /* NEW MOBILE MENU STYLES */
  .mobile-nav-wrapper {
    display: block;
  }

  .mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 26, 58, 0.6);
    z-index: 9998;
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  .mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .mobile-nav-panel {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100vh;
    background: var(--brand-white);
    z-index: 9999;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 25px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
  }
  .mobile-nav-panel.active {
    right: 0;
  }

  .mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--brand-border);
  }

  .mobile-nav-close {
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: var(--brand-dark);
    cursor: pointer;
    padding: 0;
  }

  .mobile-nav-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
  }

  .mobile-nav-link {
    display: block;
    padding: 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--brand-text);
    border-bottom: 1px solid var(--brand-light);
    text-decoration: none;
  }

  .mobile-nav-dropdown-btn {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--brand-text);
    border-bottom: 1px solid var(--brand-light);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
  }
  
  .mobile-nav-dropdown-btn .arrow {
    transition: transform 0.3s ease;
  }
  .mobile-nav-dropdown.active .mobile-nav-dropdown-btn .arrow {
    transform: rotate(180deg);
  }

  .mobile-nav-dropdown-content {
    display: none;
    padding: 10px 0 10px 16px;
    background: var(--brand-light);
    border-bottom: 1px solid var(--brand-border);
    border-radius: 0 0 8px 8px;
  }
  .mobile-nav-dropdown.active .mobile-nav-dropdown-content {
    display: block;
  }

  .mobile-nav-dropdown-content a {
    display: block;
    padding: 10px 0;
    color: var(--brand-text);
    font-size: 15px;
    text-decoration: none;
  }
}

/* Hide mobile nav wrapper on desktop */
@media (min-width: 769px) {
  .mobile-nav-wrapper {
    display: none;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  input, select, textarea, .btn-primary, .btn-secondary, .btn-ghost {
    width: 100%;
  }
}
