/* ============================================================
   menopausa.org — Stylesheet único
   Versão 2.0 — Glossier meets Goop (Beauty-Editorial Premium)
   ============================================================ */

/* ----- Reset moderno ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ----- Design Tokens (Manual de Marca v2) ----- */
:root {
  /* Paleta principal */
  --c-bordeaux: #7A2D3B;
  --c-bordeaux-deep: #5E1F2C;
  --c-gold: #C9A96E;
  --c-gold-soft: #E8DCC8;
  --c-cream: #F5F0EB;
  --c-cream-dark: #EDE5DB;
  --c-dark: #1A1A1A;
  --c-rose: #D4A0A0;
  --c-rose-soft: #F0DCDC;
  --c-white: #FFFFFF;
  --c-text: #1A1A1A;
  --c-text-soft: #6B6058;
  --c-success: #6B7F5E;
  --c-line: #E8DCC8;

  /* Tipografia */
  --font-serif: 'Playfair Display', 'Georgia', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Escala fluída (clamp) */
  --fs-hero: clamp(2.5rem, 6vw, 4.5rem);    /* 40-72px */
  --fs-h1:   clamp(2rem, 4.5vw, 3rem);      /* 32-48px */
  --fs-h2:   clamp(1.625rem, 3.5vw, 2.25rem); /* 26-36px */
  --fs-h3:   clamp(1.25rem, 2vw, 1.625rem); /* 20-26px */
  --fs-h4:   1.25rem;
  --fs-body: 1.0625rem;  /* 17px */
  --fs-small: 0.875rem;
  --fs-overline: 0.6875rem;

  /* Espaçamento */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 1rem;
  --sp-4: 1.5rem;
  --sp-5: 2rem;
  --sp-6: 3rem;
  --sp-7: 4rem;
  --sp-8: 6rem;
  --sp-9: 8rem;

  /* Layout */
  --container: 1200px;
  --container-narrow: 760px;
  --container-wide: 1440px;
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 16px;

  /* Transições */
  --t-fast: 150ms ease;
  --t-base: 250ms ease;
  --t-slow: 450ms ease;
}

/* ----- Base ----- */
body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.75;
  color: var(--c-text);
  background: var(--c-cream);
}

/* ----- Tipografia ----- */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-serif); font-weight: 700; line-height: 1.1; color: var(--c-dark); }
h1 { font-size: var(--fs-h1); line-height: 1.1; letter-spacing: -0.01em; }
h2 { font-size: var(--fs-h2); line-height: 1.15; letter-spacing: -0.005em; }
h3 { font-size: var(--fs-h3); font-weight: 400; line-height: 1.25; }
h4 { font-family: var(--font-sans); font-size: var(--fs-h4); font-weight: 600; line-height: 1.35; }
h5, h6 { font-family: var(--font-sans); font-weight: 600; }

p { margin-bottom: 1.25em; max-width: 68ch; }
strong { font-weight: 600; color: var(--c-dark); }
em { font-style: italic; }
a { color: var(--c-bordeaux); transition: color var(--t-fast); }
a:hover { color: var(--c-gold); }

.overline {
  display: inline-block;
  font-size: var(--fs-overline);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--c-gold);
  margin-bottom: var(--sp-3);
}

.lead {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--c-text-soft);
  max-width: 60ch;
}

.script-italic { font-style: italic; font-weight: 400; }

/* ----- Layout helpers ----- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--sp-4); }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--sp-4); }
.container-wide { max-width: var(--container-wide); margin: 0 auto; padding: 0 var(--sp-4); }

.section { padding: var(--sp-8) 0; }
.section-sm { padding: var(--sp-6) 0; }
.section-lg { padding: var(--sp-9) 0; }

.section-cream { background: var(--c-cream); }
.section-cream-dark { background: var(--c-cream-dark); }
.section-dark { background: var(--c-dark); color: var(--c-cream); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--c-white); }
.section-bordeaux { background: var(--c-bordeaux); color: var(--c-cream); }
.section-bordeaux h1, .section-bordeaux h2, .section-bordeaux h3 { color: var(--c-white); }
.section-bordeaux .overline { color: var(--c-gold); }

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ----- Grid ----- */
.grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

/* ----- Botões ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.95rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--t-base);
  white-space: nowrap;
}
.btn-primary { background: var(--c-bordeaux); color: var(--c-cream); }
.btn-primary:hover { background: var(--c-bordeaux-deep); color: var(--c-white); transform: translateY(-1px); }
.btn-gold { background: var(--c-gold); color: var(--c-dark); }
.btn-gold:hover { background: var(--c-bordeaux); color: var(--c-cream); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--c-cream); border-color: var(--c-cream); }
.btn-outline:hover { background: var(--c-cream); color: var(--c-bordeaux); }
.btn-outline-dark { background: transparent; color: var(--c-bordeaux); border-color: var(--c-bordeaux); }
.btn-outline-dark:hover { background: var(--c-bordeaux); color: var(--c-cream); }
.btn-link { padding: 0; color: var(--c-bordeaux); text-transform: none; letter-spacing: 0; font-weight: 600; border-radius: 0; border-bottom: 1.5px solid var(--c-gold); }
.btn-link:hover { color: var(--c-gold); }

/* ----- Header / Nav ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 240, 235, 0.96);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--c-line);
}
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-3) 0;
  gap: var(--sp-4);
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.15em;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--c-bordeaux);
  letter-spacing: -0.01em;
}
.brand .dot-org {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.7em;
  color: var(--c-gold);
  letter-spacing: 0;
}
.brand-tagline {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--c-text-soft);
  margin-top: 2px;
}
.brand-wrap { display: inline-flex; flex-direction: column; line-height: 1; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}
.nav-menu a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--c-text);
  position: relative;
  padding: var(--sp-1) 0;
  transition: color var(--t-fast);
}
.nav-menu a:hover { color: var(--c-bordeaux); }
.nav-menu a.active { color: var(--c-bordeaux); }
.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--c-gold);
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  flex-shrink: 0;
  min-width: 44px;
  align-items: center;
  justify-content: center;
  color: var(--c-bordeaux);
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--t-fast);
  position: relative;
  z-index: 102;
}
.nav-toggle:hover, .nav-toggle:focus { background: rgba(122, 45, 59, 0.1); outline: none; }
.nav-toggle svg { width: 28px; height: 28px; pointer-events: none; }

/* Header com z-index e altura mínima garantidos */
.site-header { min-height: 64px; }
.brand-wrap { min-width: 0; flex-shrink: 1; }

@media (max-width: 1200px) {
  .nav-menu {
    position: fixed !important;
    inset: 64px 0 0 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    background: var(--c-cream) !important;
    padding: var(--sp-4) !important;
    overflow-y: auto !important;
    transform: translateX(100%);
    transition: transform var(--t-base);
    border-top: 1px solid var(--c-line);
    box-shadow: -10px 0 30px rgba(0,0,0,0.12);
    z-index: 101 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .nav-menu.open { transform: translateX(0) !important; }
  .nav-menu li { width: 100%; list-style: none; }
  .nav-menu a {
    display: block;
    padding: var(--sp-3) var(--sp-2);
    width: 100%;
    border-bottom: 1px solid var(--c-line);
    font-size: 1.25rem;
    font-family: var(--font-serif);
    color: var(--c-bordeaux);
    text-decoration: none;
  }
  .nav-menu a.active { color: var(--c-gold); }
  .nav-menu a.active::after { display: none; }
  .nav-toggle { display: inline-flex !important; }
  .brand-tagline { display: none; }
  .brand { font-size: 1.375rem; }
}

/* ----- Hero (homepage) ----- */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-7) var(--sp-4);
  color: var(--c-cream);
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(26,26,26,0.55) 0%, rgba(26,26,26,0.65) 100%),
    var(--hero-img, linear-gradient(135deg, var(--c-bordeaux) 0%, var(--c-dark) 100%)) center/cover;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.hero .overline { color: var(--c-gold); }
.hero h1 {
  font-size: var(--fs-hero);
  font-weight: 900;
  color: var(--c-cream);
  max-width: 18ch;
  margin: 0 auto var(--sp-4);
  text-wrap: balance;
}
.hero p { color: rgba(245, 240, 235, 0.92); max-width: 52ch; margin: 0 auto var(--sp-5); font-size: 1.125rem; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: center; }

/* Hero variants */
.hero-cream { background: var(--c-cream); color: var(--c-dark); }
.hero-cream::before { display: none; }
.hero-cream h1 { color: var(--c-dark); }
.hero-cream p { color: var(--c-text-soft); }

/* ----- Cards ----- */
.card {
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: var(--sp-5);
  transition: all var(--t-base);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(122, 45, 59, 0.15); border-color: var(--c-gold); }
.card .overline { margin-bottom: 0; }
.card h3 { font-size: 1.5rem; }
.card p { color: var(--c-text-soft); margin-bottom: 0; }
.card .card-link { margin-top: auto; padding-top: var(--sp-3); }

.card-image {
  background-size: cover;
  background-position: center;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  margin-bottom: var(--sp-3);
}

.card-feature {
  background: var(--c-bordeaux);
  color: var(--c-cream);
  padding: var(--sp-6);
}
.card-feature h3 { color: var(--c-white); }
.card-feature p { color: rgba(245, 240, 235, 0.85); }

/* ----- Pillars (categorias na home) ----- */
.pillars { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.pillar {
  display: flex;
  flex-direction: column;
  padding: var(--sp-5);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-cream-dark);
  transition: all var(--t-base);
  text-decoration: none;
  color: inherit;
  min-height: 200px;
}
.pillar:hover { background: var(--c-bordeaux); color: var(--c-cream); transform: translateY(-2px); }
.pillar:hover h3, .pillar:hover .pillar-arrow { color: var(--c-cream); }
.pillar:hover .overline { color: var(--c-gold); }
.pillar h3 { font-size: 1.5rem; margin-top: var(--sp-2); }
.pillar-arrow {
  margin-top: auto;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-bordeaux);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}
.pillar-arrow::after { content: '→'; transition: transform var(--t-base); }
.pillar:hover .pillar-arrow::after { transform: translateX(4px); }

/* ----- Stats / Numbers ----- */
.stats { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.stat .stat-num {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  line-height: 1;
  color: var(--c-bordeaux);
  display: block;
  margin-bottom: var(--sp-2);
}
.section-bordeaux .stat-num, .section-dark .stat-num { color: var(--c-gold); }
.stat .stat-label { font-size: 0.9375rem; color: var(--c-text-soft); line-height: 1.4; }
.section-bordeaux .stat-label, .section-dark .stat-label { color: rgba(245,240,235,0.85); }

/* ----- Quote ----- */
.quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.35;
  color: var(--c-bordeaux);
  text-align: center;
  max-width: 22ch;
  margin: 0 auto;
  position: relative;
  padding: var(--sp-5) 0;
}
.quote::before {
  content: '"';
  font-size: 5rem;
  color: var(--c-gold);
  line-height: 0;
  position: absolute;
  top: var(--sp-5);
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.4;
}
.quote-author {
  display: block;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--c-text-soft);
  margin-top: var(--sp-3);
}

/* ----- Article (blog post) ----- */
.article-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--sp-4);
  font-size: 1.0625rem;
  line-height: 1.8;
}
@media (min-width: 720px) {
  .article-content { font-size: 1.125rem; padding: 0 var(--sp-5); }
}
.article-content h2 { margin-top: var(--sp-7); margin-bottom: var(--sp-3); }
.article-content h3 { margin-top: var(--sp-5); margin-bottom: var(--sp-2); font-weight: 700; }
.article-content p { margin-bottom: 1.5em; max-width: none; }
.article-content ul, .article-content ol { margin: 0 0 1.5em 1.5em; }
.article-content ul li { list-style: disc; margin-bottom: 0.5em; }
.article-content ol li { list-style: decimal; margin-bottom: 0.5em; }
.article-content blockquote {
  border-left: 3px solid var(--c-gold);
  padding-left: var(--sp-4);
  margin: var(--sp-5) 0;
  font-style: italic;
  color: var(--c-text-soft);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: 0.875rem;
  color: var(--c-text-soft);
  margin-bottom: var(--sp-3);
}
.article-meta time { font-weight: 500; }

.article-hero {
  padding: var(--sp-7) var(--sp-4) var(--sp-6);
  text-align: center;
  background: var(--c-cream-dark);
}
.article-hero .container-narrow { padding-left: var(--sp-3); padding-right: var(--sp-3); }
@media (max-width: 600px) {
  .article-hero { padding: var(--sp-6) var(--sp-3) var(--sp-5); }
}
.article-hero h1 { max-width: 22ch; margin: var(--sp-3) auto; text-wrap: balance; }
.article-hero .lead { margin: 0 auto; }

/* Blog index cards */
.blog-grid { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--t-base);
  text-decoration: none;
  color: inherit;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(122, 45, 59, 0.15); }
.blog-card .blog-card-img {
  aspect-ratio: 16/10;
  background: var(--c-cream-dark) center/cover;
}
.blog-card .blog-card-body { padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-2); flex: 1; }
.blog-card h3 { font-size: 1.375rem; }
.blog-card .blog-card-meta { font-size: 0.8125rem; color: var(--c-text-soft); margin-top: auto; padding-top: var(--sp-3); }

/* ----- Footer ----- */
.site-footer {
  background: var(--c-dark);
  color: var(--c-cream);
  padding: var(--sp-8) 0 var(--sp-4);
}
.site-footer h4 {
  color: var(--c-gold);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  margin-bottom: var(--sp-3);
}
.site-footer a { color: rgba(245, 240, 235, 0.75); font-size: 0.9375rem; line-height: 2; }
.site-footer a:hover { color: var(--c-gold); }
.footer-grid {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  margin-bottom: var(--sp-6);
}
.footer-bottom {
  border-top: 1px solid rgba(245, 240, 235, 0.1);
  padding-top: var(--sp-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: rgba(245, 240, 235, 0.5);
}
.footer-brand { font-family: var(--font-serif); font-size: 1.5rem; color: var(--c-cream); margin-bottom: var(--sp-3); disp