:root {
  --primary: #b00020;
  --primary-strong: #d11f32;
  --primary-deep: #6f0012;
  --ink: #1b1c1c;
  --muted: #65413f;
  --line: #f0c6c2;
  --surface: #fffafa;
  --surface-soft: #fff0ef;
  --surface-muted: #f7dedb;
  --dark: #2a090b;
  --red-field: #8f000d;
  --white: #ffffff;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

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

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

h1,
h2,
h3 {
  margin: 0 0 1rem;
  line-height: 1.12;
}

h1 {
  font-size: clamp(2.35rem, 7vw, 4.5rem);
  max-width: 850px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: 1.25rem;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.narrow {
  max-width: 820px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 249, 248, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: var(--primary);
  font-weight: 800;
  letter-spacing: 0;
}

.nav {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-weight: 600;
}

.nav a:hover,
.text-link:hover {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
}

.language-switcher a {
  display: inline-flex;
  min-width: 30px;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.language-switcher a[aria-current="true"] {
  background: var(--primary);
  color: var(--white);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--primary);
  border-radius: 4px;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
}

.button:hover {
  background: var(--primary-strong);
}

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

.button.small {
  min-height: 40px;
  padding: 0 18px;
}

.final-cta,
.post-hero,
.page-hero {
  background: var(--dark);
  color: var(--white);
  background-image: radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.08) 1px, transparent 0);
  background-size: 24px 24px;
}

.hero {
  position: relative;
  padding: 104px 0 88px;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(87, 0, 12, 0.82) 0%, rgba(143, 0, 13, 0.62) 44%, rgba(143, 0, 13, 0.14) 100%),
    url("/assets/img/indonesia-hero.jpg") center / cover no-repeat;
}

.hero-content p {
  max-width: 780px;
  color: #e4e2e1;
  font-size: 1.125rem;
}

.eyebrow {
  display: block;
  margin-bottom: 12px;
  color: #ffb4ac;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.feature-strip {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 18px;
  padding: 22px 0;
  overflow-x: auto;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
}

.section {
  padding: 76px 0;
}

.muted {
  background: var(--surface-soft);
}

.dark {
  background:
    linear-gradient(135deg, var(--primary-deep) 0%, var(--red-field) 58%, #c92734 100%);
  color: var(--white);
}

.dark p,
.dark li,
.dark span {
  color: #e4e2e1;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 48px;
  align-items: start;
}

.callout,
.panel,
.info-card,
.post-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.callout {
  padding: 28px;
  border-left: 5px solid var(--primary);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
}

.card-grid {
  display: grid;
  gap: 18px;
}

.card-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.info-card {
  padding: 28px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.steps article {
  text-align: center;
}

.steps span {
  display: inline-flex;
  width: 72px;
  height: 72px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 4px;
  background: var(--primary);
  color: var(--white);
  font-size: 1.6rem;
  font-weight: 800;
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.check-list li::before {
  content: "✓";
  margin-right: 10px;
  color: #ffb4ac;
  font-weight: 800;
}

.panel {
  padding: 32px;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
}

.form-sections {
  padding: 0;
  margin: 0;
  list-style: none;
}

.form-sections li {
  display: grid;
  gap: 4px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.form-sections li:last-child {
  border-bottom: 0;
}

.final-cta,
.page-hero,
.post-hero {
  padding: 88px 0;
  text-align: center;
}

.final-cta p,
.page-hero p,
.post-hero p {
  color: #e4e2e1;
}

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

.post-card {
  padding: 28px;
}

.post-card h2 {
  font-size: 1.45rem;
}

.post-date,
.text-link {
  color: var(--primary);
  font-weight: 800;
}

.prose {
  padding: 64px 0;
}

.prose h2 {
  margin-top: 2rem;
  font-size: 1.7rem;
}

.prose a {
  color: var(--primary);
  text-decoration: underline;
}

.apply-intro {
  padding: 28px 0 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  text-align: center;
}

.apply-intro .eyebrow {
  margin-bottom: 6px;
  color: var(--primary);
}

.apply-intro h1 {
  max-width: none;
  margin-bottom: 8px;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
}

.apply-intro p {
  margin-bottom: 0;
}

.apply-section {
  padding: 24px 0 56px;
  min-height: 520px;
  background: var(--surface);
}

#visa-form {
  min-height: 420px;
}

.site-footer {
  background: var(--surface-muted);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
  padding: 52px 0;
}

.footer-grid h2 {
  font-size: 1rem;
}

.footer-grid a {
  display: block;
  margin: 8px 0;
  color: var(--muted);
}

.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
}

@media (max-width: 860px) {
  .header-inner {
    min-height: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    padding: 10px 0;
  }

  .brand {
    align-self: center;
    font-size: 0.98rem;
    line-height: 1.2;
  }

  .nav {
    order: 3;
    grid-column: 1 / -1;
    width: 100%;
    gap: 18px;
    overflow-x: auto;
    padding-top: 4px;
    scrollbar-width: none;
    white-space: nowrap;
  }

  .nav::-webkit-scrollbar,
  .strip-grid::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    font-size: 0.95rem;
  }

  .button.small {
    display: none;
  }

  .header-actions {
    justify-self: end;
    margin-left: auto;
  }

  .language-switcher {
    gap: 2px;
    padding: 3px;
  }

  .language-switcher a {
    min-width: 28px;
    min-height: 26px;
    font-size: 0.68rem;
  }

  .hero {
    padding: 58px 0 68px;
    background:
      linear-gradient(180deg, rgba(87, 0, 12, 0.88) 0%, rgba(143, 0, 13, 0.62) 52%, rgba(143, 0, 13, 0.28) 100%),
      url("/assets/img/indonesia-hero.jpg") center / cover no-repeat;
  }

  .hero h1 {
    max-width: 12ch;
    font-size: clamp(2.25rem, 10vw, 3.15rem);
    line-height: 1.05;
  }

  .hero-content p {
    max-width: 34rem;
    font-size: 1rem;
    line-height: 1.65;
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
    max-width: 280px;
  }

  .actions .button {
    width: 100%;
  }

  .feature-strip {
    position: relative;
  }

  .strip-grid {
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    gap: 22px;
    padding: 18px 0 16px;
    scroll-snap-type: x mandatory;
  }

  .strip-grid span {
    scroll-snap-align: start;
  }

  .section {
    padding: 56px 0;
  }

  .section-heading {
    margin-bottom: 28px;
    text-align: left;
  }

  .two-col,
  .card-grid.four,
  .card-grid.three,
  .steps,
  .post-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .check-list {
    grid-template-columns: 1fr;
  }

  .strip-grid {
    grid-template-columns: repeat(5, 180px);
  }
}

@media (max-width: 520px) {
  .container {
    width: min(var(--container), calc(100% - 28px));
  }

  .site-header {
    position: sticky;
  }

  .header-inner {
    gap: 7px 10px;
  }

  .brand {
    font-size: 0.92rem;
  }

  .nav {
    gap: 16px;
    padding-top: 2px;
  }

  .hero {
    min-height: auto;
    padding: 48px 0 58px;
  }

  .hero h1 {
    max-width: 11ch;
    margin-bottom: 16px;
    font-size: clamp(2rem, 10.4vw, 2.75rem);
  }

  .eyebrow {
    margin-bottom: 10px;
    font-size: 0.72rem;
    line-height: 1.45;
  }

  .button {
    min-height: 46px;
    padding-inline: 18px;
  }

  .info-card,
  .post-card,
  .callout,
  .panel {
    padding: 22px;
  }

  .final-cta,
  .page-hero,
  .post-hero {
    padding: 58px 0;
  }

  .apply-intro {
    padding: 18px 0 14px;
  }

  .apply-intro h1 {
    font-size: clamp(1.45rem, 7vw, 2rem);
  }

  .apply-intro p {
    font-size: 0.95rem;
    line-height: 1.45;
  }

  .apply-section {
    padding-top: 16px;
  }

  .footer-grid {
    gap: 22px;
    padding: 38px 0;
  }
}
