/* ── site.css — shared styles for all marketing/content pages ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=DM+Mono:wght@400;500&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:       #1D3A5C;   /* logo navy */
  --primary-dark:  #142A44;
  --primary-light: #EBF0F6;
  --green:         #4A6B3F;   /* logo forest green */
  --text-primary:  #0F172A;
  --text-secondary:#334155;
  --text-muted:    #64748B;
  --text-faint:    #94A3B8;
  --border:        #E2E8F0;
  --bg-page:       #F8FAFC;
  --bg-surface:    #FFFFFF;
  --bg-elevated:   #F1F5F9;
  --font-sans:     'Inter', system-ui, sans-serif;
  --font-mono:     'DM Mono', monospace;
  --radius-sm:     6px;
  --radius-md:     10px;
  --radius-lg:     14px;
  --radius-full:   9999px;
  --max-width:     720px;
  --max-width-wide:1080px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

/* ── Site Nav ───────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  height: 56px;
}

.site-nav {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav-brand {
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.5px;
  margin-right: 16px;
}

.site-nav-brand span { color: var(--text-faint); font-weight: 400; }

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.site-nav-link {
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.12s;
}

.site-nav-link:hover { color: var(--text-primary); background: var(--bg-elevated); }
.site-nav-link.active { color: var(--primary); background: var(--primary-light); font-weight: 600; }

.site-nav-cta {
  margin-left: auto;
  padding: 7px 16px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s;
  white-space: nowrap;
}

.site-nav-cta:hover { background: var(--primary-dark); }

/* ── Site Footer ────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
  padding: 40px 24px;
  margin-top: 80px;
}

.site-footer-inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-col-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 12px;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  padding: 3px 0;
  transition: color 0.12s;
}

.footer-col a:hover { color: var(--primary); }

.footer-brand-col .footer-brand-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.footer-brand-col p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

.footer-bottom {
  max-width: var(--max-width-wide);
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom-text {
  font-size: 12px;
  color: var(--text-faint);
}

.footer-disclaimer {
  font-size: 11px;
  color: var(--text-faint);
  max-width: 600px;
  text-align: right;
  line-height: 1.5;
}

/* ── Page Hero ──────────────────────────────────────────────── */
.page-hero {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 56px 24px 48px;
  text-align: center;
}

.page-hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.page-hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.page-hero p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ── Content area ───────────────────────────────────────────── */
.content-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px;
}

.content-wrap-wide {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 48px 24px;
}

/* ── Prose typography ───────────────────────────────────────── */
.prose h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 40px 0 12px;
  letter-spacing: -0.3px;
}

.prose h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 28px 0 8px;
}

.prose p {
  color: var(--text-secondary);
  margin-bottom: 18px;
  font-size: 16px;
  line-height: 1.75;
}

.prose ul, .prose ol {
  padding-left: 24px;
  margin-bottom: 18px;
}

.prose li {
  color: var(--text-secondary);
  margin-bottom: 6px;
  line-height: 1.7;
}

.prose strong { color: var(--text-primary); font-weight: 600; }

.prose a { color: var(--primary); text-decoration: underline; }
.prose a:hover { color: var(--primary-dark); }

.prose blockquote {
  border-left: 3px solid var(--primary);
  padding: 12px 20px;
  margin: 24px 0;
  background: var(--primary-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.prose blockquote p {
  margin: 0;
  color: var(--primary-dark);
  font-size: 15px;
}

.prose .callout {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 24px 0;
}

.prose .callout p { margin: 0; font-size: 14px; }

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}

.prose th {
  background: var(--bg-elevated);
  font-weight: 600;
  text-align: left;
  padding: 10px 14px;
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.prose td {
  padding: 9px 14px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.prose tr:nth-child(even) td { background: var(--bg-page); }

/* ── CTA Box ────────────────────────────────────────────────── */
.cta-box {
  background: linear-gradient(135deg, var(--primary) 0%, #142A44 100%);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  color: white;
  margin: 48px 0;
}

.cta-box h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
}

.cta-box p {
  font-size: 15px;
  opacity: 0.85;
  margin-bottom: 24px;
  line-height: 1.6;
}

.cta-box-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: var(--primary);
  text-decoration: none;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  transition: opacity 0.15s;
}

.cta-box-btn:hover { opacity: 0.92; }

/* ── Blog card grid ─────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.blog-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s, transform 0.15s;
}

.blog-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.blog-card-body { padding: 24px; flex: 1; }

.blog-card-category {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}

.blog-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}

.blog-card-excerpt {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-footer {
  padding: 14px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-faint);
}

.blog-card-read-more {
  color: var(--primary);
  font-weight: 600;
  font-size: 12px;
}

/* ── Article header ─────────────────────────────────────────── */
.article-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 56px 24px 48px;
}

.article-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.article-category {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.article-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-faint);
}

.article-meta-sep { color: var(--border); }

/* ── FAQ accordion ──────────────────────────────────────────── */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  overflow: hidden;
  background: var(--bg-surface);
}

.faq-question {
  width: 100%;
  padding: 18px 20px;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background 0.1s;
}

.faq-question:hover { background: var(--bg-elevated); }

.faq-chevron {
  font-size: 11px;
  color: var(--text-faint);
  transition: transform 0.18s;
  flex-shrink: 0;
}

.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  display: none;
  padding: 0 20px 20px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.faq-item.open .faq-answer { display: block; }

/* ── Stat highlight boxes ───────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin: 32px 0;
}

.stat-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}

.stat-box-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 6px;
  font-family: var(--font-mono);
}

.stat-box-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── AdSense ────────────────────────────────────────────────── */
.ad-slot { margin: 32px 0; text-align: center; }
.ad-label {
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 4px;
  text-align: center;
}

/* ── Logo image ─────────────────────────────────────────────── */
.brand-logo-img {
  height: 42px;
  width: auto;
  display: block;
}

.site-nav-brand {
  display: flex;
  align-items: center;
  margin-right: 16px;
}
