/* Shared styles for content pages (terms, blog, posts, momcast). Mirrors homepage.html's design tokens. */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Playfair+Display:ital,wght@0,700;1,700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { display: block; border: 0; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }

:root {
  --pink: #3dd9c4;
  --dark: #1a3064;
  --cream: #fdf8f3;
  --white: #ffffff;
  --gray: #f5f0ea;
  --text: #3a3a3a;
  --muted: #888;
  --gold: #ffe100;
  --blue: #4a7fd4;
}

body { font-family: 'Nunito', sans-serif; color: var(--text); background: var(--white); line-height: 1.6; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; }
h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.2; color: var(--dark); }
h1 { font-size: clamp(34px, 5vw, 54px); }
h2 { font-size: clamp(26px, 4vw, 40px); }
h3 { font-size: 22px; }
p { font-size: 17px; line-height: 1.8; }
.eyebrow { font-size: 12px; font-weight: 900; letter-spacing: 2px; text-transform: uppercase; color: var(--pink); margin-bottom: 12px; }
.center { text-align: center; }

.btn { display: inline-block; padding: 16px 40px; border-radius: 50px; font-weight: 900; font-size: 16px; cursor: pointer; border: 0; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.15); }
.btn--pink { background: var(--pink); color: var(--white); }
.btn--dark { background: var(--dark); color: var(--white); }

/* Nav (same markup as the home page) */
.nav { background: var(--dark); padding: 18px 0; position: sticky; top: 0; z-index: 100; }
.nav__inner { display: flex; align-items: center; justify-content: space-between; max-width: 1080px; margin: 0 auto; padding: 0 24px; position: relative; }
.nav__logo { font-family: 'Playfair Display', serif; font-size: 22px; color: var(--white); font-style: italic; }
.nav__links { display: flex; gap: 28px; }
.nav__links a { color: rgba(255,255,255,.75); font-size: 14px; font-weight: 700; transition: color .15s; }
.nav__links a:hover { color: var(--pink); }
.nav__cta { background: var(--pink); color: var(--white) !important; padding: 8px 20px; border-radius: 50px; }
.nav__hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav__hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; }

.footer { background: #111; color: rgba(255,255,255,.4); text-align: center; padding: 36px 24px; font-size: 14px; }
.footer p { font-size: 14px; }
.footer a { color: var(--pink); }

/* Page header band */
.page-hero { background: linear-gradient(135deg, #1a3064 0%, #4a7fd4 100%); padding: 72px 0 64px; text-align: center; }
.page-hero h1, .page-hero p { color: var(--white); }
.page-hero p { max-width: 640px; margin: 16px auto 0; color: rgba(255,255,255,.85); }

/* Long-form text */
.prose { max-width: 720px; margin: 0 auto; }
.prose h2 { font-size: clamp(24px, 3.4vw, 32px); margin: 40px 0 14px; }
.prose h3 { margin: 32px 0 12px; }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 18px 22px; }
.prose li { font-size: 17px; line-height: 1.8; margin-bottom: 6px; }
.prose blockquote { border-left: 4px solid var(--pink); padding: 6px 0 6px 18px; margin: 24px 0; font-style: italic; }
.prose a { color: var(--blue); text-decoration: underline; }
.prose img { border-radius: 12px; margin: 24px 0; }

/* Forms (smb-forms.js) */
.smb-form { display: grid; gap: 12px; max-width: 460px; margin: 0 auto; text-align: left; }
.smb-field { display: grid; gap: 4px; font-size: 14px; font-weight: 800; color: var(--dark); }
.smb-field input { font: inherit; font-weight: 600; padding: 14px 18px; border: 1px solid #d6dbe6; border-radius: 50px; }
.smb-field input:focus { outline: 3px solid rgba(61,217,196,.4); }
.smb-form .btn { width: 100%; }
.smb-form-errors { background: #fdecea; color: #8a1c12; border-radius: 12px; padding: 10px 14px; font-size: 14px; }
.smb-form-success { text-align: center; font-weight: 800; font-size: 18px; color: var(--dark); padding: 12px; }
.smb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 768px) {
  section { padding: 56px 0; }
  .nav__hamburger { display: flex; }
  .nav__links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--dark); flex-direction: column; gap: 0; padding: 8px 0 16px; z-index: 99; border-top: 1px solid rgba(255,255,255,.1); margin-top: 18px; }
  .nav__links.open { display: flex; }
  .nav__links a { padding: 12px 24px; font-size: 15px; }
  .nav__cta { margin: 8px 24px 0; text-align: center; }
}
