/* ============================================================
   MEN MATTERS — v6
   Changes: hero crop, grey→white sitewide, footer, tools icons
   ============================================================ */

/* ── C1: HERO — anchor to top, head fully visible ─────────── */
.hero__bg {
  background-position: 65% 25% !important;
}

/* ── C2: ALL LIGHT GREY → WHITE sitewide ──────────────────── */

/* Dark section text */
.hero__sub,
.hero__kicker,
.hs-lbl,
.how-desc,
.how-title,
.founder-sec__body,
.fstat__lbl,
.ftag,
.step-desc,
.step-title { color: #ffffff !important; opacity: 1 !important; }

/* Muted text on dark backgrounds */
[style*="rgba(255,255,255,0.3)"],
[style*="rgba(255,255,255,0.35)"],
[style*="rgba(255,255,255,0.38)"],
[style*="rgba(255,255,255,0.4)"],
[style*="rgba(255,255,255,0.42)"],
[style*="rgba(255,255,255,0.45)"],
[style*="rgba(255,255,255,0.48)"],
[style*="rgba(255,255,255,0.5)"] {
  color: rgba(255,255,255,0.9) !important;
}

/* Light section muted text — keep readable but not harsh */
.contrast__desc,
.contrast__item-desc,
.hub__subtitle,
.tool-preview-card__desc,
.tc__desc,
.tcard-txt,
.tcard__text,
.val-desc,
.nl-what-desc,
.nl-sub,
.nl-section__sub { color: #333333 !important; }

/* Dark section specific overrides */
.how-sec .how-desc { color: #ffffff !important; }
.founder-sec .founder-sec__body { color: #ffffff !important; }
.stats-sec .stat-l,
.stats-sec .sl { color: rgba(255,255,255,0.8) !important; }
.nl-sec .nl-sub,
.nl-sec .nl-trust,
.nl-sec .nl-section__sub { color: rgba(255,255,255,0.85) !important; }

/* Premium section */
.premium-products-section .mena-body,
.premium-product-card__desc { color: rgba(255,255,255,0.85) !important; }
.premium-product-card__price span { color: rgba(255,255,255,0.7) !important; }

/* Footer — fully white */
.footer *, footer * { color: rgba(255,255,255,0.9) !important; }
.fb-tag, .footer__brand-tag  { color: rgba(255,255,255,0.6) !important; }
.fc-title, .footer__col-title { color: rgba(255,255,255,0.55) !important; font-size: 0.68rem !important; letter-spacing: 0.16em !important; }
.footer-logo, .fb-name img    { opacity: 1 !important; }
.footer__copy, .fcopy          { color: rgba(255,255,255,0.6) !important; }

/* Hero stats dividers */
.hero__stats > div:not(:last-child) {
  padding-right: 32px;
  border-right: 1px solid rgba(255,255,255,0.25) !important;
}

/* ── C3: ABOUT FOUNDER PHOTO — anchor top ─────────────────── */
.founder-sec__img {
  object-position: center top !important;
}
.founder-image__inner {
  background-position: center top !important;
}

/* ── C4: TOOLS PAGE — icon sizing ─────────────────────────── */
.tool-full-head .tool-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
}

/* ── TOPICS PAGE — content hub full page ──────────────────── */
.topics-hero {
  background: #0d0d0d;
  padding: 7rem 0 4rem;
  text-align: center;
}
.topics-hero h1 { color: #fff; font-size: clamp(2rem,4vw,3.5rem); font-weight: 800; margin-bottom: 1rem; letter-spacing: -0.02em; }
.topics-hero p  { color: rgba(255,255,255,0.85); font-size: 1.05rem; max-width: 520px; margin: 0 auto; line-height: 1.7; }

.topics-main { padding: 3rem 0 5rem; background: var(--smoke,#f9f6f2); }

/* Filter bar */
.topics-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border,#e0ddd8);
}
.topics-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1.5px solid var(--border,#e0ddd8);
  color: #666;
  background: #fff;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  white-space: nowrap;
}
.topics-filter-btn.active,
.topics-filter-btn:hover {
  border-color: #147065;
  color: #147065;
  background: #eef7f5;
}
.topics-filter-btn.active {
  background: #147065;
  color: #fff;
}
.topics-filter-btn.premium-btn {
  border-color: #c8963e;
  color: #c8963e;
}
.topics-filter-btn.premium-btn.active,
.topics-filter-btn.premium-btn:hover {
  background: #c8963e;
  color: #fff;
  border-color: #c8963e;
}

/* Article/Content grid */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 1.25rem;
}
.topics-grid.has-featured {
  grid-template-columns: repeat(3,minmax(0,1fr));
}

/* Content card */
.content-card {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e0ddd8;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}
.content-card:hover {
  transform: translateY(-4px);
  border-color: #147065;
  box-shadow: 0 12px 36px rgba(20,112,101,0.1);
}
.content-card.featured {
  grid-column: span 2;
}
.content-card__thumb {
  position: relative;
  overflow: hidden;
}
.content-card.featured .content-card__thumb { height: 260px; }
.content-card:not(.featured) .content-card__thumb { height: 160px; }
.content-card__thumb-bg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.15);
}
.content-card__badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 5px;
  z-index: 2;
}
.content-card__badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 100px;
}
.badge-video   { background: rgba(10,10,10,0.85); color: #1a8a7a; border: 1px solid #1a8a7a; }
.badge-article { background: rgba(10,10,10,0.7);  color: rgba(255,255,255,0.85); }
.content-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.content-card__play-circle {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.5);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s, background 0.2s;
}
.content-card:hover .content-card__play-circle {
  transform: scale(1.1);
  background: rgba(255,255,255,0.2);
}
.content-card__play-tri {
  width: 0; height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 12px solid rgba(255,255,255,0.95);
  margin-left: 3px;
}
.content-card__body {
  padding: 14px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.content-card.featured .content-card__body { padding: 18px 20px 20px; }
.content-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.content-card__cat {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.content-card__time { font-size: 0.65rem; color: #888; }
.content-card__title {
  font-weight: 700;
  color: #111;
  line-height: 1.35;
  margin-bottom: 8px;
  flex: 1;
}
.content-card.featured .content-card__title { font-size: 1.2rem; }
.content-card:not(.featured) .content-card__title { font-size: 0.9rem; }
.content-card__excerpt {
  font-size: 0.82rem;
  color: #666;
  line-height: 1.65;
  margin-bottom: 12px;
}
.content-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}
.content-card__read {
  font-size: 0.72rem;
  font-weight: 600;
  color: #147065;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.15s;
}
.content-card:hover .content-card__read { gap: 8px; }

/* Load more */
.topics-load-more { text-align: center; margin-top: 2.5rem; }
.topics-load-btn {
  background: #111;
  color: #fff;
  border: none;
  padding: 11px 28px;
  border-radius: 3px;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.topics-load-btn:hover { background: #2a2a2a; }

/* Results count */
.topics-count {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 1.5rem;
}

/* Empty state */
.topics-empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 4rem 2rem;
  color: #999;
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .topics-grid { grid-template-columns: repeat(2,1fr); }
  .content-card.featured { grid-column: span 2; }
}
@media (max-width: 768px) {
  .topics-grid { grid-template-columns: 1fr; }
  .content-card.featured { grid-column: span 1; }
  .content-card.featured .content-card__thumb { height: 200px; }
  .topics-filters { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 0.75rem; }
  .topics-filter-btn { flex-shrink: 0; }
}

/* ── CART ICON IN NAV ──────────────────────────────────────── */
.nav__right { display:flex; align-items:center; gap:12px; }
.nav__cart {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 6px;
  color: rgba(255,255,255,0.75);
  transition: color .15s;
  text-decoration: none;
}
.nav__cart:hover { color: #fff; }
.nav__cart-count {
  position: absolute;
  top: -4px; right: -4px;
  background: #c8963e;
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  min-width: 16px; height: 16px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  font-family: inherit;
}

/* ── TOOLS PAGE — CARD GRID LAYOUT (Change #2) ────────────── */

/* Override the old accordion list layout */
.tool-list {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 14px !important;
}

/* Tool card — compact square style */
.tool-item {
  border-radius: 10px !important;
  border: 1px solid #e0ddd8 !important;
  background: #fff !important;
  overflow: hidden !important;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease !important;
  cursor: pointer;
}
.tool-item:hover {
  transform: translateY(-3px) !important;
  border-color: #147065 !important;
  box-shadow: 0 10px 28px rgba(20,112,101,0.1) !important;
}
.tool-item.active {
  border-color: #147065 !important;
  box-shadow: 0 8px 28px rgba(20,112,101,0.15) !important;
  transform: none !important;
}

/* Tool header — card face */
.tool-header {
  padding: 20px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 8px !important;
  cursor: pointer !important;
}
.tool-header:hover { background: transparent !important; }
.tool-item.active .tool-header { background: #eef7f5 !important; }

.tool-icon-wrap {
  width: 44px !important;
  height: 44px !important;
  border-radius: 10px !important;
  margin-bottom: 4px !important;
}
.tool-name {
  font-size: .9rem !important;
  font-weight: 700 !important;
  color: #111 !important;
  line-height: 1.3 !important;
}
.tool-desc-short {
  font-size: .75rem !important;
  color: #888 !important;
  line-height: 1.55 !important;
  margin-top: 0 !important;
}

/* Hide chevron — not needed in card layout */
.tool-chevron { display: none !important; }

/* Use tool button — visible on card */
.tool-use-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  margin-top: 8px !important;
  margin-right: 0 !important;
  font-size: .72rem !important;
  padding: 6px 14px !important;
  border-radius: 4px !important;
}
.tool-item.active .tool-use-btn {
  background: #0d4f48 !important;
}

/* Expanded tool body — full width breakout */
.tool-body {
  display: none;
  /* When active, spans full grid width via JS wrapper */
}
.tool-item.active .tool-body {
  display: block !important;
}

/* Full-width expansion panel */
.tool-expansion {
  grid-column: 1 / -1;
  background: #fff;
  border: 1px solid #147065;
  border-radius: 10px;
  padding: 24px;
  margin-top: -4px;
  box-shadow: 0 8px 32px rgba(20,112,101,0.1);
  animation: expandIn .2s ease;
}
@keyframes expandIn {
  from { opacity:0; transform:translateY(-8px); }
  to   { opacity:1; transform:translateY(0); }
}
.tool-expansion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e0ddd8;
}
.tool-expansion-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111;
}
.tool-expansion-close {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #f9f6f2;
  border: 1px solid #e0ddd8;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: .8rem; color: #888;
  transition: all .15s;
  flex-shrink: 0;
}
.tool-expansion-close:hover { background: #eef7f5; color: #147065; border-color: #147065; }

/* Cat section header */
.cat-header {
  border-radius: 10px !important;
  margin-bottom: 14px !important;
}

/* Responsive */
@media (max-width: 1024px) {
  .tool-list { grid-template-columns: repeat(2,1fr) !important; }
  .tool-expansion { grid-column: 1/-1 !important; }
}
@media (max-width: 640px) {
  .tool-list { grid-template-columns: 1fr 1fr !important; }
}

/* ── AUTH NAV ──────────────────────────────────────────────── */
.nav__signin {
  color: rgba(255,255,255,.75);
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 5px;
  transition: color .15s;
}
.nav__signin:hover { color: #fff; }

/* User avatar */
.nav__avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #147065;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700;
  cursor: pointer;
  border: 2px solid rgba(255,255,255,.2);
  transition: border-color .15s;
}
.nav__avatar:hover { border-color: #1a8a7a; }

/* User dropdown menu */
.nav__user { position: relative; }
.nav__user-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  padding: 12px;
  min-width: 200px;
  box-shadow: 0 16px 40px rgba(0,0,0,.4);
  z-index: 999;
}
.nav__user-menu.open { display: block; }
.nav__user-name { font-size: .875rem; font-weight: 700; color: #fff; padding: 4px 8px; }
.nav__user-plan { font-size: .7rem; color: #1a8a7a; font-weight: 600; padding: 0 8px 4px; text-transform: uppercase; letter-spacing: .08em; }
.nav__user-link { display: block; padding: 8px; font-size: .82rem; color: rgba(255,255,255,.65); text-decoration: none; border-radius: 5px; transition: all .15s; }
.nav__user-link:hover { background: rgba(255,255,255,.06); color: #fff; }

/* Premium gate modal */
.premium-gate-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.8);
  z-index: 9998;
  align-items: center;
  justify-content: center;
}
.premium-gate-overlay.show { display: flex; }
.premium-gate-box {
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem;
  max-width: 420px;
  width: 90%;
  text-align: center;
}
.premium-gate-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.premium-gate-h { font-size: 1.25rem; font-weight: 700; color: #111; margin-bottom: .5rem; }
.premium-gate-p { font-size: .875rem; color: #666; line-height: 1.65; margin-bottom: 1.5rem; }
.premium-gate-btns { display: flex; gap: 10px; justify-content: center; }
.premium-gate-btn-primary { background: #147065; color: #fff; padding: 11px 24px; border-radius: 6px; font-weight: 700; font-size: .875rem; text-decoration: none; transition: background .15s; }
.premium-gate-btn-primary:hover { background: #0d4f48; }
.premium-gate-btn-outline { border: 1.5px solid #e0ddd8; color: #666; padding: 11px 24px; border-radius: 6px; font-weight: 600; font-size: .875rem; text-decoration: none; cursor: pointer; background: #fff; font-family: inherit; transition: all .15s; }
.premium-gate-btn-outline:hover { border-color: #147065; color: #147065; }

/* Hub card excerpt */
.hub-card__excerpt {
  font-size: .82rem;
  color: #666;
  line-height: 1.65;
  margin: .5rem 0 .75rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hub-card--featured .hub-card__excerpt {
  -webkit-line-clamp: 4;
  font-size: .875rem;
}

/* ── KIT NEWSLETTER FORM STYLING ───────────────────────────── */
.nl-kit-wrap { width: 100%; }
/* Override Kit's default styles to match Men Matters */
.nl-kit-wrap .formkit-form { background: transparent !important; }
.nl-kit-wrap .formkit-submit { background: #147065 !important; font-family: Inter, sans-serif !important; font-weight: 700 !important; border-radius: 6px !important; }
.nl-kit-wrap .formkit-submit:hover { background: #0d4f48 !important; }
.nl-kit-wrap .formkit-input { font-family: Inter, sans-serif !important; border-radius: 6px !important; }
/* Dark section (newsletter section, video page) */
.nl-sec .nl-kit-wrap .formkit-input { background: rgba(255,255,255,.15) !important; color: #fff !important; border-color: rgba(255,255,255,.2) !important; }
.nl-sec .nl-kit-wrap .formkit-input::placeholder { color: rgba(255,255,255,.5) !important; }
