/* ==============================================================================
   AU NETWORKS (PRIVATE) LIMITED - RESPONSIVE STYLESHEET
   Supports: Large Desktops, Laptops, Tablets, and Mobile Devices
   ============================================================================== */

/* --- Mobile Quick Action Bottom Bar (High Conversion on Mobile) --- */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background: rgba(6, 11, 30, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border-subtle);
  z-index: 998;
  padding: 8px 16px;
}

.mobile-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  height: 100%;
}

.mobile-bar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  height: 100%;
}

.mobile-bar-call {
  background: var(--grad-primary);
  color: #FFFFFF;
}

.mobile-bar-wa {
  background: #25D366;
  color: #FFFFFF;
}

/* --- Breakpoint: 1024px (Laptops & Large Tablets) --- */
@media screen and (max-width: 1024px) {
  :root {
    --section-pad: 76px 0;
  }

  .nav-menu {
    gap: 20px;
  }

  .nav-link {
    font-size: 0.9rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-headline {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

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

  .hero-official-phones {
    margin: 0 auto;
  }

  .hero-visual {
    max-width: 540px;
    margin: 0 auto;
  }

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

  /* Raising the minimum track width forces two columns here; the base
     auto-fit rule would otherwise squeeze three cramped cards onto a laptop. */
  .packages-grid {
    grid-template-columns: repeat(auto-fit, minmax(340px, 460px));
  }

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

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

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

  .showcase-grid, .showcase-grid.reverse {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .coverage-box-grid {
    grid-template-columns: 1fr;
  }

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

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

  .footer-top-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }
}

/* --- Breakpoint: 768px (Tablets & Mobile Viewports) --- */
@media screen and (max-width: 768px) {
  :root {
    --nav-height: 72px;
    --section-pad: 60px 0;
  }

  body {
    padding-bottom: 64px; /* Room for mobile action bar */
  }

  .mobile-bottom-bar {
    display: block;
  }

  .floating-whatsapp-wrap {
    bottom: 78px; /* Above the mobile bar */
    right: 18px;
  }

  .back-to-top {
    bottom: 78px;
    left: 18px;
    width: 42px;
    height: 42px;
  }

  .floating-whatsapp-btn {
    width: 52px;
    height: 52px;
  }

  .floating-whatsapp-btn svg {
    width: 26px;
    height: 26px;
  }

  /* Mobile Navigation Drawer */
  .mobile-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 82%;
    max-width: 320px;
    height: 100vh;
    height: 100dvh;
    background: #080E21;
    border-left: 1px solid var(--border-subtle);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.6);
    flex-direction: column;
    align-items: flex-start;
    padding: 90px 32px 40px 32px;
    gap: 20px;
    transition: right var(--transition-normal);
    z-index: 999;
    overflow-y: auto;
  }

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

  .nav-menu-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 998;
  }

  .nav-menu-backdrop.open {
    display: block;
  }

  .nav-link {
    font-size: 1.15rem;
    font-weight: 700;
    width: 100%;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-actions {
    display: none; /* Accessible in drawer and mobile bottom bar */
  }

  .drawer-close-row {
    /* Pinned into the drawer's 90px top padding so it never pushes links down. */
    display: flex;
    justify-content: flex-end;
    position: absolute;
    top: 22px;
    right: 24px;
  }

  .drawer-contact-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
  }

  .drawer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    color: #CBD5E1;
    font-weight: 600;
  }

  .hero-headline {
    font-size: 2.2rem;
  }

  .hero-lead {
    font-size: 1rem;
  }

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

  .hero-ctas .btn {
    width: 100%;
  }

  .hero-phones-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .trust-cards-grid {
    grid-template-columns: 1fr;
  }

  .packages-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

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

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

  .calc-controls-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-check-list {
    grid-template-columns: 1fr;
  }

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

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

  .support-cards-grid {
    grid-template-columns: 1fr;
  }

  .support-cta-banner {
    flex-direction: column;
    text-align: center;
  }

  .support-cta-buttons {
    width: 100%;
    justify-content: center;
  }

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

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

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

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

  .footer-bottom-links {
    justify-content: center;
  }

  .badge-top-right, .badge-bottom-left {
    display: none; /* Hide floating badges on tight mobile screens */
  }

  .coverage-form-card, .contact-form-card {
    padding: 24px 20px;
  }

  .modal-card {
    padding: 28px 20px;
  }
}

/* --- Breakpoint: 480px (Compact Mobile Screens) --- */
@media screen and (max-width: 480px) {
  .hero-headline {
    font-size: 1.85rem;
  }

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

  .pkg-speed-number {
    font-size: 2.8rem;
  }

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

  .stat-num-wrap {
    font-size: 2.5rem;
  }

  .bandwidth-calculator-box {
    padding: 24px 16px;
  }

  .calc-result-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .calc-result-text {
    flex-direction: column;
    gap: 6px;
  }
}

/* ==============================================================================
   RESPONSIVE REFINEMENTS
   Covers the elements introduced with the single-helpline contact block and the
   price-free package cards, plus tap-target and overflow safeguards.
   ============================================================================== */

/* Nothing on the page is allowed to widen the viewport — the decorative radar
   rings and long unbroken strings are the usual culprits. `clip` is preferred
   because, unlike `hidden`, it does not turn the element into a scroll
   container, so `scroll-padding-top` on <html> keeps working for anchor jumps. */
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

@supports (overflow: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

/* --- Laptops & large tablets --- */
@media screen and (max-width: 1024px) {
  .hero-phones-note {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-col h4 {
    margin-bottom: 14px;
  }
}

/* --- Tablets & mobile --- */
@media screen and (max-width: 768px) {
  .section-heading {
    margin-bottom: 40px;
  }

  /* Drawer helpline: label above the number, WhatsApp button full width */
  .drawer-contact-block .btn {
    margin-top: 4px;
  }

  .drawer-contact-label {
    margin-bottom: 2px;
  }

  .package-card {
    padding: 32px 22px 26px 22px;
  }

  .pkg-inclusions {
    gap: 7px;
    margin-bottom: 20px;
  }

  .pkg-call-link {
    min-height: 40px;
  }

  /* Stacked label/value reads better than a squeezed two-column row */
  .profile-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .profile-row-value {
    text-align: left;
  }

  .final-cta-buttons,
  .hero-phones-row {
    width: 100%;
  }

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

  .phone-clickable-link {
    width: 100%;
    justify-content: flex-start;
  }

  /* The largest ring is 420px wide and centred, so it spills past a phone
     viewport. Scaling the whole graphic keeps it inside the column. */
  .coverage-radar-wrap {
    height: 340px;
  }

  .radar-circle:nth-child(1) { width: 100px; height: 100px; }
  .radar-circle:nth-child(2) { width: 180px; height: 180px; }
  .radar-circle:nth-child(3) { width: 260px; height: 260px; }
  .radar-circle:nth-child(4) { width: 340px; height: 340px; }
}

/* --- Compact mobile --- */
@media screen and (max-width: 480px) {
  .package-card {
    padding: 30px 18px 24px 18px;
  }

  .pkg-speed-number {
    font-size: 2.6rem;
  }

  .pkg-name {
    font-size: 1.05rem;
    letter-spacing: 1.2px;
  }

  .pkg-category-pill {
    font-size: 0.64rem;
    padding: 3px 8px;
  }

  .pkg-inclusions li {
    font-size: 0.72rem;
    padding: 4px 9px;
  }

  .contact-phone-line a {
    font-size: 1.08rem;
  }

  .contact-info-card {
    padding: 18px 18px;
  }

  /* Keep the section eyebrow on one line on narrow screens */
  .section-badge {
    font-size: 0.68rem;
    letter-spacing: 1px;
  }

  .btn-lg {
    padding: 14px 22px;
    font-size: 0.95rem;
  }

  .mobile-bar-btn {
    font-size: 0.82rem;
  }

  /* The base rule keeps button labels on one line, which would push wide
     labels ("Get Connected on WhatsApp") past the viewport on small screens.
     Wrapping is preferable to a horizontal scrollbar. */
  .btn {
    white-space: normal;
    text-align: center;
  }

  .coverage-radar-wrap {
    height: 280px;
  }

  .radar-circle:nth-child(1) { width: 84px; height: 84px; }
  .radar-circle:nth-child(2) { width: 150px; height: 150px; }
  .radar-circle:nth-child(3) { width: 214px; height: 214px; }
  .radar-circle:nth-child(4) { width: 280px; height: 280px; }
}
