/* ============================================================
   MARIANA LAGE — DESIGN SYSTEM v1
   Extraído do /root/projects/mariana-lage/DESIGN.md
   Aplicar em todas as páginas internas.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Spectral:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Hanken+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Colors */
  --bg-dark: #0F1730;          /* deep navy */
  --bg-cream: #F4EFE6;         /* warm cream */
  --accent-gold: #C8A24C;      /* esperança */
  --text-dark: #111A33;        /* navy escuro */
  --text-light: #f3ead6;       /* warm white on dark */
  --text-light-alt: #f7efdc;
  --text-light-warm: #f5edda;
  --text-muted: #aab2cc;
  --text-muted-2: #8d96b4;
  --text-muted-3: #9aa2bd;

  /* Typography */
  --font-headings: 'Spectral', Georgia, serif;
  --font-body: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Spacing */
  --space-section-y: 96px;
  --space-section-y-mobile: 64px;
  --space-section-x: 56px;
  --space-card-padding: 40px;
  --space-card-padding-mobile: 24px;

  /* Borders */
  --border-light: 1px solid rgba(255,255,255,0.10);
  --border-dark: 1px solid rgba(15,23,48,0.10);
  --border-gold: 1px solid rgba(200,162,76,0.40);
}

/* ============================================================
   GLOBAL RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-headings);
  font-weight: 400;
  color: var(--text-dark);
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  line-height: 1.15;
}
h1 { font-size: clamp(2.4rem, 5vw, 4.6rem); font-weight: 300; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 2rem); }
h4 { font-size: 1.25rem; font-weight: 500; }

p { margin: 0 0 1rem; }
p.lead { font-size: 1.2rem; line-height: 1.7; color: var(--text-dark); }

a { color: var(--text-dark); text-decoration: underline; text-decoration-color: rgba(200,162,76,0.40); text-underline-offset: 3px; transition: all 0.2s; }
a:hover { text-decoration-color: var(--accent-gold); }

code, kbd, pre, samp { font-family: var(--font-mono); font-size: 0.9em; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container { max-width: 880px; margin: 0 auto; padding: 0 var(--space-section-x); }
.container-narrow { max-width: 720px; }
.container-wide { max-width: 1100px; }

.section { padding: var(--space-section-y) 0; }
.section-dark { background: var(--bg-dark); color: var(--text-light); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--text-light); }
.section-cream { background: var(--bg-cream); color: var(--text-dark); }

/* ============================================================
   AUTHOR CARD (header-card + author-box)
   ============================================================ */
.header-card {
  display: flex;
  gap: 28px;
  align-items: center;
  margin: 0 0 40px;
  padding: 32px;
  background: var(--bg-cream);
  border: var(--border-dark);
  border-radius: 16px;
}
.header-card img,
.author-box img {
  flex-shrink: 0;
  width: 96px;
  min-width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-gold);
}
.header-card > div,
.author-box > div {
  flex: 1;
  min-width: 0;
}
.header-card .name,
.author-box .name {
  font-family: var(--font-headings);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-dark);
  margin: 0 0 6px;
  line-height: 1.2;
}
.header-card .role,
.author-box .role {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted-2);
  margin: 0 0 4px;
  letter-spacing: 0.02em;
}
.header-card p,
.author-box p {
  margin: 4px 0 0;
  font-size: 0.95rem;
  color: var(--text-dark);
}

/* ============================================================
   CARD
   ============================================================ */
.card {
  background: white;
  border: var(--border-dark);
  border-radius: 12px;
  padding: var(--space-card-padding);
  margin-bottom: 24px;
  transition: all 0.25s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(15,23,48,0.08); }
.card-dark {
  background: var(--bg-dark);
  color: var(--text-light);
  border: var(--border-light);
}
.card-dark:hover { background: #1a2444; }

/* ============================================================
   CREDENTIALS GRID
   ============================================================ */
.credentials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 32px 0;
}
.credentials-grid .item {
  background: white;
  border: var(--border-dark);
  border-radius: 10px;
  padding: 20px;
}
.credentials-grid .label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted-2);
  margin-bottom: 6px;
}
.credentials-grid .value {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.98rem;
  line-height: 1.4;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted-2);
  margin-bottom: 32px;
  letter-spacing: 0.02em;
}
.breadcrumb a {
  color: var(--accent-gold);
  text-decoration: none;
}
.breadcrumb a:hover { text-decoration: underline; }

/* ============================================================
   METADATA BAR
   ============================================================ */
.meta-bar {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted-2);
  margin-bottom: 32px;
  padding: 14px 18px;
  background: white;
  border-left: 3px solid var(--accent-gold);
  border-radius: 0 8px 8px 0;
  letter-spacing: 0.02em;
  line-height: 1.7;
}
.meta-bar strong {
  color: var(--text-dark);
  font-weight: 500;
}

/* ============================================================
   CALLOUT BOX (for tips, warnings, lead text)
   ============================================================ */
.callout {
  background: white;
  border-left: 3px solid var(--accent-gold);
  padding: 18px 22px;
  margin: 28px 0;
  border-radius: 0 8px 8px 0;
  font-size: 0.98rem;
}
.callout-tip {
  background: linear-gradient(135deg, #fffbe6 0%, #fef9e7 100%);
  border-left-color: var(--accent-gold);
}
.callout-warn {
  background: #fffbe6;
  border-left: 3px solid #d4a017;
}
.callout strong {
  font-family: var(--font-mono);
  color: var(--text-dark);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ============================================================
   CITATIONS (PubMed references)
   ============================================================ */
.citation {
  background: white;
  border-left: 3px solid var(--accent-gold);
  padding: 14px 18px;
  margin: 18px 0;
  border-radius: 0 8px 8px 0;
  font-size: 0.9rem;
  line-height: 1.6;
}
.citation strong {
  color: var(--text-dark);
}
.citation a {
  color: var(--accent-gold);
  text-decoration-color: rgba(200,162,76,0.30);
}

/* ============================================================
   TECHNIQUE BOX (for breathing exercises, etc)
   ============================================================ */
.technique-box {
  background: linear-gradient(135deg, #f0f4f8 0%, #f9fafc 100%);
  border-left: 3px solid var(--bg-dark);
  padding: 18px 22px;
  margin: 24px 0;
  border-radius: 0 8px 8px 0;
  font-size: 0.95rem;
}
.technique-box strong {
  font-family: var(--font-mono);
  color: var(--bg-dark);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ============================================================
   TABLES
   ============================================================ */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.92rem;
  border: var(--border-dark);
  border-radius: 8px;
  overflow: hidden;
}
th {
  padding: 12px 16px;
  background: var(--bg-dark);
  color: var(--text-light);
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: var(--border-light);
}
td {
  padding: 12px 16px;
  border-top: var(--border-dark);
  vertical-align: top;
}
tr:hover td { background: rgba(200,162,76,0.05); }

/* ============================================================
   LIST
   ============================================================ */
ul, ol {
  padding-left: 24px;
  margin: 0 0 1.2rem;
}
ul li, ol li {
  margin-bottom: 8px;
  line-height: 1.7;
}
ul li::marker { color: var(--accent-gold); }

/* ============================================================
   LAST UPDATED BAR
   ============================================================ */
.last-updated {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--border-dark);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted-2);
  letter-spacing: 0.02em;
  line-height: 1.7;
}
.last-updated strong {
  color: var(--text-dark);
}

/* ============================================================
   EDITORIAL / DISCLAIMER
   ============================================================ */
.editorial-box {
  background: var(--bg-cream);
  border: var(--border-dark);
  border-radius: 12px;
  padding: 32px;
  margin: 40px 0;
}
.disclaimer {
  background: white;
  border-left: 3px solid var(--text-muted);
  padding: 14px 18px;
  margin: 32px 0;
  border-radius: 0 8px 8px 0;
  font-size: 0.85rem;
  color: var(--text-muted-2);
  font-family: var(--font-mono);
}

/* ============================================================
   CTA BOX
   ============================================================ */
.cta-box {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 40px;
  border-radius: 16px;
  margin-top: 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(200,162,76,0.25) 0%, transparent 60%);
  pointer-events: none;
}
.cta-box p, .cta-box a { position: relative; }
.cta-box a {
  display: inline-block;
  margin-top: 16px;
  padding: 14px 32px;
  background: var(--accent-gold);
  color: var(--bg-dark);
  font-family: var(--font-body);
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  transition: all 0.2s;
}
.cta-box a:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(200,162,76,0.40); }

/* ============================================================
   FAQ QUESTION/ANSWER
   ============================================================ */
.faq-item { margin-top: 36px; }
.faq-q {
  font-family: var(--font-headings);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 12px;
  line-height: 1.3;
}
.faq-a { margin-bottom: 16px; }

/* ============================================================
   RELATED ARTICLES (sidebar / footer of articles)
   ============================================================ */
.related-articles {
  background: var(--bg-cream);
  padding: 28px;
  border-radius: 12px;
  margin-top: 48px;
  border: var(--border-dark);
}
.related-articles h3 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted-2);
  margin-bottom: 16px;
}
.related-articles ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.related-articles li {
  padding: 6px 0;
  border-bottom: 1px dashed rgba(15,23,48,0.08);
  margin: 0;
}
.related-articles li:last-child { border-bottom: none; }
.related-articles a {
  color: var(--text-dark);
  text-decoration: none;
  display: block;
  padding: 4px 0;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.related-articles a:hover { color: var(--accent-gold); }
.related-articles a::before {
  content: '→ ';
  color: var(--accent-gold);
  margin-right: 8px;
}

/* ============================================================
   POLICY LINK BAR (bottom of articles)
   ============================================================ */
.policy-link {
  text-align: center;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted-2);
  letter-spacing: 0.04em;
}
.policy-link a { color: var(--accent-gold); text-decoration: none; }
.policy-link a:hover { text-decoration: underline; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .container { padding: 0 28px; }
  .header-card { flex-direction: column; text-align: center; padding: 24px; }
  .header-card img { margin: 0 auto; }
}
@media (max-width: 520px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .section { padding: 56px 0; }
  .cta-box { padding: 28px 20px; }
  .editorial-box { padding: 24px; }
}
