/* ==========================================================================
   M N ENTERPRISE - ULTRA-RESPONSIVE MOBILE & MULTI-DEVICE STYLESHEET
   100% Mobile Optimized for iPhone, Android, Tablets, iPads & Foldables
   ========================================================================== */

/* Touch-Friendly Global Enhancements */
button, select, input, .material-chip, .filter-tab-btn, .zone-tab-btn, .mobile-sticky-btn {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Ensure no horizontal overflow on any device */
html, body {
  max-width: 100vw;
  overflow-x: hidden !important;
}

/* ==========================================================================
   TABLET LANDSCAPE & SMALL LAPTOPS (<= 1024px)
   ========================================================================== */
@media screen and (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-content {
    text-align: left;
  }

  .hero-description {
    max-width: 100%;
  }

  .calc-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

  .coverage-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .location-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .features-grid-3x2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .corporate-banner-box {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.5rem;
  }

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

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

/* ==========================================================================
   TABLETS & MEDIUM PHONES (<= 768px)
   ========================================================================== */
@media screen and (max-width: 768px) {
  .section-padding {
    padding: 3.5rem 0;
  }

  .section-header {
    margin-bottom: 2.5rem;
    padding: 0 0.5rem;
  }

  .section-title {
    font-size: 1.95rem;
    line-height: 1.25;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  /* Hide Desktop Top Bar on Mobile */
  .top-notice-bar {
    display: none;
  }

  /* Mobile Navbar Navigation */
  .navbar {
    padding: 0.75rem 0;
  }

  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.08);
    font-size: 1.5rem;
  }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: #0b132b;
    flex-direction: column;
    padding: 1.75rem 1.5rem;
    gap: 1rem;
    border-bottom: 2px solid var(--accent-amber);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    font-size: 1.1rem;
    padding: 0.5rem 0;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-actions .btn-whatsapp {
    display: none; /* Accessible directly in Mobile Sticky Bar */
  }

  .nav-actions .btn-primary {
    padding: 0.55rem 0.95rem;
    font-size: 0.85rem;
  }

  /* Hero Section */
  .hero-section {
    padding: 2.75rem 0 3.5rem;
  }

  .hero-badge-wrap {
    font-size: 0.8rem;
    padding: 0.35rem 0.85rem;
  }

  .hero-title {
    font-size: 2.25rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  .hero-description {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero-features-list {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    margin-bottom: 1.75rem;
  }

  .hero-feature-item {
    font-size: 0.9rem;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .hero-stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding-top: 1.5rem;
  }

  .hero-stat-number {
    font-size: 1.55rem;
  }

  .hero-stat-label {
    font-size: 0.75rem;
  }

  /* Quick Hero Form */
  .hero-form-card {
    padding: 1.5rem;
  }

  .form-header h3 {
    font-size: 1.2rem;
  }

  /* Calculator Section */
  .calculator-wrapper {
    padding: 2rem 1.25rem;
    border-radius: var(--radius-lg);
  }

  .calc-title {
    font-size: 1.6rem;
  }

  .material-chips-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .material-chip {
    padding: 0.6rem 0.4rem;
    font-size: 0.825rem;
    min-height: 52px;
  }

  .calc-result-card {
    padding: 1.75rem 1.25rem;
  }

  .calc-price-amount {
    font-size: 2.5rem;
  }

  /* Category Cards & Filters */
  .category-filter-tabs {
    gap: 0.4rem;
    margin-bottom: 2rem;
  }

  .filter-tab-btn {
    padding: 0.5rem 0.95rem;
    font-size: 0.825rem;
  }

  .categories-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .category-header {
    padding: 1.25rem 1.25rem 0.75rem;
  }

  .category-body {
    padding: 0 1.25rem 1.25rem;
  }

  .category-footer {
    padding: 1rem 1.25rem;
  }

  /* Steps & Features */
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .step-card {
    padding: 1.75rem 1.25rem;
  }

  .features-grid-3x2 {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .feature-box {
    padding: 1.75rem 1.25rem;
  }

  /* Pan India Cities */
  .cities-card-box {
    padding: 1.75rem 1.25rem;
  }

  .city-zone-tabs {
    gap: 0.4rem;
  }

  .zone-tab-btn {
    padding: 0.45rem 0.75rem;
    font-size: 0.775rem;
  }

  .city-pill {
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
  }

  /* Location & Map Card */
  .location-info-card {
    padding: 1.75rem 1.25rem;
  }

  .location-info-card h3 {
    font-size: 1.5rem;
  }

  .location-details-list {
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .location-detail-row {
    gap: 0.75rem;
  }

  .location-icon-box {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }

  .location-cta-group {
    flex-direction: column;
    gap: 0.65rem;
  }

  .location-cta-group .btn {
    width: 100%;
  }

  .map-frame-wrapper {
    min-height: 340px;
  }

  .map-frame-wrapper iframe {
    min-height: 340px;
  }

  /* Corporate & Testimonials */
  .corporate-banner-box {
    padding: 1.75rem 1.25rem;
  }

  .corporate-content h2 {
    font-size: 1.75rem;
  }

  .corporate-perks-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .corporate-card-cta {
    padding: 1.5rem;
  }

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

  .testimonial-card {
    padding: 1.75rem 1.25rem;
  }

  /* CTA Banner & Footer */
  .cta-banner-content h2 {
    font-size: 1.85rem;
  }

  .cta-banner-buttons {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

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

  .footer {
    padding: 3.5rem 0 1.5rem;
  }

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

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

  /* ==========================================================================
     MOBILE STICKY BOTTOM BAR (iOS & Android Optimized)
     ========================================================================== */
  .mobile-sticky-bar {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(7, 13, 30, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.55rem 0.75rem;
    padding-bottom: max(0.55rem, env(safe-area-inset-bottom));
    z-index: 1050;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
  }

  .mobile-sticky-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr 1.15fr;
    gap: 0.5rem;
  }

  .mobile-sticky-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.7rem 0.4rem;
    min-height: 46px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  }

  .mobile-sticky-btn.call {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f8fafc;
  }

  .mobile-sticky-btn.whatsapp {
    background: var(--whatsapp-green);
    color: #ffffff;
  }

  .mobile-sticky-btn.pickup {
    background: linear-gradient(135deg, var(--accent-amber), #d97706);
    color: #0f172a;
  }

  /* Provide clearance for the sticky footer */
  body {
    padding-bottom: 74px;
  }

  /* Floating WhatsApp adjust position above sticky bar */
  .floating-whatsapp-btn {
    bottom: 84px;
    right: 16px;
    width: 52px;
    height: 52px;
    font-size: 1.7rem;
    z-index: 1040;
  }

  .floating-whatsapp-tooltip {
    display: none; /* Hide hover tooltip on touch devices */
  }

  /* Modal on Mobile */
  .modal-overlay {
    padding: 1rem;
  }

  .modal-card {
    padding: 1.5rem 1.25rem;
    border-radius: var(--radius-lg);
    max-height: 85vh;
  }

  .form-row-2 {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

/* ==========================================================================
   EXTRA SMALL MOBILE SCREENS (iPhone SE, Galaxy Fold, <= 380px)
   ========================================================================== */
@media screen and (max-width: 380px) {
  .hero-title {
    font-size: 1.85rem;
  }

  .brand-name {
    font-size: 1.15rem;
  }

  .brand-icon {
    width: 36px;
    height: 36px;
    font-size: 1.15rem;
  }

  .material-chips-grid {
    grid-template-columns: 1fr;
  }

  .calc-price-amount {
    font-size: 2.1rem;
  }

  .mobile-sticky-btn {
    font-size: 0.75rem;
    padding: 0.55rem 0.25rem;
    gap: 0.2rem;
  }

  .mobile-sticky-btn i {
    font-size: 0.85rem;
  }

  .section-title {
    font-size: 1.65rem;
  }
}
