/* AskAbby — base.css
   Shared across all content pages (blog, verse hubs, about, legal).
   NOT used by: landing/index.html, blog/index.html, 404.html
   ─────────────────────────────────────────────────────────────── */

/* TOKENS */
:root {
  --primary:      #8B5E3C;
  --primary-dark: #6B4428;
  --gold:         #C8973A;
  --gold-light:   #F0D9A8;
  --bg:           #FAF7F2;
  --surface:      #FFFFFF;
  --text:         #2C1A0E;
  --text-muted:   #7A6355;
  --border:       rgba(139, 94, 60, 0.14);
  --radius:       16px;
  --serif:        'Lora', Georgia, serif;
  --sans:         'Inter', system-ui, sans-serif;
  --max:          1100px;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--bg); color: var(--text); line-height: 1.7; overflow-x: hidden; }

/* NAV */
body > nav { position: sticky; top: 0; background: rgba(250, 247, 242, 0.96); backdrop-filter: blur(10px); z-index: 100; border-bottom: 1px solid var(--border); }
.nav-inner { max-width: var(--max); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; }
.logo { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--text); text-decoration: none; }
.logo { white-space: nowrap; }
.logo span { color: var(--gold); }
.nav-links { list-style: none; display: flex; align-items: center; gap: 28px; }
.nav-links a { text-decoration: none; font-size: 0.95rem; font-weight: 500; color: var(--text-muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--primary); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 24px; border-radius: 100px; font-family: var(--sans); font-size: 0.95rem; font-weight: 600; text-decoration: none; cursor: pointer; border: none; transition: all 0.25s; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #fff; } /* beat .nav-links a */
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--gold-light); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* CTA BAND */
.cta-band { text-align: center; padding: 64px 24px; background: var(--primary); color: #fff; }
.cta-band h2 { font-family: var(--serif); font-size: 1.7rem; margin-bottom: 8px; }
.cta-band p { font-size: 1rem; opacity: 0.88; margin-bottom: 24px; }
.cta-band .btn-primary { background: var(--gold); color: var(--text); }
.cta-band .btn-primary:hover { background: var(--gold-light); }

/* INLINE CTA */
.inline-cta { background: var(--gold-light); border: 1px solid var(--gold); border-radius: var(--radius); padding: 24px 28px; margin: 36px 0; text-align: center; }
.inline-cta p { font-size: 1rem; color: var(--text); margin-bottom: 14px; }

/* FAQ */
.faq-section { margin: 48px 0; }
.faq-section h2 { font-family: var(--serif); font-size: 1.45rem; font-weight: 700; margin-bottom: 20px; color: var(--text); }
.faq-item { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq-item h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.faq-item p { font-size: 0.95rem; color: var(--text-muted); margin: 0; }

/* FOOTER */
/* Matches the dark footer on the Next.js pages. */
footer { text-align: center; padding: 48px 24px 32px; font-size: 0.88rem; background: var(--text); color: rgba(255, 255, 255, 0.65); }
footer .logo { color: #fff; }
.footer-inner { max-width: var(--max); margin: 0 auto; }
.footer-links-inline { list-style: none; display: flex; justify-content: center; gap: 12px 24px; margin: 16px 0; flex-wrap: wrap; }
.footer-links-inline a { color: rgba(255, 255, 255, 0.75); text-decoration: none; font-size: 0.88rem; }
.footer-links-inline a:hover { color: #fff; text-decoration: underline; }

/* RESPONSIVE NAV */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); padding: 16px 24px; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: flex; }
  .nav-links.open a:not(.btn) { display: block; padding: 10px 0; }
}

/* UX review 2026-10-25 */
:root { --gold-text: #87621C; }
a { color: var(--primary); }
hr { border: 0; border-top: 1px solid var(--border); margin: 32px 0; }
[id] { scroll-margin-top: 84px; }
.crisis-note { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; padding: 16px 20px; margin: 0 0 32px; font-size: 0.95rem; color: var(--text); line-height: 1.6; }
.crisis-note strong { display: block; margin-bottom: 4px; }
.crisis-note a { font-weight: 700; }
.footer-disclaimer { max-width: 640px; margin: 12px auto; font-size: 0.8rem; line-height: 1.6; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
