/* ============================================================
   GlowNest — Responsive Stylesheet
   Breakpoints: 768px (tablet/mobile) | 420px (small mobile)
   ============================================================ */

/* ── TABLET & MOBILE (≤ 768px) ───────────────────────────── */
@media (max-width: 768px) {

  /* ── NAVBAR: hamburger left · logo center · search right ── */
  .gn-nav-inner {
    display: flex;
    align-items: center;
    height: 60px;
    padding: 0 14px;
    position: relative;
  }

  .gn-menu-toggle {
    display: flex;
    order: 1;
    flex-shrink: 0;
  }

  .gn-logo {
    order: 2;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
  }

  .gn-logo-img {
    height: 32px;
    display: block;
  }

  .gn-nav-links {
    order: 3;
  }

  .gn-nav-actions {
    order: 4;
    margin-left: auto;
    gap: 0;
    flex-shrink: 0;
  }

  /* Hide WhatsApp and divider on mobile — search only */
  .gn-wa-btn,
  .gn-actions-divider { display: none; }

  /* Nav links — hidden, slide down on open */
  .gn-nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--light-gray);
    border-bottom: 2px solid var(--light-gray);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 16px;
    box-shadow: var(--shadow-md);
    z-index: 200;
  }

  .gn-nav-links.open { display: flex; }

  .gn-nav-link {
    padding: 13px 20px;
    border-bottom: none;
    border-radius: 0;
    font-size: 15px;
    width: 100%;
  }

  /* Products dropdown — accordion on mobile */
  .gn-dropdown { width: 100%; position: static; }

  .gn-dropdown > .gn-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .gn-dropdown-menu {
    display: none;
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: var(--off-white);
    border-left: 3px solid var(--orange);
    padding: 4px 0 4px 12px;
    margin-top: 4px;
    min-width: 0;
    width: 100%;
  }

  .gn-dropdown.open .gn-dropdown-menu { display: block; }

  .gn-dd-item { padding: 11px 20px; }

  .gn-partner-bar { justify-content: center; }

  .gn-search-bar.open { right: 0; left: auto; width: 200px; }

  /* ── HERO ───────────────────────────────────────────────── */
  .hero {
    height: 60vw;
    min-height: 240px;
    max-height: 420px;
  }

  .slide {
    background-size: cover;
    background-position: center center;
  }

  .arrow { width: 36px; height: 36px; }
  .arrow svg { width: 16px; height: 16px; }

  /* ── STATS BAR ──────────────────────────────────────────── */
  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .stat-num { font-size: 28px; }

  /* ── SECTION SPACING ────────────────────────────────────── */
  .pad-section  { padding: 48px 14px; }
  .pad-section-sm { padding: 36px 14px; }
  .section-head { margin-bottom: 28px; }
  .section-h2 { font-size: clamp(24px, 6vw, 36px); }

  /* ── EXPLORE OUR RANGE — horizontal scroll on mobile ────── */
  .range-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0;
    padding: 0 8px;
  }

  .range-grid::-webkit-scrollbar { display: none; }

  .range-item {
    flex: 0 0 80px;
    width: 80px;
    padding: 14px 4px 12px;
    border-radius: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .range-icon {
    width: 38px;
    height: 38px;
    background: var(--off-white);
    border-radius: 50%;
    margin-bottom: 6px;
  }

  .range-icon svg { width: 17px; height: 17px; }

  .range-name {
    font-size: 9px;
    white-space: normal;
    word-break: break-word;
    text-align: center;
    line-height: 1.3;
  }

  /* Show scroll dots on mobile */
  .range-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }

  /* ── HOT PICKS — horizontal swipe slider ────────────────── */
  .hp-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 14px;
    padding-bottom: 6px;
  }

  .hp-grid::-webkit-scrollbar { display: none; }

  .hp-card {
    flex: 0 0 75vw;
    max-width: 300px;
    min-width: 0;
  }

  /* ── THE GLOWNEST PROMISE — compact single row ───────────── */
  .why-section { padding: 36px 14px; }

  .why-inner {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0;
  }

  .why-item {
    flex: 1;
    padding: 0 8px;
    gap: 10px;
  }

  .why-badge {
    width: 72px;
    height: 72px;
    gap: 4px;
    padding: 10px;
  }

  .why-badge svg { width: 18px; height: 18px; }

  .why-badge span {
    font-size: 7px;
    letter-spacing: 0;
    line-height: 1.3;
  }

  .why-label { font-size: 10.5px; }

  .why-divider {
    width: 1px;
    height: 56px;
    flex-shrink: 0;
  }

  /* ── THREE PILLARS (Mobile) ─────────────────────────────── */
  .pillar-fw-card {
    flex-direction: column;
  }

  .pillar-fw-img {
    width: 100%;
    height: 300px;
  }

  .pillar-fw-content {
    width: 100%;
    padding: 36px 24px;
    align-items: center;
    text-align: center;
  }

  .pillar-fw-content h3 {
    font-size: 24px;
    margin-bottom: 12px;
  }

  .pillar-fw-content p {
    font-size: 15px;
  }

  /* ── EXPERIENCE SECTION ─────────────────────────────────── */
  .experience { height: auto; min-height: 0; padding: 52px 0; }

  .exp-content {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 0 16px;
  }

  .exp-h2 { font-size: clamp(30px, 8vw, 48px); letter-spacing: -1px; }

  .exp-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  /* ── BRAND BANNER ───────────────────────────────────────── */
  .brand-banner { height: 280px; }
  .bb-h { font-size: clamp(20px, 5.5vw, 30px); }

  /* ── GET IN TOUCH ───────────────────────────────────────── */
  .git-inner { grid-template-columns: 1fr; gap: 32px; }
  .git-form { padding: 24px 18px; }

  /* ── CTA STRIP ──────────────────────────────────────────── */
  .cta-strip { padding: 44px 14px; }
  .cta-strip-inner { flex-direction: column; align-items: flex-start; gap: 20px; }

  /* ── PRODUCT PAGES ──────────────────────────────────────── */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .products-grid-landscape { grid-template-columns: 1fr; }
  .page-hero { height: 320px; }
  .cat-intro { grid-template-columns: 1fr; gap: 28px; }

  /* ── BLOG / PRESS ───────────────────────────────────────── */
  .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .press-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .feat-card { grid-template-columns: 1fr; }
  .feat-img { height: 240px; }

  /* ── ABOUT ──────────────────────────────────────────────── */
  .family-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .mv-grid { grid-template-columns: 1fr; gap: 20px; }
  .values-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }

  /* ── FOOTER ─────────────────────────────────────────────── */
  .gn-footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }

  /* ── SHOP BY SPACE ──────────────────────────────────────── */
  .shop-by-space {
    padding: 48px 0 40px;
  }

  .room-tabs {
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    padding: 0 14px;
    margin-bottom: 16px;
  }

  .room-tab { font-size: 12px; padding: 6px 12px; }

  /* Full-width — no side margins or radius clipping */
  .room-scene {
    max-width: 100%;
    border-radius: 0;
    margin: 0;
    box-shadow: none;
  }

  .room-scene img {
    height: 320px;
    border-radius: 0;
    object-position: center;
  }

  /* Smaller pin button */
  .pin-btn {
    width: 30px;
    height: 30px;
    border-width: 2px;
  }

  .pin-btn svg {
    width: 12px;
    height: 12px;
  }

  /* Compact pin card */
  .pin-card {
    width: 150px;
    top: calc(100% + 6px);
    border-radius: 10px;
  }

  .pin-img { height: 72px; }

  .pin-body { padding: 8px 10px; }

  .pin-cat { font-size: 8.5px; margin-bottom: 2px; }

  .pin-name { font-size: 12px; margin-bottom: 8px; line-height: 1.3; }

  .pin-feat { display: none; }

  .pin-cta {
    padding: 8px 10px;
    font-size: 11px;
    gap: 5px;
  }

  .pin-cta svg { width: 12px; height: 12px; }
}

/* ── SMALL MOBILE (≤ 420px) ─────────────────────────────── */
@media (max-width: 420px) {

  .hp-card { flex: 0 0 85vw; }

  .products-grid { grid-template-columns: 1fr; }
  .prod-card-landscape .prod-gallery { aspect-ratio: 4/3; }

  .blog-grid { grid-template-columns: 1fr; }
  .press-grid { grid-template-columns: 1fr; }

  .exp-cards { grid-template-columns: 1fr; }

  .gn-footer-inner { grid-template-columns: 1fr; gap: 24px; }

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

  .cta-strip-inner { align-items: center; text-align: center; }

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

/* ── PERFORMANCE: Disable parallax on mobile ─────────────── */
@media (max-width: 768px) {
  [data-ap-parallax-bg] {
    transform: none !important;
    background-attachment: scroll !important;
  }
}

/* ── Touch target minimums ───────────────────────────────── */
@media (max-width: 768px) {
  .gn-nav-link,
  .gn-dd-item,
  .room-tab,
  .pin-cta,
  .arrow,
  button {
    min-height: 44px;
  }
}

/* ── Prevent text overflow on narrow screens ─────────────── */
@media (max-width: 420px) {
  body { word-break: break-word; overflow-x: hidden; }
  .section-h2, h1, h2, h3 { overflow-wrap: break-word; }
}
