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

:root {
  --bg: #ffffff;
  --text: #1a1a2e;
  --primary: #16213e;
  --primary-light: #1a1a2e;
  --accent: #c9a227;
  --accent-dark: #a8851d;
  --muted: #6b7280;
  --border: #e5e7eb;
  --card-bg: #f8f9fb;
  --cta-bg: #16213e;
  --cta-hover: #0f1a3a;
  --success: #059669;
  --warning: #d97706;
  --danger: #dc2626;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;
  --max-w: 820px;
  --max-w-wide: 1200px;
  --radius: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.10);
}

html { scroll-behavior: smooth; }

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

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

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-dark); }

/* ===== Layout ===== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.container-wide { max-width: var(--max-w-wide); margin: 0 auto; padding: 0 20px; }

/* ===== Navigation ===== */
.nav {
  background: var(--primary);
  color: #fff;
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.nav-brand {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}
.nav-brand span { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #0f1a3a 100%);
  color: #fff;
  padding: 60px 0 50px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.hero p {
  font-size: clamp(16px, 2.5vw, 20px);
  color: rgba(255,255,255,0.85);
  max-width: 650px;
  margin: 0 auto 30px;
}
.hero-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  margin: 0 auto;
  max-width: 900px;
  width: 100%;
}

/* ===== Quick Answer ===== */
.quick-answer {
  background: var(--card-bg);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 40px 0;
}
.quick-answer h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--primary);
}
.quick-answer ul {
  list-style: none;
  padding: 0;
}
.quick-answer li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-size: 16px;
}
.quick-answer li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ===== Article Body ===== */
.article { padding: 40px 0 60px; }
.article h2 {
  font-size: clamp(22px, 3.5vw, 30px);
  font-weight: 700;
  color: var(--primary);
  margin: 40px 0 16px;
  letter-spacing: -0.02em;
  scroll-margin-top: 80px;
}
.article h3 {
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 700;
  color: var(--primary-light);
  margin: 28px 0 12px;
}
.article p { margin-bottom: 18px; }
.article ul, .article ol { margin: 12px 0 20px 20px; }
.article li { margin-bottom: 8px; }
.article strong { font-weight: 600; color: var(--primary); }

.article img {
  border-radius: var(--radius);
  margin: 30px auto;
  box-shadow: var(--shadow-md);
}

/* ===== CTA Block ===== */
.cta-block {
  background: linear-gradient(135deg, var(--cta-bg) 0%, #0f1a3a 100%);
  border-radius: var(--radius);
  padding: 32px 36px;
  margin: 36px 0;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.cta-block h3 {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}
.cta-block p {
  color: rgba(255,255,255,0.85);
  font-size: 16px;
  margin-bottom: 20px;
}
.cta-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 36px;
  border-radius: 50px;
  border: 2px solid var(--accent);
  transition: all 0.25s ease;
  letter-spacing: 0.02em;
}
.cta-btn:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,162,39,0.35);
}
.cta-btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--primary);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 50px;
  border: 2px solid var(--primary);
  transition: all 0.25s ease;
  margin: 6px;
}
.cta-btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

/* ===== Service Card ===== */
.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 30px;
  margin: 24px 0;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s;
}
.service-card:hover { box-shadow: var(--shadow-md); }
.service-card.featured {
  border: 2px solid var(--accent);
  background: #fffdf5;
}
.service-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.service-badge.silver { background: #9ca3af; }
.service-badge.bronze { background: #b45309; }
.service-card h3 {
  font-size: 22px;
  margin-bottom: 6px;
}
.service-card .service-desc {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 16px;
}
.service-card ul {
  list-style: none;
  padding: 0;
  margin: 12px 0;
}
.service-card ul li {
  padding: 6px 0 6px 26px;
  position: relative;
  font-size: 15px;
}
.service-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}
.service-card .service-cta {
  margin-top: 18px;
}

/* ===== Comparison Table ===== */
.table-wrap {
  overflow-x: auto;
  margin: 30px 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 600px;
}
thead { background: var(--primary); }
thead th {
  color: #fff;
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
}
tbody tr:nth-child(even) { background: var(--card-bg); }
tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
tbody tr:last-child td { border-bottom: none; }

/* ===== Checklist ===== */
.checklist {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 24px 0;
  border: 1px solid var(--border);
}
.checklist ul {
  list-style: none;
  padding: 0;
}
.checklist li {
  padding: 8px 0 8px 30px;
  position: relative;
}
.checklist li::before {
  content: "☐";
  position: absolute;
  left: 0;
  font-size: 18px;
  color: var(--accent);
}

/* ===== Tips ===== */
.tips-list { counter-reset: tip; list-style: none; padding: 0; }
.tips-list li {
  counter-increment: tip;
  padding: 16px 0 16px 48px;
  position: relative;
  border-bottom: 1px solid var(--border);
}
.tips-list li:last-child { border-bottom: none; }
.tips-list li::before {
  content: counter(tip);
  position: absolute;
  left: 0;
  top: 14px;
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
}

/* ===== Stats Block ===== */
.stats-block {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 28px 30px;
  margin: 30px 0;
  border-left: 4px solid var(--primary);
}
.stats-block h3 { margin-bottom: 16px; }
.stats-block ul { list-style: none; padding: 0; }
.stats-block li {
  padding: 10px 0 10px 24px;
  position: relative;
  border-bottom: 1px solid var(--border);
}
.stats-block li:last-child { border-bottom: none; }
.stats-block li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 20px;
  font-weight: 700;
}

/* ===== FAQ ===== */
.faq-section { margin: 40px 0; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  padding: 18px 24px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--card-bg);
  transition: background 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 22px;
  color: var(--accent);
  font-weight: 300;
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] summary { background: #f0f1f4; }
.faq-item .faq-answer {
  padding: 0 24px 18px;
  font-size: 15px;
  color: var(--muted);
}

/* ===== Brainstorming Block ===== */
.brainstorm {
  background: #f0f4ff;
  border-radius: var(--radius);
  padding: 28px 30px;
  margin: 30px 0;
  border: 1px solid #c7d2fe;
}
.brainstorm h3 { margin-bottom: 14px; color: var(--primary); }
.brainstorm ul { list-style: none; padding: 0; }
.brainstorm li {
  padding: 10px 0 10px 28px;
  position: relative;
  font-style: italic;
}
.brainstorm li::before {
  content: "?";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: #4f46e5;
  font-size: 18px;
}

/* ===== Pinterest Image Block ===== */
.pinterest-block {
  text-align: center;
  margin: 40px 0;
}
.pinterest-block img {
  max-width: 450px;
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.pinterest-block figcaption {
  font-size: 14px;
  color: var(--muted);
  margin-top: 10px;
}

/* ===== Video Block ===== */
.video-block {
  margin: 36px 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.video-block video { width: 100%; }

/* ===== Section Divider ===== */
.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

/* ===== Footer ===== */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 24px;
  margin-top: 40px;
}
.footer-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}
.footer h4 {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 14px;
}
.footer ul { list-style: none; padding: 0; }
.footer ul li { margin-bottom: 8px; }
.footer a { color: rgba(255,255,255,0.7); font-size: 14px; }
.footer a:hover { color: var(--accent); }
.footer-bottom {
  max-width: var(--max-w-wide);
  margin: 32px auto 0;
  padding: 20px 20px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* ===== Language Bar ===== */
.lang-bar {
  background: #f1f3f6;
  padding: 10px 0;
  text-align: center;
  font-size: 13px;
}
.lang-bar a {
  margin: 0 8px;
  color: var(--muted);
  font-weight: 500;
}
.lang-bar a:hover { color: var(--primary); }

/* ===== RTL Support ===== */
[dir="rtl"] .quick-answer { border-left: none; border-right: 4px solid var(--accent); }
[dir="rtl"] .quick-answer li { padding: 8px 28px 8px 0; }
[dir="rtl"] .quick-answer li::before { left: auto; right: 0; }
[dir="rtl"] .stats-block { border-left: none; border-right: 4px solid var(--primary); }
[dir="rtl"] .stats-block li { padding: 10px 24px 10px 0; }
[dir="rtl"] .stats-block li::before { left: auto; right: 0; }
[dir="rtl"] .checklist li { padding: 8px 30px 8px 0; }
[dir="rtl"] .checklist li::before { left: auto; right: 0; }
[dir="rtl"] .tips-list li { padding: 16px 48px 16px 0; }
[dir="rtl"] .service-card ul li { padding: 6px 26px 6px 0; }
[dir="rtl"] .service-card ul li::before { left: auto; right: 0; }
[dir="rtl"] .brainstorm li { padding: 10px 28px 10px 0; }
[dir="rtl"] .brainstorm li::before { left: auto; right: 0; }
[dir="rtl"] .article ul, [dir="rtl"] .article ol { margin: 12px 20px 20px 0; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  body { font-size: 16px; }
  .nav-inner { flex-direction: column; gap: 12px; }
  .nav-links { justify-content: center; gap: 12px; }
  .nav-links a { font-size: 13px; }
  .hero { padding: 40px 0 30px; }
  .cta-block { padding: 24px 20px; }
  .service-card { padding: 20px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .article h2 { margin-top: 32px; }
}

@media (max-width: 480px) {
  .container, .container-wide { padding: 0 16px; }
  .hero h1 { font-size: 26px; }
  .cta-btn { padding: 12px 28px; font-size: 15px; }
}

/* ===== Print ===== */
@media print {
  .nav, .cta-block, .footer, .lang-bar { display: none; }
  body { font-size: 12pt; }
}
