/* ==========================================================================
   Windhoek on Jean — layout and components
   Mobile-first. Single-class selectors throughout so section-level and
   component-level spacing rules don't fight each other on specificity.
   ========================================================================== */

/* --- Base ---------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--t-base);
  font-stretch: 100%;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--coral-deep); }

h1, h2, h3 { margin: 0; line-height: 1.02; font-weight: 700; }
p { margin: 0 0 var(--s-4); }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }

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

.skip {
  position: absolute;
  left: var(--s-4);
  top: -4rem;
  z-index: 100;
  padding: var(--s-3) var(--s-4);
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip:focus { top: var(--s-4); }

/* --- Shared bits --------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  margin: 0 0 var(--s-4);
  font-size: var(--t-xs);
  font-weight: 600;
  font-stretch: 118%;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--grey);
}

.btn {
  display: inline-block;
  padding: 0.95em 1.7em;
  border: 0;
  background: var(--coral-deep);
  color: #fff;
  font: inherit;
  font-size: var(--t-sm);
  font-weight: 600;
  font-stretch: 112%;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { background: #9E2F2E; }
.btn:active { transform: translateY(1px); }

.btn--quiet {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--rule);
}
.btn--quiet:hover { background: var(--paper-sunk); }

/* WhatsApp glyph, sized to the cap height of the label beside it. */
.wa {
  width: 1.15em;
  height: 1.15em;
  fill: currentColor;
  vertical-align: -0.25em;
  margin-right: 0.5em;
}

/* --- Masthead ------------------------------------------------------------ */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.masthead.is-stuck {
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  box-shadow: 0 1px 0 var(--rule);
}

.masthead__in {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: var(--s-4) var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}
.brand__mark { width: auto; height: 2.1rem; }
.brand__name {
  font-size: var(--t-sm);
  font-weight: 700;
  font-stretch: 118%;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
}
.brand__name em { font-style: normal; color: var(--grey); }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2.4vw, 2rem);
}
.nav a {
  font-size: var(--t-xs);
  font-weight: 600;
  font-stretch: 110%;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding-block: 0.4rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.nav a:hover { border-bottom-color: var(--coral); }
.nav__cta { color: var(--coral-deep); }

/* The first two links are section jumps that fit tight screens poorly. */
@media (max-width: 33rem) {
  .nav a:not(.nav__cta) { display: none; }
}

/* --- Hero ---------------------------------------------------------------- */

/* The wheel spans 35–100% of its frame, so type cannot share a wide crop with
   it. The hero is a split: charcoal type on paper at the left, the windpomp
   whole in a tall panel bleeding off the right edge. Stacks on small screens. */

.hero { position: relative; }

.hero__panel { display: block; }
.hero__panel img {
  width: 100%;
  height: min(58vh, 26rem);
  object-fit: cover;
  object-position: 50% 34%;
}

.hero__body {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: var(--s-7) var(--gutter) var(--s-8);
}

@media (min-width: 60rem) {
  .hero {
    display: flex;
    align-items: center;
    min-height: min(88vh, 44rem);
    margin-top: -4.6rem;          /* run the panel up behind the masthead */
  }
  .hero__panel {
    position: absolute;
    inset-block: 0;
    right: 0;
    width: 47%;
  }
  .hero__panel img {
    height: 100%;
    object-position: 36% 46%;
  }
  .hero__body {
    width: 100%;
    padding-top: calc(var(--s-8) + 4.6rem);
    padding-bottom: var(--s-8);
    padding-right: 52%;
  }
}

.hero__title {
  font-size: var(--t-display);
  font-weight: 800;
  font-stretch: 122%;
  letter-spacing: var(--track-display);
  text-transform: uppercase;
  margin-bottom: var(--s-5);
}

.hero__lede {
  max-width: 24em;
  font-size: var(--t-md);
  color: var(--ink);
  margin-bottom: var(--s-6);
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin: 0;
}

/* --- Sections ------------------------------------------------------------ */

.section { padding-block: var(--section-y); }

.section__head { margin-bottom: var(--s-7); }
.section__head--centred {
  text-align: center;
  margin-inline: auto;
  max-width: 40rem;
}

.section__title {
  font-size: var(--t-2xl);
  font-weight: 800;
  font-stretch: 118%;
  letter-spacing: var(--track-display);
  text-transform: uppercase;
  margin-bottom: var(--s-5);
}

.section__lede {
  max-width: var(--measure);
  font-size: var(--t-md);
  color: var(--grey);
  margin: 0;
  text-wrap: pretty;
}
.section__head--centred .section__lede { margin-inline: auto; }

/* --- Rooms --------------------------------------------------------------- */

.rooms {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: 1fr;
}
@media (min-width: 44rem) { .rooms { grid-template-columns: repeat(3, 1fr); } }

.room {
  border: 1px solid var(--rule);
  background: #fff;
  padding: 0 var(--s-5) var(--s-5);
  display: flex;
  flex-direction: column;
}

.room__swatch {
  display: block;
  height: 7rem;
  margin-inline: calc(var(--s-5) * -1);
  margin-bottom: var(--s-5);
}

.room--green .room__swatch { background: var(--room-green); }
.room--orange .room__swatch { background: var(--room-orange); }
.room--red .room__swatch { background: var(--room-red); }

.room__name {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: var(--t-xl);
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: var(--s-4);
}
.room--green .room__name { color: var(--room-green-ink); }
.room--orange .room__name { color: var(--room-orange-ink); }
.room--red .room__name { color: var(--room-red-ink); }

.room__specs { margin-bottom: var(--s-5); }
.room__specs > div {
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  padding-block: 0.45rem;
  border-bottom: 1px solid var(--rule);
}
.room__specs dt {
  font-size: var(--t-xs);
  font-weight: 600;
  font-stretch: 112%;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
}
.room__specs dd { font-size: var(--t-sm); text-align: right; }

.room__rate {
  margin: auto 0 0;
  font-size: var(--t-lg);
  font-weight: 700;
  font-stretch: 112%;
}
.room__rate span {
  font-size: var(--t-xs);
  font-weight: 500;
  font-stretch: 100%;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
}

.included { margin-top: var(--s-7); }
.included__title {
  font-size: var(--t-xs);
  font-weight: 600;
  font-stretch: 118%;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: var(--s-4);
}
.tags { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.tags li {
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: var(--t-sm);
  color: var(--ink);
}

.figure { margin: var(--s-8) 0 0; }
.figure img { width: 100%; }
.figure figcaption {
  margin-top: var(--s-3);
  font-size: var(--t-sm);
  color: var(--grey);
}
.figure--room { max-width: 44rem; }

/* --- Signature: the hours ------------------------------------------------ */

.section--hours {
  background: var(--paper-sunk);
  border-block: 1px solid var(--rule);
}

.hours {
  display: grid;
  gap: var(--s-7) var(--s-5);
  grid-template-columns: 1fr;
}

.hour { border-top: 2px solid var(--ink); padding-top: var(--s-4); }

/* Subgrid keeps the time, label, note and image of all four columns on shared
   baselines however long the notes run. */
@media (min-width: 40rem) {
  .hours {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto auto auto auto);
  }
  .hour {
    grid-row: span 4;
    display: grid;
    grid-template-rows: subgrid;
    align-content: start;
  }
}
@media (min-width: 64rem) {
  .hours {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto auto auto;
  }
}

/* The wide tabular numerals are the loudest type on the page, and the one
   place the Archivo width axis is pushed to its limit. */
.hour__time {
  margin: 0 0 var(--s-3);
  font-size: var(--t-xl);
  font-weight: 700;
  font-stretch: 125%;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--coral-deep);
}

.hour__label {
  font-size: var(--t-xs);
  font-weight: 700;
  font-stretch: 118%;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  margin-bottom: var(--s-2);
}

.hour__note {
  font-size: var(--t-sm);
  color: var(--grey);
  margin-bottom: var(--s-4);
}

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

.hours__foot {
  margin: var(--s-7) 0 0;
  text-align: center;
  font-size: var(--t-sm);
  color: var(--grey);
}

/* --- The place ----------------------------------------------------------- */

.split { display: grid; gap: var(--s-5); }
@media (min-width: 56rem) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: start; }
  .split .section__head { margin-bottom: 0; }
}
.split__body { max-width: var(--measure); }
.split__body p { color: var(--grey); }

.near { margin-top: var(--s-5); border-top: 1px solid var(--rule); }
.near li {
  display: flex;
  gap: var(--s-4);
  padding-block: var(--s-3);
  border-bottom: 1px solid var(--rule);
  font-size: var(--t-sm);
}
.near span {
  flex: 0 0 4.5rem;
  font-weight: 700;
  font-stretch: 112%;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

/* --- Gallery -------------------------------------------------------------
   Uniform 4:3 tiles, no captions — the pictures carry themselves.
   -------------------------------------------------------------------- */

.section--gallery {
  background: var(--paper-sunk);
  border-block: 1px solid var(--rule);
}

.gallery {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: repeat(2, 1fr);
}
/* Straight from 2 to 4 columns: eight tiles divide evenly into both, so the
   last row is never left an orphan. */
@media (min-width: 62rem) { .gallery { grid-template-columns: repeat(4, 1fr); } }

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

/* --- Quote --------------------------------------------------------------- */

.section--quote { padding-block: var(--section-y); }

.quote { margin: 0; max-width: 46rem; margin-inline: auto; text-align: center; }
.quote blockquote { margin: 0; }
.quote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: var(--t-lg);
  line-height: 1.45;
  color: var(--ink);
  text-wrap: pretty;
}
.quote p::before { content: "\201C"; }
.quote p::after { content: "\201D"; }

.quote figcaption {
  margin-top: var(--s-5);
  font-size: var(--t-xs);
  font-weight: 600;
  font-stretch: 112%;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
}
.quote figcaption span { color: var(--grey); margin-left: 0.6rem; }

/* --- Enquire ------------------------------------------------------------- */

.section--enquire {
  background: var(--ink);
  color: var(--paper);
}
.section--enquire .section__lede,
.section--enquire .eyebrow { color: #A9ABAD; }

.enquire { display: grid; gap: var(--s-8); }
@media (min-width: 56rem) {
  .enquire { grid-template-columns: 1.15fr 0.85fr; gap: var(--s-9); }
}

.field { margin-bottom: var(--s-4); }
.field-row { display: grid; gap: var(--s-4); grid-template-columns: 1fr 1fr; }

.field label {
  display: block;
  margin-bottom: var(--s-2);
  font-size: var(--t-xs);
  font-weight: 600;
  font-stretch: 112%;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #A9ABAD;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid #4A4B4B;
  border-radius: 0;
  background: #262727;
  color: var(--paper);
  font: inherit;
  font-size: var(--t-sm);
}
.field textarea { resize: vertical; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 1px;
  border-color: transparent;
}

.section--enquire .btn { background: var(--coral); color: var(--on-coral); }
.section--enquire .btn:hover { background: #EC7373; }

.form-hint {
  margin: var(--s-3) 0 0;
  font-size: var(--t-xs);
  color: #A9ABAD;
}

.form-note {
  margin: var(--s-4) 0 0;
  padding: var(--s-4);
  border-left: 3px solid var(--coral-light);
  background: #262727;
  font-size: var(--t-sm);
  color: #D7D8D8;
}
.form-note a { color: var(--coral-light); }

.facts__title {
  font-size: var(--t-xs);
  font-weight: 600;
  font-stretch: 118%;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: #A9ABAD;
  margin-bottom: var(--s-5);
}

.facts > div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: var(--s-4);
  padding-block: var(--s-3);
  border-top: 1px solid #414242;
}
.facts dt {
  font-size: var(--t-xs);
  font-weight: 600;
  font-stretch: 112%;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #A9ABAD;
}
.facts dd { font-size: var(--t-sm); }
.facts a { color: var(--coral-light); }

.map-link {
  display: inline-block;
  margin-top: var(--s-5);
  font-size: var(--t-xs);
  font-weight: 600;
  font-stretch: 112%;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--coral-light);
}

/* --- Footer -------------------------------------------------------------- */

.foot { padding-block: var(--s-8); border-top: 1px solid var(--rule); }
.foot__in { text-align: center; }
.foot__logo { width: 15rem; height: auto; margin: 0 auto var(--s-5); }
.foot__meta { font-size: var(--t-sm); color: var(--grey); }
.foot__meta a { color: var(--grey); }
.foot__proof {
  margin: 0;
  font-size: var(--t-xs);
  color: var(--grey);
  max-width: 34rem;
  margin-inline: auto;
}

/* --- Motion --------------------------------------------------------------
   One orchestrated load on the hero, one staggered reveal on the hours.
   Nothing else moves.
   -------------------------------------------------------------------- */

@keyframes settle {
  from { opacity: 0; letter-spacing: 0.34em; }
  to   { opacity: 1; letter-spacing: var(--track-display); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(1.25rem); }
  to   { opacity: 1; transform: none; }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.hero__title { animation: settle 1.1s var(--ease) both; }
.hero__panel { animation: fade 1.3s var(--ease) both; }
.hero .eyebrow    { animation: rise 0.8s var(--ease) 0.15s both; }
.hero__lede       { animation: rise 0.8s var(--ease) 0.3s both; }
.hero__actions    { animation: rise 0.8s var(--ease) 0.45s both; }

/* Scoped to .js so the hours band is never hidden when scripting is off or
   the script fails — the content must not depend on JS to be visible. */
.js [data-reveal] { opacity: 0; transform: translateY(1.5rem); }
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}
