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

:root {
  --bg: #ffffff;
  --bg-alt: #f7f8fa;
  --bg-dark: #1a1a2e;
  --text: #1a1a2e;
  --text-muted: #5a5a72;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #eff6ff;
  --accent: #f59e0b;
  --border: #e2e5ec;
  --radius: 10px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --max-width: 820px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

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

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

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

/* ===== Header ===== */
.site-header {
  background: var(--bg-dark);
  color: #fff;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.site-header .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.logo { color: #fff; font-weight: 700; font-size: 20px; text-decoration: none; letter-spacing: -0.3px; }
.logo:hover { text-decoration: none; }
.main-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.main-nav a { color: #c5c8d6; font-size: 15px; text-decoration: none; transition: color .2s; }
.main-nav a:hover { color: #fff; text-decoration: none; }

/* ===== Hero ===== */
.hero { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); color: #fff; padding: 56px 0 48px; }
.hero h1 { font-size: 34px; line-height: 1.25; margin-bottom: 16px; letter-spacing: -0.5px; max-width: 720px; }
.hero .lead { font-size: 18px; color: #c5c8d6; max-width: 700px; margin-bottom: 28px; }

.quick-answer {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 28px;
  backdrop-filter: blur(4px);
}
.quick-answer h2 { font-size: 20px; margin-bottom: 14px; color: #fff; }
.quick-answer ol { padding-left: 20px; color: #d5d8e6; }
.quick-answer ol li { margin-bottom: 8px; }
.quick-answer p { margin-top: 14px; color: #d5d8e6; font-size: 15px; }

/* ===== CTA Blocks ===== */
.cta-block {
  background: var(--primary-light);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  margin: 24px 0;
  box-shadow: var(--shadow-sm);
}
.cta-block h3 { font-size: 20px; margin-bottom: 10px; color: var(--text); }
.cta-block p { color: var(--text-muted); margin-bottom: 16px; }
.cta-final {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
}
.cta-final h3, .cta-final p { color: #fff; }

.cta-button {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 13px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: background .2s, transform .1s;
  border: none;
  cursor: pointer;
}
.cta-button:hover { background: var(--primary-dark); text-decoration: none; transform: translateY(-1px); }
.cta-final .cta-button { background: #fff; color: var(--primary); }
.cta-final .cta-button:hover { background: #f0f4ff; }

/* ===== Content Sections ===== */
.content-section { padding: 40px 0; }
.content-section h2 { font-size: 26px; margin: 32px 0 16px; letter-spacing: -0.3px; line-height: 1.3; }
.content-section h2:first-child { margin-top: 0; }
.content-section h3 { font-size: 20px; margin: 24px 0 10px; }
.content-section h4 { font-size: 17px; margin: 16px 0 8px; }
.content-section p { margin-bottom: 16px; color: var(--text); }
.content-section ul, .content-section ol { margin-bottom: 16px; padding-left: 24px; }
.content-section li { margin-bottom: 8px; }

/* ===== Service Reviews ===== */
.service-review {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 24px;
  margin: 24px 0;
}
.service-review h3 { margin-top: 0; }
.service-review .cta-block { background: #fff; }

/* ===== Tables ===== */
.table-wrapper { overflow-x: auto; margin: 20px 0; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 500px; }
thead { background: var(--bg-dark); }
th { color: #fff; padding: 12px 14px; text-align: left; font-weight: 600; }
td { padding: 11px 14px; border-bottom: 1px solid var(--border); }
tbody tr:nth-child(even) { background: var(--bg-alt); }
tbody tr:hover { background: var(--primary-light); }

/* ===== Checklists ===== */
.checklist {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 20px 0;
}
.checklist h4 { color: var(--primary-dark); margin-bottom: 12px; }
.checklist ul { list-style: none; padding-left: 0; }
.checklist li { margin-bottom: 10px; font-size: 16px; }

/* ===== Tips List ===== */
.tips-list { counter-reset: tip; list-style: none; padding-left: 0; }
.tips-list li {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 12px;
  border-left: 3px solid var(--accent);
}

/* ===== Mistake & Expert Blocks ===== */
.mistake-block {
  background: #fef3f2;
  border: 1px solid #fecdca;
  border-left: 4px solid #f04438;
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 16px 0;
}
.mistake-block h3 { color: #b42318; margin-top: 0; }

.expert-block {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-left: 4px solid #16a34a;
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 16px 0;
}
.expert-block h3 { color: #15803d; margin-top: 0; }

/* ===== FAQ ===== */
.faq-item { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq-item h3 { font-size: 17px; color: var(--text); margin-bottom: 8px; }
.faq-item p { color: var(--text-muted); margin: 0; }

/* ===== Regional Links ===== */
.regional-links { margin-top: 32px; }
.regional-links ul { list-style: none; padding-left: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.regional-links li a { display: block; padding: 10px 14px; background: var(--bg-alt); border-radius: var(--radius); border: 1px solid var(--border); }

/* ===== Footer ===== */
.site-footer { background: var(--bg-dark); color: #a0a3b1; padding: 36px 0 28px; margin-top: 40px; }
.footer-nav { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; margin-bottom: 18px; }
.footer-nav a { color: #c5c8d6; font-size: 14px; text-decoration: none; }
.footer-nav a:hover { color: #fff; text-decoration: none; }
.disclaimer { font-size: 13px; color: #6b6e7c; text-align: center; margin-bottom: 10px; max-width: 640px; margin-left: auto; margin-right: auto; }
.site-footer p:last-child { text-align: center; font-size: 14px; }

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .hero h1 { font-size: 26px; }
  .hero .lead { font-size: 16px; }
  .content-section h2 { font-size: 22px; }
  .content-section h3 { font-size: 18px; }
  body { font-size: 16px; }
  .main-nav { gap: 14px; }
  .main-nav a { font-size: 14px; }
  .regional-links ul { grid-template-columns: 1fr; }
  .cta-button { padding: 12px 24px; font-size: 15px; }
  .site-header .container { flex-direction: column; align-items: flex-start; }
  .main-nav { width: 100%; justify-content: space-between; }
}

@media (max-width: 400px) {
  .main-nav a { font-size: 13px; }
}
