/* ========================================
   Lite PrepCenter — Design System
   Plain vanilla CSS, no frameworks
   ======================================== */

/* --- 1. Custom Properties --- */
:root {
  --navy: #0F172A;
  --navy-light: #1E293B;
  --navy-mid: #334155;
  --amber: #F59E0B;
  --amber-dark: #D97706;
  --amber-light: #FEF3C7;
  --amber-50: #FFFBEB;
  --teal: #14B8A6;
  --teal-dark: #0D9488;
  --slate-50: #F8FAFC;
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-300: #CBD5E1;
  --slate-400: #94A3B8;
  --slate-500: #64748B;
  --slate-600: #475569;
  --slate-700: #334155;
  --white: #FFFFFF;
  --black: #000000;
  --red: #DC2626;
  --green: #059669;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --container: 1200px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06);
  --shadow: 0 1px 3px rgba(15,23,42,.1), 0 1px 2px rgba(15,23,42,.06);
  --shadow-md: 0 4px 6px -1px rgba(15,23,42,.1), 0 2px 4px -2px rgba(15,23,42,.1);
  --shadow-lg: 0 10px 15px -3px rgba(15,23,42,.1), 0 4px 6px -4px rgba(15,23,42,.1);
  --transition: 200ms ease;
}

/* --- 2. Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); font-size: 1rem; line-height: 1.6; color: var(--slate-700); background: var(--white); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
h1, h2, h3, h4, h5, h6 { line-height: 1.2; font-weight: 700; color: var(--navy); }

/* --- 3. Typography --- */
h1 { font-size: 2.5rem; font-weight: 800; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }
p + p { margin-top: 1rem; }
strong { font-weight: 600; }
.prose { max-width: 720px; }
.prose p { margin-bottom: 1rem; color: var(--slate-600); font-size: 1.0625rem; line-height: 1.75; }
.prose h2 { margin: 2rem 0 1rem; }
.prose h3 { margin: 1.5rem 0 .75rem; }
.prose ul, .prose ol { margin: 1rem 0; padding-left: 1.5rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: .5rem; color: var(--slate-600); line-height: 1.7; }
.prose a { color: var(--amber-dark); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--amber); }

/* --- 4. Layout --- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section--light { background: var(--slate-50); }
.section--white { background: var(--white); }
.section--dark { background: var(--navy); color: var(--slate-300); }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-label { display: inline-block; font-size: .8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--amber-dark); margin-bottom: .5rem; }
.section-title { margin-bottom: .75rem; }
.section-desc { color: var(--slate-500); font-size: 1.0625rem; }

/* --- 5. Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.75rem; font-size: .9375rem; font-weight: 600;
  border-radius: var(--radius); transition: all var(--transition);
  text-align: center; justify-content: center; white-space: nowrap;
}
.btn--primary { background: var(--amber); color: var(--navy); }
.btn--primary:hover { background: var(--amber-dark); box-shadow: 0 4px 12px rgba(245,158,11,.35); }
.btn--secondary { background: var(--navy); color: var(--white); }
.btn--secondary:hover { background: var(--navy-light); }
.btn--outline { border: 2px solid var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--outline-light { border: 2px solid rgba(255,255,255,.3); color: var(--white); background: transparent; }
.btn--outline-light:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.5); }
.btn--sm { padding: .5rem 1.25rem; font-size: .875rem; }
.btn--lg { padding: 1rem 2.25rem; font-size: 1rem; }

/* --- 6. Navigation --- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white); border-bottom: 1px solid var(--slate-200);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 4.5rem;
}
.logo-link { display: flex; align-items: center; gap: .5rem; text-decoration: none; }
.logo-img { height: 2rem; width: auto; }
.logo-img--footer { height: 1.75rem; }
.logo-text { font-size: 1.25rem; font-weight: 800; color: var(--navy); }
.logo-text--footer { color: var(--white); }
.logo-accent { color: var(--amber); }
.nav-desktop { display: none; align-items: center; gap: .25rem; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: .25rem;
  padding: .5rem .75rem; font-size: .9375rem; font-weight: 500;
  color: var(--slate-600); border-radius: var(--radius); transition: color var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--navy); }
.nav-link .icon-sm { width: 1rem; height: 1rem; transition: transform var(--transition); }
.nav-item:hover .nav-link .icon-sm { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 220px;
  background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: .5rem;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all var(--transition);
}
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-link {
  display: block; padding: .5rem .75rem; font-size: .875rem; color: var(--slate-600);
  border-radius: var(--radius); transition: all var(--transition);
}
.dropdown-link:hover { background: var(--slate-50); color: var(--navy); }
.header-actions { display: flex; align-items: center; gap: .75rem; }
.mobile-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; color: var(--slate-700);
}
.mobile-toggle .icon { width: 1.5rem; height: 1.5rem; }
.mobile-menu {
  display: none; position: fixed; inset: 0; top: 4.5rem; z-index: 99;
  background: var(--white); overflow-y: auto; padding: 1rem 1.5rem 2rem;
  border-top: 1px solid var(--slate-200);
}
.mobile-menu.open { display: block; }
.mobile-nav-item { border-bottom: 1px solid var(--slate-100); }
.mobile-nav-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: .875rem 0; font-size: 1rem; font-weight: 500; color: var(--slate-700);
}
.mobile-nav-link .icon-sm { width: 1.25rem; height: 1.25rem; transition: transform var(--transition); }
.mobile-nav-link.open .icon-sm { transform: rotate(180deg); }
.mobile-dropdown { display: none; padding: 0 0 .75rem .75rem; }
.mobile-dropdown.open { display: block; }
.mobile-dropdown a {
  display: block; padding: .5rem .75rem; font-size: .9375rem;
  color: var(--slate-500); border-radius: var(--radius); transition: color var(--transition);
}
.mobile-dropdown a:hover { color: var(--navy); }
.mobile-cta { padding-top: 1.25rem; }
.mobile-cta .btn { width: 100%; }

/* --- 7. Hero --- */
.hero {
  position: relative; overflow: hidden;
  padding: 5rem 0; color: var(--white);
}
.hero--short { padding: 3.5rem 0; }
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, var(--navy) 100%);
  z-index: 0;
}
.hero-bg::before {
  content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px;
  border-radius: 50%; background: var(--amber); opacity: .06; filter: blur(80px);
}
.hero-bg::after {
  content: ''; position: absolute; bottom: -40%; left: -10%; width: 500px; height: 500px;
  border-radius: 50%; background: var(--teal); opacity: .05; filter: blur(80px);
}
.hero-inner { position: relative; z-index: 1; max-width: 720px; }
.hero-inner[style*="text-align:center"] { max-width: 100%; }
.hero-label {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.08); backdrop-filter: blur(4px);
  padding: .375rem 1rem; border-radius: var(--radius-full);
  font-size: .875rem; font-weight: 500; color: var(--amber-light);
  margin-bottom: 1.25rem;
}
.hero-label::before {
  content: ''; width: .5rem; height: .5rem; border-radius: 50%;
  background: var(--amber); animation: pulse 2s ease-in-out infinite;
}
.hero-title { font-size: 3rem; font-weight: 800; color: var(--white); margin-bottom: 1rem; line-height: 1.15; }
.hero-desc { font-size: 1.125rem; color: var(--slate-300); line-height: 1.7; margin-bottom: 2rem; max-width: 560px; }
.hero-inner[style*="text-align:center"] .hero-desc { margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-inner[style*="text-align:center"] .hero-actions { justify-content: center; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

/* --- 8. Feature Grid --- */
.features-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
}
.features-grid--2 { grid-template-columns: 1fr; }
.features-grid--3 { grid-template-columns: 1fr; }
.feature-card {
  background: var(--white); border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl); padding: 2rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.section--light .feature-card { background: var(--white); }
.section--white .feature-card { background: var(--slate-50); border-color: transparent; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-icon {
  width: 3rem; height: 3rem; display: flex; align-items: center; justify-content: center;
  background: var(--amber-50); border-radius: var(--radius-lg); margin-bottom: 1rem;
  color: var(--amber-dark);
}
.feature-icon .icon { width: 1.5rem; height: 1.5rem; }
.feature-title { margin-bottom: .5rem; }
.feature-desc { color: var(--slate-500); font-size: .9375rem; line-height: 1.65; }

/* --- 9. Process Steps --- */
.steps { max-width: 640px; margin: 0 auto; }
.step {
  display: flex; gap: 1.5rem; position: relative;
  padding-bottom: 2.5rem;
}
.step:last-child { padding-bottom: 0; }
.step:not(:last-child)::after {
  content: ''; position: absolute; left: 1.25rem; top: 3rem;
  width: 2px; height: calc(100% - 3rem);
  background: linear-gradient(to bottom, var(--amber), var(--teal));
}
.step-num {
  flex-shrink: 0; width: 2.5rem; height: 2.5rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy); color: var(--amber); font-weight: 700;
  border-radius: var(--radius-full); font-size: .875rem;
  position: relative; z-index: 1;
}
.step-title { margin-bottom: .375rem; }
.step-desc { color: var(--slate-500); font-size: .9375rem; line-height: 1.65; }

/* --- 10. CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 5rem 0; text-align: center; color: var(--white);
}
.cta-inner { max-width: 640px; margin: 0 auto; }
.cta-title { color: var(--white); margin-bottom: .75rem; font-size: 2rem; }
.cta-desc { color: var(--slate-400); margin-bottom: 2rem; font-size: 1.0625rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* --- 11. Benefits List --- */
.benefits-list { max-width: 640px; margin: 0 auto; }
.benefit-item {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .75rem 0; border-bottom: 1px solid var(--slate-200);
  font-size: 1rem; color: var(--slate-700);
}
.benefit-item:last-child { border-bottom: none; }
.benefit-icon { flex-shrink: 0; width: 1.25rem; height: 1.25rem; color: var(--teal); margin-top: .2rem; }

/* --- 12. Stats Bar --- */
.stats-bar {
  display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap;
  padding: 2rem 0; text-align: center;
}
.stat-value { display: block; font-size: 2rem; font-weight: 800; color: var(--navy); }
.stat-label { font-size: .875rem; color: var(--slate-500); }

/* --- 13. FAQ --- */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--slate-200); }
.faq-question {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 0; cursor: pointer; list-style: none;
  font-weight: 600; color: var(--navy); font-size: 1rem;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-toggle { flex-shrink: 0; color: var(--slate-400); transition: transform var(--transition); }
.faq-toggle .icon-sm { width: 1.25rem; height: 1.25rem; }
.faq-item[open] .faq-toggle { transform: rotate(45deg); }
.faq-answer { padding: 0 0 1.25rem; }
.faq-answer p { color: var(--slate-600); line-height: 1.7; }

/* --- 14. Forms --- */
.form-grid { display: grid; gap: 1.25rem; }
.form-grid--2 { grid-template-columns: 1fr; }
.form-group { display: flex; flex-direction: column; gap: .375rem; }
.form-label { font-size: .875rem; font-weight: 500; color: var(--navy); }
.form-label .required { color: var(--red); }
.form-input, .form-select, .form-textarea {
  padding: .75rem 1rem; border: 1px solid var(--slate-300);
  border-radius: var(--radius); font-size: .9375rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--white);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(245,158,11,.15);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-error { font-size: .8125rem; color: var(--red); display: none; }
.form-group.has-error .form-input,
.form-group.has-error .form-textarea,
.form-group.has-error .form-select { border-color: var(--red); }
.form-group.has-error .form-error { display: block; }
.form-hint { font-size: .8125rem; color: var(--slate-500); }
.form-check { display: flex; align-items: flex-start; gap: .5rem; }
.form-check input[type="checkbox"] { margin-top: .25rem; accent-color: var(--amber); }

/* --- 15. Footer --- */
.site-footer { background: var(--navy); color: var(--slate-400); }
.footer-main { padding: 4rem 0; }
.footer-grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1fr;
}
.footer-brand { max-width: 320px; }
.footer-brand-desc { font-size: .9375rem; line-height: 1.65; margin: 1rem 0 1.5rem; }
.social-links { display: flex; gap: .75rem; }
.social-link {
  width: 2.25rem; height: 2.25rem; display: flex; align-items: center; justify-content: center;
  background: var(--navy-light); border-radius: var(--radius); color: var(--slate-400);
  transition: all var(--transition);
}
.social-link:hover { background: var(--navy-mid); color: var(--amber); }
.social-link svg { width: 1rem; height: 1rem; }
.footer-heading {
  font-size: .8125rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .08em; color: var(--white); margin-bottom: 1rem;
}
.footer-links li + li { margin-top: .5rem; }
.footer-links a {
  font-size: .9375rem; color: var(--slate-400);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--amber); }
.footer-bottom {
  border-top: 1px solid var(--navy-light);
  padding: 1.5rem 0;
}
.footer-bottom-inner {
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  text-align: center; font-size: .875rem;
}
.footer-legal { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-legal a { color: var(--slate-500); transition: color var(--transition); }
.footer-legal a:hover { color: var(--slate-300); }

/* --- 16. Page-specific --- */
.contact-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
.contact-info-card {
  background: var(--slate-50); border-radius: var(--radius-xl); padding: 2rem;
}
.contact-info-item { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--slate-200); }
.contact-info-item:last-child { border-bottom: none; }
.contact-info-icon { flex-shrink: 0; width: 2.5rem; height: 2.5rem; background: var(--amber-50); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--amber-dark); }
.contact-info-icon .icon { width: 1.25rem; height: 1.25rem; }
.contact-info-text strong { display: block; font-weight: 600; color: var(--navy); margin-bottom: .125rem; }
.contact-info-text span, .contact-info-text a { font-size: .9375rem; color: var(--slate-500); }
.contact-info-text a:hover { color: var(--amber-dark); }

.team-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.team-card { text-align: center; padding: 2rem; background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius-xl); }
.team-avatar {
  width: 5rem; height: 5rem; margin: 0 auto 1rem; border-radius: 50%;
  background: var(--amber-50); display: flex; align-items: center; justify-content: center;
  color: var(--amber-dark); font-size: 1.5rem; font-weight: 700;
}
.team-name { font-size: 1.125rem; margin-bottom: .25rem; }
.team-role { font-size: .875rem; color: var(--slate-500); }

.trust-badges {
  display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap;
  padding: 1.5rem 0;
}
.trust-badge {
  display: flex; align-items: center; gap: .5rem;
  font-size: .9375rem; font-weight: 500; color: var(--slate-600);
}
.trust-badge .icon { width: 1.25rem; height: 1.25rem; color: var(--teal); }

.platforms-bar {
  display: flex; align-items: center; justify-content: center; gap: 2rem; flex-wrap: wrap;
  padding: 2rem 0; color: var(--slate-400); font-size: .9375rem; font-weight: 500;
}
.platforms-bar span { opacity: .7; }

.quote-form-wrapper {
  background: var(--white); border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl); padding: 2.5rem;
}

.sitemap-columns { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
.sitemap-group h3 { margin-bottom: 1rem; }
.sitemap-group ul { display: flex; flex-direction: column; gap: .5rem; }
.sitemap-group a { font-size: .9375rem; color: var(--slate-600); transition: color var(--transition); }
.sitemap-group a:hover { color: var(--amber-dark); }

/* Loading overlay for forms */
.form-overlay {
  position: fixed; inset: 0; z-index: 9999; background: rgba(15,23,42,.6);
  display: flex; align-items: center; justify-content: center;
}
.form-spinner {
  width: 2.5rem; height: 2.5rem; border: 3px solid rgba(255,255,255,.3);
  border-top-color: var(--amber); border-radius: 50%;
  animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Toast */
.toast {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 10000;
  padding: 1rem 1.5rem; border-radius: var(--radius-lg); color: var(--white);
  font-weight: 500; font-size: .9375rem;
  animation: slideUp .3s ease;
}
.toast--success { background: var(--green); }
.toast--error { background: var(--red); }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(1rem); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- 17. Utilities --- */
.text-center { text-align: center; }
.text-amber { color: var(--amber); }
.text-navy { color: var(--navy); }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.icon { width: 1.5rem; height: 1.5rem; }
.icon-sm { width: 1rem; height: 1rem; }
.icon-lg { width: 2rem; height: 2rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* --- 18. Responsive --- */
@media (min-width: 640px) {
  .form-grid--2 { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .sitemap-columns { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  .hero-title { font-size: 3.5rem; }
  .features-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .features-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer-bottom-inner { flex-direction: row; justify-content: space-between; text-align: left; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .nav-desktop { display: flex; }
  .mobile-toggle { display: none; }
  .stats-bar { gap: 3rem; }
}
@media (min-width: 1024px) {
  h1 { font-size: 3.5rem; }
  .hero { padding: 6rem 0; }
  .hero-title { font-size: 4rem; }
  .features-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .sitemap-columns { grid-template-columns: repeat(4, 1fr); }
  .section { padding: 6rem 0; }
}

/* Focus styles for accessibility */
*:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}
