/* ==========================================================================
   MARUTHI MEDICAL SERVICES — RESPONSIVE STYLESHEET
   Mobile-First & Cross-Breakpoint Refinements
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Breakpoint: Large Screens & Ultrawide (1280px and above)
   -------------------------------------------------------------------------- */
@media (min-width: 1280px) {
  .hero-title {
    font-size: 3.25rem;
  }

  .container {
    max-width: 1280px;
  }
}

/* --------------------------------------------------------------------------
   2. Breakpoint: Standard Desktop & Laptops (1025px to 1279px)
   -------------------------------------------------------------------------- */
@media (max-width: 1279px) {
  .hero-container {
    gap: 2.5rem;
  }

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

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

/* --------------------------------------------------------------------------
   3. Breakpoint: Tablets & Small Desktops (769px to 1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  :root {
    --section-padding: 60px 0;
  }

  /* Desktop Nav visibility */
  .desktop-nav {
    display: none;
  }

  .hamburger-btn {
    display: flex;
  }

  /* Top Bar */
  .hide-tablet {
    display: none !important;
  }

  /* Hero Section */
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

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

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

  .hero-cta-group {
    justify-content: center;
  }

  .hero-search-wrapper {
    max-width: 600px;
    width: 100%;
  }

  .search-pills {
    justify-content: center;
  }

  .trust-metrics-grid {
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
  }

  .hero-visual {
    order: -1;
    margin-bottom: 1rem;
  }

  .hero-badge-showcase {
    max-width: 300px;
  }

  .tag-top-right {
    right: -5%;
  }

  .tag-bottom-left {
    left: -5%;
  }

  /* Quick Actions Grid */
  .quick-actions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  /* Products Grid */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Surgical Spotlight */
  .surgical-spotlight-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Quality Pillars */
  .quality-pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Refill Banner */
  .refill-banner-card {
    grid-template-columns: 1fr;
    padding: 2.25rem;
    gap: 2rem;
  }

  /* Branch Locator */
  .branch-display-grid {
    grid-template-columns: 1fr;
  }

  .branch-map-container {
    min-height: 350px;
  }

  /* Testimonials Grid */
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  /* Wholesale Banner */
  .wholesale-banner-inner {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .wholesale-actions {
    flex-direction: row;
    justify-content: center;
  }

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

/* --------------------------------------------------------------------------
   4. Breakpoint: Phablets & Mobile Devices (481px to 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }

  .top-bar-content {
    justify-content: space-between;
  }

  .brand-logo {
    height: 44px;
  }

  .brand-badge-img {
    height: 44px;
  }

  .brand-main-name {
    font-size: 0.95rem;
  }

  .brand-sub-spec {
    font-size: 0.58rem;
  }

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

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

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

  .trust-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    text-align: left;
  }

  .metric-card {
    background-color: var(--color-white);
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-slate-200);
  }

  .quick-actions-grid {
    grid-template-columns: 1fr;
  }

  .quick-actions-section {
    margin-top: -20px;
  }

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

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

  .product-filter-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 0.75rem;
    -webkit-overflow-scrolling: touch;
  }

  .product-filter-tabs .tab-btn {
    flex-shrink: 0;
  }

  .catalog-custom-banner {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .catalog-custom-content {
    flex-direction: column;
  }

  .catalog-custom-action {
    flex-direction: column;
    width: 100%;
  }

  .catalog-custom-action .btn {
    width: 100%;
  }

  .branch-selector-nav {
    grid-template-columns: 1fr;
  }

  .branch-amenities {
    grid-template-columns: 1fr;
  }

  .branch-action-buttons {
    flex-direction: column;
  }

  .branch-action-buttons .btn {
    width: 100%;
  }

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

  .modal-dialog {
    max-height: 94vh;
  }

  .modal-header {
    padding: 1.25rem 1.5rem;
  }

  .modal-body {
    padding: 1.5rem;
  }

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

  .wholesale-actions {
    flex-direction: column;
    width: 100%;
  }

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

  .floating-actions-container {
    bottom: 1.25rem;
    right: 1.25rem;
    gap: 0.75rem;
  }

  .floating-btn {
    width: 50px;
    height: 50px;
  }

  .floating-wa-btn {
    font-size: 1.65rem;
  }
}

/* --------------------------------------------------------------------------
   5. Breakpoint: Small Mobile Devices (360px to 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  :root {
    --section-padding: 48px 0;
  }

  .hero-section {
    padding: 36px 0 60px;
  }

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

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

  .hero-badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.65rem;
  }

  .search-input-group {
    flex-wrap: wrap;
  }

  .search-input-group input {
    width: 100%;
    min-width: 100%;
  }

  .search-btn {
    width: 100%;
  }

  .floating-tag {
    display: none; /* Hide floating tags on small screens for visual cleanliness */
  }

  .hero-badge-showcase {
    max-width: 240px;
  }

  .badge-ring-glow {
    width: 240px;
    height: 240px;
  }

  .quality-pillars-grid {
    grid-template-columns: 1fr;
  }

  .surgical-price-table th,
  .surgical-price-table td {
    padding: 0.75rem 0.5rem;
    font-size: 0.8rem;
  }

  .footer-btn-row .btn {
    width: 100%;
  }

  .refill-banner-card {
    padding: 1.5rem;
  }

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

  .refill-inline-form {
    flex-direction: column;
  }

  .refill-inline-form input,
  .refill-inline-form button {
    width: 100%;
  }

  .toast {
    min-width: calc(100vw - 2rem);
    max-width: calc(100vw - 2rem);
  }

  .toast-container {
    top: 1rem;
    right: 1rem;
    left: 1rem;
  }
}

/* --------------------------------------------------------------------------
   6. Touch Target Sizes & Print Styles
   -------------------------------------------------------------------------- */
@media (pointer: coarse) {
  .btn,
  .nav-link,
  .drawer-link,
  .tab-btn,
  .faq-question,
  .modal-close-btn,
  .preview-remove-btn {
    min-height: 44px;
  }
}

@media print {
  .top-bar,
  .site-header,
  .mobile-drawer,
  .mobile-drawer-overlay,
  .hero-search-wrapper,
  .floating-actions-container,
  .modal-backdrop,
  .toast-container {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }
}
