/* Paper Writing Services Online — shared styles */
:root {
  --bg: #ffffff;
  --text: #1a1a2e;
  --muted: #555770;
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --accent: #f59e0b;
  --surface: #f8fafc;
  --border: #e2e8f0;
  --radius: 12px;
  --max-width: 820px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--primary); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; flex-wrap: wrap; gap: 12px; }
.brand { font-weight: 800; font-size: 1.05rem; color: var(--text); }
.main-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.main-nav a { color: var(--muted); font-size: 0.95rem; font-weight: 500; }

/* Breadcrumbs */
.breadcrumbs { margin: 20px 0 0; font-size: 0.85rem; color: var(--muted); }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; gap: 8px; }
.breadcrumbs li::after { content: "›"; margin-left: 8px; color: var(--border); }
.breadcrumbs li:last-child::after { content: ""; }

/* Article */
.article { max-width: var(--max-width); margin: 24px auto 60px; }
.article h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.2; margin: 8px 0 4px; }
.article h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 36px 0 12px; }
.article h3 { font-size: 1.3rem; margin: 24px 0 8px; }
.article h4 { font-size: 1.05rem; margin: 16px 0 6px; }
.article p { margin: 0 0 16px; }
.updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 24px; }

/* Quick answer */
.quick-answer {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 20px 0 28px;
}
.quick-answer__title { margin-top: 0; font-size: 1.25rem; }
.quick-answer ul { margin: 8px 0 0; padding-left: 20px; }
.quick-answer li { margin-bottom: 8px; }

/* CTA banner */
.cta-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: #fff;
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 28px 0;
}
.cta-banner--alt { background: linear-gradient(135deg, #f59e0b, #d97706); }
.cta-banner__text h2 { color: #fff; margin: 0 0 6px; font-size: 1.4rem; }
.cta-banner__text p { margin: 0; opacity: 0.95; }
.cta-banner a { text-decoration: none; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; box-shadow: 0 8px 20px rgba(0,0,0,0.18); }
.btn-primary { background: #fff; color: var(--primary-dark); }
.cta-banner .btn-primary { background: #fff; color: var(--primary-dark); }
.cta-banner--alt .btn-primary { background: #fff; color: #b45309; }
.btn-secondary { background: var(--primary); color: #fff; }
.btn-secondary:hover { background: var(--primary-dark); }

/* Service cards */
.service-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 18px 0;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.service-card--top {
  border-color: var(--primary);
  border-width: 2px;
  background: linear-gradient(180deg, #eff6ff, #ffffff 120px);
}
.rank-badge { display: inline-block; font-size: 0.9rem; font-weight: 800; color: var(--accent); margin-bottom: 4px; }
.service-card h3 { margin-top: 4px; }
.best-for { background: var(--surface); padding: 8px 14px; border-radius: 8px; font-size: 0.95rem; }
.service-card ul { padding-left: 20px; }
.service-card .btn { margin-top: 8px; }

/* Checklist */
.checklist { list-style: none; padding-left: 0; }
.checklist li { padding-left: 28px; position: relative; margin-bottom: 10px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: #16a34a; font-weight: 800; }

.tips { padding-left: 20px; }
.tips li { margin-bottom: 12px; }

/* Callouts */
.callout {
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 20px 0;
  border: 1px solid var(--border);
}
.callout--mistake { background: #fef2f2; border-color: #fecaca; border-left: 4px solid #dc2626; }
.callout--expert { background: #eff6ff; border-color: #bfdbfe; border-left: 4px solid var(--primary); }
.callout h3 { margin-top: 0; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 16px 0 24px; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 560px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); }
th { background: var(--surface); font-weight: 700; }
tbody tr:hover { background: #f9fafb; }

/* Footer */
.site-footer { background: #0f172a; color: #cbd5e1; margin-top: 60px; padding: 40px 0 24px; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-inner .brand { color: #fff; }
.site-footer a { color: #93c5fd; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.disclosure { text-align: center; font-size: 0.8rem; color: #64748b; margin-top: 24px; padding: 0 20px; }

/* Legal pages */
.legal { max-width: 760px; margin: 40px auto 60px; }
.legal h1 { font-size: 2rem; margin-bottom: 8px; }
.legal h2 { font-size: 1.3rem; margin: 28px 0 8px; }
.legal p, .legal li { font-size: 0.98rem; }

@media (max-width: 640px) {
  .article { font-size: 17px; }
  .header-inner { height: auto; padding: 12px 0; }
  .main-nav { font-size: 0.85rem; gap: 12px; }
}
