/* ================================================================
   MEN MATTERS — RESPONSIVE FIXES
   Covers: 1024px (tablet), 768px (mobile), 480px (small mobile)
   ================================================================ */

/* ── NAV RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Hide Sign In + Download App from nav on mobile — use hamburger instead */
  .nav__signin,
  #navJoin,
  .nav__right .btn-primary {
    display: none !important;
  }
  /* Keep cart icon visible */
  .nav__cart { display: flex !important; }
  /* User avatar stays visible when logged in */
  .nav__user { display: flex !important; }
  /* Nav auth div spacing */
  #navAuth { gap: 4px !important; }
}

@media (max-width: 480px) {
  .nav__cart svg { width: 18px; height: 18px; }
}

/* ── HERO FIXES ──────────────────────────────────────────────── */
/* Fix kicker/tagline visibility */
.hero__kicker {
  color: rgba(255,255,255,.75) !important;
  font-size: .9rem !important;
  font-weight: 500 !important;
  opacity: 1 !important;
}

@media (max-width: 1024px) {
  .hero__content { padding: 90px 2rem 60px !important; }
  .hero__h1 { font-size: clamp(2.5rem, 5vw, 3.75rem) !important; }
}

@media (max-width: 768px) {
  .hero { min-height: 85vh !important; background-position: 75% 20% !important; }
  .hero__content { padding: 80px 1.25rem 50px !important; max-width: 100% !important; }
  .hero__kicker { font-size: .82rem !important; }
  .hero__h1 { font-size: 2.5rem !important; line-height: 1.1 !important; }
  .hero__sub { font-size: .875rem !important; max-width: 100% !important; }
  .hero__ctas { flex-direction: column !important; gap: 10px !important; }
  .hero__ctas .btn { width: 100% !important; text-align: center !important; justify-content: center !important; }
  .hero__stats { gap: 1.5rem !important; flex-wrap: wrap !important; }
  .hero__eyebrow { margin-bottom: 1rem !important; }
}

@media (max-width: 480px) {
  .hero { min-height: 90vh !important; background-position: 80% 15% !important; }
  .hero__content { padding: 75px 1rem 40px !important; }
  .hero__h1 { font-size: 2rem !important; }
  .hero__kicker { font-size: .78rem !important; }
  .hero__stats { gap: 1rem !important; }
  .hero__stat-num, .stat__num { font-size: 1.5rem !important; }
}

/* ── GENERAL SECTION PADDING ────────────────────────────────── */
@media (max-width: 768px) {
  .container { padding: 0 1.25rem !important; }
  .main-site section { padding-top: 3.5rem !important; padding-bottom: 3.5rem !important; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem !important; }
  .main-site section { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
}

/* ── TYPOGRAPHY SCALING ─────────────────────────────────────── */
@media (max-width: 768px) {
  .section-title, .sec-title, .hub__title { font-size: clamp(1.5rem, 5vw, 2.25rem) !important; }
  .eyebrow { font-size: .65rem !important; }
  .main-site p { font-size: .9rem !important; line-height: 1.7 !important; }
}

/* ── CONTENT HUB (homepage) ─────────────────────────────────── */
@media (max-width: 768px) {
  .hub__header { flex-direction: column !important; gap: 1rem !important; }
  .hub__filters { overflow-x: auto !important; flex-wrap: nowrap !important; padding-bottom: .5rem !important; scrollbar-width: none !important; }
  .hub__filters::-webkit-scrollbar { display: none !important; }
  .hub__filter { flex-shrink: 0 !important; font-size: .72rem !important; padding: 6px 12px !important; }
  .hub__grid { grid-template-columns: 1fr !important; }
  .hub-card--featured { grid-column: span 1 !important; }
  .hub__premium-cta { flex-direction: column !important; gap: 1.5rem !important; }
  .hub__premium-cta-right { text-align: left !important; }
}

/* ── TOPICS PAGE ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .topics-filters { overflow-x: auto !important; flex-wrap: nowrap !important; padding-bottom: .5rem !important; scrollbar-width: none !important; }
  .topics-filters::-webkit-scrollbar { display: none !important; }
  .topics-filter-btn { flex-shrink: 0 !important; }
  .topics-grid { grid-template-columns: 1fr !important; }
  .content-card.featured { grid-column: span 1 !important; }
}

/* ── TOOLS PAGE ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  #toolsFilters { overflow-x: auto !important; flex-wrap: nowrap !important; padding-bottom: .5rem !important; scrollbar-width: none !important; }
  #toolsFilters::-webkit-scrollbar { display: none !important; }
  .tool-filter-btn { flex-shrink: 0 !important; }
  .tool-list { grid-template-columns: 1fr !important; }
  .cat-header { padding: 14px 16px !important; }
}

/* ── ABOUT / FOUNDER SECTION ────────────────────────────────── */
@media (max-width: 768px) {
  .founder-sec__inner { grid-template-columns: 1fr !important; gap: 2rem !important; }
  .founder-sec__img-wrap { height: 280px !important; border-radius: 10px !important; }
  .founder-sec__stats { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
}

/* ── PILLAR / CATEGORY CARDS ────────────────────────────────── */
@media (max-width: 768px) {
  .p-grid, .pillar-tools-grid { grid-template-columns: 1fr 1fr !important; gap: 1rem !important; }
}

@media (max-width: 480px) {
  .p-grid, .pillar-tools-grid { grid-template-columns: 1fr !important; }
}

/* ── CONTRAST / HOW IT WORKS SECTION ───────────────────────── */
@media (max-width: 768px) {
  .contrast__grid { grid-template-columns: 1fr !important; gap: 1.5rem !important; }
  .how-grid { grid-template-columns: 1fr !important; }
  .how-grid::before { display: none !important; }
  .mena-sec__inner { grid-template-columns: 1fr !important; }
  .mena-img-wrap { display: none !important; }
}

/* ── TESTIMONIALS ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .testi-grid { grid-template-columns: 1fr !important; }
  .stats-grid { grid-template-columns: 1fr 1fr !important; gap: 1rem !important; }
}

/* ── NEWSLETTER SECTION ──────────────────────────────────────── */
@media (max-width: 768px) {
  .nl-form { flex-direction: column !important; gap: 10px !important; }
  .nl-input, .nl-btn { width: 100% !important; }
}

/* ── PREMIUM PAGE ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .premium-product-grid { grid-template-columns: 1fr !important; }
  .premium-hero-inner { padding: 80px 1.25rem 2rem !important; }
}

/* ── STORE PAGE ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .store-grid { grid-template-columns: 1fr 1fr !important; gap: 1rem !important; }
  .store-filter-bar { overflow-x: auto !important; flex-wrap: nowrap !important; }
  .store-filter-btn { flex-shrink: 0 !important; }
}

@media (max-width: 480px) {
  .store-grid { grid-template-columns: 1fr !important; }
}

/* ── CART / CHECKOUT ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .cart-grid { grid-template-columns: 1fr !important; }
  .checkout-grid { grid-template-columns: 1fr !important; }
  .cart-item { flex-direction: column !important; gap: 1rem !important; }
}

/* ── AUTH PAGES (Login / Register) ──────────────────────────── */
@media (max-width: 768px) {
  .auth-section { padding: 4rem 0 3rem !important; }
  .auth-inner { grid-template-columns: 1fr !important; }
  .auth-brand { display: none !important; }
  .auth-card { border-radius: 10px !important; }
  .auth-card-top { padding: 1.25rem 1.5rem !important; }
  .auth-card-body { padding: 1.25rem 1.5rem 1.5rem !important; }
  .auth-row { grid-template-columns: 1fr !important; }
  .otp-digit { width: 40px !important; height: 48px !important; font-size: 1.2rem !important; }
}

/* ── PARTNERS PAGE ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .partners-grid, .partners-tiers { grid-template-columns: 1fr !important; }
}

/* ── ABOUT PAGE ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr !important; }
  .team-grid { grid-template-columns: 1fr 1fr !important; }
}

/* ── VIDEO PAGE ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .video-main-inner { grid-template-columns: 1fr !important; }
  .video-sidebar { position: static !important; }
}

@media (max-width: 768px) {
  .video-hero-inner { padding: 0 1.25rem !important; }
  .video-title { font-size: clamp(1.25rem, 4vw, 1.75rem) !important; }
  .related-grid { grid-template-columns: 1fr 1fr !important; gap: 1rem !important; }
}

@media (max-width: 480px) {
  .related-grid { grid-template-columns: 1fr !important; }
  .video-nl-form { flex-direction: column !important; }
}

/* ── LANDING PAGE ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .lnav { padding: 14px 1.25rem !important; }
  .lnav-links { display: none !important; }
  .hero-h1 { font-size: 2.5rem !important; }
  .hero-btns { flex-direction: column !important; }
  .hero-btn-primary, .hero-btn-outline { width: 100% !important; text-align: center !important; justify-content: center !important; }
  .preview-grid { grid-template-columns: 1fr 1fr !important; }
  .app-btns { flex-direction: column !important; align-items: center !important; }
  .nl-landing-form { flex-direction: column !important; }
}

@media (max-width: 480px) {
  .preview-grid { grid-template-columns: 1fr !important; }
}

/* ── 404 PAGE ────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .notfound-num { font-size: 5rem !important; }
  .notfound-links { flex-direction: column !important; }
  .notfound-btn { text-align: center !important; justify-content: center !important; }
}

/* ── FOOTER RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 768px) {
  .footer { padding: 2.5rem 0 1rem !important; }
  .footer__bottom { flex-direction: column !important; text-align: center !important; gap: .75rem !important; }
  .flegal { justify-content: center !important; }
  .fb-socials { justify-content: flex-start !important; }
}

/* ── PREVENT HORIZONTAL SCROLL ───────────────────────────────── */
.main-site, .main-site body {
  overflow-x: hidden !important;
}
html { overflow-x: hidden !important; }

* { box-sizing: border-box !important; }

img { max-width: 100% !important; height: auto !important; }

/* ── TOUCH TARGETS ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .btn, button, a.fc-link, a.fb-soc {
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
  }
  .fc-link { min-height: 36px !important; }
  .fb-soc { min-height: 36px !important; min-width: 36px !important; }
}

/* ── HERO: Reduce top padding on all screen sizes ───────────── */
.hero__content {
  padding-top: 60px !important;
}
@media (max-width: 768px) {
  .hero__content { padding-top: 50px !important; }
  .hero { min-height: 80vh !important; }
}
@media (max-width: 480px) {
  .hero__content { padding-top: 42px !important; }
  .hero { min-height: 85vh !important; }
}
