:root {
  --ink: #18221f;
  --muted: #617169;
  --paper: #f7f4ed;
  --panel: #ffffff;
  --line: rgba(24, 34, 31, 0.14);
  --green: #2f6b56;
  --green-dark: #1d4438;
  --blue: #315f7d;
  --terracotta: #b85f41;
  --mustard: #c99a44;
  --rose: #8f4f5d;
  --shadow: 0 18px 48px rgba(26, 38, 34, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
}

a {
  color: var(--green-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 12px clamp(16px, 4vw, 48px);
  background: rgba(247, 244, 237, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 285px;
  color: var(--ink);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--green);
  color: white;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  display: flex;
  gap: 16px;
  align-items: center;
  flex: 1;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  white-space: nowrap;
  font-size: 14px;
}

.nav-links a {
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 720px;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.resource-hero {
  padding: clamp(86px, 11vw, 138px) clamp(16px, 4vw, 48px) clamp(54px, 7vw, 86px);
  background:
    linear-gradient(90deg, rgba(22, 35, 31, 0.96), rgba(47, 107, 86, 0.88)),
    url("assets/bangkok-services.png") center/cover;
  color: white;
}

.resource-hero .section-heading {
  margin-bottom: 0;
}

.resource-hero h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}

.resource-hero p:not(.eyebrow) {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2vw, 23px);
}

.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 24, 21, 0.86), rgba(21, 34, 31, 0.58) 50%, rgba(21, 34, 31, 0.08)),
    linear-gradient(0deg, rgba(13, 24, 21, 0.76), rgba(13, 24, 21, 0.02) 56%);
}

.hero-copy {
  position: relative;
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
  padding: 120px 0 56px;
  color: white;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--mustard);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}

.lede {
  max-width: 780px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2vw, 23px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 850;
}

.button.primary {
  background: var(--mustard);
  color: #1c1408;
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: white;
}

.alert-band {
  width: min(1160px, calc(100% - 32px));
  margin: -28px auto 0;
  position: relative;
  z-index: 3;
  padding: 18px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 6px solid var(--terracotta);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.inline-alert {
  margin-top: 18px;
  margin-bottom: 0;
}

.resources-alert {
  margin-top: 0;
}

.section {
  padding: clamp(58px, 8vw, 98px) clamp(16px, 4vw, 48px);
}

.band {
  background: #ece7de;
}

.section-heading {
  width: min(1060px, 100%);
  margin: 0 auto 30px;
}

.section-heading h2,
.pathway-grid h2,
.sources h2 {
  margin: 0;
  max-width: 850px;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.04;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow) {
  max-width: 780px;
  color: var(--muted);
  font-size: 18px;
}

.intro-grid {
  display: grid;
  gap: 30px;
}

.stat-grid,
.question-grid,
.domain-grid,
.country-matrix,
.resource-grid {
  width: min(1160px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.stat-grid article,
.question-grid article,
.country-matrix article,
.resource-grid article,
.domain-card,
.cards article,
.pathway-grid article,
.comparison article,
.prose-card,
.checklist {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.resource-grid {
  grid-template-columns: repeat(4, 1fr);
}

.resource-grid span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: #d9e4dc;
  color: var(--green-dark);
  font-weight: 900;
}

.stat-grid span {
  display: block;
  margin-bottom: 12px;
  color: var(--terracotta);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.1;
}

h3 {
  margin: 0 0 8px;
  line-height: 1.18;
}

p,
li {
  color: var(--muted);
}

.image-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.image-row figure {
  position: relative;
  margin: 0;
  min-height: 270px;
  overflow: hidden;
}

.image-row img {
  width: 100%;
  height: 100%;
  min-height: 270px;
  object-fit: cover;
}

.image-row figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.comparison {
  width: min(1160px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.comparison .featured {
  border-top: 6px solid var(--green);
}

.domain-strategy {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 22px;
}

.network-strategy {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 22px;
}

.comparison ul,
.sources ul {
  padding-left: 20px;
}

.country-matrix {
  grid-template-columns: repeat(3, 1fr);
}

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

.calculator {
  width: min(1060px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
}

.calc-panel,
.result-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.calc-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

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

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

textarea {
  resize: vertical;
  line-height: 1.45;
}

.resource-form {
  width: min(1060px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.service-tools {
  width: min(1160px, 100%);
  margin: 0 auto 14px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.6fr);
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.service-tools label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.directory-count {
  width: min(1160px, 100%);
  margin: 0 auto 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.map-panel {
  width: min(1160px, 100%);
  margin: 0 auto 14px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.map-panel h3,
.map-panel p {
  margin: 0;
}

.map-panel p:not(.eyebrow) {
  max-width: 760px;
}

.service-directory {
  width: min(1160px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.service-card {
  display: grid;
  gap: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.service-card header {
  display: grid;
  gap: 8px;
}

.service-card h3,
.service-card p {
  margin: 0;
}

.service-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.service-meta span,
.service-status,
.risk-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 8px;
  border-radius: 8px;
  background: #eef3ef;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 850;
}

.service-status {
  width: fit-content;
  background: #f4eadf;
  color: #6b3f2f;
}

.service-card a {
  width: fit-content;
  font-weight: 850;
}

.service-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hidden-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.checkbox-field {
  display: flex;
  grid-column: 1 / -1;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink);
  font-size: 14px;
}

.checkbox-field input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
}

.risk-review {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f4ed;
}

.risk-review ul {
  margin: 0;
  padding-left: 18px;
}

.risk-high {
  background: #f9e4df;
  color: #6e2e21;
}

.risk-medium {
  background: #f4eadf;
  color: #6b3f2f;
}

.risk-low {
  background: #eef3ef;
  color: var(--green-dark);
}

.resource-form label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.wide-field,
.practice-actions,
.resource-form .map-status {
  grid-column: 1 / -1;
}

.practice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.form-button {
  border: 1px solid var(--line);
}

.form-button.secondary,
.button.secondary.light {
  background: var(--panel);
  color: var(--ink);
}

.map-status {
  margin: 0;
  font-size: 13px;
}

.practice-preview {
  width: min(1060px, 100%);
  margin: 14px auto 0;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fffdf9;
}

.result-panel {
  display: grid;
  gap: 14px;
}

.result-panel > div {
  display: grid;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.result-panel span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.result-panel strong {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
}

.result-panel .saving strong {
  color: var(--green-dark);
}

#scenarioNote {
  margin: 0;
  font-size: 13px;
}

.pathway-grid {
  width: min(1160px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.pathway-grid article:first-child {
  grid-column: span 2;
  background: var(--green-dark);
}

.pathway-grid article:first-child h2,
.pathway-grid article:first-child p {
  color: white;
}

.cards {
  width: min(1160px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.cards.three {
  grid-template-columns: repeat(3, 1fr);
}

.visa-table-wrap {
  width: min(1160px, 100%);
  margin: 18px auto 0;
  overflow-x: auto;
}

.visa-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.visa-table th,
.visa-table td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.visa-table th {
  background: #d9e4dc;
  color: var(--ink);
}

.visa-table td {
  color: var(--muted);
}

.insurance-layout {
  width: min(1060px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.checklist {
  display: grid;
  gap: 12px;
}

.checklist h3 {
  margin-bottom: 2px;
}

.checklist label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
}

.checklist input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
}

.domain-tabs {
  width: min(1160px, 100%);
  margin: 0 auto 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.domain-tabs button {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.domain-tabs button.active {
  background: var(--green-dark);
  color: white;
}

.domain-card strong,
.domain-card small {
  display: block;
}

.domain-card strong {
  color: var(--green-dark);
  word-break: break-word;
}

.domain-card small {
  margin-top: 6px;
  color: var(--muted);
}

.sources {
  padding: 44px clamp(16px, 4vw, 48px);
  background: #16231f;
  color: white;
}

.sources h2,
.sources p,
.sources li,
.sources a {
  color: white;
}

.sources h2,
.sources p,
.sources ul {
  width: min(1060px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(16px, 4vw, 48px);
  background: #101916;
  color: white;
}

.site-footer p {
  max-width: 820px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer a {
  color: white;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand {
    min-width: 0;
  }

  .stat-grid,
  .question-grid,
  .domain-grid,
  .country-matrix,
  .resource-grid,
  .service-directory,
  .pathway-grid,
  .image-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .pathway-grid article:first-child {
    grid-column: span 2;
  }

  .calculator,
  .comparison,
  .insurance-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-header {
    position: static;
  }

  .hero {
    min-height: 620px;
  }

  .hero-copy {
    padding: 86px 0 44px;
  }

  .hero h1,
  .resource-hero h1 {
    font-size: clamp(38px, 13vw, 58px);
  }

  .stat-grid,
  .question-grid,
  .domain-grid,
  .country-matrix,
  .resource-grid,
  .pathway-grid,
  .image-row,
  .cards.three,
  .calc-panel,
  .resource-form,
  .service-tools,
  .service-directory,
  .map-panel {
    grid-template-columns: 1fr;
  }

  .map-panel {
    display: grid;
    align-items: start;
  }

  .pathway-grid article:first-child {
    grid-column: span 1;
  }

  .site-footer {
    flex-direction: column;
  }
}
