/* 54Explore — styles
   Brand kit v3 "Color field" (adopted 2026-11-15, status: for now).
   Neutrals: ink (#1C1A17) on white (#FFFFFF) only — ivory is retired.
   Cross-region site chrome stays ink/white with no regional accent, per
   brand-kit.md's rule that cross-region content (the bio, a cross-region
   CTA) skips the regional-ground treatment; the whole site is cross-region
   today. Dark grounds (the footer, the "How it works" band, the thank-you
   panel) use ink ground + white text, matching the brand kit's CTA
   treatment ("content not tied to one region stays on Ink ground with
   White text").
   Display type: Archivo ExtraBold (800). Body/UI type: Archivo Medium
   (500), with Archivo Bold (700) for buttons/nav emphasis. Labels and
   metadata (the "Today in Africa" eyebrow, placeholder captions, the
   Instagram tile labels): DM Mono, uppercase, wide tracking — the brand
   kit calls this out by name as the Today in Africa label's typeface. */

:root {
  --ink: #1c1a17;
  --white: #ffffff;
  --line: rgba(28, 26, 23, 0.14);
  --line-on-ink: rgba(255, 255, 255, 0.22);
  /* Subtle section banding without a third neutral: a sheer ink wash over
     white, not a new color. Replaces v2's ivory-dim. */
  --wash: rgba(28, 26, 23, 0.04);
  --wash-strong: rgba(28, 26, 23, 0.08);

  --font-display: "Archivo", Arial, "Helvetica Neue", sans-serif;
  --font-body: "Archivo", Arial, "Helvetica Neue", sans-serif;
  --font-mono: "DM Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  /* Regional grounds (brand-kit.md "Color" table). Not used in current
     site chrome — the page is cross-region throughout — but defined here
     for the planned per-country pages (one page per country, later work)
     and any future region call-outs, so that work can reuse the system
     instead of re-deriving it. */
  --region-north: #c68642; /* Desert Ochre */
  --region-north-text: var(--ink);
  --region-west: #2e3f6e; /* Indigo */
  --region-west-text: var(--white);
  --region-central: #1f5c4c; /* Malachite */
  --region-central-text: var(--white);
  --region-east: #5c6b73; /* Highland Slate */
  --region-east-text: var(--white);
  --region-southern: #9a4f3e; /* Clay Rose — deepened 2026-11-16, 5.9:1 with white text */
  --region-southern-text: var(--white);
  --region-islands: #3c7a89; /* Lagoon Teal */
  --region-islands-text: var(--white);

  --max-width: 72rem;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;
  --radius: 2px;
}

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

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

body,
h1,
h2,
h3,
p,
figure,
blockquote,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

/* ---------- Base ---------- */
body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

h1 {
  font-size: clamp(2.3rem, 5vw + 1rem, 4.2rem);
}

h2 {
  font-size: clamp(1.7rem, 2.6vw + 1rem, 2.6rem);
}

h3 {
  font-size: clamp(1.15rem, 1vw + 0.9rem, 1.4rem);
}

p {
  max-width: 38rem;
}

.visually-hidden {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: var(--space-1) var(--space-2);
  z-index: 100;
}

.skip-link:focus {
  left: var(--space-2);
  top: var(--space-2);
}

/* Eyebrow ("Today in Africa") is exactly the label/metadata role
   brand-kit.md names for DM Mono. */
.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.72;
  margin-bottom: var(--space-2);
}

.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

section {
  padding-block: var(--space-6);
}

.section-head {
  max-width: 42rem;
  margin-bottom: var(--space-4);
}

.section-head p {
  margin-top: var(--space-2);
  opacity: 0.85;
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.9em 1.9em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--white);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  opacity: 0.86;
}

.btn:active {
  transform: translateY(1px);
}

.link-underline {
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 0.2em;
}

.link-underline:hover,
.link-underline:focus-visible {
  text-decoration-color: currentColor;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-2);
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.wordmark__mark {
  display: block;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
}

.site-header nav a {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  border: 1px solid var(--ink);
  padding: 0.55em 1.1em;
  border-radius: var(--radius);
}

/* ---------- Regional grounds (for later per-country pages / region
   call-outs — not used in current cross-region site chrome) ---------- */
.ground--north {
  background: var(--region-north);
  color: var(--region-north-text);
}

.ground--west {
  background: var(--region-west);
  color: var(--region-west-text);
}

.ground--central {
  background: var(--region-central);
  color: var(--region-central-text);
}

.ground--east {
  background: var(--region-east);
  color: var(--region-east-text);
}

.ground--southern {
  background: var(--region-southern);
  color: var(--region-southern-text);
}

.ground--islands {
  background: var(--region-islands);
  color: var(--region-islands-text);
}

/* ---------- Photo placeholders ----------
   $0 photo budget: no purchased or hotlinked stock. These stand in for
   full-bleed photography (the brand's luxury cue) until assets-rights
   sources licensed-free or owned photos. TODO(assets-rights): replace. */
.photo-placeholder {
  background: var(--ink);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-3);
  min-height: 12rem;
  border: 1px solid var(--line-on-ink);
}

/* Lighter placeholder variant for light-ground sections. Class name keeps
   its v2 "--ivory" suffix because renaming it means editing index.html's
   markup, which is out of scope for this brand-kit-v3 CSS pass; the
   colors underneath are v3 (a sheer ink wash on white, not ivory). */
.photo-placeholder--ivory {
  background: var(--wash-strong);
  color: var(--ink);
  border-color: var(--line);
}

.photo-placeholder__label {
  font-size: 0.78rem;
  line-height: 1.5;
  max-width: 24rem;
  opacity: 0.85;
}

.photo-placeholder__label strong {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.65rem;
  margin-bottom: 0.4em;
  opacity: 0.75;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: var(--space-5);
  /* The slider is the last element: it sits flush on the bottom edge of the hero. */
  padding-bottom: 0;
}

.hero .photo-placeholder {
  min-height: 22rem;
  margin-top: var(--space-4);
}

.hero__sub {
  margin-top: var(--space-2);
  font-size: 1.1rem;
  max-width: 34rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

/* ---------- Beyond the Big Five ---------- */
.big-five {
  background: var(--wash);
}

.big-five__grid {
  display: grid;
  gap: var(--space-4);
  align-items: center;
}

@media (min-width: 56rem) {
  .big-five__grid {
    grid-template-columns: 1.1fr 1fr;
  }
}

.big-five__copy p + p {
  margin-top: var(--space-2);
}

/* ---------- Ways to explore ---------- */
.cards-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
}

@media (min-width: 40rem) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  display: flex;
  flex-direction: column;
}

.card .photo-placeholder {
  min-height: 9rem;
  margin-bottom: var(--space-2);
}

.card h3 {
  margin-bottom: 0.4em;
}

.card p {
  font-size: 0.95rem;
  opacity: 0.85;
}

/* ---------- How it works ---------- */
.how {
  background: var(--ink);
  color: var(--white);
}

.how .section-head p {
  opacity: 0.8;
}

.steps {
  display: grid;
  gap: var(--space-4);
  counter-reset: step;
}

@media (min-width: 48rem) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  border-top: 1px solid var(--line-on-ink);
  padding-top: var(--space-3);
}

.step__icon {
  display: block;
  width: 3rem;
  height: 3rem;
  margin-bottom: var(--space-2);
  color: #e3b04f; /* hero gold, 8.8:1 on ink */
}

.step__number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  display: block;
  margin-bottom: var(--space-1);
  opacity: 0.9;
}

.step h3 {
  margin-bottom: 0.4em;
}

.step p {
  opacity: 0.85;
  font-size: 0.97rem;
}

/* ---------- Who plans your journey ---------- */
.specialist__grid {
  display: grid;
  gap: var(--space-4);
  align-items: center;
}

@media (min-width: 56rem) {
  .specialist__grid {
    grid-template-columns: 1fr 1.1fr;
  }
  .specialist__grid .photo-placeholder {
    order: 2;
  }
}

/* ---------- Today in Africa / Instagram strip ---------- */
.instagram {
  background: var(--wash);
}

.instagram__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-1);
  margin-top: var(--space-3);
}

@media (min-width: 40rem) {
  .instagram__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 56rem) {
  .instagram__grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.instagram__tile {
  aspect-ratio: 1 / 1;
  background: var(--ink);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.instagram__tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.instagram__tile:hover img,
.instagram__tile:focus-visible img {
  transform: scale(1.04);
}

.instagram__tile span {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.62rem;
  text-align: center;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
  padding: 0.6em;
}

.instagram__cta {
  margin-top: var(--space-3);
}

/* ---------- Intake form ---------- */
.intake {
  scroll-margin-top: 4rem;
}

.form-grid {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

@media (min-width: 40rem) {
  .form-grid--two {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4em;
}

.field label,
.field legend {
  font-size: 0.85rem;
  font-weight: 700;
}

.field .hint {
  font-size: 0.78rem;
  opacity: 0.65;
  font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  font: inherit;
  font-size: 1rem;
  padding: 0.75em 0.9em;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  width: 100%;
}

textarea {
  min-height: 6rem;
  resize: vertical;
}

fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-2);
}

.checkbox-group {
  display: grid;
  gap: 0.6em;
  margin-top: 0.6em;
}

@media (min-width: 40rem) {
  .checkbox-group {
    grid-template-columns: 1fr 1fr;
  }
}

.checkbox-row,
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6em;
  font-size: 0.92rem;
}

.checkbox-row input,
.consent-row input {
  margin-top: 0.25em;
  flex-shrink: 0;
}

.travelers-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
}

.travelers-row input[type="number"] {
  max-width: 7rem;
}

/* Honeypot: hidden from sighted users, present for bots. Not display:none
   so it stays in the accessibility tree isn't a concern — it's unlabeled
   and off-screen, never reached by keyboard/SR users in practice, and
   skipped via tabindex. */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-submit {
  margin-top: var(--space-2);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
}

.form-note {
  font-size: 0.8rem;
  opacity: 0.7;
}

.form-status {
  font-size: 0.92rem;
}

/* Error-state red is a functional status color, not part of the brand
   palette (ivory/accent system) this pass replaces — left as-is. */
.form-status[data-state="error"] {
  color: #7a2e1e;
}

.thank-you {
  display: none;
  background: var(--ink);
  color: var(--white);
  padding: var(--space-4);
  margin-top: var(--space-4);
  border-radius: var(--radius);
}

.thank-you.is-visible {
  display: block;
}

.thank-you h3 {
  margin-bottom: 0.5em;
}

.thank-you a {
  color: var(--white);
}

.intake-form.is-hidden {
  display: none;
}

/* ---------- Partners ---------- */
.partners {
  text-align: center;
}

.partners .section-head {
  margin-inline: auto;
  text-align: center;
}

.placeholder-text {
  text-decoration: underline;
  text-decoration-style: dashed;
  text-decoration-color: var(--line);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--white);
  padding-block: var(--space-4);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

@media (min-width: 40rem) {
  .site-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.site-footer nav {
  display: flex;
  gap: var(--space-3);
}

.site-footer a {
  text-decoration: none;
  opacity: 0.85;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  opacity: 1;
}

.site-footer small {
  display: block;
  margin-top: var(--space-2);
  opacity: 0.6;
  font-size: 0.78rem;
}

/* ---------- Privacy page ---------- */
.legal {
  max-width: 42rem;
}

.legal h1 {
  margin-bottom: var(--space-3);
}

.legal p + p,
.legal p + h2 {
  margin-top: var(--space-3);
}

.legal h2 {
  font-size: 1.3rem;
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* Hero emphasis: "Africa" in Desert Ochre so the continent pops. Large
   display text only (3.0:1 on white meets the 3:1 large-text threshold);
   never use this color for body copy on white. Malachite was tried on
   2026-11-16 and rejected. */
.accent-word {
  color: var(--region-north);
}

/* Hero on Ink (2026-11-16): ink ground, white text, Desert Ochre "Africa"
   (5.7:1 on ink). Only the hero changes; the rest of the page is unchanged. */
.hero {
  background: var(--ink);
  color: var(--white);
}

.hero .eyebrow {
  color: var(--white);
}

.hero .btn-primary {
  background: var(--white);
  color: var(--ink);
}

.hero .link-underline {
  text-decoration-color: var(--line-on-ink);
}

.hero a:focus-visible {
  outline-color: var(--white);
}

.hero .photo-placeholder {
  background: rgba(255, 255, 255, 0.06);
}

/* Hero gold (2026-11-16, option A): a brighter gold than Desert Ochre for
   the "Africa" word and the Start planning button on the ink hero
   (#E3B04F, about 8:1 on ink; ink button text). Hero only. */
.hero .accent-word {
  color: #e3b04f;
}

.hero .btn-primary {
  background: #e3b04f;
  color: var(--ink);
}

/* Hero photo (own photograph, Lalibela, Ethiopia) */
.hero__photo {
  margin: var(--space-4) 0 0;
}

.hero__photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2000 / 979;
  object-fit: cover;
  min-height: 16rem;
}

/* Section photos (own, Expeditions Ducret with permission, Unsplash: see status/asset-log.md) */
.photo-frame {
  margin: 0;
  overflow: hidden;
  background: var(--ink);
}

.photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-frame--card {
  aspect-ratio: 3 / 2;
  margin-bottom: var(--space-2);
}


/* Hero slider */
.hero-slider {
  margin-top: var(--space-4);
  position: relative;
}

.hero-slider__viewport {
  position: relative;
  aspect-ratio: 2000 / 979;
  min-height: 16rem;
  max-height: 80vh;
  width: 100%;
  overflow: hidden;
  background: var(--ink);
}

.hero-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: none;
  }
}

.site-footer__credits {
  font-size: 0.72rem;
  opacity: 0.7;
  margin-bottom: 0.4rem;
}

.hero-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  color: var(--white);
  font-size: 2.25rem;
  line-height: 1;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.55);
  opacity: 0.45;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.hero-slider__arrow--prev {
  left: 0.5rem;
}

.hero-slider__arrow--next {
  right: 0.5rem;
}

.hero-slider:hover .hero-slider__arrow,
.hero-slider__arrow:focus-visible {
  opacity: 0.9;
}

.hero-slider__arrow:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: -4px;
}

/* FAQ */
.faq__list { max-width: 46rem; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 2rem 1.1rem 0;
  font-weight: 600;
  position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 1rem;
  font-weight: 400;
}
.faq__item[open] summary::after { content: "\2212"; }
.faq__item summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.faq__item p { margin: 0 0 1.25rem; max-width: 40rem; }

/* Collapsible intake form */
.intake-collapse > summary { list-style: none; cursor: pointer; display: inline-block; }
.intake-collapse > summary::-webkit-details-marker { display: none; }
.intake-collapse[open] > summary { display: none; }
.intake-collapse:has(.intake-form.is-hidden) { display: none; }
