:root {
  color-scheme: light;
  --ink: #14231b;
  --muted: #5b665f;
  --paper: #f4f7f0;
  --panel: #ffffff;
  --line: #d7dfd3;
  --forest: #14231b;
  --clay: #bd5b3f;
  --gold: #c39441;
  --sky: #dbeee9;
  --shadow: 0 24px 70px rgba(20, 35, 27, 0.17);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}
a { color: inherit; }
img { display: block; max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(244, 247, 240, 0.94);
  backdrop-filter: blur(16px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  text-decoration: none;
}
.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--forest);
  font-weight: 950;
}
.brand strong, .brand small { display: block; }
.brand small { color: var(--muted); font-size: 12px; }
nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 780;
}
nav a { text-decoration: none; }
.translate-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
}
.translate-control select {
  width: auto;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.hero {
  min-height: min(740px, calc(100svh - 72px));
  display: grid;
  align-items: end;
  padding: clamp(54px, 8vw, 112px) clamp(18px, 6vw, 82px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(13, 20, 16, 0.84), rgba(13, 20, 16, 0.30)),
    url("assets/safari-airstrip-hero.webp") center / cover;
}
.hero-copy { width: min(820px, 100%); }
.kicker {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 16px;
  font-size: clamp(58px, 9vw, 118px);
  line-height: 0.9;
  letter-spacing: 0;
}
h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1.04;
  letter-spacing: 0;
}
h3 { margin-bottom: 8px; font-size: 21px; line-height: 1.16; }
.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2vw, 22px);
}
.hero-actions, .link-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.hero-actions a, .link-row a, .route-link-grid a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
}
.hero-actions .primary-action, .link-row a:first-child {
  color: #fff;
  background: var(--clay);
  border-color: var(--clay);
}

.planner, .section-shell, .routes {
  width: min(1180px, calc(100% - 36px));
  margin: clamp(34px, 6vw, 82px) auto;
}
.planner {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(340px, 1.18fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: start;
  padding: clamp(24px, 4vw, 38px);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.planner p, .section-heading p { color: var(--muted); font-size: 17px; }
.route-panel {
  display: grid;
  gap: 12px;
}
label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-weight: 850;
}
input, select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
}
.route-summary {
  min-height: 110px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #f9fbf6;
}
.route-summary strong { color: var(--ink); }

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: 20px;
  align-items: end;
  margin-bottom: 22px;
}
.gateway-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
article {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
article span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}
article p { color: var(--muted); }
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  color: #29452d;
  background: #e8f1e4;
  font-size: 12px;
  font-weight: 850;
}
.photo-band {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  margin: clamp(34px, 6vw, 82px) 0;
}
.photo-band img {
  width: 100%;
  height: clamp(260px, 32vw, 500px);
  object-fit: cover;
}
.routes {
  padding: clamp(24px, 5vw, 46px);
  border-radius: 8px;
  background: var(--sky);
}
.route-link-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
footer {
  padding: 28px clamp(18px, 5vw, 76px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 980px) {
  .planner, .section-heading { grid-template-columns: 1fr; }
  .gateway-grid, .route-link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  nav { justify-content: flex-start; }
  h1 { font-size: 56px; }
  .gateway-grid, .photo-band, .route-link-grid { grid-template-columns: 1fr; }
  .hero { min-height: 700px; }
  .photo-band img { height: 260px; }
}
