/* ============================================================
   MEN MATTERS — UI/UX Improvements v3
   Applied on top of style.css
   ============================================================ */

/* ── TYPOGRAPHY SCALE SHARPENING ──────────────────────────── */
.section-header h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.section-header .eyebrow { margin-bottom: 0.75rem; display: block; }
.section-header p { font-size: 1.05rem; line-height: 1.72; margin-top: 0.75rem; }

/* ── SECTION RHYTHM — alternating dark/light ──────────────── */
.contrast         { background: #fff; }
.content-hub      { background: #f9f6f2; }
.tools-sec        { background: #fff; }
.pillars-sec      { background: #f2efeb; }   /* slightly warmer smoke */
.how-sec          { background: #111; }
.founder-sec      { background: #0d0d0d; }
.mena-sec         { background: #fff; }
.stats-sec        { background: #111; border-top: none; }
.testi-sec        { background: #f9f6f2; }
.nl-sec           { background: #147065; }

/* ── NAV IMPROVEMENTS ─────────────────────────────────────── */
.nav { border-bottom: 1px solid rgba(255,255,255,0.06); }
.nav.scrolled {
  background: rgba(10,10,10,0.97) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,0.05) !important;
}
.nav__logo-mark { font-size: 1rem; letter-spacing: -0.01em; }
.nav__link { font-size: 0.82rem; letter-spacing: 0.02em; color: rgba(255,255,255,0.55); }
.nav__link::after { background: #1a8a7a; }
.nav__link:hover { color: #fff; }
.nav__cta { font-size: 0.78rem; letter-spacing: 0.04em; padding: 0.65rem 1.4rem; }

/* ── HERO IMPROVEMENTS ─────────────────────────────────────── */
.hero { background: #071210; }
.hero__kicker { letter-spacing: 0.03em; }
.hero__sub { max-width: 480px; }
.hero__stats { margin-top: 0; }
.hs-num { font-size: 1.75rem; }
.hs-lbl { font-size: 0.6rem; letter-spacing: 0.14em; }

/* Stat dividers */
.hero__stats > div:not(:last-child) {
  padding-right: 32px;
  border-right: 1px solid rgba(255,255,255,0.08);
}

/* ── MARQUEE ──────────────────────────────────────────────── */
.marquee { padding: 10px 0; }
.marquee__item { font-size: 0.68rem; letter-spacing: 0.2em; }
.marquee__dot { margin: 0 12px; }

/* ── CONTRAST BLOCK IMPROVEMENTS ─────────────────────────── */
.contrast { padding: 5rem 0; }
.contrast__intro { margin-bottom: 2.5rem; }
.contrast__intro h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 0.75rem; }
.contrast__grid {
  border-radius: 14px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.06);
}
.contrast__item { padding: 36px 32px; transition: background 0.2s; }
.contrast__item:hover { background: #fdfcfb; }
.contrast__label { margin-bottom: 14px; gap: 10px; }
.contrast__title { font-size: 1.5rem; margin-bottom: 12px; }
.contrast__desc { font-size: 0.9rem; line-height: 1.72; }
.contrast__x {
  width: 18px; height: 18px;
  border-color: #e0e0e0;
  color: #bbb;
}

/* ── CONTENT HUB IMPROVEMENTS ────────────────────────────── */
.hub__header { margin-bottom: 2rem; }
.hub__title { letter-spacing: -0.01em; }
.hub__filters { gap: 7px; padding-bottom: 1.5rem; margin-bottom: 2rem; }
.hub__filter {
  font-size: 0.78rem;
  padding: 0.45rem 1.1rem;
  border-radius: 100px;
  transition: all 0.15s ease;
  letter-spacing: 0.02em;
}
.hub__filter.active { box-shadow: 0 2px 8px rgba(20,112,101,0.25); }

/* Editorial card: featured large card */
.hub__grid { gap: 1.25rem; }
.hub-card { border-radius: 10px; transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease; }
.hub-card:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(0,0,0,0.09); }
.hub-card__title { line-height: 1.35; }

/* Premium CTA strip */
.hub__premium-cta { border-radius: 14px; }
.hub__premium-title { font-size: 1.5rem; line-height: 1.2; }

/* ── TOOLS PREVIEW ────────────────────────────────────────── */
.tools-sec { padding: 5rem 0; }
.tc { border-radius: 10px; transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
.tc:hover { box-shadow: 0 12px 36px rgba(20,112,101,0.1); }
.tc__name { font-size: 1.05rem; }
.tc__desc { line-height: 1.68; }

/* ── PILLARS ──────────────────────────────────────────────── */
.pillars-sec { padding: 5rem 0; }
.p-card { border-radius: 10px; transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease; }
.p-card:hover { box-shadow: 0 12px 36px rgba(0,0,0,0.08); }
.p-card__icon { font-size: 1.6rem; }
.p-card__name { font-size: 0.92rem; letter-spacing: 0.01em; }
.p-card__desc { font-size: 0.8rem; }

/* ── HOW IT WORKS ─────────────────────────────────────────── */
.how-sec { padding: 5rem 0; }
.how-grid { gap: 2.5rem; }
.how-step { padding: 1.5rem; }
.how-num {
  width: 52px; height: 52px;
  font-size: 1.3rem;
  box-shadow: 0 0 0 6px rgba(20,112,101,0.12);
}
.how-title { font-size: 1rem; letter-spacing: 0.01em; }
.how-desc { font-size: 0.85rem; line-height: 1.72; }

/* Connector line between steps */
.how-grid::before {
  top: 26px;
  left: calc(16.6% + 2rem);
  right: calc(16.6% + 2rem);
  background: linear-gradient(to right, rgba(20,112,101,0.6), rgba(20,112,101,0.1), rgba(20,112,101,0.6));
}

/* ── FOUNDER SECTION ──────────────────────────────────────── */
.founder-sec { padding: 5.5rem 0; }
.founder-sec__img-wrap { border-radius: 14px; }
.founder-sec__quote { font-size: 1.2rem; }
.founder-sec__h { letter-spacing: -0.01em; }
.founder-sec__body { font-size: 0.93rem; }
.fstat { border-radius: 10px; }
.fstat__num { font-size: 1.9rem; }

/* ── MENA SECTION ─────────────────────────────────────────── */
.mena-sec { padding: 5rem 0; }
.mena-h { letter-spacing: -0.01em; }
.mena-img-wrap { border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,0.12); }
.mt { border-radius: 6px; transition: all 0.15s ease; }
.mt:hover { padding-left: 18px; }
.mt-dot { width: 6px; height: 6px; }

/* ── STATS ────────────────────────────────────────────────── */
.stats-sec { padding: 3.5rem 0; }
.stats-grid { gap: 0; }
.stats-grid > div {
  padding: 0 2rem;
  border-right: 1px solid rgba(255,255,255,0.07);
}
.stats-grid > div:last-child { border-right: none; }
.sn { font-size: 2.75rem; }
.sl { font-size: 0.62rem; letter-spacing: 0.14em; }

/* ── TESTIMONIALS ─────────────────────────────────────────── */
.testi-sec { padding: 5rem 0; }
.tcard { border-radius: 12px; }
.tcard:hover { box-shadow: 0 12px 36px rgba(0,0,0,0.06); }
.tcard-q { font-size: 3rem; line-height: 0.8; margin-bottom: 12px; }
.tcard-txt { font-size: 0.92rem; }

/* ── NEWSLETTER ───────────────────────────────────────────── */
.nl-sec { padding: 5rem 0; }
.nl-h { letter-spacing: -0.01em; }
.nl-form { border-radius: 6px; }
.nl-btn { border-radius: 3px; font-size: 0.82rem; letter-spacing: 0.04em; }
.nl-trust { font-size: 0.7rem; letter-spacing: 0.04em; }

/* ── FOOTER IMPROVEMENTS ──────────────────────────────────── */
.fb-name { font-size: 1rem; }
.fb-desc { font-size: 0.8rem; line-height: 1.72; }
.fc-title { letter-spacing: 0.18em; }
.fc-link { font-size: 0.8rem; transition: color 0.15s; }
.fb-soc { transition: all 0.15s ease; }

/* ── BUTTON REFINEMENTS ───────────────────────────────────── */
.btn-primary {
  padding: 0.78rem 1.75rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  border-radius: 4px;
  transition: all 0.18s ease;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(20,112,101,0.3); }
.btn-ghost {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  border-radius: 4px;
  padding: 0.78rem 1.75rem;
  transition: all 0.18s ease;
}
.btn-outline {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  border-radius: 4px;
  padding: 0.78rem 1.75rem;
  transition: all 0.18s ease;
}

/* ── REVEAL ANIMATIONS — smoother ────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* ── SCROLL PROGRESS BAR ──────────────────────────────────── */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 2px;
  background: #147065;
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ── SECTION DIVIDERS — subtle top borders ────────────────── */
.how-sec,
.stats-sec,
.founder-sec { border-top: 1px solid rgba(255,255,255,0.04); }

.contrast,
.tools-sec,
.mena-sec,
.testi-sec { border-top: 1px solid #ece9e4; }

/* ── RESPONSIVE FIXES ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .contrast__grid { grid-template-columns: 1fr; }
  .contrast__item { padding: 28px 24px; }
  .founder-sec__inner { grid-template-columns: 1fr; }
  .founder-sec__stats { grid-template-columns: repeat(2,1fr); }
  .stats-grid { grid-template-columns: repeat(2,1fr); gap: 0; }
  .stats-grid > div { padding: 1.5rem; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .stats-grid > div:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.06); }
  .stats-grid > div:last-child,
  .stats-grid > div:nth-last-child(2):nth-child(odd) { border-bottom: none; }
}
@media (max-width: 768px) {
  .hero__inner { max-width: 100%; }
  .hero__stats > div:not(:last-child) { border-right: none; padding-right: 0; }
  .hero__stats { gap: 1.5rem; flex-wrap: wrap; }
  .how-grid::before { display: none; }
  .contrast__grid { border-radius: 10px; }
  .hub__filters { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 0.75rem; }
  .hub__filter { flex-shrink: 0; }
  .pillars-sec .p-grid { grid-template-columns: 1fr 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
}

/* ── CONTENT HUB — EDITORIAL FEATURED CARD ────────────────── */
.hub__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1.25rem;
}
.hub__grid:has(.hub-card--featured) {
  grid-template-areas: 'feat feat side' 'feat feat side2';
}
.hub-card--featured {
  grid-area: feat;
}
.hub-card--featured .hub-card__thumb {
  height: 280px;
}
.hub-card--featured .hub-card__title {
  font-size: 1.25rem;
  line-height: 1.3;
}
.hub-card--featured .hub-card__body {
  padding: 1.5rem 1.75rem 1.75rem;
}

/* Fallback for browsers without :has() */
@supports not selector(:has(a,b)) {
  .hub__grid { grid-template-areas: none; }
  .hub-card--featured { grid-area: auto; }
}

@media (max-width: 768px) {
  .hub__grid { grid-template-columns: 1fr; }
  .hub__grid:has(.hub-card--featured) { grid-template-areas: none; }
  .hub-card--featured { grid-area: auto; }
}

/* ── REAL LOGO INTEGRATION ────────────────────────────────── */

/* Nav logo — image replaces text */
.nav__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav__logo-img {
  height: 36px;
  width: auto;
  display: block;
  transition: opacity 0.2s ease;
}
/* On dark nav (default): show white logo, hide teal */
.nav__logo-img--white { display: block; }
.nav__logo-img--teal  { display: none; }

/* When nav is scrolled on a LIGHT page, switch to teal logo */
/* (for now hero is always dark so white logo stays — 
   if you add light-bg pages later, add .nav.light .nav__logo-img--white { display:none }
   and .nav.light .nav__logo-img--teal { display:block } ) */

/* Footer logo */
.footer-logo {
  height: 40px;
  width: auto;
  display: block;
  margin-bottom: 4px;
  opacity: 0.9;
  transition: opacity 0.2s;
}
.footer-logo:hover { opacity: 1; }

/* fb-name / footer-brand-name container reset */
.fb-name,
.fbn,
.footer__brand-name,
.footer-brand-name {
  margin-bottom: 4px;
}

/* Mobile nav — also needs white logo */
.nav__mobile .nav__logo-img--white { display: block; }
.nav__mobile .nav__logo-img--teal  { display: none; }

/* Remove old arrow-box styles now we use real logo */
.arrow-box { display: none; }
.nav__logo-tag { display: none; }

/* ═══════════════════════════════════════════════════════════
   FOOTER GRID LAYOUT — shared across ALL pages
   ═══════════════════════════════════════════════════════════ */
.footer { background: #0a0a0a; padding: 3.5rem 0 1.5rem; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.05);
  margin-bottom: 1.5rem;
}
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.fb-name { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.fb-tag { font-size: .65rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.3); margin-bottom: 10px; }
.fb-desc { font-size: .8rem; color: rgba(255,255,255,.35); line-height: 1.72; margin-bottom: 16px; max-width: 260px; }
.fb-socials { display: flex; gap: 8px; }
.fb-soc { width: 32px; height: 32px; border-radius: 6px; border: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; font-size: .65rem; font-weight: 700; color: rgba(255,255,255,.4); text-decoration: none; transition: all .15s; }
.fb-soc:hover { border-color: rgba(255,255,255,.3); color: #fff; }
.fc-title { font-size: .62rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.25); margin-bottom: 14px; }
.fc-links { display: flex; flex-direction: column; gap: 8px; }
.fc-link { font-size: .82rem; color: rgba(255,255,255,.45); text-decoration: none; transition: color .15s; }
.fc-link:hover { color: #fff; }
.fcopy { font-size: .72rem; color: rgba(255,255,255,.2); }
.flegal { display: flex; gap: 16px; }
.flegal a { font-size: .72rem; color: rgba(255,255,255,.25); text-decoration: none; transition: color .15s; }
.flegal a:hover { color: rgba(255,255,255,.6); }
.footer-logo { height: 52px; width: auto; display: block; }

@media(max-width:1024px){
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media(max-width:768px){
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .flegal { justify-content: center; }
}
