:root {
  color-scheme: light;
  --navy: #102d46;
  --green: #2d7a4a;
  --green-dark: #1f6038;
  --mint: #92e3a9;
  --paper: #ffffff;
  --canvas: #f4f7f5;
  --muted: #52616d;
  --line: #dbe5df;
  --shadow: 0 1.25rem 3.5rem rgb(16 45 70 / 10%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  min-width: 20rem;
  margin: 0;
  color: var(--navy);
  background:
    radial-gradient(circle at 8% 8%, rgb(146 227 169 / 20%), transparent 25rem),
    var(--canvas);
  line-height: 1.65;
}

a {
  color: var(--green-dark);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.15em;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  direction: ltr;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 0.8rem max(1rem, calc((100% - 72rem) / 2));
  background: rgb(244 247 245 / 90%);
  border-bottom: 1px solid rgb(16 45 70 / 10%);
  box-shadow: 0 0.35rem 1.5rem rgb(16 45 70 / 6%);
  backdrop-filter: blur(1rem);
}

.brand {
  flex: 0 0 auto;
  color: var(--navy);
  font-size: 1.35rem;
  font-weight: 850;
  letter-spacing: -0.02em;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.site-header nav {
  justify-content: flex-end;
}

.site-header nav a {
  padding: 0.42rem 0.7rem;
  border-radius: 2rem;
  color: var(--navy);
  font-size: 0.93rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 150ms ease, background 150ms ease;
}

.site-header nav a:hover {
  background: rgb(45 122 74 / 10%);
}

.site-header nav a[aria-current="page"] {
  color: white;
  background: var(--navy);
}

.language-switch {
  display: inline-flex;
  overflow: hidden;
  margin-inline-start: 0.35rem;
  border: 1px solid rgb(16 45 70 / 28%);
  border-radius: 2rem;
  background: white;
}

.language-switch button {
  min-width: 2.6rem;
  padding: 0.38rem 0.65rem;
  border: 0;
  color: var(--navy);
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.language-switch button[aria-pressed="true"] {
  color: white;
  background: var(--green-dark);
}

main,
.site-footer {
  width: min(72rem, calc(100% - 2rem));
  margin-inline: auto;
}

main {
  padding-block: 2.5rem 5rem;
}

.hero,
.document {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(20rem, 0.88fr);
  min-height: 34rem;
  overflow: hidden;
  background: linear-gradient(135deg, var(--paper), #eaf9ef);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 4.5vw, 4rem);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.17;
}

h1 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2.25rem, 3.7vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.highlight {
  display: block;
  margin-top: 0.12em;
  color: var(--green-dark);
}

.lead {
  max-width: 46rem;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.18rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-block;
  padding: 0.78rem 1.05rem;
  border: 2px solid var(--navy);
  border-radius: 0.75rem;
  color: var(--navy);
  font-weight: 780;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.6rem 1.2rem rgb(16 45 70 / 12%);
}

.button--primary {
  color: white;
  background: var(--navy);
}

.section {
  margin-top: 4.5rem;
}

.section > h2 {
  margin-bottom: 1.4rem;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: -0.025em;
}

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

.card {
  padding: 1.6rem;
  background: rgb(255 255 255 / 85%);
  border: 1px solid var(--line);
  border-top: 0.3rem solid var(--mint);
  border-radius: 1rem;
  box-shadow: 0 0.75rem 2rem rgb(16 45 70 / 5%);
}

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

.card h3 {
  font-size: 1.2rem;
}

.card p {
  color: var(--muted);
}

.document {
  max-width: 54rem;
  margin-inline: auto;
  padding: clamp(1.6rem, 5vw, 3.8rem);
}

.document h1 {
  max-width: none;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
}

.document h2 {
  margin-top: 2.35rem;
  font-size: 1.38rem;
}

.document li + li {
  margin-top: 0.55rem;
}

html[dir="rtl"] body {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

html[dir="rtl"] h1,
html[dir="rtl"] .section > h2 {
  letter-spacing: 0;
}

.notice {
  padding: 1rem;
  border-inline-start: 0.35rem solid var(--green);
  background: #effaf2;
  border-radius: 0.5rem;
}

.site-footer {
  display: flex;
  direction: ltr;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 1.5rem 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer nav {
  gap: 0.8rem 1.1rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 52rem) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-image {
    aspect-ratio: 16 / 10;
    height: auto;
  }

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

@media (max-width: 42rem) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.45rem;
    padding-block: 0.65rem;
  }

  .site-header nav {
    width: 100%;
    justify-content: flex-start;
    gap: 0.2rem;
  }

  .site-header nav a {
    padding: 0.32rem 0.42rem;
    font-size: 0.8rem;
  }

  .language-switch {
    margin-inline-start: auto;
  }

  .language-switch button {
    min-width: 2.25rem;
    padding-inline: 0.45rem;
  }

  main {
    padding-top: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button,
  .site-header nav a {
    transition: none;
  }
}
