/* ==========================================================================
   BC SERVICES - RESPONSIVE STYLESHEET
   Comprehensive break points for Mobile, Tablet, Laptop, and Desktop
   ========================================================================== */

/* Mobile Menu Overlay Backdrop */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 8, 20, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Tablets & Small Desktops (<= 991px) */
@media (max-width: 991px) {
  .topbar {
    display: none;
  }

  .site-header {
    background: rgba(4, 8, 20, 0.96);
  }

  .navbar {
    height: 68px;
  }

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

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

  .mobile-toggle {
    display: flex !important;
  }

  /* Slide-Out Mobile Navigation Drawer */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -340px;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: #070d1e;
    border-left: 1px solid var(--border-glow);
    flex-direction: column;
    align-items: stretch;
    padding: 24px 22px 35px 22px;
    gap: 12px;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -15px 0 40px rgba(0, 0, 0, 0.8);
    z-index: 999;
    overflow-y: auto;
  }

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

  .drawer-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 18px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
  }

  .drawer-header img {
    height: 34px;
    width: auto;
  }

  .drawer-close-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    color: var(--accent-cyan);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition-fast);
  }

  .drawer-close-btn:hover {
    background: rgba(0, 240, 255, 0.2);
    color: #fff;
  }

  .nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
  }

  .nav-link:hover, .nav-link.active {
    background: rgba(0, 240, 255, 0.1);
    border-color: var(--border-glow);
    color: var(--accent-cyan);
  }

  .nav-link::after {
    display: none;
  }

  /* Submenus in Drawer */
  .has-dropdown {
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: rgba(4, 8, 20, 0.8);
    width: 100%;
    box-shadow: none;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-top: 6px;
    padding: 6px 0;
    display: none;
  }

  .has-dropdown.active .dropdown-menu {
    display: block;
  }

  .dropdown-item {
    padding: 10px 18px;
    font-size: 0.9rem;
  }

  /* Responsive Section Layouts */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-content p {
    margin: 0 auto 30px auto;
  }

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

  .sidebar-grid-layout, .contact-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 35px;
  }
}

/* Laptops (992px to 1199px) */
@media (max-width: 1199px) {
  .hero-content h1 {
    font-size: 2.9rem;
  }

  .main-title {
    font-size: 2.2rem;
  }

  .services-grid, .projects-grid, .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile Devices (< 768px) */
@media (max-width: 767px) {
  .section-padding {
    padding: 55px 0;
  }

  .hero-content h1 {
    font-size: 2.1rem;
  }

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

  .page-banner {
    padding: 55px 0 45px 0;
  }

  .page-banner h1 {
    font-size: 1.85rem;
  }

  .services-grid, .projects-grid, .blog-grid {
    grid-template-columns: 1fr;
  }

  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

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

  .btn {
    width: 100%;
  }

  .hero-badge-experience {
    position: relative;
    bottom: auto;
    left: auto;
    margin-top: 25px;
    justify-content: center;
    width: 100%;
  }

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

  .footer-bottom .container {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* Small Phones (< 480px) */
@media (max-width: 479px) {
  .container {
    padding: 0 16px;
  }

  .hero-content h1 {
    font-size: 1.75rem;
  }

  .service-card, .contact-info-box, .contact-form-box, .sidebar-widget {
    padding: 24px 18px;
  }
}
