/* ==========================================================================
   DIVYA HEALTH CARE - MOBILE-FIRST RESPONSIVE STYLESHEET
   Optimized for 390x844 (Panel 3 & Panel 4) and all modern touchscreens
   ========================================================================== */

/* Mobile Bottom Navigation Bar (Sticky 1-Tap Booking & WhatsApp) */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 14px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
  z-index: 900;
  border-top: 1px solid var(--border-light);
}

.mobile-bottom-bar-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
}

.btn-mobile-bar-book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--brand-red);
  color: #ffffff;
  height: 48px;
  border-radius: var(--radius-full);
  font-size: 14.5px;
  font-weight: 700;
  border: none;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
  cursor: pointer;
}

.btn-mobile-bar-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--whatsapp-green);
  color: #ffffff;
  height: 48px;
  border-radius: var(--radius-full);
  font-size: 14.5px;
  font-weight: 700;
  border: none;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
  cursor: pointer;
}

/* Mobile Slide-Out Drawer Menu */
.mobile-nav-drawer {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-nav-drawer.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 82%;
  max-width: 320px;
  height: 100%;
  background: #ffffff;
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-nav-drawer.active .mobile-drawer-content {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.mobile-drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: auto;
}

.mobile-drawer-links a {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-navy);
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-drawer-links i {
  color: #0284c7;
  width: 20px;
}

.mobile-drawer-footer {
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.mobile-drawer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 12px;
}

/* ==========================================================================
   TABLET RESPONSIVENESS (<= 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-layout-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-slider-container {
    height: 360px;
  }

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

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

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

  .doctor-consult-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }

  .doctor-avatar-wrap {
    margin: 0 auto;
  }

  .doctor-features-list {
    justify-content: center;
    flex-wrap: wrap;
  }

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

  .why-us-grid {
    grid-template-columns: 1fr;
  }

  .location-layout-grid {
    grid-template-columns: 1fr;
  }

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

/* ==========================================================================
   MOBILE RESPONSIVENESS (<= 768px)
   ========================================================================== */
@media (max-width: 768px) {
  body {
    padding-bottom: 76px; /* Space for sticky bottom bar */
  }

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

  .top-announcement-bar {
    display: none;
  }

  .site-header {
    height: 64px;
  }

  .desktop-nav-menu,
  .header-contact-phones,
  .btn-header-book {
    display: none;
  }

  .mobile-menu-toggle-btn {
    display: block;
  }

  .brand-main-title {
    font-size: 17px;
  }

  .brand-logo-img {
    height: 40px;
  }

  .brand-motto {
    font-size: 9px;
  }

  /* Hero Mobile */
  .hero-section {
    padding: 18px 0 28px;
  }

  .hero-main-heading {
    font-size: 30px;
    letter-spacing: -0.5px;
  }

  .hero-subtext-bullets {
    font-size: 13px;
    margin-bottom: 16px;
  }

  .hero-quick-form {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .btn-hero-quick-submit {
    height: 46px;
    justify-content: center;
    width: 100%;
  }

  .hero-live-stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .hero-slider-container {
    height: 250px;
  }

  /* Live Assistant Widget Mobile */
  .live-assistant-wrapper {
    bottom: 78px;
    right: 16px;
  }

  .live-assistant-trigger {
    width: 52px;
    height: 52px;
    font-size: 22px;
  }

  .live-assistant-drawer {
    width: 300px;
    right: 0;
    bottom: 64px;
  }

  .assistant-greeting-bubble {
    max-width: 220px;
    font-size: 12px;
  }

  /* Live Activity Toaster Mobile */
  .live-activity-toaster {
    bottom: 78px;
    left: 14px;
    right: 14px;
    max-width: none;
    padding: 10px 14px;
  }

  .toast-icon {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }

  .toast-text {
    font-size: 12px;
  }

  /* Trust Bar Mobile */
  .trust-badges-bar {
    padding: 16px 0;
  }

  .trust-badges-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .trust-badge-item {
    padding: 4px;
  }

  .trust-badge-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .trust-badge-text h4 {
    font-size: 12px;
  }

  .trust-badge-text p {
    font-size: 10.5px;
  }

  /* Packages Mobile */
  .packages-section {
    padding: 36px 0;
  }

  .section-title-wrap h2 {
    font-size: 24px;
  }

  .packages-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .package-card {
    padding: 20px;
  }

  /* Category Grid Mobile */
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .category-grid-item {
    padding: 12px 6px;
  }

  .cat-icon-circle {
    width: 44px;
    height: 44px;
    font-size: 18px;
    margin-bottom: 6px;
  }

  .cat-name {
    font-size: 12px;
  }

  .cat-count {
    font-size: 10px;
  }

  /* Search Box Mobile */
  .search-container-box {
    padding: 24px 16px;
  }

  .search-box-header h3 {
    font-size: 20px;
  }

  .test-search-field {
    height: 50px;
    padding-right: 90px;
    font-size: 14px;
  }

  .btn-search-trigger {
    height: 38px;
    padding: 0 16px;
    font-size: 13px;
  }

  /* Doctor Card Mobile */
  .doctor-consult-card {
    padding: 26px 18px;
  }

  .doctor-info-text h3 {
    font-size: 20px;
  }

  .doctor-info-text p {
    font-size: 13.5px;
  }

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

  .btn-doc-whatsapp,
  .btn-doc-call {
    width: 100%;
  }

  /* Prescription Banner Mobile */
  .rx-banner-card {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .rx-banner-left {
    flex-direction: column;
  }

  .btn-upload-rx {
    width: 100%;
    justify-content: center;
  }

  /* Info Strip Banner Mobile */
  .info-strip-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* Reviews & Testimonials Mobile */
  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Location Mobile */
  .map-wrapper-card {
    margin-bottom: 16px;
  }

  .map-iframe-container {
    height: 250px;
  }

  .location-details-card {
    padding: 22px;
  }

  .location-action-btns {
    flex-direction: column;
  }

  /* Footer Mobile */
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom-bar {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  /* Modals Mobile */
  .modal-backdrop {
    padding: 0;
    align-items: flex-end;
  }

  .pkg-detail-modal-card,
  .booking-modal-card {
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    max-height: 92vh;
  }

  .pkg-modal-hero-split {
    grid-template-columns: 1fr;
  }

  .pkg-modal-img-wrap {
    height: 140px;
  }

  .tests-checklist-grid {
    grid-template-columns: 1fr;
  }

  .pkg-modal-footer {
    flex-direction: column-reverse;
  }

  .btn-modal-book-plan,
  .btn-modal-ask-doc {
    width: 100%;
    justify-content: center;
  }

  .booking-step-indicator {
    padding: 10px 14px;
  }

  .step-circle {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }

  .step-title {
    font-size: 9.5px;
  }

  .time-slots-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .time-slot-btn {
    height: 38px;
    font-size: 12px;
  }
}

/* Extra small devices (<= 380px) */
@media (max-width: 380px) {
  .hero-main-heading {
    font-size: 26px;
  }

  .brand-main-title {
    font-size: 15px;
  }
}

/* Price List & Table Responsive */
@media (max-width: 768px) {
  .price-list-banner-ribbon {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    gap: 14px;
  }

  .ribbon-features {
    gap: 12px;
  }

  .ribbon-feat-item {
    font-size: 12px;
  }

  .ribbon-cta-btn {
    width: 100%;
    justify-content: center;
  }

  .price-list-view-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .price-list-view-toggle {
    width: 100%;
  }

  .view-toggle-btn {
    flex: 1;
    justify-content: center;
    padding: 8px 12px;
  }

  .official-price-table-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-md);
  }

  .official-price-table {
    width: 100%;
    min-width: 0;
    table-layout: auto;
  }
}


