/* ==========================================================================
   SATYAM METRO ONE CREST — Responsive Breakpoints & Touch Adaptation (responsive.css)
   Mobile-first touch sizing, tablet layout, and fixed mobile bottom bar
   ========================================================================== */

/* Coarse Pointer / Touch Device Target Sizing (WCAG 2.5.5) */
@media (pointer: coarse) {
  :root {
    --target-size: 44px;
  }

  :where(button, select, input:not([type="checkbox"], [type="radio"]), nav a, .btn) {
    min-block-size: 48px;
  }
}

/* Tablet & Below (<= 991.98px) */
@media (max-width: 991.98px) {
  :root {
    --nav-height: 74px;
  }

  .hero-section {
    min-block-size: auto;
    padding-block: 3rem 3.5rem;
  }

  .hero-scrim {
    background: linear-gradient(
      180deg,
      rgba(5, 13, 26, 0.9) 0%,
      rgba(8, 20, 40, 0.82) 55%,
      rgba(5, 13, 26, 0.92) 100%
    );
  }

  .primary-nav-links {
    padding-block: 0.75rem;
    border-block-start: 1px solid rgba(255, 255, 255, 0.1);
    margin-block-start: 0.75rem;
  }

  .map-frame-wrap,
  .map-frame-wrap iframe {
    min-block-size: 320px;
  }
}

/* Mobile Viewports (<= 767.98px) */
@media (max-width: 767.98px) {
  html {
    scroll-padding-bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
  }

  body {
    padding-block-end: calc(4.25rem + env(safe-area-inset-bottom, 0px));
  }

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

  /* Keep Floating WhatsApp Button clear of the Fixed Mobile Bottom Bar */
  .whatsapp-fab {
    inset-block-end: calc(4.85rem + env(safe-area-inset-bottom, 0px));
    inset-inline-end: 1rem;
    inline-size: 52px;
    block-size: 52px;
    padding: 0;
    justify-content: center;
  }

  .whatsapp-fab span {
    display: none;
  }

  .overview-floating-badge {
    position: static;
    border-radius: 0;
    border-inline-start: 0;
    border-block-start: 3px solid var(--gold-500);
  }

  .pricing-card {
    padding: 1.5rem;
  }

  .faq-item summary {
    padding: 1rem 1.1rem;
  }

  .faq-body {
    padding: 0 1.1rem 1.1rem 2.35rem;
  }

  .hero-slider-bar-inner {
    padding: 0.65rem 0.85rem;
  }

  .hero-slide-caption {
    font-size: 0.78rem;
  }
}

/* Small Phones (<= 380px) */
@media (max-width: 380px) {
  .brand-title {
    font-size: 1.25rem;
  }

  .brand-subtitle {
    font-size: 0.58rem;
  }

  .mobile-bar-action {
    font-size: 0.75rem;
    gap: 0.25rem;
  }
}
