:root {
  color-scheme: light;
  --ink: #18202a;
  --muted: #5f6875;
  --line: #d8dee6;
  --paper: #ffffff;
  --soft: #f5f7fa;
  --teal: #0f766e;
  --teal-dark: #0a4f4a;
  --amber: #b45309;
  --blue: #1d4ed8;
  --red: #b42318;
  --shadow: 0 18px 60px rgba(24, 32, 42, 0.12);
}

/* Scroll offset for sticky header */
[id="visa-finder"],
[id="review"],
[id="pricing"] {
  scroll-margin-top: 90px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(1160px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
}

.brand-mark {
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  white-space: nowrap;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  font-weight: 900;
  letter-spacing: 0.2px;
}

.lang-switch {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.lang-switch a {
  min-width: 40px;
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
}

.lang-switch a[aria-current="page"] {
  color: var(--ink);
  border-color: var(--ink);
  background: var(--soft);
}

.hero-band {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #f6f9fb 100%);
}

.hero {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 60px 0 52px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 450px);
  gap: 36px;
  align-items: start;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: 48px;
  line-height: 1.08;
  letter-spacing: 0;
}

.lede {
  max-width: 740px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 17px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.secondary {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.status-row span {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.proof-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.proof {
  min-height: 112px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.proof strong {
  display: block;
  font-size: 15px;
}

.proof span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.decision-questions {
  margin-top: 18px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  background: #fff;
}

.decision-questions strong {
  display: block;
  font-size: 16px;
}

.decision-questions ul {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.decision-questions li {
  position: relative;
  padding-left: 28px;
  color: var(--ink);
  font-weight: 800;
}

.decision-questions li::before {
  content: "?";
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: #ecfdf5;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
}

.hero-side {
  display: grid;
  gap: 16px;
}

.hero-visual {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef2f6;
  box-shadow: var(--shadow);
}

.hero-visual img,
.hero-visual svg {
  display: block;
  width: 100%;
  height: auto;
}

.checker {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.checker-header {
  padding: 22px 22px 0;
}

.checker-header h2 {
  margin: 0;
  font-size: 22px;
}

.checker-header p {
  margin: 8px 0 0;
  color: var(--muted);
}

.checker form {
  padding: 20px 22px 22px;
}

.field {
  margin-bottom: 14px;
}

label {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 800;
}

select,
input,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #c8d1dc;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

textarea {
  resize: vertical;
  min-height: 94px;
}

.result {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.result[data-state="route"] {
  border-color: rgba(29, 78, 216, 0.28);
  background: #eff6ff;
}

.result[data-state="visa"] {
  border-color: rgba(180, 35, 24, 0.25);
  background: #fff4f2;
}

.result[data-state="transit"] {
  border-color: rgba(180, 83, 9, 0.28);
  background: #fff8eb;
}

.result h3 {
  margin: 0;
  font-size: 18px;
}

.result p {
  margin: 8px 0 0;
  color: var(--muted);
}

.result ul {
  margin: 12px 0 0;
  padding-inline-start: 20px;
}

.result li + li {
  margin-top: 6px;
}

.section {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0;
}

.section.compact {
  padding-top: 42px;
}

.section h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.16;
}

.section-intro {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.service-card {
  min-height: 232px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.service-card h3 {
  margin: 0;
  font-size: 20px;
}

.service-card p {
  margin: 10px 0 0;
  color: var(--muted);
}

.service-card .price {
  margin-top: 18px;
  font-size: 28px;
  font-weight: 900;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
}

.step {
  min-height: 190px;
  padding: 20px;
  background: #fff;
}

.step .number {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  background: #ecfdf5;
  color: var(--teal-dark);
  font-weight: 900;
}

.step h3 {
  margin: 16px 0 0;
  font-size: 18px;
}

.step p {
  margin: 8px 0 0;
  color: var(--muted);
}

.review-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.review-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1fr);
  gap: 32px;
  align-items: start;
}

.review-copy h2 {
  max-width: 560px;
}

.review-notes {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.review-notes strong,
.review-notes span {
  display: block;
}

.review-notes span {
  margin-top: 8px;
  color: var(--muted);
}

.lead-form {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.lead-form .field {
  margin-bottom: 14px;
}

.privacy-note {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.lead-result {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(15, 118, 110, 0.28);
  border-radius: 8px;
  background: #edfdfa;
}

.lead-result h3 {
  margin: 0;
}

.lead-result p {
  margin: 8px 0 12px;
  color: var(--muted);
}

.lead-result textarea {
  min-height: 220px;
  margin-bottom: 12px;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 32px;
  align-items: start;
}

.risk-grid,
.trust-grid,
.faq-grid {
  display: grid;
  gap: 14px;
}

.risk-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.trust-grid,
.faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 26px;
}

.risk-card,
.trust-item,
.faq-item {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.risk-card h3,
.faq-item h3 {
  margin: 0;
  font-size: 18px;
}

.risk-card p,
.faq-item p {
  margin: 8px 0 0;
  color: var(--muted);
}

.trust-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-item strong,
.trust-item span {
  display: block;
}

.trust-item span {
  margin-top: 8px;
  color: var(--muted);
}

.privacy-section {
  padding-top: 28px;
}

.source-strip {
  background: #111827;
  color: #fff;
}

.source-strip .section {
  padding: 34px 0;
}

.source-strip p {
  max-width: 980px;
  margin: 0;
  color: #d1d5db;
}

.source-strip a {
  color: #fff;
  font-weight: 800;
}

.footer {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 46px;
  color: var(--muted);
  font-size: 14px;
}

.footer p {
  margin: 0;
}

.footer strong {
  color: var(--ink);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
}

.footer-links a {
  color: var(--ink);
  font-weight: 800;
}

html[dir="rtl"] body {
  text-align: right;
}

html[dir="rtl"] .lang-switch {
  justify-content: flex-start;
}

html[dir="rtl"] .result ul {
  padding-inline-start: 0;
  padding-inline-end: 20px;
}

html[dir="rtl"] .decision-questions {
  border-right: 4px solid var(--teal);
  border-left-width: 1px;
}

html[dir="rtl"] .decision-questions li {
  padding-right: 28px;
  padding-left: 0;
}

html[dir="rtl"] .decision-questions li::before {
  right: 0;
  left: auto;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 42px;
  }

  h1 {
    font-size: 38px;
  }

  .proof-row,
  .grid,
  .workflow,
  .review-layout,
  .split-section,
  .trust-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .risk-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .review-layout {
    gap: 24px;
  }
}

@media (max-width: 700px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .lang-switch {
    justify-content: flex-start;
  }

  h1 {
    font-size: 32px;
  }

  .lede,
  .section-intro {
    font-size: 16px;
  }

  .hero {
    gap: 26px;
  }

  .hero-visual img {
    aspect-ratio: 4 / 3;
  }

  .section h2 {
    font-size: 28px;
  }

  .form-grid,
  .risk-grid {
    grid-template-columns: 1fr;
  }

  .lead-form {
    padding: 18px;
  }

  .button {
    width: 100%;
  }
}

/* ===== Blog Styles ===== */
.blog-list {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 20px;
}

.blog-list h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--ink);
}

.blog-list .intro {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 40px;
}

.blog-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 32px;
  margin-bottom: 20px;
  text-decoration: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.blog-card:hover {
  border-color: var(--teal);
  box-shadow: 0 8px 30px rgba(15, 118, 110, 0.1);
}

.blog-card .card-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--teal);
  background: rgba(15, 118, 110, 0.08);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.blog-card h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--ink);
  line-height: 1.35;
}

.blog-card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 14px;
}

.blog-card .card-meta {
  font-size: 13px;
  color: var(--muted);
  opacity: 0.7;
}

/* Blog article page */
.blog-article {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 20px 80px;
}

.blog-article .article-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--teal);
  background: rgba(15, 118, 110, 0.08);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 18px;
}

.blog-article h1 {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 16px;
  color: var(--ink);
}

.blog-article .article-meta {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.blog-article .article-body h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 40px 0 16px;
  color: var(--ink);
}

.blog-article .article-body h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 28px 0 12px;
  color: var(--ink);
}

.blog-article .article-body p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  margin: 0 0 18px;
}

.blog-article .article-body ul,
.blog-article .article-body ol {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  padding-left: 24px;
  margin: 0 0 18px;
}

.blog-article .article-body li {
  margin-bottom: 8px;
}

.blog-article .article-box {
  background: var(--soft);
  border-radius: 12px;
  padding: 24px 28px;
  margin: 28px 0;
  border-left: 4px solid var(--teal);
}

.blog-article .article-box h3 {
  margin-top: 0;
}

.blog-article .article-cta {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  border-radius: 16px;
  padding: 36px 40px;
  margin: 48px 0 0;
  text-align: center;
}

.blog-article .article-cta h3 {
  color: #fff;
  font-size: 22px;
  margin: 0 0 12px;
}

.blog-article .article-cta p {
  color: rgba(255,255,255,0.85);
  font-size: 16px;
  margin: 0 0 20px;
}

.blog-article .article-cta .button {
  background: #fff;
  color: var(--teal-dark);
  font-weight: 700;
  display: inline-flex;
  width: auto;
  padding: 14px 32px;
}

.blog-article .article-cta .button:hover {
  background: rgba(255,255,255,0.9);
}

@media (max-width: 640px) {
  .blog-article {
    padding: 32px 16px 60px;
  }
  .blog-article h1 {
    font-size: 26px;
  }
  .blog-article .article-cta {
    padding: 28px 24px;
  }
  .blog-card {
    padding: 22px 20px;
  }
}

/* ===== Programmatic country / passport pages ===== */
.country-hero {
  text-align: center;
  max-width: 820px;
  margin-inline: auto;
}

.country-hero h1 {
  margin: 8px 0 16px;
}

.country-hero .hero-actions {
  justify-content: center;
}

.cp-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 16px;
}

.cp-badge-ok {
  color: var(--teal-dark);
  background: rgba(15, 118, 110, 0.12);
  border: 1px solid rgba(15, 118, 110, 0.3);
}

.cp-badge-visa {
  color: var(--amber);
  background: rgba(180, 83, 9, 0.1);
  border: 1px solid rgba(180, 83, 9, 0.3);
}

.cta-section {
  background: var(--soft);
  border-radius: 16px;
  text-align: center;
}

.cta-section .hero-actions {
  justify-content: center;
}

.passport-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.passport-link {
  display: block;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.passport-link:hover {
  border-color: var(--teal);
  box-shadow: 0 6px 20px rgba(15, 118, 110, 0.12);
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .passport-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}
