/* ReportSlab — shared site styles
 * Single source of truth for typography, color, spacing, header, footer.
 * Linked from every page. Brand tokens locked: deep-green accent,
 * Source Serif Pro display, Inter body, plain-English voice. */

:root {
  --bg: #FAF8F4;
  --bg-elevated: #FFFFFF;
  --fg: #1A1A1A;
  --fg-muted: #5C5C5C;
  --fg-subtle: #8A8A8A;
  --border: #E5E0D8;
  --border-strong: #D6D0C5;
  --accent: #1F5F4F;
  --accent-hover: #174A3D;
  --accent-soft: #E8F0ED;
  --quote: #2C3E50;
  --warn: #B45309;
  --warn-soft: #FEF3C7;
}

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

html { font-size: 16px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

main { flex: 1; }

h1, h2, h3, h4 {
  font-family: "Source Serif Pro", Charter, "Iowan Old Style", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.1875rem;
  color: var(--fg-muted);
  font-weight: 400;
}

/* === HEADER === */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  max-width: 960px;
}

.site-header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
}

.site-header .brand img {
  /* If brand-mark class is on the img, size as wordmark; otherwise treat as icon */
  width: auto;
  height: 36px;
  display: block;
}
.site-header .brand img:not(.brand-mark) {
  width: 28px;
  height: 28px;
}

.site-header .brand-name {
  font-family: "Source Serif Pro", Charter, Georgia, serif;
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.site-nav a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.15s;
}

.site-nav a:hover { color: var(--accent); }
.site-nav a.active { color: var(--fg); font-weight: 500; }

@media (max-width: 600px) {
  .site-header .container { flex-wrap: wrap; gap: 12px; }
  .site-nav { gap: 16px; }
  .site-nav a { font-size: 0.875rem; }
}

/* === FOOTER === */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  font-size: 0.875rem;
  color: var(--fg-subtle);
  margin-top: 64px;
}

.site-footer .container {
  max-width: 960px;
  text-align: center;
}

.site-footer a {
  color: var(--fg-muted);
  text-decoration: none;
  margin: 0 8px;
}

.site-footer a:hover { color: var(--accent); }

/* === SECTIONS === */
section {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

/* === BUTTONS === */
.button {
  display: inline-block;
  background: var(--accent);
  color: white;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.15s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.button:hover { background: var(--accent-hover); }
.button-large { padding: 18px 32px; font-size: 1.0625rem; }
.button-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border-strong);
  padding: 13px 23px;
}
.button-secondary:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}

/* === HOMEPAGE-SPECIFIC === */
.hero-home {
  padding: 80px 0 48px;
}

.hero-home h1 { max-width: 640px; }
.hero-home .lead { max-width: 640px; margin-top: 1rem; }

.catalog {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 1.5rem;
}

.report-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  transition: border-color 0.15s;
}

.report-card:hover { border-color: var(--accent); }

.report-card .info { flex: 1; }
.report-card .info h3 { margin-bottom: 4px; }
.report-card .info .meta {
  font-size: 0.875rem;
  color: var(--fg-subtle);
  margin-bottom: 8px;
}
.report-card .info .price {
  font-family: "Source Serif Pro", Charter, Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent);
}

@media (max-width: 600px) {
  .report-card { flex-direction: column; align-items: flex-start; }
}

.how-it-works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 1.5rem;
}

@media (max-width: 600px) {
  .how-it-works { grid-template-columns: 1fr; gap: 16px; }
}

.how-step {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.how-step .number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 12px;
}

.how-step h3 { font-size: 1.0625rem; margin-bottom: 6px; }
.how-step p { font-size: 0.9375rem; color: var(--fg-muted); margin: 0; }

/* === REPORTS-INDEX-SPECIFIC === */
.reports-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 1.5rem;
}

.report-card-large {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
}

.report-card-large h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.report-card-large .meta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--fg-subtle);
  margin-bottom: 16px;
}

.report-card-large .meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.report-card-large .meta-row span::before {
  content: "·";
  color: var(--fg-subtle);
}

.report-card-large .meta-row span:first-child::before { content: ""; }

.report-card-large .summary {
  color: var(--fg-muted);
  margin-bottom: 20px;
}

.report-card-large .footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.report-card-large .price-large {
  font-family: "Source Serif Pro", Charter, Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
}

/* === CONTACT FORM === */
.contact-form {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  margin-top: 1.5rem;
}

.contact-form label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  font-size: 0.9375rem;
}

.contact-form label .hint {
  display: block;
  font-weight: 400;
  color: var(--fg-subtle);
  font-size: 0.8125rem;
  margin-top: 2px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--bg);
  color: var(--fg);
  margin-bottom: 18px;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

/* === METHODOLOGY-SPECIFIC === */
.method-grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 1.5rem;
}

@media (max-width: 600px) {
  .method-grid-two { grid-template-columns: 1fr; }
}

.method-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.method-card .label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 8px;
}

.method-card .value {
  font-size: 0.9375rem;
  color: var(--fg-muted);
}

.method-card .value strong {
  display: block;
  color: var(--fg);
  font-size: 1rem;
  margin-bottom: 4px;
}

/* === SHARED ELEMENTS === */
blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 16px;
  margin: 16px 0;
  font-style: italic;
  color: var(--quote);
  font-family: "Source Serif Pro", Charter, Georgia, serif;
}

a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }

.muted { color: var(--fg-muted); }
.subtle { color: var(--fg-subtle); font-size: 0.875rem; }

@media (max-width: 600px) {
  .hero-home { padding: 56px 0 32px; }
  section { padding: 36px 0; }
}
