:root {
  --color-ink: #18332f;
  --color-muted: #53645f;
  --color-bg: #fbf8f2;
  --color-surface: #ffffff;
  --color-soft: #eef5ef;
  --color-primary: #0f766e;
  --color-primary-dark: #0a5d57;
  --color-accent: #c05a2b;
  --color-border: #d9e2dd;
  --shadow: 0 18px 45px rgba(24, 51, 47, 0.12);
  --radius: 8px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

a {
  color: var(--color-primary-dark);
}

a:hover {
  color: var(--color-accent);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.45rem, 7vw, 4.75rem);
  line-height: 1;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.7rem, 4vw, 2.45rem);
  line-height: 1.15;
  margin-bottom: 0.8rem;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.25;
  margin-bottom: 0.6rem;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.narrow {
  max-width: 760px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  background: var(--color-ink);
  color: #fff;
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(251, 248, 242, 0.96);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(12px);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--color-ink);
  font-weight: 800;
  text-decoration: none;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #fff;
  box-shadow: 0 4px 12px rgba(24, 51, 47, 0.14);
  object-fit: cover;
  object-position: center 35%;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  cursor: pointer;
}

.nav-toggle-line {
  display: block;
  width: 20px;
  height: 2px;
  margin: 1.5px 0;
  background: var(--color-ink);
  border-radius: 999px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle.open .nav-toggle-line:nth-of-type(2) {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle.open .nav-toggle-line:nth-of-type(3) {
  opacity: 0;
}

.nav-toggle.open .nav-toggle-line:nth-of-type(4) {
  transform: translateY(-5px) rotate(-45deg);
}

.nav-menu {
  position: absolute;
  inset: 72px 1rem auto 1rem;
  display: none;
  list-style: none;
  margin: 0;
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow);
}

.nav-menu.open {
  display: block;
}

.nav-menu a {
  display: block;
  padding: 0.85rem;
  border-radius: var(--radius);
  color: var(--color-ink);
  font-weight: 700;
  text-decoration: none;
}

.nav-menu a:hover,
.nav-menu a[aria-current="page"] {
  background: var(--color-soft);
  color: var(--color-primary-dark);
}

.language-menu-item {
  position: relative;
}

.language-toggle {
  display: block;
  width: 100%;
  padding: 0.85rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--color-primary);
  color: #fff;
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.language-toggle:hover,
.language-toggle[aria-expanded="true"] {
  background: var(--color-primary-dark);
}

.translate-panel {
  display: none;
  margin-top: 0.6rem;
  padding: 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: 0 10px 28px rgba(24, 51, 47, 0.08);
}

.language-menu-item.open .translate-panel {
  display: block;
}

.translate-loading {
  color: var(--color-muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.goog-te-gadget {
  color: var(--color-muted) !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 0.85rem !important;
}

.goog-te-gadget-simple {
  min-height: 40px;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius);
  background: #fff !important;
  color: var(--color-ink) !important;
  padding: 0.55rem 0.65rem !important;
}

.goog-te-gadget-simple span {
  color: var(--color-ink) !important;
}

.hero {
  padding: 4rem 0 3rem;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(192, 90, 43, 0.08)),
    var(--color-bg);
}

.hero-grid {
  display: grid;
  gap: 2rem;
}

.hero-subtitle,
.page-hero p {
  max-width: 640px;
  color: var(--color-muted);
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.translate-hint {
  margin-top: 1rem;
  color: var(--color-muted);
  font-weight: 700;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.learn-more-toggle {
  margin-top: 0.6rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-primary-dark);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.learn-more-toggle:hover,
.learn-more-toggle[aria-expanded="true"] {
  background: var(--color-soft);
}

.learn-more-content {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.learn-more-content p:last-child,
.learn-more-content ul:last-child {
  margin-bottom: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.8rem 1.15rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.button-primary {
  background: var(--color-primary);
  color: #fff;
}

.button-primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
}

.button-secondary {
  background: var(--color-surface);
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}

.button-light {
  background: #fff;
  color: var(--color-primary-dark);
}

.urgent-band {
  padding: 2rem 0;
  background: var(--color-ink);
  color: #fff;
}

.urgent-band p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
}

.urgent-band h2 {
  margin-bottom: 0.55rem;
}

.urgent-grid {
  display: grid;
  gap: 1.25rem;
  align-items: center;
}

.urgent-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.urgent-links a {
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.urgent-links a:hover,
.urgent-links a:focus-visible {
  background: #fff;
  color: var(--color-primary-dark);
  outline: 0;
}

.hero-visual {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
}

.hero-note {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: grid;
  gap: 0.2rem;
  padding: 1rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.93);
  color: var(--color-ink);
  box-shadow: 0 10px 30px rgba(24, 51, 47, 0.16);
}

.hero-note span {
  color: var(--color-muted);
}

.path-card,
.info-card,
.timeline-card,
.resource-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: 0 10px 28px rgba(24, 51, 47, 0.08);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffe8d8;
  color: #8b3d18;
  font-weight: 800;
}

.path-card p,
.info-card p,
.timeline-card p,
.resource-card p,
.split p {
  color: var(--color-muted);
}

.section {
  padding: 3.5rem 0;
}

.section-soft {
  background: var(--color-soft);
}

.section-heading {
  margin-bottom: 1.5rem;
}

.eyebrow {
  margin-bottom: 0.65rem;
  color: var(--color-accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-grid {
  display: grid;
  gap: 1rem;
}

.path-card,
.info-card,
.timeline-card,
.resource-card {
  padding: 1.25rem;
}

.text-link {
  color: var(--color-primary-dark);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.page-hero {
  padding: 3.5rem 0 2.5rem;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(255, 232, 216, 0.75));
}

.timeline {
  display: grid;
  gap: 1.25rem;
}

.timeline-card {
  border-left: 5px solid var(--color-primary);
}

.timeline-label,
.resource-category {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 0.8rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--color-soft);
  color: var(--color-primary-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0;
}

.pill-list span,
.pill-list a {
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #fff;
  color: var(--color-ink);
  font-weight: 700;
  text-decoration: none;
}

.pill-list a:hover,
.pill-list a:focus-visible {
  border-color: var(--color-primary);
  background: var(--color-soft);
  color: var(--color-primary-dark);
  outline: 0;
}

.split {
  display: grid;
  gap: 1.5rem;
}

.check-list {
  padding-left: 1.2rem;
  color: var(--color-muted);
}

.check-list li + li {
  margin-top: 0.6rem;
}

.filter-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.location-banner {
  display: grid;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.25rem;
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-left: 5px solid var(--color-primary);
  border-radius: var(--radius);
  background: var(--color-surface);
}

.location-banner div {
  display: grid;
  gap: 0.15rem;
}

.location-banner span {
  color: var(--color-muted);
}

.location-form {
  display: grid;
  gap: 0.55rem;
}

.location-form input {
  min-height: 42px;
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-muted);
  font: inherit;
}

.location-button {
  min-height: 42px;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-soft);
  color: var(--color-muted);
  font: inherit;
  font-weight: 800;
}

.resource-note {
  display: grid;
  gap: 0.15rem;
  margin-bottom: 1.25rem;
  color: var(--color-muted);
}

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

.filter-button {
  min-height: 42px;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.filter-button:hover,
.filter-button.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.resource-count {
  color: var(--color-muted);
  font-weight: 700;
}

.resource-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.resource-meta {
  margin-bottom: 1rem;
  color: var(--color-muted);
  font-weight: 700;
}

.site-footer {
  padding: 2rem 0;
  background: var(--color-ink);
  color: #fff;
}

.site-footer p {
  margin-bottom: 0;
}

.footer-grid {
  display: grid;
  gap: 1rem;
  align-items: center;
}

.footer-actions {
  display: grid;
  gap: 0.8rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.footer-links a:hover {
  color: #fff;
}

@media (min-width: 1040px) {
  .nav-toggle {
    display: none;
  }

  .nav-menu {
    position: static;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .nav-menu a {
    padding: 0.55rem 0.7rem;
  }

  .language-toggle {
    width: auto;
    padding: 0.55rem 0.8rem;
    text-align: center;
  }

  .translate-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 0.55rem);
    z-index: 7;
    width: 260px;
    margin-top: 0;
  }

  .hero {
    padding: 6rem 0 4rem;
  }

  .hero-grid,
  .urgent-grid,
  .split,
  .footer-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .footer-grid {
    justify-items: end;
  }

  .urgent-links {
    justify-content: end;
  }

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

  .location-banner {
    grid-template-columns: 1fr auto;
  }

  .location-form {
    grid-template-columns: 180px auto;
  }

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

  .wide {
    grid-column: 1 / -1;
  }
}

@media (min-width: 980px) {
  .resource-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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