/* ==========================================================================
   Africa Privé — stylesheet
   --------------------------------------------------------------------------
   1.  Design tokens
   2.  Reset & base
   3.  Typography
   4.  Buttons & links
   5.  Masthead & navigation
   6.  Hero
   7.  Sections & prose
   8.  Split panels
   9.  Cards & grids
   10. Experience detail
   11. Hotel tiers
   12. Services & enquiry form
   13. Call to action
   14. Footer
   15. Motion & responsive
   ========================================================================== */


/* 1. Design tokens
   ========================================================================== */

:root {
  /* Colour */
  --ink:          #0b0b0c;
  --ink-raised:   #131315;
  --ink-line:     rgba(255, 255, 255, 0.12);
  --cream:        #faf8f5;
  --cream-line:   rgba(11, 11, 12, 0.12);
  --gold:         #c0a172;
  --gold-bright:  #d6bb8e;

  --on-dark:         rgba(255, 255, 255, 0.94);
  --on-dark-muted:   rgba(255, 255, 255, 0.66);
  --on-light:        #1a1a1c;
  --on-light-muted:  rgba(26, 26, 28, 0.66);

  /* Type */
  --display: "Cormorant Garamond", "Times New Roman", serif;
  --body:    "Jost", "Helvetica Neue", Arial, sans-serif;

  --step--1: clamp(0.75rem, 0.72rem + 0.15vw, 0.82rem);
  --step-0:  clamp(0.95rem, 0.91rem + 0.2vw, 1.05rem);
  --step-1:  clamp(1.1rem, 1.02rem + 0.4vw, 1.3rem);
  --step-2:  clamp(1.9rem, 1.5rem + 1.9vw, 3rem);
  --step-3:  clamp(2.6rem, 1.7rem + 4.2vw, 5.5rem);

  /* Space */
  --gutter:  clamp(1.5rem, 1rem + 3vw, 5rem);
  --band:    clamp(4.5rem, 3rem + 8vw, 10rem);
  --measure: 42rem;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}


/* 2. Reset & base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--on-dark);
  font-family: var(--body);
  font-size: var(--step-0);
  font-weight: 300;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

ul,
ol,
dl,
dd {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--gutter);
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--cream);
  color: var(--ink);
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}


/* 3. Typography
   ========================================================================== */

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.005em;
}

em {
  font-style: italic;
}

.eyebrow {
  margin: 0 0 1.5rem;
  color: var(--gold);
  font-size: var(--step--1);
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  line-height: 1.4;
}

.section__title {
  font-size: var(--step-2);
  text-wrap: balance;
}

.section__title em {
  color: var(--gold);
}

.accent {
  color: var(--gold-bright);
  font-family: var(--display);
  font-size: var(--step-1);
  font-style: italic;
}

.strap {
  display: block;
  color: var(--gold);
  font-family: var(--body);
  font-size: var(--step--1);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.inline-list {
  display: block;
  color: var(--on-dark-muted);
}

.pull-quote {
  margin: 0;
  max-width: 34ch;
  color: var(--gold-bright);
  font-family: var(--display);
  font-size: var(--step-1);
  font-style: italic;
  line-height: 1.5;
}


/* 4. Buttons & links
   ========================================================================== */

a {
  color: inherit;
  text-decoration-color: rgba(192, 161, 114, 0.5);
  text-underline-offset: 0.3em;
}

a:hover {
  text-decoration-color: var(--gold);
}

.button {
  display: inline-block;
  padding: 1.1em 2.4em;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: inherit;
  font-size: var(--step--1);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.4s var(--ease), background-color 0.4s var(--ease),
    color 0.4s var(--ease);
}

.button:hover {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--ink);
}

.button--quiet {
  padding-left: 0;
  padding-right: 0;
  border: 0;
  border-bottom: 1px solid rgba(192, 161, 114, 0.55);
  color: var(--gold);
}

.button--quiet:hover {
  background: transparent;
  border-bottom-color: var(--gold);
  color: var(--gold-bright);
}

.section--light .button {
  border-color: rgba(11, 11, 12, 0.3);
}


/* 5. Masthead & navigation
   ========================================================================== */

.masthead {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
  padding: 1.75rem var(--gutter);
  transition: background-color 0.5s var(--ease), padding 0.5s var(--ease);
}

.masthead::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(11, 11, 12, 0.55), transparent);
  pointer-events: none;
}

.masthead.is-stuck {
  background: rgba(11, 11, 12, 0.92);
  padding-block: 1.1rem;
  backdrop-filter: blur(12px);
}

.masthead.is-stuck::before {
  opacity: 0;
}

.masthead > * {
  position: relative;
}

.wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5em;
  margin-right: auto;
  font-family: var(--display);
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem);
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark__row {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}

.wordmark__type {
  display: inline-flex;
  gap: 0.35em;
}

.wordmark__second {
  color: var(--gold);
  font-style: italic;
}

/* Inline brand marks — stroked outlines that inherit the surrounding colour. */
.mark {
  display: block;
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}

.mark--africa {
  width: auto;
  height: 1.5em;
  transition: stroke 0.3s var(--ease);
}

.mark--cape {
  width: auto;
  height: 2.6em;
  stroke-width: 2.6;
}

.wordmark:hover .mark--africa {
  stroke: var(--gold-bright);
}

/* The ruled tagline, shown on the footer lockup only. */
.wordmark__strap {
  display: flex;
  align-items: center;
  gap: 0.9em;
  width: 100%;
  color: var(--gold);
  font-family: var(--body);
  font-size: 0.5em;
  font-weight: 300;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.wordmark__strap::before,
.wordmark__strap::after {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(192, 161, 114, 0.55), transparent);
  content: "";
}

.nav__list {
  display: flex;
  gap: clamp(1rem, 2.2vw, 2.6rem);
}

.nav__list a,
.nav__cta {
  font-size: var(--step--1);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.3s var(--ease);
}

.nav__list a:hover,
.nav__list a[aria-current] {
  color: var(--gold);
}

.nav__cta {
  padding-bottom: 0.4em;
  border-bottom: 1px solid rgba(192, 161, 114, 0.6);
  color: var(--gold);
}

.nav__cta:hover {
  color: var(--gold-bright);
}

.nav__toggle {
  display: none;
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav__toggle-bar,
.nav__toggle-bar::before,
.nav__toggle-bar::after {
  position: absolute;
  left: 50%;
  width: 1.5rem;
  height: 1px;
  background: currentColor;
  transform: translateX(-50%);
  transition: transform 0.35s var(--ease), opacity 0.2s linear;
}

.nav__toggle-bar {
  top: 50%;
}

.nav__toggle-bar::before,
.nav__toggle-bar::after {
  content: "";
  left: 0;
  transform: none;
}

.nav__toggle-bar::before { top: -7px; }
.nav__toggle-bar::after  { top:  7px; }

.nav__toggle[aria-expanded="true"] .nav__toggle-bar {
  background: transparent;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar::before {
  top: 0;
  transform: rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar::after {
  top: 0;
  transform: rotate(-45deg);
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: grid;
  place-items: center;
  background: rgba(11, 11, 12, 0.97);
  backdrop-filter: blur(16px);
}

.drawer[hidden] {
  display: none;
}

.drawer__list {
  display: grid;
  gap: 1.75rem;
  text-align: center;
}

.drawer__list a {
  font-family: var(--display);
  font-size: clamp(1.6rem, 1.2rem + 2.5vw, 2.6rem);
  text-decoration: none;
}

.drawer__list a:hover {
  color: var(--gold);
}


/* 6. Hero
   ========================================================================== */

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: calc(var(--band) + 4rem) var(--gutter) var(--band);
  overflow: hidden;
  text-align: center;
}

.hero--short {
  min-height: 68svh;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero--rotate .hero__image {
  opacity: 0;
  transition: opacity 2s ease;
}

.hero--rotate .hero__image.is-active {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .hero--rotate .hero__image {
    transition: none;
  }
}

/* Two layers: a soft pool of shade behind the words so the type stays legible
   over bright photographs, and an overall darkening towards the edges. */
.hero__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 45% at center, rgba(11, 11, 12, 0.62) 0%, rgba(11, 11, 12, 0) 100%),
    radial-gradient(ellipse at center, rgba(11, 11, 12, 0.15) 0%, rgba(11, 11, 12, 0.62) 100%),
    linear-gradient(to bottom, rgba(11, 11, 12, 0.55), transparent 38%, rgba(11, 11, 12, 0.72));
}

.hero__content {
  position: relative;
  max-width: 60rem;
  text-shadow: 0 1px 24px rgba(11, 11, 12, 0.55);
}

.hero__back {
  display: inline-block;
  margin-bottom: 2rem;
  color: var(--on-dark-muted);
  font-size: var(--step--1);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
}

.hero__back:hover {
  color: var(--gold);
}

.hero__mark {
  display: flex;
  justify-content: center;
  margin: 0 0 1.25rem;
}

.hero__mark .mark {
  height: clamp(3rem, 2.2rem + 3vw, 5.5rem);
  stroke: var(--gold);
  stroke-width: 1.6;
}

.hero__title {
  font-size: var(--step-3);
  text-wrap: balance;
}

.hero__title em {
  color: inherit;
}

.hero__subtitle {
  margin: 1.5rem auto 0;
  max-width: 40ch;
  text-wrap: balance;
  font-family: var(--display);
  font-size: var(--step-1);
  font-style: italic;
  color: var(--on-dark-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.5rem;
  justify-content: center;
  align-items: center;
  margin: 3rem 0 0;
}


/* 6b. Section navigation
   ========================================================================== */

.subnav {
  padding: clamp(1.75rem, 3vw, 2.75rem) var(--gutter);
  background:
    radial-gradient(ellipse 70% 100% at 50% 0%, rgba(192, 161, 114, 0.09), transparent 70%),
    var(--ink-raised);
  border-bottom: 1px solid var(--ink-line);
}

.subnav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  max-width: 78rem;
  margin-inline: auto;
}

/* Hairline chips. The gold sweep grows from the centre on hover, so the
   label stays put and only the surface changes. */
.subnav__list a {
  position: relative;
  display: block;
  isolation: isolate;
  padding: 0.95em 1.85em;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--on-dark-muted);
  font-size: var(--step--1);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  transition: color 0.45s var(--ease), border-color 0.45s var(--ease);
}

.subnav__list a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, rgba(192, 161, 114, 0.22), rgba(192, 161, 114, 0.08));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.55s var(--ease);
}

.subnav__list a:hover {
  color: var(--gold-bright);
  border-color: rgba(192, 161, 114, 0.55);
}

.subnav__list a:hover::before {
  transform: scaleX(1);
}

/* The current page reads as filled rather than outlined. */
.subnav__list a[aria-current] {
  color: var(--ink);
  border-color: var(--gold);
  font-weight: 400;
}

.subnav__list a[aria-current]::before {
  background: linear-gradient(120deg, var(--gold-bright), var(--gold));
  transform: scaleX(1);
}


/* 7. Sections & prose
   ========================================================================== */

.section {
  padding: var(--band) var(--gutter);
}

.section--dark  { background: var(--ink);   color: var(--on-dark); }
.section--light { background: var(--cream); color: var(--on-light); }

.section--light .eyebrow      { color: #8a6f43; }
.section--light .accent       { color: #8a6f43; }
.section--light .strap        { color: #8a6f43; }
.section--light .inline-list  { color: var(--on-light-muted); }

.section__inner {
  max-width: var(--measure);
  margin-inline: auto;
  text-align: center;
}

.section__inner--wide {
  max-width: 78rem;
}

.prose {
  margin-top: 2rem;
}

.prose p {
  margin: 0 0 1.5rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose--lead p {
  font-size: var(--step-1);
  line-height: 1.65;
  color: var(--on-dark-muted);
}

.section--light .prose--lead p {
  color: var(--on-light-muted);
}


/* Bullet lists with a hairline marker */
.ticks {
  display: grid;
  gap: 0.9rem;
}

.ticks li {
  position: relative;
  padding-left: 2rem;
  color: var(--on-dark-muted);
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 1rem;
  height: 1px;
  background: var(--gold);
}

/* Definition rows: "Term — description" */
.pairs {
  display: grid;
  gap: 1.75rem;
  text-align: left;
}

.pairs--centred {
  margin-top: 3rem;
  text-align: center;
}

.pairs__row {
  display: grid;
  gap: 0.4rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--ink-line);
}

.pairs__row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.pairs dt {
  font-family: var(--display);
  font-size: var(--step-1);
  color: var(--gold-bright);
}

.pairs dd {
  color: var(--on-dark-muted);
}

.section--light .pairs__row { border-color: var(--cream-line); }
.section--light .pairs dt   { color: #8a6f43; }
.section--light .pairs dd   { color: var(--on-light-muted); }
.section--light .ticks li   { color: var(--on-light-muted); }
.section--light .tier__note { color: var(--on-light-muted); }

.rank-table-wrap {
  overflow-x: auto;
  margin-top: 2.5rem;
}

.rank-table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: var(--step--1);
}

.rank-table caption {
  text-align: left;
  margin-bottom: 1.25rem;
  color: var(--on-dark-muted);
  font-style: italic;
}

.rank-table th,
.rank-table td {
  padding: 0.85rem 1.25rem 0.85rem 0;
  text-align: left;
  border-bottom: 1px solid var(--ink-line);
  white-space: nowrap;
}

.rank-table td:nth-child(2) { white-space: normal; }

.rank-table th {
  font-family: var(--jost, inherit);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-bright);
  font-weight: 500;
}

.rank-table td:first-child {
  font-family: var(--display);
  font-size: var(--step-0);
  color: var(--gold-bright);
}

.rank-table td a {
  color: var(--on-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
}

.rank-table td a:hover { color: var(--gold-bright); }

.rank-table__tier {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

.spaced-top    { margin-top: 2.5rem; }
.spaced-top--lg { margin-top: 3rem; }

.section__title--sub {
  font-size: var(--step-1);
  margin-top: 2.5rem;
  margin-bottom: 0;
}


/* 8. Split panels
   ========================================================================== */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--ink);
}

.split--light {
  background: var(--cream);
  color: var(--on-light);
}

.split--flip .split__media {
  order: 2;
}

.split__media {
  position: relative;
  min-height: clamp(24rem, 40vw, 42rem);
  overflow: hidden;
}

.split__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.split:hover .split__media img {
  transform: scale(1.03);
}

.split__body {
  display: grid;
  align-items: center;
  padding: var(--band) var(--gutter);
}

.split__text {
  max-width: 34rem;
}


/* 9. Cards & grids
   ========================================================================== */

.grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.75rem);
}

.grid--cards {
  grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
}

.card {
  position: relative;
}

.card__link {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  text-decoration: none;
  background: var(--ink);
}

.card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}

.card__link:hover .card__image {
  transform: scale(1.05);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
}

.gallery__item {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ink);
  cursor: pointer;
}

.gallery__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
  pointer-events: none;
}

.gallery__item:hover .gallery__image {
  transform: scale(1.05);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 4rem);
  background: rgba(11, 11, 12, 0.94);
  cursor: zoom-out;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: default;
}

.lightbox__close {
  position: absolute;
  top: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: transparent;
  color: var(--on-dark);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.card__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(11, 11, 12, 0.94) 0%,
    rgba(11, 11, 12, 0.78) 22%,
    rgba(11, 11, 12, 0.25) 55%,
    rgba(11, 11, 12, 0.1) 100%
  );
  transition: opacity 0.6s var(--ease);
}

.card__link:hover .card__veil {
  opacity: 0.85;
}

.card__text {
  position: absolute;
  inset: auto 0 0;
  display: block;
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  color: var(--on-dark);
  text-align: left;
}

.card__text .eyebrow {
  display: block;
  margin-bottom: 0.75rem;
}

.card__title {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  line-height: 1.15;
}

.card__strap {
  display: block;
  margin-top: 0.75rem;
  color: var(--on-dark-muted);
  font-size: var(--step--1);
  line-height: 1.65;
}


/* 10. Experience detail
   ========================================================================== */

.detail {
  max-width: var(--measure);
  margin-inline: auto;
  padding: var(--band) var(--gutter);
  text-align: left;
}

.itineraries {
  margin-top: 3rem;
  text-align: left;
}

.itinerary + .itinerary {
  margin-top: 3.5rem;
  padding-top: 3.5rem;
  border-top: 1px solid var(--cream-line);
}

.itinerary__heading {
  margin-bottom: 1.5rem;
  font-size: var(--step-1);
  letter-spacing: 0.02em;
  color: #8a6f43;
}

.detail__block + .detail__block {
  margin-top: 3.5rem;
}

.detail__heading {
  margin-bottom: 1.5rem;
  font-size: var(--step-1);
  letter-spacing: 0.02em;
  color: var(--gold-bright);
}

.detail__block .prose {
  margin-top: 0;
}

.detail__footnote {
  margin: 4rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid var(--ink-line);
  color: var(--on-dark-muted);
  font-size: var(--step--1);
  font-style: italic;
}

.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: var(--band);
  padding-top: 2.5rem;
  border-top: 1px solid var(--ink-line);
}

.pager__link {
  text-decoration: none;
}

.pager__link--next {
  text-align: right;
}

.pager__link .eyebrow {
  margin-bottom: 0.6rem;
}

.pager__title {
  display: block;
  font-family: var(--display);
  font-size: var(--step-1);
  line-height: 1.25;
  transition: color 0.3s var(--ease);
}

.pager__link:hover .pager__title {
  color: var(--gold);
}


/* 11. Hotel tiers
   ========================================================================== */

.tier {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--ink-line);
}

.tier--flip .tier__media {
  order: 2;
}

.tier__media {
  position: relative;
  min-height: clamp(22rem, 34vw, 34rem);
  overflow: hidden;
}

.tier__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tier__body {
  display: grid;
  align-content: center;
  padding: var(--band) var(--gutter);
}

.tier__note {
  max-width: 34rem;
  margin: 1.75rem 0 0;
  color: var(--on-dark-muted);
}

.tier__list {
  counter-reset: tier;
  margin-top: 2.5rem;
  display: grid;
  gap: 1rem;
}

.tier__list li {
  counter-increment: tier;
  display: flex;
  gap: 1.25rem;
  align-items: baseline;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--ink-line);
  font-family: var(--display);
  font-size: var(--step-1);
}

.tier__list li::before {
  content: counter(tier, decimal-leading-zero);
  color: var(--gold);
  font-family: var(--body);
  font-size: var(--step--1);
  letter-spacing: 0.2em;
}


/* 12. Services & enquiry form
   ========================================================================== */

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr));
  gap: 0;
  text-align: left;
}

.services li {
  padding: 1.75rem 1rem;
  border-bottom: 1px solid var(--cream-line);
  font-family: var(--display);
  font-size: var(--step-1);
  line-height: 1.3;
}

.services-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(22rem, 100%), 1fr));
  gap: clamp(2.5rem, 4vw, 4rem) clamp(2.5rem, 5vw, 5rem);
  text-align: left;
}

.services-group__heading {
  margin-bottom: 0.5rem;
  font-family: var(--display);
  font-size: var(--step-0);
  font-style: italic;
  color: var(--gold);
}

.services-group .services {
  grid-template-columns: 1fr;
}

.services-group .services li {
  padding: 1.1rem 0;
}

.enquiry {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: clamp(3rem, 6vw, 6rem);
  text-align: left;
}

.enquiry__aside .section__title {
  margin-bottom: 2.5rem;
}

.enquiry__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}

.field {
  display: grid;
  gap: 0.6rem;
}

.field--wide {
  grid-column: 1 / -1;
}

.field label {
  font-size: var(--step--1);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

.field input,
.field select,
.field textarea {
  padding: 0.9rem 1rem;
  border: 1px solid var(--ink-line);
  background: var(--ink-raised);
  color: var(--on-dark);
  font-family: inherit;
  font-size: var(--step-0);
  font-weight: 300;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold);
  outline: none;
}

.field__note {
  margin: 1rem 0 0;
  color: var(--on-dark-muted);
  font-size: var(--step--1);
  font-style: italic;
}


/* 13. Call to action
   ========================================================================== */

.cta {
  padding: var(--band) var(--gutter);
  background: var(--ink-raised);
  border-top: 1px solid var(--ink-line);
  text-align: center;
}

.cta__inner {
  max-width: 46rem;
  margin-inline: auto;
}

.cta__title {
  font-size: var(--step-2);
  text-wrap: balance;
}

.cta__title em {
  color: var(--gold);
}

.cta__text {
  margin: 1.5rem auto 2.75rem;
  max-width: 40ch;
  color: var(--on-dark-muted);
}


/* 14. Footer
   ========================================================================== */

.footer {
  padding: var(--band) var(--gutter) 3rem;
  background: var(--ink);
  border-top: 1px solid var(--ink-line);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: clamp(2.5rem, 5vw, 4rem);
  max-width: 78rem;
  margin-inline: auto;
}

.wordmark--footer {
  margin-right: 0;
}

.footer__strap {
  margin: 1.25rem 0 0;
  max-width: 22ch;
  color: var(--on-dark-muted);
  font-family: var(--display);
  font-size: var(--step-1);
  font-style: italic;
}

.footer__heading {
  margin-bottom: 1.5rem;
  color: var(--gold);
  font-family: var(--body);
  font-size: var(--step--1);
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.footer__column ul {
  display: grid;
  gap: 0.85rem;
}

.footer__column a {
  color: var(--on-dark-muted);
  font-size: var(--step-0);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

.footer__column a:hover {
  color: var(--gold);
}

.footer__legal {
  max-width: 78rem;
  margin: var(--band) auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--ink-line);
  color: rgba(255, 255, 255, 0.4);
  font-size: var(--step--1);
  letter-spacing: 0.12em;
}

.footer__legal a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.footer__legal a:hover {
  color: var(--gold-bright);
}


/* 15. Motion & responsive
   ========================================================================== */

/* Elements fade up as they enter the viewport (see assets/js/site.js).
   Scoped to .js so that content is always visible without JavaScript. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(1.75rem);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 60rem) {
  .nav,
  .nav__cta {
    display: none;
  }

  .nav__toggle {
    display: block;
    margin-left: auto;
  }

  .split,
  .tier {
    grid-template-columns: 1fr;
  }

  .split--flip .split__media,
  .tier--flip .tier__media {
    order: 0;
  }

  .split__media,
  .tier__media {
    min-height: 60vw;
  }

  .enquiry {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 40rem) {
  .enquiry__form {
    grid-template-columns: 1fr;
  }

  .pager {
    grid-template-columns: 1fr;
  }

  .pager__link--next {
    text-align: left;
  }

  .footer__inner {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .masthead,
  .drawer,
  .cta,
  .hero__veil {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }
}

/* ---- Africa Privé update: quick-link tiles, films, dining guide ---- */
.tiles { background: #0e0d0b; padding: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 4vw, 3rem); }
.tiles__grid { list-style: none; margin: 0 auto; padding: 0; max-width: 1400px; display: grid; gap: clamp(.75rem, 1.5vw, 1.25rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.tile { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.tile__link { position: absolute; inset: 0; display: block; color: #fff; text-decoration: none; }
.tile__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.tile__link:hover .tile__image, .tile__link:focus-visible .tile__image { transform: scale(1.06); }
.tile__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 35%, rgba(0,0,0,.78)); }
.tile__text { position: absolute; left: 1.25rem; right: 1.25rem; bottom: 1.25rem; display: block; }
.tile__title { display: block; font-family: 'Cormorant Garamond', serif; font-size: clamp(1.4rem, 2vw, 1.8rem); line-height: 1.1; }
.tile__strap { display: block; margin-top: .4rem; font-size: .85rem; opacity: .9; }

.videos { display: grid; gap: 1.25rem; margin-top: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.videos--1 { grid-template-columns: minmax(0, 900px); justify-content: center; }
.video { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.videos__links { margin-top: 1.5rem; }

.dining-area { margin-top: clamp(2.5rem, 5vw, 4rem); }
.dining-area__name { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 400; margin: 0 0 .5rem; }
.dining-area__blurb { max-width: 60ch; opacity: .8; margin: 0 0 2rem; }
.restaurant { display: grid; gap: 1.5rem 3rem; padding: 2rem 0; border-top: 1px solid rgba(128,128,128,.3); }
.restaurant--photo { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
.restaurant--photo.restaurant--flip .restaurant__media { order: 2; }
.restaurant__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.restaurant__name { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.6rem, 2.4vw, 2.1rem); font-weight: 400; margin: .25rem 0 1rem; }
.restaurant__body p:not(.eyebrow) { max-width: 68ch; line-height: 1.7; }
@media (max-width: 800px) { .restaurant--photo { grid-template-columns: 1fr; } .restaurant--photo.restaurant--flip .restaurant__media { order: 0; } }

/* ---- Gallery mosaic ---- */
.gallery--mosaic { grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(8rem, 14vw, 14rem); grid-auto-flow: dense; }
.gallery--mosaic .gallery__item { aspect-ratio: auto; grid-column: span 3; grid-row: span 1; }
.gallery--mosaic .gallery__item:nth-child(5n + 1) { grid-column: span 6; grid-row: span 2; }
.gallery--mosaic .gallery__item:nth-child(10n + 6) { grid-column: 7 / span 6; }
@media (max-width: 800px) {
  .gallery--mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(7rem, 30vw, 11rem); }
  .gallery--mosaic .gallery__item, .gallery--mosaic .gallery__item:nth-child(10n + 6) { grid-column: span 1; grid-row: span 1; }
  .gallery--mosaic .gallery__item:nth-child(5n + 1) { grid-column: span 2; grid-row: span 2; }
}
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 3rem; height: 3rem; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; background: rgba(0,0,0,.35); color: var(--on-dark, #fff); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.lightbox__nav:hover { background: rgba(255,255,255,.15); }
.lightbox__nav--prev { left: clamp(.75rem, 2vw, 2rem); }
.lightbox__nav--next { right: clamp(.75rem, 2vw, 2rem); }
.lightbox__count { position: absolute; bottom: clamp(.75rem, 2vw, 1.5rem); left: 0; right: 0; text-align: center; font-size: .8rem; letter-spacing: .15em; color: rgba(255,255,255,.7); }
.gallery--mosaic { margin-top: clamp(2rem, 4vw, 3rem); }

/* ---- Sample Journeys (packages-style cards, timeline, at-a-glance) ---- */
.jgrid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 24rem), 1fr)); margin-top: 2.5rem; }
.jcard { display: flex; flex-direction: column; background: var(--ink-raised); color: var(--on-dark); border: 1px solid var(--ink-line); }
.jcard__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.jcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.jcard:hover .jcard__media img { transform: scale(1.05); }
.jcard__body { display: flex; flex-direction: column; gap: .9rem; padding: 1.5rem 1.5rem 1.75rem; flex: 1; }
.jcard__badges { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; }
.jcard__badges span { padding: .25rem .6rem; border: 1px solid var(--ink-line); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-bright); }
.jcard__title { margin: 0; font-family: var(--display); font-weight: 400; font-size: var(--step-2); line-height: 1.08; }
.jcard__title a { color: inherit; text-decoration: none; }
.jcard__title a:hover { color: var(--gold-bright); }
.jcard__sub { margin: 0; color: var(--on-dark-muted); font-size: var(--step--1); }
.jcard__price { margin: 0; font-family: var(--display); font-size: var(--step-1); color: var(--gold-bright); }
.jcard__price span { display: block; font-family: var(--body); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); }
.jcard__hl { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; font-size: var(--step--1); color: var(--on-dark-muted); }
.jcard__hl li { position: relative; padding-left: 1.25rem; }
.jcard__hl li::before { content: ""; position: absolute; left: 0; top: .7em; width: .7rem; height: 1px; background: var(--gold); }
.jcard__details { border-top: 1px solid var(--ink-line); padding-top: .75rem; }
.jcard__details summary { cursor: pointer; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-bright); list-style: none; }
.jcard__details summary::-webkit-details-marker { display: none; }
.jcard__details summary::after { content: " \2193"; }
.jcard__details[open] summary::after { content: " \2191"; }
.jcard__more { margin: auto 0 0; padding-top: .5rem; }

.timeline { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 0; border-left: 1px solid var(--gold); }
.timeline__item { position: relative; display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; padding: 0 0 1.5rem 1.5rem; }
.timeline__item::before { content: ""; position: absolute; left: -4px; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.timeline__day { font-family: var(--display); font-size: var(--step-1); color: var(--gold-bright); }
.section--light .timeline__day { color: #8a6f43; }
.timeline__text { line-height: 1.65; }
.jcard .timeline__item { grid-template-columns: 1fr; gap: .15rem; padding-bottom: 1rem; }
.jcard .timeline__text { font-size: var(--step--1); color: var(--on-dark-muted); }
@media (max-width: 600px) { .timeline__item { grid-template-columns: 1fr; gap: .2rem; } }

.glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1.5rem 2rem; margin: 0; }
.glance dt { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-bright); margin-bottom: .35rem; }
.glance dd { margin: 0; font-family: var(--display); font-size: var(--step-1); }

.ticks--wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 1rem 3rem; max-width: none; }
.section--tight { padding-block: clamp(2rem, 4vw, 3.5rem); }
.jcard { text-align: left; } .jcard__badges { justify-content: flex-start; } .jcard__more { text-align: left; }
.ticks--wide, .timeline { text-align: left; max-width: 62rem; margin-inline: auto; }
.ticks--wide { max-width: 72rem; }
.timeline__text { text-align: left; }
.jgrid .timeline { margin-inline: 0; }
.jcard .ticks, .jcard__hl { text-align: left; }

/* ---- Journey stays: choose-your-hotel with micro images ---- */
.timeline__text p { margin: 0 0 .75rem; }
.stay { margin-top: 1rem; padding: 1rem 1.1rem 1.1rem; border: 1px solid var(--ink-line); background: rgba(255,255,255,.03); }
.section--light .stay { border-color: var(--cream-line); background: rgba(11,11,12,.03); }
.stay__label { margin: 0 0 .8rem; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-bright); }
.section--light .stay__label { color: #8a6f43; }
.stay__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.stay__item { display: grid; grid-template-columns: 3.25rem 1fr; grid-template-rows: auto auto; column-gap: .8rem; align-items: center; padding: .4rem; text-decoration: none; color: inherit; border: 1px solid transparent; transition: border-color .3s var(--ease), background .3s var(--ease); }
.stay__item:hover, .stay__item:focus-visible { border-color: var(--gold); background: rgba(192,161,114,.08); }
.stay__thumb { grid-row: 1 / span 2; width: 3.25rem; height: 3.25rem; object-fit: cover; border-radius: 50%; }
.stay__name { font-family: var(--display); font-size: var(--step-1); line-height: 1.15; align-self: end; }
.stay__cta { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-bright); align-self: start; }
.section--light .stay__cta { color: #8a6f43; }
