/* ==========================================================================
   BANDHAN PARIVAR SECURITY GUARD SERVICES - RESPONSIVE STYLES
   ========================================================================== */

/* LAPTOP VIEWPORT (max-width: 1024px) */
@media screen and (max-width: 1024px) {
  section {
    padding: 80px 0;
  }

  .container {
    padding: 0 20px;
  }

  /* Why Choose Us Section */
  .why-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .why-visual-grid {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

/* TABLET VIEWPORT (max-width: 768px) */
@media screen and (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  section {
    padding: 60px 0;
  }

  /* Topbar Hide on mobile/tablet to save space */
  .topbar {
    display: none;
  }

  /* Hamburger Navigation */
  .hamburger {
    display: block;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background-color: var(--color-gold);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background-color: var(--color-gold);
  }

  .nav-links-wrapper {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--color-dark);
    flex-direction: column;
    justify-content: flex-start;
    padding: 40px 24px;
    transition: var(--transition-smooth);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 999;
    overflow-y: auto;
  }

  .nav-links-wrapper.active {
    left: 0;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 16px;
    align-items: stretch;
  }

  .nav-links a {
    display: block;
    padding: 16px;
    font-size: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    text-align: center;
    border-radius: 4px;
  }

  .nav-links a::after {
    display: none; /* Hide hover line effect */
  }

  .nav-links a:hover,
  .nav-links a.active {
    background-color: rgba(201, 151, 58, 0.08);
  }

  .btn-nav-cta {
    margin-left: 0;
    margin-top: 24px;
    width: 100%;
    padding: 14px;
  }

  /* Floating elements position on smaller screens */
  .whatsapp-float {
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    font-size: 24px;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .iso-floating-badge {
    display: none; /* Hide floating ISO badge on small touch screens to avoid overlap */
  }
}

/* MOBILE VIEWPORT (max-width: 576px) */
@media screen and (max-width: 576px) {
  /* Logo adjustments */
  .logo-main {
    font-size: 16px;
  }

  .logo-sub {
    font-size: 8px;
    letter-spacing: 0.15em;
  }

  .logo-shield {
    width: 40px;
    height: 45px;
    font-size: 20px;
  }

  /* Section Title scaling */
  .section-title {
    font-size: 28px;
  }

  .section-header {
    margin-bottom: 40px;
  }

  /* Grid lists */
  .why-visual-grid {
    grid-template-columns: 1fr;
  }

  .why-stat-box.highlight {
    grid-column: span 1;
  }

  /* CTA Banner */
  .cta-banner {
    padding: 60px 0;
  }

  .cta-banner-buttons {
    flex-direction: column;
    align-items: stretch;
    padding: 0 16px;
  }

  .cta-banner-buttons .btn {
    width: 100%;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    padding: 20px 0;
  }
}
