/* ==========================================================================
   Namibia tourism site: quiet, warm, a little vintage.
   Paper-toned pages, a light serif for headings, one clay accent.
   Pictures (or looping videos) carry the page; type stays out of the way.
   ========================================================================== */

:root {
  --paper: #f4f1ed;
  --paper-dark: #e9e2d9;
  --white: #ffffff;
  --ink: #2b2623;
  --ink-soft: #5a524d;
  --line: #d9d0c6;
  --clay: #c4957a;
  --clay-deep: #9a6347;   /* buttons and overlays: white text passes contrast on this */
  --clay-darker: #824f36;
  --night: #2b2623;

  --font-display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: 20px;
  --max: 1240px;
  --radius: 4px;
}

@media (min-width: 720px) {
  :root { --gutter: 40px; }
}

/* ---- Placeholder artwork palettes (set on a parent via .pal-N) ----------- */
.pal-1 { --sky: #e3cdb4; --sunc: #c98f6b; --c1: #c4957a; --c2: #a9714f; --c3: #7b4b33; }
.pal-2 { --sky: #e8dcc0; --sunc: #d4a86a; --c1: #a9a47a; --c2: #7f8a62; --c3: #4f5a3e; }
.pal-3 { --sky: #e9cfc0; --sunc: #f6e7d6; --c1: #8fa3a8; --c2: #6b858d; --c3: #43606a; }
.pal-4 { --sky: #e6c6b8; --sunc: #f3dfc9; --c1: #b4685a; --c2: #8c4a40; --c3: #5c2f2b; }
.pal-5 { --sky: #3f4a55; --sunc: #e6c39a; --c1: #8b6b5a; --c2: #6a5046; --c3: #3e2e29; }
.pal-6 { --sky: #d9d2bd; --sunc: #e8c9a0; --c1: #a59b7c; --c2: #7b7358; --c3: #4c4636; }

.s-sky { fill: var(--sky); }
.s-sun { fill: var(--sunc); }
.s-c1 { fill: var(--c1); }
.s-c2 { fill: var(--c2); }
.s-c3 { fill: var(--c3); }

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
}

body:has(.menu[open]) { overflow: hidden; }

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

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--clay-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---- Type ---------------------------------------------------------------- */
.h1, .h2, .h3, .h4, .hero-title, .cta-title, .card-title, .tour-title,
.brand, .footer-name, .menu-primary a {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
}

.h1 { font-size: clamp(2.5rem, 5.5vw, 4.25rem); }
.h2 { font-size: clamp(2rem, 4vw, 3.0rem); margin-bottom: 24px; }
.h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 400; margin-bottom: 16px; }
.h4 { font-size: 1.375rem; font-weight: 400; margin-bottom: 8px; }

p { margin: 0 0 1.1em; color: var(--ink-soft); }

.page-lead, .section-lead {
  font-size: 1.125rem;
  max-width: 52ch;
  margin: 14px 0 0;
}

.prose { max-width: 66ch; }

/* ---- Buttons and links --------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: 500 1rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-clay { background: var(--clay-deep); color: var(--white); }
.btn-clay:hover { background: var(--clay-darker); }

.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: #443c37; }

.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--paper-dark); }

.btn-small { padding: 10px 20px; font-size: 0.9375rem; }

.text-link {
  font-weight: 500;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  white-space: nowrap;
}

.back-link {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--ink-soft);
  text-underline-offset: 4px;
}

/* Makes the whole card clickable from its heading link */
.stretch { text-decoration: none; }
.stretch::after { content: ""; position: absolute; inset: 0; }
.stretch:focus-visible { outline: none; }
.stretch:focus-visible::after { outline: 2px solid var(--clay-deep); outline-offset: 4px; }

.badge {
  display: inline-block;
  padding: 2px 12px;
  border: 1px dashed var(--ink-soft);
  border-radius: 999px;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

/* ---- Pictures and looping videos ----------------------------------------- */
.media {
  position: relative;
  overflow: hidden;
  background: var(--paper-dark);
}

.media-el, .scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.media-el { object-fit: cover; }

.card .media-el, .card .scene,
.tour-row .media-el, .tour-row .scene { transition: transform 0.8s ease; }
.card:hover .media-el, .card:hover .scene,
.tour-row:hover .media-el, .tour-row:hover .scene { transform: scale(1.03); }

.media-toggle {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(43, 38, 35, 0.55);
  cursor: pointer;
}
.media-toggle:hover { background: rgba(43, 38, 35, 0.8); }
.media-toggle:focus-visible { outline-color: var(--white); }
.media-toggle::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
}
.media-toggle[data-state="playing"]::before {
  width: 10px;
  height: 12px;
  border-inline: 3px solid var(--white);
}
.media-toggle[data-state="paused"]::before {
  translate: -35% -50%;
  border-block: 7px solid transparent;
  border-left: 11px solid var(--white);
}

@media (prefers-reduced-motion: reduce) {
  .card .media-el, .card .scene,
  .tour-row .media-el, .tour-row .scene { transition: none; }
  .card:hover .media-el, .card:hover .scene,
  .tour-row:hover .media-el, .tour-row:hover .scene { transform: none; }
  .btn { transition: none; }
}

/* ---- Header -------------------------------------------------------------- */
.site-header {
  position: relative;
  z-index: 50;
  background: var(--paper);
  color: var(--ink);
}

/* On the home page the header floats over the full-screen picture. */
.page-home .site-header {
  position: absolute;
  inset: 0 0 auto 0;
  background: none;
  color: var(--white);
}
.page-home .site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 -48px 0;
  z-index: -1;
  background: linear-gradient(rgba(20, 14, 12, 0.5), transparent);
  pointer-events: none;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 18px;
}

.brand {
  position: relative;
  z-index: 2;
  font-size: 1.625rem;
  font-weight: 400;
  text-decoration: none;
}

.header-end { display: flex; align-items: center; gap: 24px; }

.header-links {
  display: none;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.header-links a, .header-lang {
  text-decoration: none;
  padding-block: 4px;
  border-bottom: 1px solid transparent;
}
.header-links a:hover, .header-lang:hover { border-bottom-color: currentColor; }
.header-links a[aria-current="page"] { border-bottom-color: currentColor; }

.header-lang { display: none; }
.header-cta { display: none; }

@media (min-width: 600px) { .header-cta { display: inline-flex; } }
@media (min-width: 900px) { .header-links, .header-lang { display: flex; } }

.site-header :focus-visible { outline-color: currentColor; }
.page-home .site-header .header-cta { background: var(--clay-deep); }

/* Menu button + full-screen overlay (works without JavaScript) */
.menu-toggle {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  cursor: pointer;
  padding-block: 4px;
}
.menu-toggle::-webkit-details-marker { display: none; }

.menu-label-close, .menu-icon-close { display: none; }
.menu[open] .menu-label-open, .menu[open] .menu-icon-open { display: none; }
.menu[open] .menu-label-close { display: inline; }
.menu[open] .menu-icon-close { display: block; }

.menu[open] .menu-toggle,
.site-header:has(.menu[open]) .brand { color: var(--white); }

.menu-panel {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow-y: auto;
  background: var(--clay-deep);
  color: var(--white);
  padding-block: 120px 48px;
}

.menu-grid { display: grid; gap: 48px; }

.menu-primary { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.menu-primary a {
  display: inline-block;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.menu-primary a:hover { border-bottom-color: rgba(255, 255, 255, 0.7); }

.menu-secondary { display: grid; gap: 28px; align-content: start; }
.menu-secondary ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.menu-secondary a { text-underline-offset: 4px; }

.menu-panel :focus-visible { outline-color: var(--white); }

@media (min-width: 900px) {
  .menu-grid { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .menu-secondary { padding-top: 12px; }
}

/* ---- Hero (home) --------------------------------------------------------- */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  color: var(--white);
  background: #3b3330;
}

.hero-media { position: absolute; inset: 0; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(30, 22, 20, 0.28);
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; text-align: center; }

.hero-title {
  font-size: clamp(3rem, 9vw, 7.5rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.hero-tag {
  position: absolute;
  inset: auto 0 36px 0;
  z-index: 1;
  margin: 0;
  padding-inline: var(--gutter);
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.1875rem;
  color: var(--white);
}

/* ---- Sections ------------------------------------------------------------ */
.section { padding-block: clamp(72px, 11vw, 140px); }
.section-flush { padding-top: 0; }
.section-slim { padding-block: 0 clamp(40px, 6vw, 72px); }
.section-tint { background: var(--paper-dark); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.section-head .h2 { margin-bottom: 0; }
.section-title { margin-bottom: clamp(32px, 5vw, 56px); }

.page-head { padding-block: clamp(48px, 8vw, 104px) clamp(32px, 5vw, 56px); }

.split { display: grid; gap: 48px; align-items: center; }
.split-copy { max-width: 46ch; }
.split-copy .btn { margin-top: 12px; }
.split-media { aspect-ratio: 4 / 5; border-radius: var(--radius); }

@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: clamp(48px, 8vw, 120px); }
}

/* ---- Destination cards --------------------------------------------------- */
.card-grid { display: grid; gap: 48px 28px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

.card { position: relative; }
.card-media { aspect-ratio: 4 / 5; border-radius: var(--radius); margin-bottom: 18px; }
.card-title { font-size: clamp(1.625rem, 2.4vw, 2rem); font-weight: 400; margin-bottom: 6px; }
.card-text { margin-bottom: 10px; }

/* ---- Tour rows ----------------------------------------------------------- */
.tour-list { display: grid; border-bottom: 1px solid var(--line); }

.tour-row {
  position: relative;
  display: grid;
  gap: 20px;
  padding-block: 28px;
  border-top: 1px solid var(--line);
}

.tour-media { aspect-ratio: 4 / 3; border-radius: var(--radius); }
.tour-main { align-self: center; }
.tour-title { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 400; margin-bottom: 8px; }
.tour-row:hover .tour-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.tour-summary { margin-bottom: 10px; max-width: 48ch; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; align-self: center; }
.fact dt { font-size: 0.875rem; color: var(--ink-soft); }
.fact dd { margin: 2px 0 0; font-weight: 500; }

.facts-wide {
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding-block: 28px;
  border-block: 1px solid var(--line);
}
.facts-wide .fact dd { font-family: var(--font-display); font-size: 1.75rem; font-weight: 300; letter-spacing: -0.01em; }

@media (min-width: 640px) { .facts-wide { grid-template-columns: repeat(4, 1fr); } }

@media (min-width: 900px) {
  .tour-row { grid-template-columns: 240px 1fr 320px; gap: 36px; align-items: center; }
}

/* ---- Call to action band ------------------------------------------------- */
.cta-band { background: var(--clay-deep); color: var(--white); padding-block: clamp(64px, 9vw, 112px); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px; }
.cta-title { font-size: clamp(2rem, 5vw, 3.75rem); max-width: 18ch; }
.cta-text { margin: 16px 0 0; font-size: 1.125rem; max-width: 42ch; color: #f6e9e0; }
.cta-band :focus-visible { outline-color: var(--white); }

/* ---- Detail pages -------------------------------------------------------- */
.detail-media { aspect-ratio: 4 / 3; border-radius: var(--radius); margin-top: 8px; }
@media (min-width: 720px) { .detail-media { aspect-ratio: 21 / 9; } }

.detail-head { padding-block: clamp(32px, 5vw, 56px) clamp(32px, 5vw, 56px); }
.detail-head .badge { margin-top: 18px; }

.detail-grid { display: grid; gap: 48px; }
.detail-stack { display: grid; gap: 56px; }

@media (min-width: 900px) {
  .detail-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 80px; align-items: start; }
}

.detail-side { display: grid; gap: 36px; }

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 60ch; }
.check-list li { position: relative; padding-left: 24px; color: var(--ink-soft); }
.check-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.7em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--clay);
}

.itinerary { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; max-width: 60ch; }
.itinerary li { display: grid; grid-template-columns: 76px 1fr; gap: 16px; }
.day-label { font-weight: 500; color: var(--clay-deep); padding-top: 2px; }

.placeholder-block {
  padding: 22px 24px;
  border: 1px dashed var(--ink-soft);
  border-radius: var(--radius);
  background: transparent;
  max-width: 60ch;
}
.placeholder-title { font-weight: 500; margin: 0 0 2px; color: var(--ink); }
.placeholder-text { margin: 0; }
.section-tint .placeholder-block { background: var(--paper); }

.book-box { padding: 28px; border-radius: var(--radius); background: var(--paper-dark); }
.book-note { margin-bottom: 14px; }
.book-note strong { color: var(--ink); font-weight: 500; }

.chip-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-block;
  padding: 5px 16px;
  border: 1px solid var(--ink-soft);
  border-radius: 999px;
  text-decoration: none;
}
.chip:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* ---- Forms --------------------------------------------------------------- */
.form-stack { display: grid; gap: 22px; max-width: 560px; }
.field { display: grid; gap: 6px; }
.field-label { font-weight: 500; }
.field-hint { color: var(--ink-soft); font-size: 0.9375rem; margin: 0; }

.input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--ink-soft);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: inherit;
}
.input:focus-visible { outline: 2px solid var(--clay-deep); outline-offset: 2px; }
textarea.input { resize: vertical; }

.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice { padding: 20px 24px; border-radius: var(--radius); margin-bottom: 28px; max-width: 560px; }
.notice p { margin: 0; color: var(--ink); }
.notice ul { margin: 0; padding-left: 1.2em; }
.notice-ok { background: #e4ebdc; border: 1px solid #6c8a5a; }
.notice-error { background: #f3ddd6; border: 1px solid #a4483a; }

.contact-card { padding: 28px; border-radius: var(--radius); background: var(--paper-dark); }
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }

/* ---- Footer -------------------------------------------------------------- */
.site-footer { background: var(--night); color: var(--paper); padding-top: clamp(56px, 8vw, 96px); }

.footer-grid { display: grid; gap: 36px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr 1fr; } }

.footer-name { font-size: 1.875rem; margin-bottom: 10px; color: var(--paper); }
.footer-tagline { max-width: 28ch; color: #cfc6bd; }
.footer-title { font: 500 1rem/1.4 var(--font-body); margin: 0 0 14px; color: #d9ae93; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; color: #e6dfd8; }
.footer-list a { text-underline-offset: 4px; }
.site-footer :focus-visible { outline-color: var(--paper); }

.footer-base { margin-top: 56px; padding-block: 22px 32px; border-top: 1px solid rgba(255, 255, 255, 0.16); color: #cfc6bd; font-size: 0.9375rem; }
.footer-base p { margin: 0; color: inherit; }
