:root {
  color-scheme: light;
  --ink: #14231f;
  --ink-soft: #33433f;
  --muted: #62706c;
  --paper: #f7f3ec;
  --paper-strong: #fffaf2;
  --white: #ffffff;
  --jade: #0f766e;
  --jade-dark: #0b4f4a;
  --mint: #d9eee7;
  --coral: #be4b32;
  --amber: #c28a35;
  --line: #ddd6ca;
  --shadow: 0 24px 70px rgba(20, 35, 31, 0.14);
  --radius: 8px;
  --shell: 1180px;
  --header: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cfc7ba;
  border-radius: var(--radius);
  background: var(--paper-strong);
  color: var(--ink);
  padding: 0.86rem 0.92rem;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--jade);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.15);
}

textarea {
  resize: vertical;
}

.shell {
  width: min(100% - 40px, var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-150%);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  padding: 0.7rem 0.9rem;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header);
  background: rgba(247, 243, 236, 0.88);
  border-bottom: 1px solid rgba(221, 214, 202, 0.58);
  backdrop-filter: blur(18px);
  transition: box-shadow 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(247, 243, 236, 0.97);
  box-shadow: 0 10px 35px rgba(20, 35, 31, 0.1);
}

.nav {
  width: min(100% - 36px, var(--shell));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  min-width: 0;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--jade-dark);
  color: var(--paper-strong);
  font-size: 0.72rem;
  font-weight: 800;
}

.brand-text {
  font-weight: 800;
  line-height: 1.1;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.94rem;
  color: var(--ink-soft);
}

.nav-menu a {
  text-decoration: none;
  padding: 0.55rem 0.2rem;
}

.nav-menu a:hover {
  color: var(--jade-dark);
}

.nav-cta {
  border: 1px solid rgba(15, 118, 110, 0.35);
  border-radius: 999px;
  color: var(--jade-dark) !important;
  padding: 0.62rem 1rem !important;
  background: rgba(217, 238, 231, 0.7);
  font-weight: 760;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.72);
  padding: 0.12rem;
}

.language-select {
  min-width: 104px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 820;
  line-height: 1.1;
  padding: 0.46rem 0.62rem;
  outline: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 250, 242, 0.9);
  padding: 0;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 78svh;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  padding: calc(var(--header) + 42px) 0 62px;
  background: var(--ink);
}

.hero-image,
.hero-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
  z-index: -2;
}

.hero-scrim {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 22, 20, 0.9) 0%, rgba(10, 22, 20, 0.68) 43%, rgba(10, 22, 20, 0.18) 100%),
    linear-gradient(0deg, rgba(10, 22, 20, 0.34), rgba(10, 22, 20, 0.04));
}

.hero-content {
  color: var(--paper-strong);
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--mint);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--jade);
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  font-size: 4.2rem;
  font-weight: 860;
}

h2 {
  font-size: 2.65rem;
  font-weight: 840;
}

h3 {
  font-size: 1.22rem;
  font-weight: 820;
}

.hero-copy {
  max-width: 680px;
  margin: 1.35rem 0 0;
  color: rgba(255, 250, 242, 0.9);
  font-size: 1.13rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.78rem 1.12rem;
  text-decoration: none;
  font-weight: 820;
  line-height: 1.2;
}

.button-primary {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 18px 34px rgba(120, 42, 26, 0.28);
}

.button-primary:hover {
  background: #a53e29;
}

.button-secondary {
  border-color: rgba(255, 250, 242, 0.5);
  color: var(--paper-strong);
  background: rgba(255, 250, 242, 0.1);
}

.button-secondary:hover {
  background: rgba(255, 250, 242, 0.18);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 980px;
  margin: 2.3rem 0 0;
  padding: 1.1rem 0 0;
  border-top: 1px solid rgba(255, 250, 242, 0.28);
}

.hero-facts div {
  min-width: 0;
}

.hero-facts dt {
  color: rgba(255, 250, 242, 0.62);
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 0.22rem;
}

.hero-facts dd {
  margin: 0;
  color: rgba(255, 250, 242, 0.95);
  font-size: 0.96rem;
}

.notice-band {
  background: var(--jade-dark);
  color: var(--paper-strong);
}

.notice-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.4rem;
  padding: 1rem 0;
}

.notice-grid p {
  margin: 0;
}

.notice-grid a {
  white-space: nowrap;
  font-weight: 800;
}

.section {
  padding: 84px 0;
}

.intro-section {
  background: var(--paper-strong);
}

.intro-grid,
.split-grid,
.safety-grid,
.faq-grid,
.inquiry-grid,
.program-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 4rem;
  align-items: start;
}

.intro-copy p,
.feature-copy p,
.program-grid p,
.section-heading p {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.intro-copy p:first-child {
  margin-top: 0;
}

.section-heading {
  max-width: 790px;
  margin-bottom: 2.2rem;
}

.section-heading.narrow {
  max-width: 730px;
}

.section-heading h2 + p {
  margin-top: 1rem;
}

.service-section,
.pathways,
.program-section,
.faq-section {
  background: var(--paper);
}

.service-grid,
.medical-grid,
.verification-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.service-card,
.medical-card,
.program-list article,
.boundary-list article,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 242, 0.82);
}

.service-card {
  min-height: 270px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.service-index {
  width: fit-content;
  color: var(--coral);
  font-weight: 850;
  font-size: 0.86rem;
}

.service-card p,
.medical-card p,
.medical-card span,
.program-list p,
.boundary-list p,
.faq-list p {
  color: var(--muted);
}

.split-feature {
  background: var(--white);
}

.split-feature.alt {
  background: var(--paper-strong);
}

.image-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 460px;
  box-shadow: var(--shadow);
  background: var(--mint);
}

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

.feature-copy {
  padding-top: 1rem;
}

.check-list {
  display: grid;
  gap: 0.75rem;
  margin: 1.45rem 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.55rem;
  color: var(--ink-soft);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--jade);
}

.pathway-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1.2rem;
}

.pathway-tabs {
  display: grid;
  gap: 0.7rem;
}

.pathway-tab {
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
  color: var(--ink);
  padding: 0.85rem 1rem;
  text-align: left;
  font-weight: 800;
}

.pathway-tab.is-active {
  border-color: var(--jade);
  background: var(--jade-dark);
  color: var(--paper-strong);
}

.pathway-panel {
  min-height: 330px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
  padding: 1.45rem;
}

.pathway-panel p {
  color: var(--ink-soft);
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: timeline;
  display: grid;
  gap: 0.8rem;
}

.timeline li {
  counter-increment: timeline;
  position: relative;
  padding: 0.75rem 0.9rem 0.75rem 3.1rem;
  border: 1px solid rgba(221, 214, 202, 0.9);
  border-radius: var(--radius);
  background: rgba(247, 243, 236, 0.75);
}

.timeline li::before {
  content: counter(timeline);
  position: absolute;
  left: 0.85rem;
  top: 0.75rem;
  display: grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  background: var(--coral);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 850;
}

.medical-section,
.verification-section {
  background: #edf4f1;
}

.medical-card {
  min-height: 330px;
  padding: 1.25rem;
}

.medical-card h3 {
  min-height: 2.65rem;
}

.medical-card span {
  display: block;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

.program-grid {
  align-items: start;
}

.program-list {
  display: grid;
  gap: 0.9rem;
}

.program-list article {
  padding: 1rem;
}

.program-list h3 {
  font-size: 1.05rem;
}

.program-list p {
  margin: 0.45rem 0 0;
}

.route-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.58rem;
  margin-top: 1.4rem;
}

.route-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  padding: 0.45rem 0.72rem;
  color: var(--ink-soft);
  font-weight: 760;
}

.safety-section {
  background: var(--ink);
  color: var(--paper-strong);
}

.safety-section .eyebrow {
  color: var(--mint);
}

.safety-section h2 {
  color: var(--paper-strong);
}

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

.boundary-list article {
  background: rgba(255, 250, 242, 0.08);
  border-color: rgba(255, 250, 242, 0.18);
  padding: 1.1rem;
}

.boundary-list p {
  color: rgba(255, 250, 242, 0.78);
}

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

.verification-grid a {
  min-height: 112px;
  display: flex;
  align-items: flex-end;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
  padding: 1rem;
  color: var(--ink);
  font-weight: 780;
  text-decoration: none;
}

.verification-grid a:hover {
  border-color: var(--jade);
  color: var(--jade-dark);
}

.inquiry-section {
  background: var(--jade-dark);
  color: var(--paper-strong);
}

.inquiry-grid {
  align-items: stretch;
}

.inquiry-copy p {
  color: rgba(255, 250, 242, 0.82);
}

.contact-card {
  margin-top: 1.6rem;
  border: 1px solid rgba(255, 250, 242, 0.2);
  border-radius: var(--radius);
  padding: 1rem;
  background: rgba(255, 250, 242, 0.08);
}

.contact-card span {
  display: block;
  color: rgba(255, 250, 242, 0.68);
  font-size: 0.82rem;
  font-weight: 800;
}

.contact-card button {
  margin-top: 0.25rem;
  border: 0;
  background: transparent;
  color: var(--paper-strong);
  padding: 0;
  font-weight: 850;
  text-align: left;
}

.contact-card small {
  display: block;
  min-height: 1.25rem;
  margin-top: 0.25rem;
  color: var(--mint);
}

.inquiry-form {
  border: 1px solid rgba(255, 250, 242, 0.22);
  border-radius: var(--radius);
  background: var(--paper-strong);
  color: var(--ink);
  padding: 1.25rem;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
}

.form-row {
  margin-bottom: 0.92rem;
}

.form-row label,
.consent-row {
  display: block;
  margin-bottom: 0.36rem;
  color: var(--ink-soft);
  font-weight: 790;
}

.consent-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.68rem;
  align-items: start;
  margin: 1rem 0 0.3rem;
  font-size: 0.94rem;
}

.consent-row input {
  width: 18px;
  height: 18px;
  margin-top: 0.22rem;
  accent-color: var(--jade);
}

.error-message {
  min-height: 1.05rem;
  display: block;
  margin-top: 0.22rem;
  color: #9e2d1a;
  font-size: 0.82rem;
}

.form-submit {
  width: 100%;
  margin-top: 0.8rem;
  border: 0;
}

.form-status {
  min-height: 1.45rem;
  color: var(--jade-dark);
  font-weight: 760;
}

.faq-grid {
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-list details {
  padding: 1rem;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 820;
}

.faq-list p {
  margin-bottom: 0;
}

.site-footer {
  background: #101816;
  color: rgba(255, 250, 242, 0.8);
  padding: 44px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.85fr;
  gap: 2rem;
}

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

.site-footer h2 {
  color: var(--paper-strong);
  font-size: 1rem;
}

.site-footer a {
  color: var(--paper-strong);
}

@media (max-width: 1050px) {
  h1 {
    font-size: 3.35rem;
  }

  h2 {
    font-size: 2.2rem;
  }

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

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

  .intro-grid,
  .split-grid,
  .safety-grid,
  .faq-grid,
  .inquiry-grid,
  .program-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .pathway-layout,
  .pathway-panel {
    grid-template-columns: 1fr;
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  :root {
    --header: 68px;
  }

  .shell,
  .nav {
    width: min(100% - 28px, var(--shell));
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: var(--header);
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper-strong);
    box-shadow: var(--shadow);
    padding: 0.6rem;
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu a {
    padding: 0.85rem !important;
  }

  .nav-cta {
    border-radius: var(--radius);
  }

  .language-switcher {
    width: 100%;
    border-radius: var(--radius);
    margin-top: 0.35rem;
  }

  .language-select {
    width: 100%;
    border-radius: var(--radius);
  }

  .hero {
    min-height: 76svh;
    padding: calc(var(--header) + 28px) 0 42px;
  }

  .hero-scrim {
    background:
      linear-gradient(90deg, rgba(10, 22, 20, 0.9), rgba(10, 22, 20, 0.62)),
      linear-gradient(0deg, rgba(10, 22, 20, 0.42), rgba(10, 22, 20, 0.04));
  }

  h1 {
    font-size: 2.55rem;
  }

  h2 {
    font-size: 1.95rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-facts {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    margin-top: 1.35rem;
  }

  .hero-facts dt,
  .hero-facts dd {
    display: inline;
  }

  .hero-facts dt::after {
    content: ": ";
  }

  .notice-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .section {
    padding: 62px 0;
  }

  .image-panel,
  .image-panel img {
    min-height: 330px;
  }

  .pathway-tabs,
  .boundary-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 15px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-text {
    max-width: 150px;
  }

  h1 {
    font-size: 2.15rem;
  }

  h2 {
    font-size: 1.7rem;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .service-grid,
  .medical-grid,
  .verification-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .medical-card {
    min-height: auto;
  }

  .pathway-panel {
    padding: 1rem;
  }

  .inquiry-form {
    padding: 1rem;
  }
}
