/* SOLSTICE — desert golden hour. Light theme. */
:root {
  --bg: #F5EFE4;
  --surface: #EDE4D2;
  --text: #1E1A14;
  --dim: rgba(30, 26, 20, 0.6);
  --faint: rgba(30, 26, 20, 0.38);
  --accent: #C4552D;
  --accent-dim: rgba(196, 85, 45, 0.10);
  --border: rgba(30, 26, 20, 0.12);
  --section-pad: 72px;
  --radius: 14px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Karla', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--accent); color: #fff; }

/* ---------- Loader ---------- */
#loader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 22px;
  transition: opacity 0.6s ease, visibility 0.6s;
}
#loader.done { opacity: 0; visibility: hidden; }
#loader .wordmark {
  font-family: var(--font-display); font-size: 42px; letter-spacing: 0.14em;
  font-weight: 500;
}
#loader .wordmark span { color: var(--accent); }
#loader .bar { width: 160px; height: 2px; background: var(--border); overflow: hidden; border-radius: 2px; }
#loader .bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.3s ease; }

/* ---------- Scroll progress ---------- */
#progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--accent); z-index: 150;
}

/* ---------- Nav ---------- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px;
  transition: background 0.4s ease, padding 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: rgba(245, 239, 228, 0.9);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  padding: 14px 24px;
  border-bottom-color: var(--border);
}
.nav-wordmark {
  font-family: var(--font-display); font-size: 22px; letter-spacing: 0.18em;
  text-decoration: none; font-weight: 500;
}
.nav-wordmark span { color: var(--accent); }
.nav-links { display: none; gap: 34px; }
.nav-links a {
  text-decoration: none; font-size: 14px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim);
  transition: color 0.25s ease;
}
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  text-decoration: none; font-size: 14px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--accent); color: #fff;
  padding: 12px 22px; border-radius: 999px;
  transition: transform 0.25s ease, background 0.25s ease;
}
.nav-cta:hover { background: #a8481f; transform: translateY(-1px); }

/* ---------- Hero (scroll-scrubbed video) ---------- */
#hero-driver { position: relative; height: 320vh; }
#hero-stage {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
#hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
#hero-stage::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(30,26,20,0.28), rgba(30,26,20,0.05) 40%, rgba(30,26,20,0.42));
}
.hero-content {
  position: relative; z-index: 2; text-align: center;
  padding: 0 24px; max-width: 900px;
}
.hero-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.3em;
  text-transform: uppercase; color: #fff;
  margin-bottom: 22px; text-shadow: 0 1px 12px rgba(30,26,20,0.5);
}
.hero-content h1 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(52px, 10vw, 116px);
  line-height: 1.05; letter-spacing: 0.002em;
  color: #fff; text-wrap: balance;
  text-shadow: 0 2px 30px rgba(30,26,20,0.45);
  font-variation-settings: "SOFT" 100, "opsz" 144;
}
.hero-sub {
  margin: 26px auto 0; max-width: 520px;
  font-size: 18px; color: rgba(255,255,255,0.88);
  text-shadow: 0 1px 10px rgba(30,26,20,0.5);
}
.hero-ctas { margin-top: 38px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none;
  font-weight: 700; font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 17px 36px; border-radius: 999px;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  min-height: 44px;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #a8481f; transform: translateY(-2px); }
.btn-ghost { border: 1px solid rgba(255,255,255,0.6); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.12); transform: translateY(-2px); }
.scroll-cue {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: rgba(255,255,255,0.75); font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase;
}
.scroll-cue i {
  width: 1px; height: 52px; background: rgba(255,255,255,0.4);
  display: block; position: relative; overflow: hidden;
}
.scroll-cue i::after {
  content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%;
  background: #fff; animation: cue 2.2s ease-in-out infinite;
}
@keyframes cue { to { top: 110%; } }

/* ---------- Sections ---------- */
section.page { padding: var(--section-pad) 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 18px;
}
h2.section-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.08; margin-bottom: 22px; text-wrap: balance;
  font-variation-settings: "SOFT" 100, "opsz" 144;
}
.section-lede { color: var(--dim); max-width: 640px; font-size: 19px; }

/* Reveals — slow and warm */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.5s ease-out, transform 0.5s ease-out; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Intro statement ---------- */
#intro .statement {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(26px, 4vw, 44px); line-height: 1.35;
  max-width: 900px; text-wrap: pretty;
  font-variation-settings: "SOFT" 80, "opsz" 144;
}
#intro .statement em { font-style: italic; color: var(--accent); }

/* ---------- Suites ---------- */
#suites { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.suites-grid { display: grid; grid-template-columns: 1fr; gap: 22px; margin-top: 52px; }
.suite-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.suite-card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px rgba(30,26,20,0.10); }
.suite-visual {
  height: 220px;
  display: flex; align-items: flex-end; padding: 24px;
  background-size: cover; background-position: center;
  position: relative;
}
.suite-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(30,26,20,0.45), transparent 60%); }
.suite-visual span {
  position: relative; z-index: 1;
  font-family: var(--font-display); font-size: 26px; color: #fff; font-style: italic;
}
.suite-body { padding: 28px; }
.suite-body h3 { font-family: var(--font-display); font-size: 24px; font-weight: 500; margin-bottom: 10px; }
.suite-body p { color: var(--dim); font-size: 16px; margin-bottom: 18px; }
.suite-rate { font-size: 14px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.suite-rate small { display: block; margin-top: 4px; font-weight: 500; letter-spacing: 0.04em; text-transform: none; color: var(--faint); }

/* ---------- Experiences ---------- */
.exp-list { margin-top: 52px; border-top: 1px solid var(--border); }
.exp-row {
  display: grid; grid-template-columns: 1fr; gap: 8px;
  padding: 34px 0; border-bottom: 1px solid var(--border);
}
.exp-row h3 { font-family: var(--font-display); font-size: 30px; font-weight: 500; }
.exp-row p { color: var(--dim); max-width: 560px; }
.exp-time { font-size: 13px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }

/* ---------- Booking ---------- */
#booking { background: var(--surface); border-top: 1px solid var(--border); }
.form-card {
  margin-top: 44px; background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px 26px; max-width: 720px;
}
.field { margin-bottom: 20px; }
.field label {
  display: block; font-size: 12px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--dim); margin-bottom: 8px;
}
.field input, .field select {
  width: 100%; background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text);
  font-family: var(--font-body); font-size: 16px; padding: 14px 16px;
  transition: border-color 0.25s ease;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); }
.form-row { display: grid; grid-template-columns: 1fr; }
.form-note { margin-top: 16px; font-size: 13px; color: var(--faint); }

/* ---------- Footer ---------- */
footer { padding: 64px 0 36px; }
.foot-mark { font-family: var(--font-display); font-size: 30px; letter-spacing: 0.18em; margin-bottom: 14px; }
.foot-mark span { color: var(--accent); }
.foot-tag { color: var(--dim); max-width: 420px; margin-bottom: 32px; }
.foot-bottom {
  border-top: 1px solid var(--border); padding-top: 24px;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 13px; color: var(--faint);
}

/* ---------- Buttons on light surfaces ---------- */
.btn-outline {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: var(--font-body); font-weight: 700; font-size: 14px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text); background: transparent;
  border: 1px solid var(--border); border-radius: 10px;
  padding: 13px 26px; min-height: 48px;
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.suite-details { margin-top: 20px; }

/* ---------- FAQ accordion ---------- */
#faq .accordion { margin-top: 52px; max-width: 820px; }
.acc-item {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg); overflow: hidden; margin-bottom: 12px;
  transition: border-color 0.25s ease;
}
.acc-item.open { border-color: var(--accent); }
.acc-toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 20px 24px; min-height: 64px;
  font-family: var(--font-display); font-size: 21px; font-weight: 500;
  color: var(--text); background: none; border: none; cursor: pointer;
  text-align: left; transition: color 0.2s ease;
}
.acc-toggle:hover { color: var(--accent); }
.acc-toggle .chevron {
  flex: 0 0 auto; font-size: 13px; color: var(--accent);
  transition: transform 0.3s ease;
}
.acc-item.open .chevron { transform: rotate(180deg); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.acc-item.open .acc-body { max-height: 480px; }
.acc-content {
  padding: 0 24px 24px; font-size: 16px; line-height: 1.7; color: var(--dim);
  max-width: 640px;
}

/* ---------- Suite modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(30, 26, 20, 0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  width: min(94vw, 560px); max-height: 88vh; overflow-y: auto;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 32px 80px rgba(30, 26, 20, 0.25);
  transform: translateY(18px) scale(0.98);
  transition: transform 0.3s ease;
}
.modal-overlay.open .modal { transform: none; }
.modal-header {
  padding: 28px 28px 0; display: flex;
  align-items: flex-start; justify-content: space-between; gap: 16px;
}
.modal-title { font-family: var(--font-display); font-size: 34px; font-weight: 500; line-height: 1.1; }
.modal-close {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--border); background: none; color: var(--dim);
  font-size: 22px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.modal-close:hover { border-color: var(--accent); color: var(--accent); }
.modal-visual {
  margin: 20px 28px 0; height: 200px; border-radius: 10px;
  background-size: cover; background-position: center;
}
.modal-body { padding: 20px 28px 8px; color: var(--dim); font-size: 16px; line-height: 1.7; }
.modal-body ul { margin: 12px 0 0; padding-left: 20px; }
.modal-body li { margin-bottom: 6px; }
.modal-footer {
  padding: 20px 28px 28px; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.modal-footer .suite-rate { margin: 0; }
.modal-footer .btn-primary { border: none; cursor: pointer; }

/* ---------- Suite dropdown ---------- */
.dropdown-wrap { position: relative; }
.dropdown-trigger {
  width: 100%; min-height: 54px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); font-family: var(--font-body); font-size: 16px;
  padding: 14px 16px; cursor: pointer;
  transition: border-color 0.25s ease;
}
.dropdown-trigger:hover, .dropdown-wrap.open .dropdown-trigger { border-color: var(--accent); }
.dropdown-trigger:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dropdown-trigger svg { width: 16px; height: 16px; flex: 0 0 auto; color: var(--dim); transition: transform 0.25s ease; }
.dropdown-wrap.open .dropdown-trigger svg { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60;
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 6px; box-shadow: 0 20px 48px rgba(30, 26, 20, 0.16);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.dropdown-wrap.open .dropdown-menu { opacity: 1; visibility: visible; transform: none; }
.dropdown-item {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  width: 100%; padding: 13px 14px; min-height: 48px;
  font-family: var(--font-body); font-size: 15px; font-weight: 500; color: var(--text);
  background: none; border: none; border-radius: 8px; cursor: pointer; text-align: left;
  transition: background 0.15s ease;
}
.dropdown-item small { font-weight: 400; color: var(--faint); font-size: 13px; white-space: nowrap; }
.dropdown-item:hover, .dropdown-item:focus-visible { background: var(--accent-dim); }
.dropdown-item[aria-selected="true"] { color: var(--accent); font-weight: 700; }

/* ---------- Desktop ---------- */
@media (min-width: 768px) {
  :root { --section-pad: 120px; }
  .nav-links { display: flex; }
  .suites-grid { grid-template-columns: repeat(3, 1fr); }
  .exp-row { grid-template-columns: 200px 1fr; gap: 32px; align-items: baseline; }
  .form-row { grid-template-columns: 1fr 1fr; gap: 20px; }
  .form-card { padding: 52px; }
  .foot-bottom { flex-direction: row; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue i::after { animation: none; }
  .acc-body, .modal-overlay, .modal, .dropdown-menu,
  .acc-toggle .chevron, .dropdown-trigger svg { transition: none; }
  html { scroll-behavior: auto; }
}
