/* Gusu Ember Lodge — fictional demo by Zuva Technologies
   Direction: luxury safari, dark / gold editorial. */

:root {
  --bg: #0A0907;
  --bg-2: #12100C;
  --bg-3: #1A1712;
  --ink: #F3EBDD;
  --muted: #B9A98C;
  --dim: #8C7E66;
  --gold: #C6A15B;
  --gold-2: #E8D5A3;
  --gold-deep: #8A6A2F;
  --line: rgba(198, 161, 91, 0.28);
  --max: 1180px;
}

@font-face {
  font-family: "Cormorant";
  src: url("../fonts/cormorant.woff") format("woff");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant";
  src: url("../fonts/cormorant-italic.woff") format("woff");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit.woff") format("woff");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); }
body {
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

.skip {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--gold); color: var(--bg);
  padding: 0.5rem 0.8rem; z-index: 80;
}
.skip:focus { top: 1rem; }

.wrap {
  width: min(var(--max), calc(100% - 2.4rem));
  margin-inline: auto;
}

/* Badge */
.demo-badge {
  position: fixed;
  z-index: 50;
  left: 0.9rem;
  bottom: 0.9rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  background: rgba(10,9,7,0.82);
  color: var(--gold-2);
  border: 1px solid var(--line);
  padding: 0.45rem 0.7rem;
  backdrop-filter: blur(10px);
}
.demo-badge:hover { color: #fff; border-color: var(--gold); }
@media (max-width: 700px) {
  .demo-badge { left: 0.6rem; bottom: 4.6rem; }
}

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid {
  background: rgba(10,9,7,0.88);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.header-inner {
  width: min(var(--max), calc(100% - 2.4rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.4rem;
}
.wordmark {
  text-decoration: none;
  font-family: "Cormorant", serif;
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-2);
}
.wordmark span { display: block; font-family: "Outfit", sans-serif; font-size: 0.58rem; letter-spacing: 0.28em; color: var(--dim); font-weight: 500; margin-top: 0.15rem; }

.nav-toggle { display: none; }
.nav-btn {
  display: none;
  width: 2.5rem; height: 2.5rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--gold-2);
  cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-btn span, .nav-btn span::before, .nav-btn span::after {
  display: block; width: 15px; height: 1px; background: currentColor; position: relative;
}
.nav-btn span::before, .nav-btn span::after { content: ""; position: absolute; left: 0; }
.nav-btn span::before { top: -5px; }
.nav-btn span::after { top: 5px; }

.nav { display: flex; align-items: center; gap: 1.35rem; }
.nav a {
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
}
.nav a:hover { color: var(--gold-2); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.85rem 1.25rem;
  border: 1px solid var(--gold);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: #14110A; }
.btn-gold:hover { background: var(--gold-2); }
.btn-line { background: transparent; color: var(--gold-2); }
.btn-line:hover { background: rgba(198,161,91,0.12); }

@media (max-width: 800px) {
  .nav-btn { display: flex; }
  .nav, .header-cta { display: none; }
  .nav-toggle:checked ~ .nav,
  .nav-toggle:checked ~ .header-cta { display: flex; }
  .header-inner { display: grid; grid-template-columns: 1fr auto; padding: 0.2rem 0; }
  .nav { grid-column: 1 / -1; flex-direction: column; align-items: flex-start; padding: 0.4rem 0 0.8rem; gap: 0.7rem; }
  .header-cta { grid-column: 1 / -1; margin-bottom: 0.8rem; justify-content: center; }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: end stretch;
  overflow: hidden;
  color: var(--ink);
}
.hero-media {
  position: absolute; inset: 0;
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 45%;
  transform: scale(1.06);
  animation: ken 22s ease-out forwards;
}
@keyframes ken { to { transform: scale(1); } }
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,9,7,0.35) 0%, rgba(10,9,7,0.15) 35%, rgba(10,9,7,0.55) 70%, rgba(10,9,7,0.92) 100%),
    linear-gradient(90deg, rgba(10,9,7,0.35), transparent 40%);
}
.hero-copy {
  position: relative;
  z-index: 2;
  padding: 0 0 5.5rem;
}
.kicker {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin: 0 0 1.1rem;
}
.hero h1 {
  font-family: "Cormorant", serif;
  font-weight: 500;
  font-style: italic;
  font-size: clamp(3.1rem, 8.4vw, 6.7rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  max-width: 14ch;
  margin: 0;
  color: #F7F0E2;
}
.hero h1 em { font-style: italic; color: var(--gold-2); }
.hero-lede {
  margin: 1.4rem 0 0;
  max-width: 28rem;
  color: var(--muted);
  font-size: 1.05rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
.scroll-hint {
  position: absolute; right: 1.4rem; bottom: 1.6rem;
  z-index: 2;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  writing-mode: vertical-rl;
}

/* Sections */
.section { padding: 5.5rem 0; }
.section.tight { padding-top: 3.5rem; }
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 880px) {
  .split { grid-template-columns: 1.05fr 0.95fr; gap: 4rem; }
  .split.reverse { grid-template-columns: 0.95fr 1.05fr; }
  .split.reverse .copy { order: -1; }
}
.frame {
  position: relative;
  overflow: hidden;
}
.frame img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
@media (min-width: 880px) {
  .frame.wide img { aspect-ratio: 5/4; }
}
.frame::after {
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px var(--line);
  pointer-events: none;
}
.pull {
  font-family: "Cormorant", serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1.3rem;
  color: var(--gold-2);
}
.copy p { color: var(--muted); margin: 0 0 1rem; max-width: 36rem; }
h2 {
  font-family: "Cormorant", serif;
  font-weight: 500;
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 0.6rem;
}
h3 {
  font-family: "Cormorant", serif;
  font-weight: 600;
  font-size: 1.85rem;
  letter-spacing: -0.02em;
  margin: 0;
}

.section-head { margin-bottom: 2.2rem; max-width: 36rem; }
.section-head p { color: var(--muted); margin: 0.6rem 0 0; }

/* Rooms */
.rooms { display: grid; gap: 1.15rem; }
@media (min-width: 900px) {
  .rooms { grid-template-columns: repeat(3, 1fr); }
}
.room {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 0 0 1.4rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.room img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.room-body { padding: 1.25rem 1.25rem 0; display: flex; flex-direction: column; flex: 1; }
.room .price {
  font-family: "Cormorant", serif;
  font-size: 2rem;
  color: var(--gold-2);
  margin: 0.35rem 0 0.7rem;
}
.room .price small {
  font-family: "Outfit", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 500;
  margin-left: 0.25rem;
}
.room p { color: var(--muted); margin: 0 0 1rem; flex: 1; font-size: 0.98rem; }
.room ul { margin: 0; padding: 0 0 0 1.05rem; color: var(--muted); font-size: 0.92rem; }
.room li { margin: 0.2rem 0; }

/* Amenities */
.amenities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
@media (min-width: 800px) { .amenities { grid-template-columns: repeat(4, 1fr); } }
.amenity {
  padding: 1.4rem 1.15rem 1.5rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.amenity strong {
  display: block;
  font-family: "Cormorant", serif;
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.amenity p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}
@media (min-width: 800px) {
  .gallery { grid-template-columns: 1.2fr 0.8fr; grid-template-rows: auto auto; }
  .gallery .g1 { grid-row: 1 / 3; }
  .gallery .g1 img { height: 100%; aspect-ratio: auto; min-height: 32rem; }
}
.gallery figure { margin: 0; position: relative; overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.2rem 1rem 0.8rem;
  background: linear-gradient(transparent, rgba(10,9,7,0.85));
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-2);
}

/* Location */
.locate {
  display: grid;
  gap: 2rem;
}
@media (min-width: 880px) {
  .locate { grid-template-columns: 0.9fr 1.1fr; align-items: center; }
}
.meta-list { list-style: none; padding: 0; margin: 1.4rem 0 0; }
.meta-list li {
  border-top: 1px solid var(--line);
  padding: 0.85rem 0;
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 1rem;
}
.meta-list strong {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  padding-top: 0.15rem;
}
.meta-list span { color: var(--muted); }

/* Book */
.book {
  background:
    linear-gradient(180deg, rgba(10,9,7,0.2), rgba(10,9,7,0.82)),
    url("../images/acacia.webp") center 40% / cover no-repeat;
  min-height: 28rem;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 5rem 1.2rem;
}
.book h2 { color: #fff; max-width: 16ch; margin-inline: auto; }
.book p { color: var(--muted); max-width: 32rem; margin: 0.8rem auto 1.6rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 5.5rem;
  color: var(--dim);
  font-size: 0.88rem;
}
.footer-inner { display: flex; flex-wrap: wrap; gap: 0.8rem 2rem; justify-content: space-between; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--gold-2); }
.credits { margin-top: 1.1rem; font-size: 0.78rem; color: #6F6554; max-width: 48rem; }

/* Mobile book bar */
.book-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  padding: 0.65rem 0.8rem calc(0.65rem + env(safe-area-inset-bottom));
  background: rgba(10,9,7,0.92);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.book-bar .btn { width: 100%; }
@media (max-width: 700px) { .book-bar { display: block; } }

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  animation: rise 0.9s cubic-bezier(.2,.7,.2,1) forwards;
}
.d1 { animation-delay: 0.08s; }
.d2 { animation-delay: 0.18s; }
.d3 { animation-delay: 0.3s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero-media img, .reveal { animation: none !important; transform: none; opacity: 1; }
}

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
