/* ==========================================================================
   TARMAL HEALTH CARE & SURGICAL - RESPONSIVE STYLES
   ========================================================================== */

/* Tablets & Small Desktops (max-width: 1024px) */
@media (max-width: 1024px) {
  .top-bar-container {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem 1.5rem;
  }

  .top-bar-left, .top-bar-right {
    justify-content: center;
  }

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

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

  .store-cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

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

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

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

/* Mobile & Small Tablets (max-width: 768px) */
@media (max-width: 768px) {
  .top-bar {
    padding: 0.4rem 0;
  }

  .top-bar-container {
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
  }

  .top-bar-left, .top-bar-right {
    justify-content: center;
    width: 100%;
    gap: 0.65rem;
    flex-wrap: wrap;
  }

  .navbar {
    height: 70px;
  }

  .brand-title {
    font-size: 1.05rem;
    margin: 0 2px;
  }

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

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background-color: #FFFFFF;
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
    gap: 0.75rem;
    border-bottom: 2px solid var(--color-primary);
    box-shadow: var(--shadow-xl);
    display: none;
    z-index: 999;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-link {
    padding: 0.85rem 1rem;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
  }

  .nav-actions .btn-whatsapp-header {
    display: none;
  }

  .hero {
    padding: 3rem 0 3.5rem 0;
  }

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

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

  .hero-intent-switcher {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.75rem;
  }

  .intent-card {
    padding: 1.15rem 1.25rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 0.85rem;
    margin-bottom: 2rem;
  }

  .hero-buttons .btn {
    width: 100%;
    min-height: 48px;
  }

  .hero-stats-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem 0.75rem;
    border-radius: var(--radius-xl);
    padding: 1.25rem 1rem;
  }

  .hero-stats-strip .stat-sep {
    display: none;
  }

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

  .store-feature-card {
    padding: 1.5rem;
  }

  .store-action-bar {
    flex-direction: column;
    width: 100%;
  }

  .store-action-bar .btn {
    width: 100%;
    min-height: 48px;
  }

  .icu-section {
    padding: 2rem 1.5rem;
    margin: 0;
  }

  .icu-bundle-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .icu-footer-row {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 1.5rem 1.25rem;
    gap: 1.25rem;
  }

  .icu-reassurance {
    flex-direction: column;
    text-align: center;
    max-width: 100%;
  }

  .icu-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .icu-cta-group .btn {
    width: 100%;
    min-height: 48px;
  }

  .rent-vs-buy-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    padding: 1.5rem;
    gap: 1.25rem;
  }

  .rent-banner-right .btn {
    width: 100%;
    min-height: 48px;
  }

  .rent-comparison-card {
    padding: 2rem 1.25rem;
    margin-top: -1.5rem;
  }

  .rent-benefits-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

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

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

  .section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

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

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

  body {
    padding-bottom: 74px; /* Ensure content and footer links never get obscured by bottom action bar */
  }

  /* Mobile Thumb-Zone Emergency Bar */
  .floating-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(6, 31, 38, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.3);
    padding: 0.65rem 1rem max(0.65rem, env(safe-area-inset-bottom, 0.65rem)) 1rem;
    flex-direction: row;
    gap: 0.75rem;
    z-index: 1500;
    margin: 0;
  }

  .floating-btn {
    flex: 1;
    justify-content: center;
    padding: 0.75rem 0.5rem;
    font-size: 0.9rem;
    border-radius: var(--radius-md);
    min-height: 48px;
    box-shadow: none;
    text-align: center;
  }

  .floating-call {
    background: linear-gradient(135deg, #0A3641 0%, #061F26 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }

  /* Responsive Modal Adjustments */
  .modal-backdrop {
    padding: 0.75rem;
  }

  .modal-card {
    max-height: 86vh;
    border-radius: var(--radius-lg);
  }

  .modal-close-btn {
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    background: #FFFFFF;
    box-shadow: var(--shadow-sm);
  }

  .product-modal-layout {
    padding: 1.25rem;
    gap: 1.25rem;
  }

  .product-modal-media {
    padding: 1rem;
    min-height: 170px;
  }

  .product-modal-img {
    max-height: 180px;
  }

  .product-modal-title {
    font-size: 1.2rem;
  }

  .product-modal-price-value {
    font-size: 1.35rem;
  }

  .product-modal-cta-group .btn {
    min-height: 48px;
    font-size: 0.95rem;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
  }

  .product-image-container {
    height: 180px;
    padding: 2.5rem 0.75rem 0.75rem;
  }

  .product-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    top: 0.65rem;
    left: 0.65rem;
    right: 0.65rem;
    max-width: calc(100% - 1.3rem);
  }

  .product-badges-bottom {
    gap: 0.4rem;
    margin-bottom: 0.5rem;
  }

  .badge {
    font-size: 0.62rem;
    padding: 0.2rem 0.5rem;
  }

  .product-content {
    padding: 1rem;
  }

  .product-name {
    font-size: 0.95rem;
    min-height: 2.5rem;
  }

  .product-price {
    font-size: 1.05rem;
  }

  .contact-form-container {
    padding: 1.5rem;
  }
}

/* Extra Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-actions.dual-btn {
    grid-template-columns: 1fr;
  }

  .product-price-row.dual-price {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding: 0.6rem;
  }

  .price-divider {
    display: none;
  }

  .product-modal-dual-price {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .product-badges {
    gap: 0.3rem;
    top: 0.6rem;
    left: 0.6rem;
    right: 0.6rem;
    max-width: calc(100% - 1.2rem);
  }

  .product-badges-bottom {
    gap: 0.35rem;
    margin-bottom: 0.45rem;
  }

  .badge {
    font-size: 0.6rem;
    padding: 0.18rem 0.45rem;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }

  .category-card {
    padding: 1.1rem 0.75rem;
  }

  .category-icon-wrapper {
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
  }

  .category-name {
    font-size: 0.9rem;
  }

  .emergency-badge {
    font-size: 0.67rem;
    padding: 0.16rem 0.5rem;
  }

  .top-bar-helpline {
    font-size: 0.77rem;
  }

  .top-bar-location {
    font-size: 0.74rem;
  }

  .top-bar-wa-btn {
    font-size: 0.72rem;
    padding: 0.18rem 0.5rem;
  }

  .intent-card {
    padding: 1rem;
    gap: 0.75rem;
  }

  .intent-icon-badge {
    width: 44px;
    height: 44px;
    font-size: 1.35rem;
  }

  .intent-title {
    font-size: 0.96rem;
  }

  .intent-desc {
    font-size: 0.78rem;
  }

  .hero-stats-strip {
    padding: 1rem 0.75rem;
    gap: 1rem 0.5rem;
  }

  .stat-number {
    font-size: 1.25rem;
  }

  .stat-label {
    font-size: 0.7rem;
  }

  .store-feature-card {
    padding: 1.25rem;
  }

  .rent-vs-buy-banner {
    padding: 1.25rem;
  }

  .rent-banner-left h3 {
    font-size: 1.15rem;
  }
}
