:root {
  color-scheme: light;
  --ink: #102528;
  --muted: #5c6b68;
  --deep: #073235;
  --forest: #24644f;
  --teal: #1e7f86;
  --gold: #f0b949;
  --sun: #d87532;
  --sky: #dcefed;
  --sand: #f7f4ea;
  --paper: #ffffff;
  --line: #d9e0dc;
  --shadow: 0 24px 60px rgba(10, 38, 39, 0.18);
  --radius: 8px;
  --max: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--sand);
  line-height: 1.5;
  letter-spacing: 0;
}

body.is-nav-open {
  overflow: hidden;
}

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

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

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

button {
  cursor: pointer;
}

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--paper);
  color: var(--deep);
  box-shadow: var(--shadow);
  transform: translateY(-140%);
  transition: transform 160ms ease;
}

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

.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: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px max(22px, calc((100vw - var(--max)) / 2));
  color: #fff;
  transition: background 180ms ease, box-shadow 180ms ease, padding 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(7, 50, 53, 0.96);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.16);
}

.site-header.is-scrolled {
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo-only {
  padding: 0;
}

.brand-mark {
  display: block;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: contain;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
  flex: 0 0 auto;
}

.brand-logo-only .brand-mark {
  width: 72px;
  height: 72px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.05rem;
}

.brand small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  max-width: 260px;
  white-space: normal;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.primary-nav a {
  padding: 10px 12px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  transition: background 160ms ease, color 160ms ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  outline: none;
}

.primary-nav .nav-cta {
  margin-left: 8px;
  background: var(--gold);
  color: #132424;
  font-weight: 700;
}

.primary-nav .nav-cta:hover,
.primary-nav .nav-cta:focus-visible {
  background: #ffd16b;
  color: #132424;
}

.nav-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.hero {
  position: relative;
  min-height: 91vh;
  display: grid;
  align-items: end;
  padding: 150px max(22px, calc((100vw - var(--max)) / 2)) 54px;
  color: #fff;
  overflow: hidden;
}

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

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

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 33, 36, 0.88), rgba(5, 33, 36, 0.54) 48%, rgba(5, 33, 36, 0.16)),
    linear-gradient(0deg, rgba(5, 33, 36, 0.82), rgba(5, 33, 36, 0.08) 44%);
}

.hero-inner {
  width: min(720px, 100%);
  padding-bottom: 32px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
}

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

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 5rem;
  line-height: 0.96;
  font-weight: 700;
}

.hero-copy {
  max-width: 640px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.14rem;
}

.theme-line {
  margin: 14px 0 0;
  color: var(--gold);
  font-size: 1.28rem;
  font-weight: 900;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.button-primary {
  background: var(--gold);
  color: #172420;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #ffd16b;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

.button-outline {
  width: 100%;
  border-color: rgba(36, 100, 79, 0.28);
  background: #fff;
  color: var(--deep);
}

.button-outline:hover,
.button-outline:focus-visible {
  border-color: var(--forest);
  background: var(--sky);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 34px 0 0;
}

.hero-stats div {
  min-width: 126px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  background: rgba(7, 50, 53, 0.55);
  backdrop-filter: blur(14px);
}

.hero-stats dt {
  font-weight: 900;
  font-size: 1.1rem;
}

.hero-stats dd {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.quick-finder {
  display: grid;
  grid-template-columns: 1fr 1fr 0.7fr auto;
  gap: 12px;
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  color: var(--ink);
}

label span,
legend {
  display: block;
  margin-bottom: 7px;
  color: #35514d;
  font-weight: 800;
  font-size: 0.84rem;
}

select,
input,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cbd6d2;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  outline: none;
}

textarea {
  resize: vertical;
}

select:focus,
input:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(30, 127, 134, 0.15);
}

.intro-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 22px max(22px, calc((100vw - var(--max)) / 2));
  background: var(--deep);
  color: #fff;
}

.intro-strip p {
  margin: 0;
  max-width: 840px;
  color: rgba(255, 255, 255, 0.84);
}

.intro-strip a {
  flex: 0 0 auto;
  color: var(--gold);
  font-weight: 900;
}

.section {
  padding: 86px max(22px, calc((100vw - var(--max)) / 2));
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading.compact {
  margin-bottom: 24px;
}

.section-heading h2,
.planner-copy h2,
.experience-copy h2,
.contact-copy h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
  line-height: 1.04;
}

.section-heading p:not(.eyebrow),
.planner-copy p,
.experience-copy p,
.contact-copy p {
  color: var(--muted);
  font-size: 1.04rem;
}

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

.destination-card {
  display: grid;
  grid-template-rows: 210px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 14px 32px rgba(10, 38, 39, 0.08);
}

.destination-card.featured-card {
  grid-column: span 2;
  grid-template-columns: 1.04fr 0.96fr;
  grid-template-rows: 1fr;
}

.destination-card img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.destination-card div {
  padding: 22px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(30, 127, 134, 0.1);
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
}

.destination-card h3,
.trip-card h3,
.why-grid h3 {
  margin: 0;
  font-size: 1.32rem;
  line-height: 1.2;
}

.destination-card p,
.trip-card p,
.why-grid p {
  color: var(--muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.tag-list li {
  padding: 7px 9px;
  border-radius: 999px;
  background: var(--sand);
  color: #364946;
  font-size: 0.84rem;
  font-weight: 750;
}

.trips {
  background: #eef6f4;
}

.trip-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.filter-button {
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid rgba(36, 100, 79, 0.24);
  border-radius: 999px;
  background: #fff;
  color: var(--deep);
  font-weight: 850;
}

.filter-button.is-active,
.filter-button:hover,
.filter-button:focus-visible {
  background: var(--deep);
  color: #fff;
  outline: none;
}

.trip-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.trip-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 14px 32px rgba(10, 38, 39, 0.07);
}

.trip-card[hidden] {
  display: none;
}

.trip-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  color: var(--sun);
  font-size: 0.86rem;
  font-weight: 900;
}

.trip-card p {
  margin: 0;
}

.trip-card ul {
  display: grid;
  gap: 8px;
  padding-left: 18px;
  margin: 0 0 auto;
  color: #3f5551;
}

.planner-band {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(7, 50, 53, 0.96), rgba(7, 50, 53, 0.9)),
    url("assets/maasai-mara-sunset.jpg") center / cover;
  color: #fff;
}

.planner-copy p {
  color: rgba(255, 255, 255, 0.82);
}

.planner-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 520px;
  margin-top: 26px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.09);
}

.planner-note svg {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: var(--gold);
}

.quote-panel,
.contact-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  border: 0;
  margin: 2px 0;
}

.checkbox-group legend {
  flex: 0 0 100%;
  margin-bottom: 0;
}

.checkbox-group label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8faf8;
}

.checkbox-group input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--teal);
}

.checkbox-group label span {
  margin: 0;
  font-size: 0.9rem;
}

.quote-output {
  display: grid;
  gap: 4px;
  padding: 18px;
  border: 1px solid rgba(30, 127, 134, 0.22);
  border-radius: var(--radius);
  background: #edf8f6;
}

.quote-output span,
.quote-output small {
  color: #4c6763;
  font-weight: 760;
}

.quote-output strong {
  color: var(--deep);
  font-size: 1.9rem;
  line-height: 1;
}

.full-button {
  width: 100%;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.why-grid article {
  padding: 24px 18px;
  border-top: 4px solid var(--sun);
  background: #fff;
}

.why-grid article:nth-child(2) {
  border-top-color: var(--teal);
}

.why-grid article:nth-child(3) {
  border-top-color: var(--forest);
}

.why-grid article:nth-child(4) {
  border-top-color: var(--gold);
}

.why-grid svg {
  width: 28px;
  height: 28px;
  margin-bottom: 18px;
  color: var(--forest);
}

.experiences {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 44px;
  align-items: center;
  background: #fff;
}

.experience-image {
  min-height: 520px;
  overflow: hidden;
  border-radius: var(--radius);
}

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

.experience-copy {
  max-width: 560px;
}

.experience-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.experience-list span {
  min-height: 36px;
  padding: 8px 11px;
  border-radius: 999px;
  background: var(--sky);
  color: var(--deep);
  font-weight: 850;
}

.faq-section {
  background: #f5f1e4;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 900px;
}

details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 900;
}

summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--sky);
  color: var(--deep);
  flex: 0 0 auto;
}

details[open] summary::after {
  content: "-";
}

details p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
}

.contact-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.contact-links {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--deep);
  font-weight: 850;
}

.contact-links svg {
  width: 19px;
  height: 19px;
  color: var(--sun);
}

.contact-panel {
  padding: 26px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.contact-panel > svg {
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  color: var(--forest);
}

.contact-panel h3 {
  margin: 0;
  font-size: 1.35rem;
}

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

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--forest);
  font-weight: 850;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.9fr;
  gap: 34px;
  padding: 48px max(22px, calc((100vw - var(--max)) / 2)) 24px;
  background: var(--deep);
  color: #fff;
}

.footer-brand {
  margin-bottom: 16px;
}

.site-footer p {
  margin: 0;
  max-width: 470px;
  color: rgba(255, 255, 255, 0.74);
}

.site-footer h2 {
  margin: 0 0 12px;
  font-size: 0.92rem;
}

.site-footer a:not(.brand) {
  display: block;
  margin: 8px 0;
  color: rgba(255, 255, 255, 0.76);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--gold);
  outline: none;
}

.copyright {
  grid-column: 1 / -1;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.9rem;
}

@media (max-width: 1040px) {
  .destination-grid,
  .trip-grid,
  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-finder,
  .planner-band,
  .experiences,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .quick-finder {
    max-width: 760px;
  }

  .planner-copy,
  .experience-copy {
    max-width: 780px;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 12px 18px;
  }

  .nav-toggle {
    display: grid;
  }

  .primary-nav {
    position: fixed;
    top: 86px;
    left: 18px;
    right: 18px;
    display: none;
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius);
    background: rgba(7, 50, 53, 0.98);
    box-shadow: var(--shadow);
  }

  .site-header.is-open .primary-nav {
    display: grid;
  }

  .primary-nav a {
    padding: 12px;
  }

  .primary-nav .nav-cta {
    margin-left: 0;
  }

  .hero {
    min-height: auto;
    padding: 112px 18px 38px;
  }

  .hero-inner {
    padding-bottom: 18px;
  }

  h1 {
    font-size: 3.35rem;
  }

  .section-heading h2,
  .planner-copy h2,
  .experience-copy h2,
  .contact-copy h2 {
    font-size: 2.18rem;
  }

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

  .hero-stats {
    gap: 10px;
  }

  .hero-stats div {
    min-width: 110px;
  }

  .quick-finder {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 12px;
  }

  .intro-strip {
    display: grid;
    padding: 22px 18px;
  }

  .section {
    padding: 62px 18px;
  }

  .destination-grid,
  .trip-grid,
  .why-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .destination-card.featured-card {
    grid-column: auto;
    grid-template-columns: 1fr;
    grid-template-rows: 210px 1fr;
  }

  .experience-image,
  .experience-image img {
    min-height: 340px;
  }

  .quote-panel,
  .contact-form,
  .contact-panel {
    padding: 18px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding: 42px 18px 24px;
  }
}

@media (max-width: 430px) {
  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-logo-only .brand-mark {
    width: 58px;
    height: 58px;
  }

  h1 {
    font-size: 2.7rem;
  }

  .trip-filter {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button,
  .filter-button {
    width: 100%;
  }

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

  .hero-actions .button,
  .quick-finder .button {
    width: auto;
    padding-right: 10px;
    padding-left: 10px;
  }

  .hero-stats {
    display: none;
  }

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

  summary {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
