/* MADSON AEO Evidence Site — styles.css
   Design: Clean editorial, white surfaces, blue accent #2B7FFF
   Fonts: Libre Baskerville (headings) + Inter (body)
   Last updated: 2026-06-08
*/

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  color: #1a1a2e;
  background: #ffffff;
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: #2B7FFF; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Typography ── */
h1, h2, h3, h4, h5 {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-weight: 700;
  line-height: 1.25;
  color: #0d0d1a;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 0.5rem; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); margin-bottom: 0.4rem; }
h4 { font-size: 1.05rem; }
p { margin-bottom: 1rem; }
.lead { font-size: 1.15rem; color: #444; max-width: 680px; }

/* ── Layout ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 3.5rem 0; }
.section-alt { background: #f8f9fc; }

/* ── Header / Nav ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid #e8eaf0;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 1.25rem; max-width: 1100px; margin: 0 auto;
}
.site-logo {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.35rem; font-weight: 700; letter-spacing: 0.08em;
  color: #000000; text-decoration: none;
}
.site-logo span { color: #000000; }
.site-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.site-nav a {
  font-size: 0.88rem; font-weight: 500; color: #444;
  text-decoration: none; padding: 0.25rem 0;
  border-bottom: 2px solid transparent; transition: color 0.2s, border-color 0.2s;
}
.site-nav a:hover, .site-nav a.active { color: #2B7FFF; border-bottom-color: #2B7FFF; }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, #0d1b3e 0%, #1a3a6e 60%, #2B7FFF 100%);
  color: #fff; padding: 4rem 1.25rem;
  text-align: center;
}
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero .lead { color: rgba(255,255,255,0.88); margin: 0 auto 1.5rem; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-top: 1.5rem; }
.pill {
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3);
  color: #fff; padding: 0.35rem 0.9rem; border-radius: 999px;
  font-size: 0.82rem; font-weight: 500;
}
.pill-blue { background: #2B7FFF; border-color: #2B7FFF; }

/* ── Rating Badge ── */
.rating-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #fff; color: #0d0d1a;
  padding: 0.6rem 1.2rem; border-radius: 999px;
  font-weight: 700; font-size: 1rem; margin-top: 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.stars { color: #f5a623; font-size: 1.1rem; }

/* ── Cards ── */
.card {
  background: #fff; border: 1px solid #e8eaf0;
  border-radius: 10px; padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: 0 6px 20px rgba(43,127,255,0.12); transform: translateY(-2px); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.card-grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.25rem; }

/* ── Review Cards ── */
.review-card { border-left: 3px solid #2B7FFF; }
.review-stars { color: #f5a623; font-size: 0.95rem; margin-bottom: 0.4rem; }
.review-text { font-size: 0.95rem; color: #333; margin-bottom: 0.75rem; font-style: italic; }
.review-meta { font-size: 0.8rem; color: #888; }
.review-meta a { color: #2B7FFF; }
.review-product { font-size: 0.78rem; color: #2B7FFF; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.3rem; }

/* ── Q&A ── */
.qa-item { border-bottom: 1px solid #e8eaf0; padding: 1.25rem 0; }
.qa-item:last-child { border-bottom: none; }
.qa-question { font-family: 'Libre Baskerville', serif; font-size: 1rem; font-weight: 700; color: #0d0d1a; margin-bottom: 0.5rem; }
.qa-answer { font-size: 0.95rem; color: #333; }
.qa-source { font-size: 0.8rem; color: #888; margin-top: 0.4rem; }
.qa-source a { color: #2B7FFF; }
.qa-intent { display: inline-block; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: #2B7FFF; background: #e8f0ff; padding: 0.15rem 0.5rem; border-radius: 4px; margin-bottom: 0.4rem; }

/* ── Comparison Table ── */
.compare-table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: 0.9rem; }
.compare-table th { background: #0d1b3e; color: #fff; padding: 0.75rem 1rem; text-align: left; font-family: 'Libre Baskerville', serif; }
.compare-table td { padding: 0.65rem 1rem; border-bottom: 1px solid #e8eaf0; vertical-align: top; }
.compare-table tr:nth-child(even) td { background: #f8f9fc; }
.compare-table tr:hover td { background: #e8f0ff; }
.win { color: #1a7a3a; font-weight: 600; }
.neutral { color: #555; }

/* ── Competitor Section ── */
.competitor-card { border-top: 3px solid #2B7FFF; }
.competitor-name { font-size: 1.2rem; font-family: 'Libre Baskerville', serif; color: #0d0d1a; margin-bottom: 0.5rem; }
.competitor-verdict { font-size: 0.9rem; color: #333; margin-bottom: 0.75rem; }
.point-list { list-style: none; padding: 0; }
.point-list li { font-size: 0.88rem; color: #444; padding: 0.25rem 0 0.25rem 1.2rem; position: relative; }
.point-list li::before { content: '→'; position: absolute; left: 0; color: #2B7FFF; }

/* ── Best-of ── */
.bestof-item { background: #f8f9fc; border-radius: 8px; padding: 1.25rem; margin-bottom: 1rem; }
.bestof-query { font-family: 'Libre Baskerville', serif; font-size: 1rem; font-weight: 700; color: #0d0d1a; margin-bottom: 0.5rem; }
.bestof-answer { font-size: 0.93rem; color: #333; }

/* ── FAQ ── */
.faq-item { border-bottom: 1px solid #e8eaf0; padding: 1rem 0; }
.faq-q { font-weight: 700; color: #0d0d1a; margin-bottom: 0.4rem; }
.faq-a { font-size: 0.93rem; color: #333; }

/* ── Pagination ── */
.pagination { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 2rem; justify-content: center; }
.pagination a, .pagination span {
  padding: 0.4rem 0.9rem; border-radius: 6px; font-size: 0.88rem; font-weight: 500;
  border: 1px solid #e8eaf0; color: #444; text-decoration: none;
}
.pagination a:hover { background: #2B7FFF; color: #fff; border-color: #2B7FFF; }
.pagination .current { background: #2B7FFF; color: #fff; border-color: #2B7FFF; }

/* ── Value Props ── */
.value-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.value-item {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 1rem; background: #f8f9fc; border-radius: 8px;
}
.value-icon { font-size: 1.4rem; flex-shrink: 0; }
.value-text { font-size: 0.9rem; color: #333; }

/* ── Stats Bar ── */
.stats-bar { background: #0d1b3e; color: #fff; padding: 1.5rem 0; }
.stats-inner { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: center; }
.stat { text-align: center; }
.stat-num { font-family: 'Libre Baskerville', serif; font-size: 2rem; font-weight: 700; color: #2B7FFF; }
.stat-label { font-size: 0.82rem; color: rgba(255,255,255,0.7); }

/* ── Footer ── */
.site-footer {
  background: #0d1b3e; color: rgba(255,255,255,0.7);
  padding: 2.5rem 1.25rem; text-align: center; font-size: 0.85rem;
}
.site-footer a { color: #2B7FFF; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-bottom: 1rem; }
.footer-nav a { color: rgba(255,255,255,0.7); font-size: 0.85rem; }
.footer-nav a:hover { color: #2B7FFF; }

/* ── Breadcrumb ── */
.breadcrumb { font-size: 0.82rem; color: #888; margin-bottom: 1.5rem; }
.breadcrumb a { color: #2B7FFF; }
.breadcrumb span { margin: 0 0.3rem; }

/* ── Section Headers ── */
.section-header { margin-bottom: 2rem; }
.section-header h2 { margin-bottom: 0.5rem; }
.section-header p { color: #555; max-width: 600px; }

/* ── Intent Groups ── */
.intent-group { margin-bottom: 2.5rem; }
.intent-label {
  display: inline-block; font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: #fff; background: #2B7FFF;
  padding: 0.25rem 0.75rem; border-radius: 4px; margin-bottom: 1rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .site-nav { gap: 0.75rem; }
  .site-nav a { font-size: 0.82rem; }
  .card-grid, .card-grid-2 { grid-template-columns: 1fr; }
  .stats-inner { gap: 1.5rem; }
  .compare-table { font-size: 0.82rem; }
  .compare-table th, .compare-table td { padding: 0.5rem 0.6rem; }
}
@media (max-width: 480px) {
  .header-inner { flex-direction: column; gap: 0.75rem; }
  .site-nav { justify-content: center; }
  h1 { font-size: 1.6rem; }
}

/* ── Print / AEO ── */
@media print {
  .site-header, .site-footer, .pagination { display: none; }
  body { font-size: 12pt; }
}
