/* CraftCVs Shared SEO Landing Page Stylesheet
   Mobile-first, system fonts, zero frameworks, zero external dependencies */

:root {
  --bg-primary: #f8fafc;
  --bg-surface: #ffffff;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --border-subtle: #e2e8f0;
  --brand-blue: #2563eb;
  --brand-blue-hover: #1d4ed8;
  --brand-navy: #0f172a;
  --accent-green-bg: #f0fdf4;
  --accent-green-border: #86efac;
  --accent-red-bg: #fef2f2;
  --accent-red-border: #fca5a5;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}

.header-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 19px;
  color: var(--brand-navy);
  text-decoration: none;
}

.brand-badge {
  background: #eff6ff;
  color: var(--brand-blue);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #bfdbfe;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  background-color: var(--brand-blue);
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.header-cta:hover {
  background-color: var(--brand-blue-hover);
  text-decoration: none;
}

.breadcrumbs {
  max-width: 900px;
  margin: 16px auto 0;
  padding: 0 20px;
  font-size: 13px;
  color: var(--text-light);
}

.breadcrumbs ol {
  display: flex;
  list-style: none;
  gap: 8px;
  flex-wrap: wrap;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: var(--text-light);
}

.main-content {
  max-width: 900px;
  margin: 20px auto 40px;
  padding: 0 20px;
}

.article-container {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 640px) {
  .article-container {
    padding: 44px 40px;
  }
}

h1 {
  font-size: 26px;
  line-height: 1.25;
  font-weight: 800;
  color: var(--brand-navy);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

@media (min-width: 640px) {
  h1 {
    font-size: 34px;
  }
}

.lead-paragraph {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-cta-box {
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

@media (min-width: 640px) {
  .hero-cta-box {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.hero-cta-text h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 4px;
}

.hero-cta-text p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 0;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--brand-blue);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
  transition: background-color 0.15s ease;
}

.btn-primary:hover {
  background-color: var(--brand-blue-hover);
  text-decoration: none;
}

h2 {
  font-size: 21px;
  font-weight: 700;
  color: var(--brand-navy);
  margin-top: 36px;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

@media (min-width: 640px) {
  h2 {
    font-size: 24px;
  }
}

h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--brand-navy);
  margin-top: 20px;
  margin-bottom: 8px;
}

p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

ul, ol {
  color: var(--text-muted);
  padding-left: 22px;
  margin-bottom: 18px;
}

li {
  margin-bottom: 8px;
}

strong {
  color: var(--text-main);
}

/* Comparison Before / After Boxes */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 24px 0 32px;
}

@media (min-width: 640px) {
  .comparison-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.comparison-box {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 1.6;
}

.comparison-box.before {
  background-color: var(--accent-red-bg);
  border: 1px solid var(--accent-red-border);
  border-left: 4px solid #ef4444;
}

.comparison-box.after {
  background-color: var(--accent-green-bg);
  border: 1px solid var(--accent-green-border);
  border-left: 4px solid #22c55e;
}

.comparison-label {
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.comparison-box.before .comparison-label {
  color: #b91c1c;
}

.comparison-box.after .comparison-label {
  color: #15803d;
}

/* FAQ Accordion Section */
.faq-section {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  background-color: #fafbfc;
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 16px;
  color: var(--brand-navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 18px;
  color: var(--text-light);
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-answer {
  padding: 0 20px 16px 20px;
  color: var(--text-muted);
  font-size: 15px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* Bottom Call to Action */
.bottom-cta-banner {
  text-align: center;
  background: #0f172a;
  color: #ffffff;
  padding: 36px 24px;
  border-radius: var(--radius-lg);
  margin-top: 48px;
}

.bottom-cta-banner h2 {
  color: #ffffff;
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 22px;
}

.bottom-cta-banner p {
  color: #94a3b8;
  max-width: 560px;
  margin: 0 auto 20px;
  font-size: 15px;
}

.bottom-cta-banner .btn-primary {
  background-color: #3b82f6;
}

.bottom-cta-banner .btn-primary:hover {
  background-color: #2563eb;
}

/* Footer Navigation */
.site-footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 40px 20px 30px;
  margin-top: 60px;
}

.footer-container {
  max-width: 900px;
  margin: 0 auto;
}

.footer-heading {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  margin-bottom: 16px;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 30px;
}

@media (min-width: 520px) {
  .footer-links-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 768px) {
  .footer-links-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.footer-links-grid a {
  color: var(--text-muted);
  font-size: 14px;
  transition: color 0.15s ease;
}

.footer-links-grid a:hover {
  color: var(--brand-blue);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--text-light);
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
