/* ==========================================================================
   HDM Broadband — Responsive
   ========================================================================== */

@media (max-width: 1200px) {
  :root {
    --header-offset: 110px;
  }
}

@media (max-width: 1024px) {
  .highlights-grid,
  .services-grid,
  .plans-grid,
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .hero-grid,
  .about-grid,
  .tech-grid,
  .faq-layout,
  .availability-box,
  .contact-grid,
  .service-detail {
    grid-template-columns: 1fr;
  }

  .service-detail.reverse .service-detail-media {
    order: 0;
  }

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

  .faq-intro {
    position: static;
  }

  .hero-visual {
    order: -1;
  }

  .hero-float {
    display: none;
  }
}

@media (max-width: 900px) {
  :root {
    --header-offset: 72px;
  }

  .top-bar {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    position: fixed;
    inset: var(--header-offset) 0 auto 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 1rem;
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    max-height: calc(100vh - var(--header-offset));
    overflow-y: auto;
    z-index: 999;
  }

  .nav-menu.is-open {
    display: flex;
  }

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

  .nav-links a {
    padding: 0.85rem 1rem;
    border-radius: 12px;
  }

  .nav-actions {
    flex-direction: column;
    width: 100%;
    margin-top: 0.5rem;
  }

  .nav-actions .btn {
    width: 100%;
  }

  .comparison-wrap {
    display: none;
  }

  .mobile-plan-cards {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
  }

  .mobile-plan-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
  }

  .mobile-plan-card h3 {
    font-family: var(--font-display);
    color: var(--dark);
    margin-bottom: 0.5rem;
  }

  .mobile-plan-card dl {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }

  .mobile-plan-card dt {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text);
    font-weight: 700;
  }

  .mobile-plan-card dd {
    color: var(--text-dark);
    font-weight: 600;
    margin: 0 0 0.35rem;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 3.5rem 0;
  }

  .highlights {
    margin-top: -1.5rem;
  }

  .highlights-grid,
  .services-grid,
  .plans-grid,
  .why-grid,
  .tech-visuals,
  .form-grid {
    grid-template-columns: 1fr;
  }

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

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

  .hero-slide {
    padding: 3rem 0 4rem;
  }

  .brand-text span {
    font-size: 1rem;
  }

  .brand img {
    width: 44px;
    height: 44px;
  }

  .page-hero {
    padding: 2.5rem 0;
  }

  .availability-copy,
  .availability-form,
  .contact-form-card {
    padding: 1.5rem;
  }

  .btn-group {
    width: 100%;
  }

  .btn-group .btn {
    flex: 1 1 auto;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 1.25rem, var(--container));
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .nav-actions-desktop-call {
    display: none;
  }

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

  .footer-legal {
    justify-content: center;
  }
}

@media (min-width: 901px) {
  .nav-menu {
    display: flex !important;
    align-items: center;
    gap: 1.25rem;
    position: static;
    box-shadow: none;
    border: 0;
    padding: 0;
    background: transparent;
    max-height: none;
    overflow: visible;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
