/* ===== Jensen Test Prep — Site Styles ===== */
/* Direction: editorial minimalism, premium professional-services polish */
/* Typography-driven. White canvas. Purple accent only. No teal. */

:root {
  /* Palette — warm white canvas, purple as accent only */
  --color-bg: #FAFAF8;
  --color-surface: #FFFFFF;
  --color-text: #1A1A2E;
  --color-text-secondary: #4A5568;
  --color-text-light: #6B7280;
  --color-primary: #4A1D8E;
  --color-primary-light: #6434B0;
  --color-surface-alt: #EFF5F1;
  --color-border: #E5E5E0;
  --color-border-light: #F0EFEB;
  --color-rule: #D0D5D1;

  /* Typography — Source Serif for headings, DM Sans for body */
  --font-heading: 'Source Serif 4', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --text-xs: 0.8125rem;
  --text-sm: 0.9rem;
  --text-base: 1.1rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 1.85rem;
  --text-3xl: 2.5rem;
  --text-4xl: clamp(2rem, 4vw, 3.25rem);

  /* Spacing — generous */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  /* Layout */
  --max-width: 1100px;
  --max-width-narrow: 720px;

  /* Shadows — restrained */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.06);
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--color-text);
  background: var(--color-bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-primary-light); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
}

h1 { font-size: var(--text-4xl); letter-spacing: -0.02em; }
h2 { font-size: var(--text-2xl); margin-bottom: var(--space-md); letter-spacing: -0.01em; }
h3 { font-size: var(--text-xl); margin-bottom: var(--space-sm); }
h4 { font-size: var(--text-lg); }

p { margin-bottom: var(--space-md); }
p:last-child { margin-bottom: 0; }

/* ===== Utilities ===== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-lg); }
.container--narrow { max-width: var(--max-width-narrow); margin: 0 auto; padding: 0 var(--space-lg); }
.text-center { text-align: center; }
.text-secondary { color: var(--color-text-secondary); }
.text-light { color: var(--color-text-light); }
.text-accent { color: var(--color-primary); }
.text-sm { font-size: var(--text-sm); }

/* ===== Header / Nav ===== */
.site-header {
  background: rgba(250, 250, 248, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.site-logo {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.01em;
}
.site-logo span { color: var(--color-primary); }

.site-nav { display: flex; align-items: center; gap: var(--space-lg); }
.site-nav a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  padding: var(--space-xs) 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--color-text);
  border-bottom-color: var(--color-primary);
}

.site-nav a.nav-cta {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  background: var(--color-primary);
  color: #fff !important;
  padding: 0.6rem 2.5rem !important;
  border-radius: 6px;
  border-bottom: none !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--color-primary-light) !important; color: #fff !important; }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: var(--space-xs); }
.nav-toggle svg { width: 24px; height: 24px; stroke: var(--color-text); }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: var(--space-lg);
    gap: var(--space-md);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: var(--space-sm) 0; }
}

/* ===== Hero ===== */
.hero {
  padding: var(--space-3xl) 0 var(--space-2xl);
  background: linear-gradient(180deg, var(--color-surface-alt) 0%, var(--color-bg) 100%);
  border-bottom: 1px solid var(--color-border-light);
}

.hero h1 {
  margin-bottom: var(--space-lg);
  color: var(--color-text);
}

.hero .subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 620px;
  line-height: 1.7;
}

/* Staggered hero entrance — single high-impact animation, CSS only */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero .two-col > div:first-child > * {
  animation: heroFadeUp 0.6s ease-out both;
}
.hero .two-col > div:first-child > *:nth-child(1) { animation-delay: 0s; }
.hero .two-col > div:first-child > *:nth-child(2) { animation-delay: 0.06s; }
.hero .two-col > div:first-child > *:nth-child(3) { animation-delay: 0.12s; }
.hero .two-col > div:first-child > *:nth-child(4) { animation-delay: 0.18s; }
.hero .two-col > div:first-child > *:nth-child(5) { animation-delay: 0.24s; }

.hero .two-col > div:last-child {
  animation: heroFadeUp 0.7s ease-out 0.1s both;
}

@media (prefers-reduced-motion: reduce) {
  .hero .two-col > div:first-child > *,
  .hero .two-col > div:last-child {
    animation: none;
  }
}

/* ===== Hero meta / quick facts ===== */
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
}

.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.hero-meta-item .label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-light);
}
.hero-meta-item .value {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
}

/* ===== Sections ===== */
.section {
  padding: 5rem 0;
}
.section--alt {
  background: var(--color-surface-alt);
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
}

.section-header {
  margin-bottom: var(--space-xl);
}
.section-header h2 {
  margin-bottom: var(--space-xs);
  padding-top: var(--space-md);
  border-top: 2px solid var(--color-primary);
  display: inline-block;
}
.section-header p { color: var(--color-text-secondary); max-width: 580px; }

/* ===== Cards — minimal, no colored backgrounds ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: var(--space-xl);
  transition: border-color 0.2s;
}
.card:hover {
  border-color: var(--color-primary);
}

.card h3 { color: var(--color-text); }
.card .card-meta {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-light);
  margin-bottom: var(--space-sm);
}

/* ===== Testimonials — editorial pull-quote styling ===== */
.testimonial {
  background: transparent;
  border: none;
  border-left: 2px solid var(--color-rule);
  border-radius: 0;
  padding: var(--space-xl) 0;
  padding-left: var(--space-xl);
  margin-bottom: var(--space-lg);
  position: relative;
}

.testimonial blockquote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
  line-height: 1.7;
  position: relative;
}
/* Large decorative opening quote — purple accent */
.testimonial blockquote::before {
  content: '\201C';
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 700;
  font-style: normal;
  color: var(--color-primary);
  opacity: 0.2;
  position: absolute;
  top: -0.6rem;
  left: -0.15rem;
  line-height: 1;
}

.testimonial .attribution {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--color-text-light);
  padding-left: var(--space-xl);
}
.testimonial .test-detail {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-text-light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}

/* ===== FAQ ===== */
.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-lg) 0;
}
.faq-item:first-child { padding-top: 0; }
.faq-item:last-child { border-bottom: none; }

.faq-item h3 {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}
.faq-item p {
  color: var(--color-text-secondary);
  font-size: var(--text-base);
}

/* ===== Service areas ===== */
.service-areas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}
.service-areas .area-tag {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  padding: 0.35rem 0.85rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  color: var(--color-text-secondary);
}

/* ===== CTA ===== */
.cta-block {
  background: #1C1C2E;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: var(--space-2xl);
  text-align: center;
}
.cta-block h2 { color: #fff; margin-bottom: var(--space-sm); }
.cta-block p { color: rgba(255,255,255,0.7); margin-bottom: var(--space-lg); }

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  padding: 0.75rem 2.5rem;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
  border: none;
}
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover { background: var(--color-primary-light); color: #fff; }
.btn--outline { background: transparent; color: var(--color-primary); border: 1.5px solid var(--color-primary); }
.btn--outline:hover { background: var(--color-primary); color: #fff; }
/* In CTA block context, --white buttons become purple since CTA is now light bg */
.btn--white { background: #fff; color: var(--color-text); }
.btn--white:hover { background: rgba(255,255,255,0.88); color: var(--color-text); }

.cta-buttons { display: flex; gap: var(--space-md); justify-content: center; flex-wrap: wrap; }

/* ===== Footer ===== */
.site-footer {
  background: var(--color-text);
  color: rgba(255,255,255,0.7);
  padding: var(--space-2xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-xl);
}

.footer-brand .site-logo { color: #fff; margin-bottom: var(--space-md); display: inline-block; }
.footer-brand .site-logo span { color: rgba(255,255,255,0.7); }
.footer-brand p { font-size: var(--text-sm); line-height: 1.6; max-width: 360px; }

.site-footer h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  margin-bottom: var(--space-md);
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: var(--space-sm); }
.site-footer li a { color: rgba(255,255,255,0.7); font-size: var(--text-sm); }
.site-footer li a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--space-lg);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.35);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  h1 { font-size: var(--text-3xl); }
  .hero { padding: var(--space-2xl) 0; }
  .section { padding: var(--space-2xl) 0; }
  .hero-meta { flex-direction: column; gap: var(--space-md); }
}

/* ===== Two-column layout ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}
@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; }
}

/* ===== Contact specifics ===== */
.contact-method {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  margin-bottom: var(--space-md);
  transition: border-color 0.2s;
}
.contact-method:hover { border-color: var(--color-primary); }
.contact-method .method-icon {
  width: 44px;
  height: 44px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-method .method-label {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--color-text);
}
.contact-method .method-detail {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

/* ===== Page header (inner pages) ===== */
.page-header {
  padding: var(--space-2xl) 0 var(--space-xl);
  border-bottom: 1px solid var(--color-border-light);
  background: var(--color-surface-alt);
}
.page-header h1 { font-size: var(--text-3xl); margin-bottom: var(--space-sm); color: var(--color-text); }
.page-header .page-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 580px;
}

/* ===== Article meta / eyebrow ===== */
.article-meta {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-light);
  margin-bottom: var(--space-sm);
}

/* ===== Comparison infographic (SAT vs ACT) ===== */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin: var(--space-xl) 0;
}
@media (max-width: 600px) {
  .comparison-grid { grid-template-columns: 1fr; }
}

.comparison-col {
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
}
.comparison-header {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  text-align: center;
  padding: var(--space-md) var(--space-lg);
  color: #fff;
}
.comparison-header--sat { background: #1a3a6b; }
.comparison-header--act { background: #b32025; }

.comparison-body {
  padding: var(--space-lg);
}
.comparison-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border-light);
}
.comparison-stat:last-child { border-bottom: none; }
.comparison-stat-value {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text);
}
.comparison-stat-label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-light);
  margin-top: 0.15rem;
}

/* ===== Test structure timeline ===== */
.test-structure {
  margin: var(--space-lg) 0;
}
.test-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-bottom: none;
}
.test-section:first-child { border-radius: 4px 4px 0 0; }
.test-section:last-child { border-bottom: 1px solid var(--color-border); border-radius: 0 0 4px 4px; }
.test-section--break {
  background: var(--color-surface-alt);
  font-style: italic;
}
.test-section-name {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--color-text);
}
.test-section-detail {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

/* ===== Difference table ===== */
.diff-table {
  margin: var(--space-lg) 0;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
}
.diff-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
}
.diff-row--header {
  background: var(--color-surface-alt);
  border-bottom: 2px solid var(--color-border);
}
.diff-row:not(.diff-row--header) { border-bottom: 1px solid var(--color-border-light); }
.diff-row:last-child { border-bottom: none; }
.diff-cell {
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}
.diff-row--header .diff-cell {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--color-text);
}
@media (max-width: 600px) {
  .diff-row { grid-template-columns: 1fr; }
  .diff-row--header { display: none; }
  .diff-cell::before {
    content: attr(data-label);
    font-weight: 600;
    display: block;
    color: var(--color-text);
    margin-bottom: 0.2rem;
  }
}

/* ===== Concordance table ===== */
.concordance-table-wrap,
.dates-table-wrap {
  margin: var(--space-lg) 0;
  overflow-x: auto;
}
.concordance-table,
.dates-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: var(--text-sm);
}
.concordance-table th,
.dates-table th {
  font-weight: 600;
  text-align: left;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-surface-alt);
  border-bottom: 2px solid var(--color-border);
  color: var(--color-text);
}
.concordance-table td,
.dates-table td {
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--color-border-light);
  color: var(--color-text-secondary);
}
.concordance-table tbody tr:hover,
.dates-table tbody tr:hover {
  background: var(--color-surface-alt);
}
