/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary: #1a3a5c;
  --color-accent: #2563eb;
  --color-accent-dark: #1d4ed8;
  --color-bg: #ffffff;
  --color-bg-alt: #f8fafc;
  --color-bg-dark: #0f172a;
  --color-text: #1e293b;
  --color-text-light: #64748b;
  --color-border: #e2e8f0;
  --color-success: #059669;
  --color-warning: #d97706;
  --radius: 10px;
  --radius-sm: 6px;
  --max-width: 860px;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: Georgia, "Times New Roman", serif;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--color-accent-dark);
  text-decoration: underline;
}

/* ===== Layout ===== */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

.article {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 20px 60px;
}

/* ===== Header ===== */
.site-header {
  background: var(--color-bg-dark);
  color: #fff;
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.logo {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-heading);
  text-decoration: none;
}

.logo:hover {
  color: #93c5fd;
  text-decoration: none;
}

.main-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.main-nav a {
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}

.main-nav a:hover {
  color: #fff;
  text-decoration: none;
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.3;
  margin-bottom: 16px;
}

h1 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  margin-bottom: 8px;
}

h2 {
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  margin-top: 40px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-border);
}

h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  margin-top: 28px;
}

h4 {
  font-size: 1rem;
  margin-top: 20px;
}

p {
  margin-bottom: 18px;
}

.last-updated {
  color: var(--color-text-light);
  font-size: 14px;
  margin-bottom: 28px;
}

/* ===== Quick Answer ===== */
.quick-answer {
  background: var(--color-bg-alt);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 28px 0 36px;
}

.quick-answer-title {
  border-bottom: none;
  margin-top: 0;
  font-size: 1.2rem;
  color: var(--color-accent);
}

.quick-answer ul {
  list-style: none;
  padding: 0;
}

.quick-answer li {
  padding: 6px 0;
  position: relative;
  padding-left: 24px;
}

.quick-answer li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: 700;
}

/* ===== Service Reviews ===== */
.service-review {
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.service-review h3 {
  color: var(--color-primary);
}

/* ===== CTA Blocks ===== */
.cta-block {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.cta-block p {
  margin-bottom: 0;
  flex: 1;
  min-width: 200px;
  font-size: 15px;
}

.cta-button {
  display: inline-block;
  background: var(--color-accent);
  color: #fff !important;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.1s ease;
  text-align: center;
}

.cta-button:hover {
  background: var(--color-accent-dark);
  text-decoration: none !important;
  transform: translateY(-1px);
}

/* ===== CTA Banner ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, #0f172a 100%);
  border-radius: var(--radius);
  padding: 36px 32px;
  margin: 36px 0;
  text-align: center;
}

.cta-banner-large {
  padding: 48px 32px;
  margin-top: 40px;
}

.cta-banner .cta-content h3 {
  color: #fff;
  border-bottom: none;
  margin-top: 0;
  font-size: 1.5rem;
}

.cta-banner .cta-content p {
  color: #cbd5e1;
  font-size: 16px;
  margin-bottom: 20px;
}

.cta-banner .cta-button {
  background: #fff;
  color: var(--color-primary) !important;
  font-size: 16px;
  padding: 14px 36px;
}

.cta-banner .cta-button:hover {
  background: #e2e8f0;
  color: var(--color-primary) !important;
}

/* ===== Tables ===== */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
  display: block;
  overflow-x: auto;
  white-space: nowrap;
}

.comparison-table th,
.comparison-table td {
  padding: 12px 16px;
  text-align: left;
  border: 1px solid var(--color-border);
}

.comparison-table thead th {
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}

.comparison-table tbody tr:nth-child(even) {
  background: var(--color-bg-alt);
}

.comparison-table tbody tr:hover {
  background: #eff6ff;
}

.table-note {
  font-size: 13px;
  color: var(--color-text-light);
  font-style: italic;
}

/* ===== Checklists ===== */
.checklist {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 24px 0;
}

.checklist h3 {
  margin-top: 0;
  color: var(--color-accent);
  border-bottom: none;
}

.checklist-list {
  list-style: none;
  padding: 0;
}

.checklist-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 15px;
}

.checklist-list li:last-child {
  border-bottom: none;
}

/* ===== Tip Cards ===== */
.tip-card {
  background: #f0fdf4;
  border-left: 4px solid var(--color-success);
  border-radius: var(--radius-sm);
  padding: 18px 24px;
  margin-bottom: 16px;
}

.tip-card h3 {
  margin-top: 0;
  font-size: 1.05rem;
  color: var(--color-success);
  border-bottom: none;
}

/* ===== Mistake Cards ===== */
.mistake-card {
  background: #fff7ed;
  border-left: 4px solid var(--color-warning);
  border-radius: var(--radius-sm);
  padding: 18px 24px;
  margin-bottom: 16px;
}

.mistake-card h3 {
  margin-top: 0;
  font-size: 1.05rem;
  color: var(--color-warning);
  border-bottom: none;
}

/* ===== Expert Cards ===== */
.expert-card {
  background: #f5f3ff;
  border-left: 4px solid #7c3aed;
  border-radius: var(--radius-sm);
  padding: 18px 24px;
  margin-bottom: 16px;
}

.expert-card h3 {
  margin-top: 0;
  font-size: 1.05rem;
  color: #7c3aed;
  border-bottom: none;
}

/* ===== FAQ ===== */
#faq {
  margin-top: 48px;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 16px 0;
}

.faq-item h3 {
  margin-top: 0;
  font-size: 1.05rem;
  color: var(--color-primary);
  border-bottom: none;
}

.faq-item p {
  margin-bottom: 0;
  font-size: 15px;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--color-bg-dark);
  color: #cbd5e1;
  padding: 48px 0 0;
  margin-top: 60px;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  padding-bottom: 32px;
}

.footer-col h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col p {
  font-size: 14px;
  line-height: 1.6;
  color: #94a3b8;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: #cbd5e1;
  font-size: 14px;
  text-decoration: none;
}

.footer-col a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding: 18px 0;
}

.footer-bottom p {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 0;
}

.footer-bottom span {
  color: #475569;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 12px;
  }

  .article {
    padding: 24px 16px 40px;
  }

  .cta-block {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .cta-block p {
    text-align: center;
  }

  .cta-button {
    width: 100%;
  }

  .cta-banner {
    padding: 28px 20px;
  }

  .quick-answer {
    padding: 18px 20px;
  }
}
