﻿/* ==========================================================================
   LUMINA DENTAL & HEALTH - MASTER UNIVERSAL RESPONSIVE STYLESHEET
   Supports: Ultra-wide 4K, Desktop, Laptop, Tablets, Foldables, All Mobile Devices
   ========================================================================== */

/* Universal Layout Integrity */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
  position: relative;
  -webkit-text-size-adjust: 100%;
}

/* ==========================================================================
   1. ULTRA-WIDE & 4K DISPLAYS (min-width: 1920px)
   ========================================================================== */
@media (min-width: 1920px) {
  :root {
    --max-width: 1440px;
    --max-width-wide: 1600px;
  }

  .hero-main-img {
    height: 580px;
  }
}

/* ==========================================================================
   2. SMALL LAPTOPS & DESKTOPS (1024px - 1280px)
   ========================================================================== */
@media (max-width: 1280px) {
  .nav-menu {
    gap: 0.6rem;
  }

  .nav-link {
    font-size: 0.88rem;
    padding: 0.45rem 0.5rem;
  }

  .trust-stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    padding: 2.25rem 1.5rem;
  }

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

/* ==========================================================================
   3. TABLET LANDSCAPE & COMPACT LAPTOPS (992px - 1100px)
   ========================================================================== */
@media (max-width: 1100px) {
  .nav-menu {
    gap: 0.35rem;
  }

  .nav-link {
    font-size: 0.84rem;
    padding: 0.35rem 0.4rem;
  }

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

  .stat-item:nth-child(2) {
    border-right: none;
  }

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

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

/* ==========================================================================
   4. TABLET PORTRAIT (768px - 991px)
   ========================================================================== */
@media (max-width: 991px) {
  :root {
    --header-height: 72px;
  }

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

  .top-bar .container {
    justify-content: center;
  }

  .nav-menu {
    display: none !important;
  }

  .mobile-toggle {
    display: flex !important;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.75rem;
    text-align: center;
  }

  .hero-content {
    align-items: center;
  }

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

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

  .hero-media-wrapper {
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
  }

  .dual-wing-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

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

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

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

  .section-header {
    margin-bottom: 2.75rem;
  }
}

/* ==========================================================================
   5. PHABLETS & FOLDABLES (540px - 767px)
   ========================================================================== */
@media (max-width: 767px) {
  :root {
    --header-height: 68px;
  }

  .container, .container-wide, .container-narrow {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    width: 100%;
  }

  .section {
    padding: 3.75rem 0;
  }

  .section-sm {
    padding: 2.5rem 0;
  }

  .section-lg {
    padding: 4.5rem 0;
  }

  .hero-section {
    padding: 2.5rem 0 3.5rem 0;
  }

  .hero-main-img {
    height: 340px;
  }

  .hero-floating-badge {
    position: static !important;
    width: 100%;
    margin-top: 1rem;
    animation: none !important;
    box-shadow: var(--shadow-sm);
  }

  .hero-floating-badge.badge-top,
  .hero-floating-badge.badge-bottom {
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
  }

  .trust-stats-grid {
    grid-template-columns: 1fr;
    margin-top: 2rem;
    padding: 1.75rem 1.25rem;
    gap: 1.25rem;
  }

  .stat-item {
    border-right: none !important;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 1.25rem;
  }

  .stat-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

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

  .service-card, .wing-body, .testimonial-card {
    padding: 1.75rem 1.35rem;
  }

  .doctor-body {
    padding: 1.5rem 1.25rem;
  }

  .doctor-img-wrapper {
    height: 250px;
  }

  .booking-wizard-card {
    padding: 2rem 1.25rem;
    border-radius: var(--radius-lg);
  }

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

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

  .doctor-modal-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  .modal-content {
    padding: 2rem 1.25rem !important;
    max-height: 92vh !important;
    width: 95% !important;
    border-radius: var(--radius-lg) !important;
  }
}

/* ==========================================================================
   6. STANDARD SMARTPHONES (360px - 539px - iPhone 12/13/14/15, Galaxy S23, Pixel)
   ========================================================================== */
@media (max-width: 539px) {
  :root {
    --header-height: 64px;
  }

  .container, .container-wide, .container-narrow {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .top-bar {
    font-size: 0.78rem;
    padding: 0.45rem 0;
  }

  .top-bar-right {
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .brand-logo {
    gap: 0.6rem;
  }

  .brand-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
  }

  .brand-icon svg {
    width: 20px;
    height: 20px;
  }

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

  .brand-tagline {
    font-size: 0.64rem;
    letter-spacing: 0.05em;
  }

  /* Keep header clean & uncrowded on mobile */
  .header-actions .btn {
    display: none;
  }

  .mobile-toggle {
    width: 40px;
    height: 40px;
  }

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

  .hero-cta-group .btn {
    width: 100%;
    padding: 0.9rem 1.25rem;
    font-size: 0.98rem;
  }

  .btn-lg {
    padding: 0.9rem 1.5rem;
    font-size: 0.98rem;
  }

  h1, .hero-title, .page-hero-title {
    font-size: 1.85rem !important;
    line-height: 1.22;
  }

  h2, .section-title {
    font-size: 1.5rem !important;
  }

  h3 {
    font-size: 1.25rem !important;
  }

  .hero-subtitle {
    font-size: 1rem;
    line-height: 1.6;
  }

  .hero-main-img {
    height: 270px;
  }

  .wing-feature-list {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

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

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

  .slot-btn {
    padding: 0.7rem;
    font-size: 0.88rem;
  }

  .wizard-steps-indicator {
    display: none;
  }

  .booking-wizard-card {
    padding: 1.5rem 1rem;
  }

  .booking-details-table {
    padding: 1rem;
    font-size: 0.86rem;
  }

  .booking-detail-row {
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.5rem 0;
  }

  .filter-bar {
    gap: 0.4rem;
    justify-content: flex-start;
  }

  .filter-btn {
    padding: 0.45rem 0.9rem;
    font-size: 0.82rem;
  }

  .pricing-card {
    padding: 1.75rem 1.15rem;
  }

  .pricing-amount {
    font-size: 2.5rem;
  }

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

  .toast {
    min-width: 100%;
    max-width: 100%;
  }

  .mobile-drawer {
    width: 88%;
    max-width: 320px;
    padding: 1.5rem 1.15rem;
  }
}

/* ==========================================================================
   7. EXTRA SMALL & FOLDABLE COVER SCREENS (280px - 359px - Galaxy Z Fold, etc.)
   ========================================================================== */
@media (max-width: 359px) {
  .container, .container-wide, .container-narrow {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

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

  .brand-tagline {
    display: none;
  }

  .brand-icon {
    width: 32px;
    height: 32px;
  }

  .brand-icon svg {
    width: 18px;
    height: 18px;
  }

  h1, .hero-title, .page-hero-title {
    font-size: 1.6rem !important;
  }

  h2, .section-title {
    font-size: 1.35rem !important;
  }

  .btn {
    padding: 0.75rem 1rem;
    font-size: 0.88rem;
    gap: 0.4rem;
  }

  .service-card, .wing-body, .testimonial-card, .pricing-card {
    padding: 1.25rem 0.9rem;
  }

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

  .booking-wizard-card {
    padding: 1.25rem 0.75rem;
  }

  .mobile-drawer {
    width: 92%;
    max-width: 280px;
    padding: 1.25rem 0.9rem;
  }
}

/* ==========================================================================
   8. PRINT STYLES
   ========================================================================== */
@media print {
  .site-header, .top-bar, .site-footer, .mobile-toggle, .btn:not(.btn-print) {
    display: none !important;
  }

  body, main {
    background: #fff !important;
    color: #000 !important;
  }

  .booking-wizard-card, .confirmation-box {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
    padding: 1rem !important;
  }
}