/* ============================================================
   VolunTrak — Shared Stylesheet
   All 6 pages reference: <link rel="stylesheet" href="shared.css">
   ============================================================ */

:root {
  --coral:       #F55B3B;
  --coral-light: #F97C4A;
  --coral-tint:  #FFF4F2;
  --green:       #4CAF50;
  --green-tint:  #E8F5E9;
  --blue:        #3B5BDB;
  --blue-tint:   #E8F0FE;
  --red:         #F04B3A;
  --text:        #1A1D23;
  --text-muted:  #6B7280;
  --surface:     #F5F6FA;
  --white:       #FFFFFF;
  --border:      #E5E7EB;
  --nav-h:       64px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
}

/* ---- TYPOGRAPHY ---- */
h1 { font-size: 3rem; font-weight: 700; line-height: 1.15; letter-spacing: -1px; color: var(--text); }
h2 { font-size: 2rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.5px; color: var(--text); }
h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.4; color: var(--text); }
p  { line-height: 1.7; color: var(--text-muted); }
a  { text-decoration: none; color: inherit; }

/* ---- LAYOUT ---- */
.container  { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.col-split  { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.grid-2     { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3     { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4     { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.stat-grid  { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.center     { text-align: center; }

/* ---- NAV ---- */
nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--white); border-bottom: 1px solid var(--border);
  height: var(--nav-h); display: flex; align-items: center;
  padding: 0 2rem; justify-content: space-between;
}
.nav-logo  { display: flex; align-items: center; height: 32px; }
.nav-logo img { height: 100%; width: auto; display: block; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  padding: 0.45rem 0.9rem; font-size: 0.9rem; color: var(--text-muted);
  border-radius: 6px; transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a.active { color: var(--coral); font-weight: 600; }
.nav-ctas { display: flex; gap: 8px; align-items: center; }
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px 4px; margin-left: 4px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
nav.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
nav.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
nav.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- SUB NAV ---- */
.sub-nav {
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 0 2rem; display: flex; gap: 4px; overflow-x: auto; justify-content: center;
}
.sub-nav-link {
  font-size: 0.875rem; color: var(--text-muted); padding: 0.65rem 1rem;
  border-bottom: 2px solid transparent; white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}
.sub-nav-link:hover { color: var(--coral); }
.sub-nav-link.active { color: var(--coral); border-bottom-color: var(--coral); font-weight: 600; }


/* ---- BUTTONS ---- */
.btn {
  display: inline-block; padding: 0.5rem 1.25rem; border-radius: 8px;
  font-size: 0.9rem; font-weight: 600; cursor: pointer; border: none;
  transition: opacity 0.15s, transform 0.1s; text-align: center;
}
.btn:hover    { opacity: 0.88; }
.btn:active   { transform: scale(0.98); }
.btn-lg       { padding: 0.85rem 2rem; font-size: 1rem; border-radius: 10px; }
.btn-primary  { background: var(--coral); color: #fff; }
.btn-outline  { background: transparent; border: 1.5px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--text-muted); }
.btn-ghost    { background: transparent; color: var(--text-muted); border: 1.5px solid transparent; }
.btn-ghost:hover { background: var(--surface); }
.btn-blue     { background: var(--blue); color: #fff; }
.btn-green    { background: var(--green); color: #fff; }
.btn-white    { background: #fff; color: var(--coral); }
.btn-outline-white { background: transparent; border: 1.5px solid rgba(255,255,255,0.6); color: #fff; }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); }

/* ---- CTA ROW ---- */
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-row.center { justify-content: center; }

/* ---- SECTIONS ---- */
section { padding: 5rem 0; }
.hero { background: var(--white); padding: 5.5rem 0 4.5rem; border-bottom: 1px solid var(--border); }
.hero-sub { font-size: 1.1rem; color: var(--text-muted); max-width: 580px; line-height: 1.7; margin: 1.25rem 0 2.5rem; }
.section-white   { background: var(--white); }
.section-surface { background: var(--surface); }
.section-label {
  display: block; font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--coral); font-weight: 700; margin-bottom: 0.6rem;
}

/* ---- CARDS ---- */
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.5rem;
}
.card h3 { margin-bottom: 0.5rem; }
.card p  { font-size: 0.9rem; }
.card-coral { border-left: 4px solid var(--coral); }
.card-blue  { border-left: 4px solid var(--blue); }

/* ---- STAT CARDS ---- */
.stat-card  {
  background: var(--coral-tint); border-radius: 14px;
  padding: 1.5rem; text-align: center;
}
.stat-num   { font-size: 2.4rem; font-weight: 700; color: var(--coral); line-height: 1; margin-bottom: 0.4rem; }
.stat-label { font-size: 0.85rem; color: var(--text-muted); }

/* ---- PERSONA TILES ---- */
.persona-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; }
.persona-tile {
  display: block; background: var(--white); border: 1.5px solid var(--border);
  border-radius: 14px; padding: 1.5rem; text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s; cursor: pointer;
}
.persona-tile:hover { border-color: var(--coral); box-shadow: 0 4px 20px rgba(245,91,59,0.1); }
.persona-icon { font-size: 1.75rem; margin-bottom: 0.75rem; }
.persona-tile h3 { font-size: 0.95rem; margin-bottom: 0.35rem; }
.persona-tile p  { font-size: 0.82rem; }

/* ---- BADGES ---- */
.badge {
  display: inline-block; font-size: 0.75rem; font-weight: 600;
  padding: 3px 10px; border-radius: 20px;
}
.badge-coral { background: var(--coral-tint); color: var(--coral); }
.badge-green { background: var(--green-tint); color: #2E7D32; }
.badge-blue  { background: var(--blue-tint);  color: var(--blue); }

/* ---- TAGS ---- */
.tag {
  display: inline-block; background: var(--white);
  border: 1px solid var(--border); border-radius: 20px;
  padding: 4px 12px; font-size: 0.82rem; color: var(--text-muted);
}
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---- STEP LIST ---- */
.step-list { display: flex; flex-direction: column; }
.step-item {
  display: flex; gap: 1rem; padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.step-item:last-child { border-bottom: none; }
.step-num {
  width: 36px; height: 36px; border-radius: 10px; background: var(--coral);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.95rem; flex-shrink: 0;
}
.step-item h3 { font-size: 1rem; margin-bottom: 0.3rem; }
.step-item p  { font-size: 0.88rem; }
.step-icon { font-size: 2rem; margin-bottom: 0.75rem; }

/* ---- FEATURE LIST ---- */
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.feature-list li { font-size: 0.9rem; color: var(--text-muted); display: flex; gap: 8px; }
.feature-list li::before { content: "✓"; color: var(--green); font-weight: 700; flex-shrink: 0; }

/* ---- TESTIMONIALS ---- */
.testimonial {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; padding: 2rem;
}
.testimonial blockquote { font-size: 1rem; line-height: 1.7; color: var(--text); font-style: italic; margin-bottom: 1.25rem; }
.attr { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }

/* ---- IMAGE PLACEHOLDERS ---- */
.img-placeholder {
  background: var(--surface); border: 1.5px dashed var(--border);
  border-radius: 14px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  color: var(--text-muted); font-size: 0.85rem; text-align: center; padding: 1.5rem;
}
.ph-icon  { font-size: 2rem; opacity: 0.5; }
.img-sm   { height: 140px; }
.img-md   { height: 200px; }
.img-lg   { height: 280px; }
.img-xl   { height: 360px; }

/* ---- CTA BAND ---- */
.cta-band { background: var(--coral); padding: 4.5rem 0; }
.cta-band h2 { color: #fff; margin-bottom: 0.75rem; }
.cta-band p  { color: rgba(255,255,255,0.85); margin-bottom: 2rem; }

/* ---- FOOTER ---- */
footer { background: var(--text); color: #9CA3AF; padding: 3.5rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.footer-col h4 { font-size: 0.78rem; font-weight: 700; color: #fff; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.8px; }
.footer-col p  { font-size: 0.85rem; line-height: 1.6; }
.footer-col a  { display: block; font-size: 0.85rem; color: #9CA3AF; margin-bottom: 0.5rem; transition: color 0.15s; }
.footer-col a:hover { color: #fff; }
.footer-logo   { margin-bottom: 0.75rem; }
.footer-logo img { height: 26px; width: auto; display: block; }
.footer-bottom { border-top: 1px solid #374151; padding-top: 1.5rem; display: flex; justify-content: space-between; font-size: 0.8rem; }
.footer-legal  { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: 0.8rem; color: #9CA3AF; }
.footer-legal a:hover { color: #fff; }

/* ---- MISC ---- */
.fine-print { font-size: 0.78rem; color: var(--text-muted); }

/* ---- HELP CENTER ---- */
.help-toc {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.25rem 1.5rem; margin-bottom: 2.5rem;
  display: flex; gap: 4px; flex-wrap: wrap; align-items: center;
}
.help-toc-label { font-size: 0.75rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-right: 0.5rem; white-space: nowrap; }
.help-toc a { font-size: 0.83rem; color: var(--text-muted); padding: 4px 10px; border-radius: 20px; border: 1px solid var(--border); transition: color 0.15s, border-color 0.15s; white-space: nowrap; }
.help-toc a:hover { color: var(--coral); border-color: var(--coral); }
.guide-article { margin-bottom: 3.5rem; padding-bottom: 3.5rem; border-bottom: 1px solid var(--border); }
.guide-article:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.guide-article h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.guide-article .guide-meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; }
.guide-article h3 { font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-muted); margin: 1.5rem 0 0.75rem; }
.guide-article p { color: var(--text-muted); font-size: 0.93rem; }
.issue-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin-top: 0.75rem; }
.issue-card { background: var(--surface); border-radius: 10px; padding: 0.875rem 1rem; }
.issue-card strong { font-size: 0.88rem; color: var(--text); display: block; margin-bottom: 0.25rem; }
.issue-card p { font-size: 0.83rem; margin: 0; }
.prereq-list { list-style: none; display: flex; flex-direction: column; gap: 0.35rem; margin-top: 0.75rem; }
.prereq-list li { font-size: 0.9rem; color: var(--text-muted); display: flex; gap: 8px; align-items: flex-start; }
.prereq-list li::before { content: "·"; color: var(--coral); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
@media (max-width: 768px) {
  .issue-grid { grid-template-columns: 1fr; }
  .help-toc { flex-direction: column; align-items: flex-start; }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  h1 { font-size: 2.2rem; }
  .persona-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid  { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  h1 { font-size: 1.9rem; }
  .col-split, .grid-2, .grid-3, .grid-4, .stat-grid { grid-template-columns: 1fr; }
  .persona-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid  { grid-template-columns: 1fr; }
  nav { padding: 0 1rem; flex-wrap: wrap; height: auto; min-height: var(--nav-h); }
  .nav-toggle { display: flex; }
  .nav-ctas { display: none; }
  .nav-links { display: none; width: 100%; flex-direction: column; padding: 0.75rem 0 0.5rem; border-top: 1px solid var(--border); gap: 2px; }
  .nav-links a { padding: 0.65rem 0.5rem; font-size: 0.95rem; }
  nav.nav-open .nav-links { display: flex; }
  nav.nav-open .nav-ctas { display: flex; width: 100%; padding: 0.75rem 0.5rem 1rem; gap: 8px; }
  nav.nav-open .nav-ctas .btn { flex: 1; text-align: center; }
  .container { padding: 0 1.25rem; }
}


/* ---- BLOG ---- */
.vt-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.vt-blog-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  min-height: 330px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 6px 24px rgba(26, 29, 35, 0.06);
  transition: transform 0.16s, border-color 0.16s;
}
.vt-blog-card:hover {
  transform: translateY(-2px);
  border-color: var(--coral);
}
.vt-blog-card h3 {
  font-size: 1.35rem;
}
.vt-blog-card p {
  flex: 1;
}
.vt-blog-card-meta,
.vt-blog-meta {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
}
.vt-blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 1.25rem;
}
.vt-blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 0.9fr);
  gap: 2rem;
  align-items: start;
}
.vt-blog-body {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
}
.vt-blog-body h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.55rem;
}
.vt-blog-body h2:first-child {
  margin-top: 0;
}
.vt-blog-body p,
.vt-blog-body li {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.85;
}
.vt-blog-body a {
  color: var(--coral);
  font-weight: 700;
}
.vt-blog-body ul {
  margin: 1rem 0 1.5rem;
  padding-left: 1.25rem;
}
.vt-blog-side {
  display: grid;
  gap: 1rem;
  position: sticky;
  top: 90px;
}

@media (max-width: 900px) {
  .vt-blog-grid,
  .vt-blog-layout {
    grid-template-columns: 1fr;
  }
  .vt-blog-side {
    position: static;
  }
}
