/* ============================================================
   HOMESCHOOL TRANSCRIPT HUB — styles.css
   Aesthetic: Warm editorial. Think: trusted reference book
   meets clean government resource. Readable. Credible. Calm.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;0,700;1,400&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

/* ── TOKENS ── */
:root {
  --ink:        #1a1a2e;
  --ink-soft:   #3d3d5c;
  --ink-muted:  #6b6b8a;
  --paper:      #faf8f5;
  --paper-warm: #f5f1eb;
  --paper-cool: #f0eff8;
  --rule:       #e2ddd6;
  --accent:     #c0392b;
  --accent-soft:#e8655a;
  --gold:       #d4a843;
  --gold-soft:  #f0d080;
  --green:      #2d6a4f;
  --green-soft: #52b788;
  --blue:       #1a5276;
  --blue-soft:  #5dade2;

  --serif:    'Lora', Georgia, serif;
  --sans:     'Source Sans 3', system-ui, sans-serif;

  --radius:   6px;
  --radius-lg:12px;
  --shadow-sm:0 1px 3px rgba(26,26,46,.08);
  --shadow:   0 4px 16px rgba(26,26,46,.10);
  --shadow-lg:0 12px 40px rgba(26,26,46,.14);

  --max-w:    1100px;
  --prose-w:  740px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 17px; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.4em; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: var(--serif);
  line-height: 1.25;
  color: var(--ink);
}
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 700; }
h2 { font-size: clamp(1.35rem, 3vw, 1.85rem); font-weight: 600; margin-top: 2rem; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.35rem); font-weight: 600; margin-top: 1.5rem; }
h4 { font-size: 1rem; font-weight: 600; font-family: var(--sans); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; color: var(--ink); }
em { font-style: italic; }
small { font-size: .82rem; color: var(--ink-muted); }

/* ── SITE HEADER ── */
.site-header {
  background: var(--ink);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--accent);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: .75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-logo {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
}
.site-logo span { color: var(--gold-soft); }
.site-logo svg { width: 28px; height: 28px; }

/* ── NAV ── */
.main-nav { display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; }
.main-nav a {
  color: rgba(255,255,255,.82);
  font-size: .88rem;
  font-weight: 500;
  padding: .35rem .65rem;
  border-radius: var(--radius);
  transition: background .15s, color .15s;
}
.main-nav a:hover, .main-nav a.active {
  background: rgba(255,255,255,.12);
  color: #fff;
  text-decoration: none;
}
.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  font-weight: 600 !important;
  padding: .35rem .8rem !important;
}
.nav-cta:hover { background: var(--accent-soft) !important; }

/* hamburger */
.hamburger { display: none; cursor: pointer; background: none; border: none; color: #fff; padding: .25rem; }
.hamburger svg { width: 24px; height: 24px; }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--ink) 0%, #2c2c5e 60%, #1a3a5c 100%);
  color: #fff;
  padding: 4rem 1.5rem 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 40px,
    rgba(255,255,255,.02) 40px,
    rgba(255,255,255,.02) 80px
  );
}
.hero-inner { position: relative; max-width: var(--prose-w); margin: 0 auto; }
.hero-eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--gold-soft);
  border: 1px solid var(--gold);
  padding: .25rem .75rem;
  border-radius: 2rem;
  margin-bottom: 1.25rem;
}
.hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 1rem; }
.hero h1 em { font-style: normal; color: var(--gold-soft); }
.hero p.lead { font-size: 1.15rem; color: rgba(255,255,255,.82); margin-bottom: 2rem; max-width: 560px; margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--sans);
  font-size: .92rem;
  font-weight: 600;
  padding: .7rem 1.4rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .18s;
  text-decoration: none !important;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: #a93226; border-color: #a93226; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-gold { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn-gold:hover { background: #b8922e; }
.btn-green { background: var(--green); color: #fff; border-color: var(--green); }
.btn-green:hover { background: #1e4d38; }
.btn-sm { padding: .45rem .9rem; font-size: .84rem; }
.btn-lg { padding: .9rem 1.8rem; font-size: 1rem; }

/* ── LAYOUT ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.prose { max-width: var(--prose-w); }
.section { padding: 3.5rem 1.5rem; }
.section-title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--ink);
  margin-bottom: .5rem;
}
.section-sub { color: var(--ink-muted); font-size: 1rem; margin-bottom: 2rem; }
.section-center { text-align: center; }

/* ── CARDS ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-icon {
  width: 44px; height: 44px;
  background: var(--paper-warm);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}
.card h3 { font-size: 1.05rem; margin-top: 0; margin-bottom: .4rem; }
.card p { font-size: .9rem; color: var(--ink-soft); margin-bottom: .75rem; }
.card a { font-size: .88rem; font-weight: 600; color: var(--accent); }

/* ── TOOL CARDS ── */
.tool-card {
  background: linear-gradient(135deg, var(--ink) 0%, #2c2c5e 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.tool-card h3 { color: #fff; font-size: 1.1rem; margin-top: 0; }
.tool-card p { color: rgba(255,255,255,.75); font-size: .9rem; margin: 0; }
.tool-card .btn { margin-top: auto; align-self: flex-start; }

/* ── ALERT / CALLOUT BOXES ── */
.callout {
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-left: 4px solid;
  font-size: .95rem;
}
.callout-tip { background: #eaf7f1; border-color: var(--green); color: #1a4a31; }
.callout-warn { background: #fef9e7; border-color: var(--gold); color: #5d4700; }
.callout-info { background: #eaf2fb; border-color: var(--blue); color: #1a3a5c; }
.callout-important { background: #fdecea; border-color: var(--accent); color: #6b1a14; }
.callout strong { display: block; margin-bottom: .3rem; text-transform: uppercase; font-size: .78rem; letter-spacing: .06em; }

/* ── TABLES ── */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; border-radius: var(--radius); border: 1px solid var(--rule); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
thead { background: var(--ink); color: #fff; }
thead th { padding: .75rem 1rem; text-align: left; font-weight: 600; font-size: .85rem; letter-spacing: .04em; }
tbody tr { border-bottom: 1px solid var(--rule); }
tbody tr:last-child { border-bottom: none; }
tbody tr:nth-child(even) { background: var(--paper-warm); }
tbody td { padding: .65rem 1rem; color: var(--ink-soft); }
tbody td:first-child { color: var(--ink); font-weight: 500; }

/* ── PAGE LAYOUT ── */
.page-header {
  background: var(--paper-warm);
  border-bottom: 1px solid var(--rule);
  padding: 2.5rem 1.5rem;
}
.page-header .container { max-width: var(--max-w); margin: 0 auto; }
.breadcrumb {
  font-size: .82rem;
  color: var(--ink-muted);
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--accent); }
.breadcrumb-sep { color: var(--rule); }
.page-header h1 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: .5rem; }
.page-header .lead { font-size: 1.05rem; color: var(--ink-soft); max-width: 660px; }

.page-body {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  align-items: start;
}
.page-content h2 { border-bottom: 2px solid var(--rule); padding-bottom: .5rem; margin-bottom: 1rem; }
.page-content h3 { color: var(--ink-soft); }

/* ── SIDEBAR ── */
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-box {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}
.sidebar-box h4 { margin-bottom: .75rem; color: var(--ink-muted); }
.sidebar-box ul { padding-left: 0; list-style: none; }
.sidebar-box ul li { padding: .3rem 0; border-bottom: 1px solid var(--rule); font-size: .9rem; }
.sidebar-box ul li:last-child { border-bottom: none; }
.sidebar-box ul li a { color: var(--ink-soft); font-weight: 500; }
.sidebar-box ul li a:hover { color: var(--accent); text-decoration: none; }

/* ── FAQ ── */
.faq { margin: 2rem 0; }
.faq-item {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  margin-bottom: .75rem;
  overflow: hidden;
}
.faq-q {
  background: #fff;
  padding: 1rem 1.25rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: .96rem;
  gap: 1rem;
  transition: background .15s;
  border: none;
  width: 100%;
  text-align: left;
  color: var(--ink);
}
.faq-q:hover { background: var(--paper-warm); }
.faq-q svg { flex-shrink: 0; transition: transform .2s; color: var(--accent); }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a {
  display: none;
  padding: 0 1.25rem 1rem;
  font-size: .93rem;
  color: var(--ink-soft);
  background: #fff;
  border-top: 1px solid var(--rule);
  line-height: 1.65;
}
.faq-item.open .faq-a { display: block; }

/* ── DOWNLOAD CARDS ── */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.download-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.dl-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--paper-warm);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.dl-info h4 { font-size: .9rem; margin-bottom: .2rem; color: var(--ink); font-family: var(--sans); text-transform: none; letter-spacing: 0; }
.dl-info p { font-size: .8rem; color: var(--ink-muted); margin-bottom: .5rem; }
.dl-info a { font-size: .82rem; font-weight: 600; }

/* ── CALCULATOR WRAPPER ── */
.calc-wrap {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: 1.5rem 0;
}
.calc-header {
  background: var(--ink);
  color: #fff;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.calc-header h3 { color: #fff; font-size: 1rem; margin: 0; font-family: var(--sans); font-weight: 600; }
.calc-body { padding: 1.5rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: .4rem; color: var(--ink-soft); }
.form-group input,
.form-group select {
  width: 100%;
  padding: .6rem .85rem;
  border: 1.5px solid var(--rule);
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  transition: border-color .15s;
}
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.result-box {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  margin-top: 1.25rem;
}
.result-box .result-num { font-family: var(--serif); font-size: 2.5rem; font-weight: 700; color: var(--gold-soft); }
.result-box .result-label { font-size: .85rem; color: rgba(255,255,255,.7); margin-top: .25rem; }
.result-table { width: 100%; margin-top: 1rem; font-size: .85rem; }
.result-table td { padding: .35rem .5rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.result-table td:first-child { color: rgba(255,255,255,.7); }
.result-table td:last-child { text-align: right; font-weight: 600; }

/* ── CHECKLIST TOOL ── */
.checklist-tool { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius-lg); overflow: hidden; margin: 1.5rem 0; }
.checklist-header { background: var(--green); color: #fff; padding: 1rem 1.5rem; }
.checklist-header h3 { color: #fff; font-size: 1rem; margin: 0; font-family: var(--sans); }
.checklist-body { padding: 1.5rem; }
.checklist-section h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-muted); margin-bottom: .5rem; margin-top: 1.25rem; border-bottom: 1px solid var(--rule); padding-bottom: .3rem; }
.checklist-section:first-child h4 { margin-top: 0; }
.check-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .45rem 0;
  cursor: pointer;
}
.check-item input[type=checkbox] {
  width: 18px; height: 18px;
  flex-shrink: 0;
  margin-top: .15rem;
  accent-color: var(--green);
  cursor: pointer;
}
.check-item label {
  font-size: .9rem;
  color: var(--ink-soft);
  cursor: pointer;
  line-height: 1.45;
}
.check-item input:checked + label {
  color: var(--ink-muted);
  text-decoration: line-through;
}
.checklist-progress {
  background: var(--paper-warm);
  border-top: 1px solid var(--rule);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.progress-bar-wrap { flex: 1; height: 8px; background: var(--rule); border-radius: 4px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: var(--green); border-radius: 4px; transition: width .3s; }
.progress-text { font-size: .82rem; color: var(--ink-muted); white-space: nowrap; }

/* ── STATE BADGES ── */
.state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .75rem;
  margin: 1.5rem 0;
}
.state-badge {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: .75rem 1rem;
  text-align: center;
  text-decoration: none !important;
  transition: all .15s;
}
.state-badge:hover { border-color: var(--accent); background: #fdecea; transform: translateY(-1px); }
.state-badge .state-abbr { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--ink); display: block; }
.state-badge .state-name { font-size: .75rem; color: var(--ink-muted); margin-top: .15rem; }

/* ── FOOTER ── */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.75);
  padding: 3rem 1.5rem 2rem;
  margin-top: 4rem;
}
.footer-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand p { font-size: .88rem; margin-top: .75rem; color: rgba(255,255,255,.6); }
.footer-col h5 { color: #fff; font-family: var(--sans); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .75rem; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: .4rem; }
.footer-col ul li a { color: rgba(255,255,255,.6); font-size: .88rem; transition: color .15s; }
.footer-col ul li a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  max-width: var(--max-w);
  margin: 1.5rem auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
  flex-wrap: wrap;
  gap: .5rem;
}
.footer-bottom a { color: rgba(255,255,255,.4); }
.footer-bottom a:hover { color: rgba(255,255,255,.75); }

/* ── DISCLAIMER ── */
.disclaimer {
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: .9rem 1.1rem;
  font-size: .8rem;
  color: var(--ink-muted);
  margin: 2rem 0 0;
  line-height: 1.5;
}
.disclaimer strong { color: var(--ink-soft); }

/* ── SKIP LINK ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--accent);
  color: #fff;
  padding: .5rem 1rem;
  font-size: .9rem;
  z-index: 999;
}
.skip-link:focus { top: 0; }

/* ── PRINT ── */
@media print {
  .site-header, .site-footer, .sidebar, .breadcrumb, .hero-actions { display: none; }
  body { font-size: 12pt; }
  .page-body { grid-template-columns: 1fr; }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .page-body { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 640px) {
  .header-inner { flex-wrap: wrap; }
  .main-nav { display: none; width: 100%; flex-direction: column; }
  .main-nav.open { display: flex; }
  .hamburger { display: block; }
  .hero { padding: 2.5rem 1.25rem; }
  .section { padding: 2.5rem 1.25rem; }
  .card-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .state-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── UTILITIES ── */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 1rem; }
.text-muted { color: var(--ink-muted); }
.text-center { text-align: center; }
.tag {
  display: inline-block;
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: .2rem .55rem;
  border-radius: 3rem;
  background: var(--paper-warm);
  color: var(--ink-muted);
  border: 1px solid var(--rule);
}
.tag-red { background: #fdecea; color: var(--accent); border-color: var(--accent-soft); }
.tag-green { background: #eaf7f1; color: var(--green); border-color: var(--green-soft); }
.tag-gold { background: #fef9e7; color: #7d6000; border-color: var(--gold); }
