/* ==========================================================================
   MEHFIN DESIGNING - REFINED RESPONSIVE STYLES
   Tablet (768px) & Mobile (390px) Sizing & Layout Control
   ========================================================================== */

/* Laptops & Tablets Landscape (max-width: 1040px) */
@media (max-width: 1040px) {
  .products-grid-3col {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.6rem;
  }

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

  .hero-text-side {
    max-width: 100%;
  }

  .hero-btn-row {
    justify-content: center;
  }

  .editorial-spotlight-card {
    grid-template-columns: 1fr;
    gap: 2.2rem;
    padding: 2.2rem;
  }

  .editorial-spotlight-visual {
    height: 300px;
    max-width: 480px;
    margin: 0 auto;
  }

  .about-framed-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .about-values-bar {
    justify-content: center;
  }

  .about-columns-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .surprise-step-row {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .surprise-step-row.reverse {
    direction: ltr;
  }

  .surprise-step-text-col {
    max-width: 100%;
  }

  .surprise-step-photo-frame {
    margin: 0 auto;
  }

  .gulf-six-flags-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.9rem;
  }

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

  .gallery-balanced-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .gallery-card-item:nth-child(n) {
    grid-column: auto;
    height: 260px;
  }

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

/* Tablets (max-width: 860px) */
@media (max-width: 860px) {
  .container {
    padding-left: 36px;
    padding-right: 36px;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(250, 247, 242, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 2px solid var(--color-gold-400);
    flex-direction: column;
    padding: 2.2rem 2rem;
    gap: 1.4rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(-130%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
  }

  .main-nav.menu-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 1.4rem;
    width: 100%;
  }

  .nav-link {
    font-size: 1rem;
    padding: 0.5rem 0;
  }

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

/* Mobile Screens (max-width: 600px - targeting 390px phones) */
@media (max-width: 600px) {
  :root {
    --header-height: 72px;
    --section-spacing-desktop: 56px;
  }

  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .site-header {
    height: var(--header-height);
  }

  .brand-logo-img {
    height: 48px;
    max-width: 180px;
  }

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

  .hero-frame-contained {
    max-width: 100%;
    height: 280px;
  }

  .hero-mini-badge {
    position: static;
    margin-top: 1rem;
    justify-content: center;
  }

  .editorial-spotlight-card {
    padding: 1.6rem 1.2rem;
    gap: 1.6rem;
  }

  .editorial-spotlight-visual {
    height: 230px;
  }

  .editorial-insets-row {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }

  .editorial-inset-thumb {
    height: 75px;
  }

  .products-grid-3col {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .product-card-thumb-box {
    height: 200px;
  }

  .chat-feedback-grid {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .insta-reels-grid-compact {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .insta-reel-thumb-wrap {
    height: 200px;
  }

  .about-portrait-box {
    max-width: 100%;
    height: 360px;
  }

  .surprise-step-photo-frame {
    max-width: 100%;
    height: 220px;
  }

  .gulf-strip-container {
    padding: 2.5rem 1.4rem;
  }

  .gulf-six-flags-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }

  .contact-form-container {
    padding: 1.8rem 1.4rem;
  }

  .gallery-balanced-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .gallery-card-item:nth-child(n) {
    grid-column: auto;
    height: 220px;
  }

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

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

  .modal-container {
    padding: 1.8rem 1.2rem;
  }
}


/* ==========================================================================
   UPDATED RESPONSIVE OVERRIDES FOR HERO SEQUENCE, 9:16 REELS & UNIFORM GIFTS
   ========================================================================== */

@media (max-width: 1040px) {
  .gift-editorial-item-card {
    grid-template-columns: 1fr;
    gap: 2.2rem;
    padding: 2.2rem;
  }
  .gift-editorial-item-card.layout-reversed {
    grid-template-columns: 1fr;
  }
  .gift-editorial-item-card.layout-reversed .gift-editorial-visual-col {
    order: 1;
  }
  .gift-editorial-item-card.layout-reversed .gift-editorial-text-col {
    order: 2;
  }
  .gift-editorial-frame {
    height: 310px;
    max-width: 520px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .home-opening-frame {
    height: 300px;
    max-width: 480px;
  }
  .luxury-ribbon-divider-section {
    padding: 2.8rem 0;
  }
  .luxury-ribbon-line {
    max-width: 80px;
  }
  .luxury-ribbon-bow-img {
    width: 155px;
  }
  .insta-reel-card-916 {
    width: 175px;
    height: 311px;
  }
  .reels-ticker-group {
    gap: 1.2rem;
    padding-right: 1.2rem;
  }
}

@media (max-width: 600px) {
  .home-opening-visual-section {
    padding: 2rem 1rem 1.5rem 1rem;
  }
  .home-opening-frame {
    height: 230px;
    max-width: 100%;
  }
  .home-opening-caption {
    font-size: 0.95rem;
  }
  .luxury-ribbon-divider-section {
    padding: 2.2rem 0;
    gap: 1rem;
  }
  .luxury-ribbon-line {
    max-width: 40px;
  }
  .luxury-ribbon-bow-img {
    width: 135px;
  }
  .insta-reel-card-916 {
    width: 160px;
    height: 284px;
    border-radius: 14px;
  }
  .reels-continuous-carousel-wrap {
    overflow: hidden !important;
    padding: 1.2rem 0;
  }
  .reels-ticker-group {
    gap: 1rem;
    padding-right: 1rem;
  }
  .reels-continuous-ticker-track {
    animation: slowReelsTicker 32s linear infinite !important;
    will-change: transform;
  }
  .gift-editorial-item-card {
    padding: 1.5rem 1.2rem;
    gap: 1.4rem;
    margin-bottom: 2rem;
  }
  .gift-editorial-frame {
    height: 240px;
    max-width: 100%;
  }
  .gift-editorial-title {
    font-size: 1.35rem;
  }
  .gift-editorial-desc {
    font-size: 0.9rem;
    line-height: 1.6;
  }
  .contact-nikkah-showcase {
    margin-top: 1.2rem;
    padding: 1rem;
  }
  .contact-nikkah-frame {
    height: 200px;
  }
  .backend-floating-btn {
    bottom: 16px;
    right: 16px;
    padding: 0.6rem 1rem;
    font-size: 0.78rem;
  }
  .luxury-consultation-modal {
    padding: 2rem 1.2rem !important;
    border-radius: 18px !important;
  }
}
