/**
 * Nabeela's Makeup Studio — Responsive Stylesheet
 * Strict viewport coverage: 320px, 375px, 390px, 430px, 768px, 1024px, 1280px, 1440px, 1920px
 * Zero collision, zero overflow, perfect responsive stacking
 */

/* ==========================================================================
   LARGE DESKTOP (1440px - 1920px+)
   ========================================================================== */
@media (min-width: 1440px) {
  .nms-container {
    max-width: 1360px;
  }
  
  .nms-title-display {
    font-size: 4rem;
  }
  
  .nms-hero-home {
    min-height: 86vh;
  }
}

/* ==========================================================================
   DESKTOP / LAPTOP (1025px - 1280px)
   ========================================================================== */
@media (max-width: 1280px) {
  .nms-nav-list {
    gap: 16px;
  }
  
  .nms-nav-link {
    font-size: 0.84rem;
    padding: 6px 0;
  }
  
  .nms-logo img {
    height: 48px;
    max-width: 230px;
  }
  
  .nms-header-inner {
    gap: 16px;
  }
  
  .nms-footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr 1.1fr;
    gap: 32px;
  }
}

/* ==========================================================================
   TABLET LANDSCAPE & SMALL DESKTOP (992px - 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  /* Prevent header collision: switch to clean mobile navigation drawer */
  .nms-nav,
  .nms-header-action {
    display: none;
  }
  
  .nms-hamburger {
    display: block;
  }
  
  .nms-header-inner {
    height: 70px;
  }
  
  .nms-spotlight-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .nms-footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }
  
  .nms-lightbox-prev {
    left: 10px;
  }
  
  .nms-lightbox-next {
    right: 10px;
  }
}

/* ==========================================================================
   TABLET PORTRAIT (768px - 991px)
   ========================================================================== */
@media (max-width: 991px) {
  :root {
    --header-height: 72px;
  }
  
  .nms-topbar-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  
  .nms-topbar-contact {
    justify-content: center;
    gap: 14px;
  }
  
  .nms-hero-home {
    min-height: 70vh;
    padding: 60px 0;
  }
  
  .nms-services-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

/* ==========================================================================
   MOBILE PHONES (431px - 767px)
   ========================================================================== */
@media (max-width: 767px) {
  :root {
    --header-height: 66px;
  }
  
  .nms-topbar-contact {
    flex-direction: column;
    gap: 4px;
    font-size: 0.75rem;
  }
  
  .nms-logo img {
    height: 42px;
    max-width: 200px;
  }
  
  .nms-hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .nms-hero-buttons .nms-btn {
    width: 100%;
  }
  
  .nms-form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .nms-footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: left;
  }
  
  .nms-whatsapp-float {
    width: 52px;
    height: 52px;
    right: 16px;
    bottom: 20px;
  }
  .nms-whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
  
  .nms-back-to-top {
    left: 16px;
    bottom: 20px;
    width: 40px;
    height: 40px;
  }
  
  /* Ensure form buttons do not get covered by floating WhatsApp */
  .nms-form-card .nms-btn {
    width: 100%;
  }
  
  .nms-gallery-filters {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
  }
  
  .nms-gallery-filter-btn {
    white-space: nowrap;
    flex-shrink: 0;
  }
}

/* ==========================================================================
   SMALL SMARTPHONES (320px - 430px: iPhone SE, iPhone 12/13/14, Pixel)
   ========================================================================== */
@media (max-width: 430px) {
  :root {
    --header-height: 60px;
  }
  
  .nms-container {
    padding-left: 14px;
    padding-right: 14px;
  }
  
  .nms-logo img {
    height: 38px;
    max-width: 175px;
  }
  
  .nms-title-display {
    font-size: 1.85rem;
    line-height: 1.2;
  }
  
  .nms-title-h1 {
    font-size: 1.7rem;
  }
  
  .nms-title-h2 {
    font-size: 1.45rem;
  }
  
  .nms-hero-home {
    padding: 40px 0;
  }
  
  .nms-btn {
    padding: 12px 20px;
    font-size: 0.8rem;
    width: 100%;
  }
  
  .nms-service-actions {
    flex-direction: column;
    gap: 8px;
  }
  .nms-service-actions .nms-btn {
    width: 100%;
  }
  
  .nms-form-card {
    padding: 20px 14px;
  }
  
  .nms-mobile-drawer {
    width: 90%;
    padding: 70px 20px 30px;
  }
  
  .nms-gallery-item img {
    height: 260px;
  }
  
  .nms-map-wrapper {
    height: 300px;
  }
  
  .nms-whatsapp-tooltip {
    display: none; /* Hide hover tooltip on narrow touch screens */
  }
}

/* Extra safety for 320px narrow screens */
@media (max-width: 320px) {
  .nms-logo img {
    height: 34px;
    max-width: 155px;
  }
  
  .nms-topbar {
    font-size: 0.7rem;
  }
  
  .nms-title-display {
    font-size: 1.65rem;
  }
}

