/**
 * PANKH BEAUTY LOUNGE — Responsive & Zero-Overlap Stylesheet
 * Strict breakpoints: 320px, 375px, 390px, 430px, 768px, 1024px, 1280px, 1440px, 1920px
 */

/* -------------------------------------------------------------------------
   DESKTOP LARGE & ULTRAWIDE (1440px – 1920px+)
------------------------------------------------------------------------- */
@media screen and (min-width: 1440px) {
  :root {
    --container-max-width: 1360px;
  }
  
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* -------------------------------------------------------------------------
   LAPTOPS & DESKTOPS (1025px – 1280px)
------------------------------------------------------------------------- */
@media screen and (max-width: 1280px) {
  .nav-menu {
    gap: 18px;
  }

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

  .header-action .btn {
    padding: 0.75rem 1.4rem;
    font-size: 0.82rem;
  }

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

/* -------------------------------------------------------------------------
   TABLETS & MEDIUM SCREENS (769px – 1024px)
   Switch main navigation to responsive hamburger drawer to prevent any collision
------------------------------------------------------------------------- */
@media screen and (max-width: 1024px) {
  :root {
    --header-height: 76px;
    --topbar-height: 38px;
  }

  /* Header adjustments */
  .nav-menu {
    display: none; /* Hidden on tablet and mobile in favor of drawer */
  }

  .menu-toggle {
    display: flex;
  }

  .header-action .btn {
    display: inline-flex;
    padding: 0.65rem 1.25rem;
    font-size: 0.8rem;
  }

  .site-logo img {
    height: 46px;
  }

  /* Grid layouts */
  .bridal-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .bridal-image-composition {
    max-width: 600px;
    margin: 0 auto;
  }

  .bridal-main-img {
    height: 420px;
  }

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

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

  .gallery-grid {
    columns: 2 300px;
  }
}

/* -------------------------------------------------------------------------
   MOBILE PHONES & SMALL TABLETS (431px – 768px)
------------------------------------------------------------------------- */
@media screen and (max-width: 768px) {
  :root {
    --header-height: 70px;
    --topbar-height: auto;
  }

  /* Top bar stacks or simplifies */
  .top-bar {
    padding: 6px 0;
  }

  .top-bar .container {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }

  .top-bar-left {
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.75rem;
  }

  .top-bar-right {
    display: none; /* Keep top bar clean, social links available in footer and drawer */
  }

  /* Main Header */
  .site-logo img {
    height: 40px;
  }

  /* In mobile screens <= 768px, hide desktop CTA button in header to prevent any overflow with logo */
  .header-action .btn-header-cta {
    display: none;
  }

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

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

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .appointment-banner-buttons {
    flex-direction: column;
    width: 100%;
  }

  .appointment-banner-buttons .btn {
    width: 100%;
  }

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

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

  .bridal-floating-card {
    position: static;
    margin-top: 15px;
    max-width: 100%;
  }

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

  /* Floating WhatsApp positioning on mobile */
  .whatsapp-float-btn {
    bottom: 18px;
    right: 16px;
    width: 52px;
    height: 52px;
  }

  .whatsapp-float-btn svg {
    width: 28px;
    height: 28px;
  }

  .whatsapp-tooltip {
    display: none; /* Disable tooltip on touch screens */
  }

  .back-to-top {
    bottom: 80px;
    right: 20px;
    width: 40px;
    height: 40px;
  }

  .lightbox-prev {
    left: 10px;
    width: 40px;
    height: 40px;
  }

  .lightbox-next {
    right: 10px;
    width: 40px;
    height: 40px;
  }

  .lightbox-close {
    top: -10px;
    right: 0px;
    width: 40px;
    height: 40px;
  }
}

/* -------------------------------------------------------------------------
   COMPACT SMARTPHONES (390px – 430px)
   iPhone 13/14/15/Pro Max, Samsung Galaxy, Pixel
------------------------------------------------------------------------- */
@media screen and (max-width: 430px) {
  :root {
    --header-height: 64px;
  }

  .site-logo img {
    height: 36px;
  }

  .top-bar-item:nth-child(2) {
    /* Hide email on very narrow top bars to ensure single line for phone & location */
    display: none;
  }

  .gallery-grid {
    columns: 1 100%;
  }

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

  .service-card-body {
    padding: 1.25rem;
  }

  .service-card-img-wrap {
    height: 200px;
  }

  .hero-badge {
    font-size: 0.72rem;
    padding: 4px 14px;
    letter-spacing: 1.5px;
  }

  .btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.85rem;
  }

  .mobile-nav-drawer {
    max-width: 88vw;
    padding: 24px 20px;
  }
}

/* -------------------------------------------------------------------------
   SMALL SMARTPHONES (320px – 375px)
   iPhone SE, Galaxy A-series mini
------------------------------------------------------------------------- */
@media screen and (max-width: 375px) {
  :root {
    --header-height: 60px;
  }

  .site-logo img {
    height: 32px;
  }

  .top-bar-left {
    font-size: 0.7rem;
    gap: 8px;
  }

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

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

  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.82rem;
  }

  .bridal-main-img {
    height: 280px;
  }

  .feature-box {
    padding: 1.25rem;
  }

  .whatsapp-float-btn {
    width: 48px;
    height: 48px;
    bottom: 14px;
    right: 14px;
  }

  .whatsapp-float-btn svg {
    width: 24px;
    height: 24px;
  }
}

/* -------------------------------------------------------------------------
   ACCESSIBILITY & PRINT PREFERENCES
------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .whatsapp-float-btn::before {
    animation: none;
  }
}

@media print {
  .site-header-wrapper,
  .top-bar,
  .whatsapp-float-btn,
  .back-to-top,
  .mobile-nav-drawer,
  .mobile-backdrop,
  .appointment-banner {
    display: none !important;
  }

  body {
    background: #FFFFFF !important;
    color: #000000 !important;
  }
}

