/*
Theme Name: meshnmeet
Theme URI: https://meshnmeet.com
Author: meshnmeet
Description: Brand theme for the meshnmeet.com hosted app. Ships ONLY to meshnmeet.com — the polling plugin stays theme-agnostic so it works inside any theme on customer sites (e.g. mensdinner.net).
Version: 0.2.31
Requires PHP: 8.1
License: Proprietary
Text Domain: meshnmeet-theme
*/

:root {
  --mnmt-primary: #534AB7;
  --mnmt-dark: #26215C;
  --mnmt-tint: #EEEDFE;
  --mnmt-ink: #1f2430;
  --mnmt-muted: #6b7280;
  --mnmt-line: #e8e7f0;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--mnmt-ink);
  background: #fff;
  line-height: 1.6;
  /* Sticky footer: fill the viewport, push the footer to the bottom. */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--mnmt-primary); text-decoration: none; }
img { max-width: 100%; height: auto; }

/* ---------- Nav ---------- */
.mnmt-nav { border-bottom: 1px solid var(--mnmt-line); background: #fff; position: sticky; top: 0; z-index: 50; }
.mnmt-nav-inner { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; gap: 1.5rem; padding: .85rem 1.25rem; }
.mnmt-logo { font-weight: 700; font-size: 1.15rem; color: var(--mnmt-dark); display: flex; align-items: center; gap: .5rem; text-decoration: none; white-space: nowrap; }
.mnmt-logo-img { width: 40px; height: 40px; border-radius: 50%; display: block; flex: 0 0 auto; }
.mnmt-logo-word { line-height: 1; }
.mnmt-logo-mark { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; background: var(--mnmt-primary); font-size: 15px; line-height: 1; }
.mnmt-nav-links { display: flex; gap: 1.25rem; margin-left: 1rem; }
.mnmt-nav-links a { color: #374151; font-weight: 500; }
.mnmt-nav-links a:hover { color: var(--mnmt-primary); }
.mnmt-nav-cta { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
.mnmt-nav-cta .signin { color: #374151; font-weight: 500; white-space: nowrap; }
/* Signed-in account links (My polls / Account / Log out): a flex group so they
   keep clear spacing on desktop (they'd otherwise sit inline with none). */
.mnmt-nav-secondary { display: inline-flex; align-items: center; gap: 1.5rem; }
/* Mobile hamburger: hidden on desktop, revealed at the nav breakpoint. The nav
   links (and, when signed in, the account links) fold into .mnmt-nav-menu while
   the Sign in / Get started (or Create a poll) buttons stay in the bar. */
.mnmt-nav-toggle { display: none; background: none; border: 0; padding: .35rem; margin-left: .1rem; cursor: pointer; color: #26215C; line-height: 0; border-radius: 8px; }
.mnmt-nav-toggle:hover { background: var(--mnmt-tint, #EEEDFE); }
.mnmt-nav-toggle-bars { display: inline-flex; flex-direction: column; justify-content: space-between; width: 22px; height: 15px; }
.mnmt-nav-toggle-bars span { display: block; height: 2px; width: 100%; background: currentColor; border-radius: 1px; transition: transform .2s ease, opacity .2s ease; }
.mnmt-nav-toggle.is-open .mnmt-nav-toggle-bars span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.mnmt-nav-toggle.is-open .mnmt-nav-toggle-bars span:nth-child(2) { opacity: 0; }
.mnmt-nav-toggle.is-open .mnmt-nav-toggle-bars span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.mnmt-nav-menu { display: none; flex-direction: column; background: #fff; border-top: 1px solid var(--mnmt-line); }
.mnmt-nav-menu a { display: block; padding: .8rem 1.25rem; color: #374151; font-weight: 500; text-decoration: none; }
.mnmt-nav-menu a:hover { background: var(--mnmt-tint, #EEEDFE); color: var(--mnmt-primary); }
.mnmt-nav-menu-sep { display: block; height: 1px; margin: .35rem 1.25rem; background: var(--mnmt-line); }
.mnmt-btn { display: inline-block; background: var(--mnmt-primary); color: #fff; padding: .5rem 1rem; border-radius: 8px; font-weight: 600; white-space: nowrap; }
.mnmt-btn:hover { background: #453da0; }
.mnmt-btn--ghost { background: #fff; color: var(--mnmt-primary); border: 1px solid var(--mnmt-primary); }

/* ---------- Layout ---------- */
.mnmt-main { flex: 1 0 auto; }
.mnmt-page { max-width: 880px; margin: 2.5rem auto; padding: 0 1.25rem; }
.mnmt-section { max-width: 1080px; margin: 0 auto; padding: 3rem 1.25rem; }
.mnmt-section h2 { text-align: center; color: var(--mnmt-dark); font-size: 1.6rem; margin: 0 0 2rem; }
.mnmt-eyebrow { text-align: center; text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; font-weight: 700; color: var(--mnmt-primary); margin-bottom: .5rem; }
.mnmt-alt { background: #faf9ff; }

/* ---------- Hero (real text over a background) ----------
   To use a photo instead of the solid brand color, add a background-image to
   .mnmt-hero (e.g. inline style or a rule). The ::before overlay keeps the white
   text readable on top of any photo. */
.mnmt-home-hero {
  position: relative;
  background-color: var(--mnmt-dark);
  background-image: url('assets/hero.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
}
/* Overlay: dark over the left copy for contrast, clearer over the photo/right. */
.mnmt-home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(38, 33, 92, .85) 0%, rgba(38, 33, 92, .5) 55%, rgba(38, 33, 92, .2) 100%);
}
.mnmt-hero-inner {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 2.5rem;
  align-items: center;
}
.mnmt-home-hero h1 { font-size: 2.6rem; line-height: 1.1; margin: 0 0 1rem; }
.mnmt-home-hero p { font-size: 1.15rem; color: #e5e1f7; margin: 0 0 1.75rem; max-width: 32rem; }
.mnmt-btn--hero { background: #fff; color: var(--mnmt-dark); font-size: 1.05rem; padding: .7rem 1.4rem; }
.mnmt-btn--hero:hover { background: var(--mnmt-tint); }

.mnmt-pollcard { background: #fff; color: var(--mnmt-ink); border-radius: 16px; padding: 1.25rem; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.mnmt-pollcard h3 { margin: 0 0 1rem; color: var(--mnmt-ink); font-size: 1.15rem; font-weight: 600; }
.mnmt-pollcard .row { background: #efeee9; border-radius: 10px; padding: .7rem .9rem; margin-bottom: .55rem; color: #374151; font-weight: 500; }
.mnmt-pollcard .row:last-child { margin-bottom: 0; }
.mnmt-pollcard .row--leading { background: var(--mnmt-tint); color: var(--mnmt-primary); font-weight: 600; }

/* ---------- Features ---------- */
.mnmt-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.mnmt-col { text-align: center; padding: 1rem; }
.mnmt-ico { width: 3rem; height: 3rem; border-radius: 12px; background: var(--mnmt-tint); color: var(--mnmt-primary); display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: .75rem; }
.mnmt-col h3 { margin: 0 0 .35rem; color: var(--mnmt-dark); }
.mnmt-col p { margin: 0; color: var(--mnmt-muted); }

/* How it works */
.mnmt-steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.mnmt-stepcard { background: #fff; border: 1px solid var(--mnmt-line); border-radius: 14px; padding: 1.5rem; text-align: center; }
.mnmt-stepcard .num { width: 2.2rem; height: 2.2rem; border-radius: 999px; background: var(--mnmt-primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: .6rem; }
.mnmt-stepcard h3 { margin: 0 0 .35rem; color: var(--mnmt-dark); }
.mnmt-stepcard p { margin: 0; color: var(--mnmt-muted); font-size: .93rem; }

/* Testimonials */
.mnmt-quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.mnmt-quote { background: #fff; border: 1px solid var(--mnmt-line); border-radius: 14px; padding: 1.5rem; }
.mnmt-quote p { margin: 0 0 .75rem; font-size: 1.05rem; color: #2c2b3a; }
.mnmt-quote .who { color: var(--mnmt-muted); font-size: .9rem; }

/* ---------- Blog ---------- */
.mnmt-blog-title { color: var(--mnmt-dark); font-size: 1.6rem; margin: 0 0 1.5rem; }
.mnmt-blog { display: flex; flex-direction: column; gap: 1rem; }
.mnmt-postcard { display: block; border: 1px solid var(--mnmt-line); border-radius: 14px; padding: 1.25rem 1.5rem; text-decoration: none; color: inherit; }
.mnmt-postcard:hover { border-color: var(--mnmt-primary); }
.mnmt-post-meta { color: var(--mnmt-muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .35rem; }
.mnmt-post-title { color: var(--mnmt-dark); font-size: 1.15rem; margin: 0 0 .35rem; }
.mnmt-post-excerpt { color: #4b5563; margin: 0; }

/* ---------- Footer ---------- */
.mnmt-footer { background: var(--mnmt-dark); color: #cfc9ee; flex-shrink: 0; }
.mnmt-footer-top { max-width: 1080px; margin: 0 auto; padding: 3rem 1.25rem 1.5rem; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 2rem; }
.mnmt-footer-name { font-size: 1.3rem; font-weight: 700; color: #fff; letter-spacing: -.01em; }
.mnmt-footer-tag { margin: .55rem 0 1.25rem; color: #cfc9ee; font-size: .9rem; line-height: 1.5; max-width: 24ch; opacity: .85; }
.mnmt-footer-col h4 { margin: 0 0 .9rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: #8f88c0; font-weight: 700; }
.mnmt-footer a { color: #cfc9ee; text-decoration: none; }
.mnmt-footer a:hover { color: #fff; }
.mnmt-footer-col a { display: block; font-size: .92rem; padding: .32rem 0; }
.mnmt-social { display: flex; gap: .65rem; }
.mnmt-social a { display: inline-flex; }
.mnmt-social svg { display: block; }
.mnmt-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.mnmt-footer-bottom-inner { max-width: 1080px; margin: 0 auto; padding: 1.1rem 1.25rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.mnmt-footer-bottom-inner span { color: #8f88c0; font-size: .85rem; }
@media (max-width: 860px) { .mnmt-footer-top { grid-template-columns: 1fr 1fr 1fr; gap: 1.75rem; } .mnmt-footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .mnmt-footer-top { grid-template-columns: 1fr 1fr; } }

@media (max-width: 820px) {
  .mnmt-hero-inner, .mnmt-cols, .mnmt-steps3, .mnmt-quotes { grid-template-columns: 1fr; }
  .mnmt-nav-links { display: none; }
  .mnmt-home-hero h1 { font-size: 2rem; }
  /* Reveal the hamburger; fold the inline links + signed-in account links away. */
  .mnmt-nav-toggle { display: inline-flex; align-items: center; }
  .mnmt-nav-secondary { display: none; }
  .mnmt-nav-menu:not([hidden]) { display: flex; }
}

/* Tighten the header so the logo + CTAs fit one line on phones. */
@media (max-width: 600px) {
  .mnmt-nav-inner { gap: .5rem; padding: .6rem .9rem; }
  .mnmt-logo { font-size: 1rem; gap: .4rem; flex-shrink: 0; }
  .mnmt-logo-img { width: 32px; height: 32px; }
  /* The beta banner already sits directly above the header, so the header's own
     Beta badge is redundant on phones — hiding it frees the space that was
     truncating the logo and pushing the hamburger off the edge. (Scoped to
     .mnmt-nav for specificity: the base .mnmt-beta-badge rule is declared later
     in this file, so a bare selector would lose the source-order tie.) */
  .mnmt-nav .mnmt-beta-badge { display: none; }
  .mnmt-nav-cta { gap: .6rem; margin-left: auto; }
  .mnmt-nav-cta .signin { font-size: .9rem; }
  .mnmt-btn { padding: .45rem .8rem; font-size: .9rem; }
  .mnmt-nav-toggle { padding: .3rem; }
}
/* Very narrow: show just the badge (drop the wordmark) to buy space. */
@media (max-width: 380px) {
  .mnmt-logo-word { display: none; }
}

/* Beta mode */
.mnmt-beta-badge { display: inline-block; margin-left: .5rem; background: #534AB7; color: #fff; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: .18rem .55rem; border-radius: 999px; vertical-align: middle; }
.mnmt-beta-banner { position: relative; background: #534AB7; color: #fff; font-size: .9rem; line-height: 1.4; padding: .7rem 2.75rem; text-align: center; }
.mnmt-beta-banner strong { color: #fff; font-weight: 700; }
.mnmt-beta-dismiss { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); background: transparent; border: 0; color: #fff; font-size: 1.25rem; line-height: 1; cursor: pointer; opacity: .85; padding: .2rem .4rem; }
.mnmt-beta-dismiss:hover { opacity: 1; }
.mnmt-beta-banner a { color: #fff; text-decoration: underline; font-weight: 600; }
.mnmt-beta-banner a:hover { text-decoration: none; }

/* Home: WordPress plugin CTA band */
.mnmt-plugin-cta { background: linear-gradient(90deg, #534AB7, #26215C); color: #fff; }
.mnmt-plugin-cta-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.mnmt-plugin-cta-logo { width: 64px; height: 64px; color: #fff; opacity: .95; margin-bottom: 1rem; }
.mnmt-plugin-cta .mnmt-eyebrow { color: #cfc9ee; }
.mnmt-plugin-cta h2 { color: #fff; margin: .25rem 0 .75rem; font-size: 1.7rem; }
.mnmt-plugin-cta p { color: #e5e1f7; margin: 0 auto 1.5rem; max-width: 34rem; }
