/* ============================================================
   Wildhart Glamping — theme
   Fraunces (display) + Inter (body). Forest / canvas / ember.
   ============================================================ */

:root {
  --forest:  #2F3E34;
  --pine:    #222B25;
  --canvas:  #EFE9DD;
  --linen:   #F8F4EC;
  --ember:   #C8703A;
  --ember-d: #b5612f;
  --sage:    #8A9B82;
  --bark:    #3B362F;
  --stone:   #94897A;
  --line:    rgba(47, 62, 52, 0.15);
  --line-d:  rgba(248, 244, 236, 0.16);

  --display-font: "Fraunces", Georgia, "Times New Roman", serif;
  --body-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --pad-x: clamp(1.25rem, 5vw, 5.5rem);
  --band-y: clamp(4rem, 8vw, 7.5rem);

  --lift-1: 0 1px 2px rgba(47,62,52,.05), 0 8px 20px -10px rgba(47,62,52,.18);
  --lift-2: 0 2px 5px rgba(47,62,52,.07), 0 22px 48px -22px rgba(47,62,52,.36);

  /* faint paper grain — keeps the canvas surfaces from reading flat */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--body-font);
  background: var(--canvas);
  background-image: var(--grain);
  background-blend-mode: multiply;
  color: var(--bark);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  color: var(--forest);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.011em;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.3rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); }
p { max-width: 64ch; }
strong { color: var(--forest); }

.eyebrow {
  font-family: var(--body-font);
  font-size: 0.73rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ember);
  display: inline-flex; align-items: center; gap: 0.55rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px;
  background: var(--sage); display: inline-block;
}

.wrap { max-width: 1220px; margin: 0 auto; padding: 0 var(--pad-x); }
.band { padding: var(--band-y) 0; position: relative; }
.band--canvas { background: var(--canvas); }
.band--linen  { background: var(--linen); }
.band--forest {
  background: var(--forest);
  color: #D6DCD2;
  background-image:
    radial-gradient(820px 360px at 84% -10%, rgba(138,155,130,.24), transparent 68%),
    radial-gradient(680px 320px at 2% 110%, rgba(200,112,58,.16), transparent 70%);
}
.band--forest h1, .band--forest h2, .band--forest h3 { color: var(--linen); }
.band--forest .eyebrow { color: #C9A24A; }
.band--forest strong { color: #fff; }

/* =========================================================
   HEADER
   ========================================================= */
.site-head {
  position: sticky; top: 0; z-index: 70;
  background: linear-gradient(180deg, rgba(248,244,236,.97), rgba(248,244,236,.88));
  backdrop-filter: saturate(150%) blur(11px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 8px 22px -16px rgba(47,62,52,.3);
}
.site-head__row {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand__mark { width: 36px; height: 36px; flex: none; }
.brand__name {
  font-family: var(--display-font);
  font-size: 1.4rem; font-weight: 600; color: var(--forest);
  line-height: 1;
}
.brand__name small {
  display: block; font-family: var(--body-font);
  font-size: 0.58rem; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--stone); margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 1.9rem; }
.nav a {
  text-decoration: none; font-size: 0.93rem; font-weight: 500;
  color: var(--bark);
  padding-bottom: 3px; border-bottom: 1.5px solid transparent;
  transition: color .16s ease, border-color .16s ease;
}
.nav a:hover { color: var(--forest); border-bottom-color: var(--ember); }
.nav a.current { color: var(--forest); border-bottom-color: var(--sage); }
.nav .nav__cta {
  background: linear-gradient(180deg, #d27c45, var(--ember));
  color: #fff; padding: 0.6rem 1.25rem; border-radius: 999px;
  border: none; box-shadow: 0 6px 14px -8px rgba(200,112,58,.7);
}
.nav .nav__cta:hover { border-bottom-color: transparent; filter: brightness(.95); }

.nav-toggle {
  display: none; width: 44px; height: 44px;
  border: 1px solid var(--line); background: var(--linen);
  border-radius: 8px; cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 19px; height: 2px; background: var(--forest);
  margin: 0 auto; position: relative;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }

/* =========================================================
   HERO — full-bleed photograph
   ========================================================= */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex; align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  z-index: 0;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(34,43,37,.30) 0%, rgba(34,43,37,0) 32%, rgba(34,43,37,.78) 100%),
    radial-gradient(900px 460px at 80% 10%, rgba(200,112,58,.20), transparent 70%);
}
.hero__inner {
  position: relative; z-index: 2;
  width: 100%;
  padding-bottom: clamp(3rem, 7vw, 6rem);
  padding-top: clamp(4rem, 10vw, 7rem);
}
.hero .eyebrow { color: #E8C9A0; }
.hero h1 {
  color: #FBF7F0; max-width: 16ch; margin-top: 1.1rem;
  text-shadow: 0 2px 30px rgba(0,0,0,.35);
}
.hero h1 em { font-style: italic; color: #E8C9A0; }
.hero__lead {
  margin-top: 1.3rem; max-width: 48ch;
  font-size: 1.16rem; color: #ECE7DD;
}

/* hero search bar */
.hero__search {
  margin-top: 2rem;
  display: flex; gap: 0.6rem; flex-wrap: wrap;
  background: rgba(248,244,236,.95);
  border-radius: 14px;
  padding: 0.8rem;
  box-shadow: var(--lift-2);
  max-width: 640px;
}
.hero__search .hs-field {
  flex: 1; min-width: 130px;
  display: flex; flex-direction: column;
  padding: 0.45rem 0.75rem;
  border-radius: 9px; background: #fff; border: 1px solid var(--line);
}
.hs-field label {
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--stone);
}
.hs-field select {
  border: none; background: transparent; font-family: var(--body-font);
  font-size: 0.95rem; color: var(--forest); padding: 2px 0 0; cursor: pointer;
}
.hero__search .btn {
  flex: 0 0 auto;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--body-font); font-weight: 600; font-size: 0.96rem;
  padding: 0.85rem 1.5rem; border-radius: 999px;
  text-decoration: none; cursor: pointer; border: none;
  transition: transform .12s ease, filter .16s ease, box-shadow .16s ease;
}
.btn--ember {
  background: linear-gradient(180deg, #d27c45, var(--ember));
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 10px 22px -10px rgba(200,112,58,.65);
}
.btn--ember:hover { transform: translateY(-2px); filter: brightness(.96); }
.btn--ghost {
  background: rgba(255,255,255,.1);
  color: #fff; border: 1.5px solid rgba(255,255,255,.5);
}
.btn--ghost:hover { background: rgba(255,255,255,.18); }
.btn--forest {
  background: var(--forest); color: var(--linen);
  box-shadow: var(--lift-1);
}
.btn--forest:hover { transform: translateY(-2px); background: var(--pine); }
.link-arrow {
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
  color: var(--ember);
  display: inline-flex; align-items: center; gap: 0.4rem;
  border-bottom: 1.5px solid currentColor; padding-bottom: 2px;
}
.link-arrow::after { content: "\2192"; transition: transform .2s ease; }
.link-arrow:hover::after { transform: translateX(4px); }

/* =========================================================
   SECTION HEADER
   ========================================================= */
.section-head { max-width: 720px; }
.section-head h2 { margin-top: 1rem; }
.section-head p { margin-top: 1rem; color: var(--bark); }
.band--forest .section-head p { color: #C3CCBE; }
.section-head--center { margin: 0 auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

.lede-grid {
  display: grid; grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.lede-grid__media {
  border-radius: 16px; overflow: hidden;
  box-shadow: var(--lift-2);
  aspect-ratio: 4 / 3;
  position: relative;
}
.lede-grid__media img { width: 100%; height: 100%; object-fit: cover; }
.lede-grid__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(200,112,58,.06), rgba(47,62,52,.16));
}

/* =========================================================
   STEPS — "how pricing works"
   ========================================================= */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem; margin-top: 2.8rem;
}
.step {
  background: linear-gradient(170deg, #fff, var(--linen) 80%);
  border: 1px solid var(--line); border-radius: 14px;
  padding: 1.9rem 1.7rem;
  box-shadow: var(--lift-1);
}
.step__n {
  font-family: var(--display-font);
  font-size: 1rem; color: var(--ember); font-weight: 600;
}
.step__n::before {
  content: ""; display: block; width: 36px; height: 2px;
  background: var(--sage); margin-bottom: 1rem;
}
.step h3 { margin: 0.6rem 0; }
.step p { font-size: 0.95rem; }

/* =========================================================
   FAQ — native <details>
   ========================================================= */
.faq { max-width: 820px; margin-top: 2.4rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  padding: 1.4rem 3rem 1.4rem 0; position: relative;
  font-family: var(--display-font);
  font-size: 1.18rem; color: var(--forest);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--ember); }
.faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%;
  width: 13px; height: 13px; margin-top: -6.5px;
  background:
    linear-gradient(var(--ember),var(--ember)) center/13px 1.7px no-repeat,
    linear-gradient(var(--ember),var(--ember)) center/1.7px 13px no-repeat;
  transition: transform .22s ease;
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq__a { padding: 0 3rem 1.6rem 0; }
.faq__a p { font-size: 0.98rem; }
.band--forest .faq { border-color: var(--line-d); }
.band--forest .faq details { border-color: var(--line-d); }
.band--forest .faq summary { color: var(--linen); }

/* =========================================================
   UNIT DETAIL (single-glamp_unit)
   ========================================================= */
.unit-hero {
  position: relative; min-height: 56vh;
  display: flex; align-items: flex-end; color: #fff; overflow: hidden;
}
.unit-hero img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.unit-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(34,43,37,.2) 0%, rgba(34,43,37,.74) 100%);
}
.unit-hero__inner { position: relative; z-index: 2; width: 100%; padding-bottom: 2.6rem; padding-top: 4rem; }
.unit-hero h1 { color: #FBF7F0; }
.unit-hero__type {
  display: inline-block;
  background: rgba(200,112,58,.92); color: #fff;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.07em;
  text-transform: uppercase; padding: 5px 12px; border-radius: 999px;
}

.unit-layout {
  display: grid; grid-template-columns: 1.55fr 1fr;
  gap: clamp(1.8rem, 4vw, 3.5rem); align-items: start;
}
.unit-meta-row {
  display: flex; gap: 1.8rem; flex-wrap: wrap;
  padding: 1.2rem 0; margin-bottom: 1.5rem;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.unit-meta-row .umi { display: flex; flex-direction: column; }
.umi__v {
  font-family: var(--display-font); font-size: 1.45rem; color: var(--forest);
}
.umi__l { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--stone); }

.unit-gallery {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem;
  margin: 1.8rem 0;
}
.unit-gallery img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: 12px; box-shadow: var(--lift-1);
}
.unit-gallery img:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }

.amenities {
  list-style: none; display: grid;
  grid-template-columns: 1fr 1fr; gap: 0.5rem 1.4rem;
  margin: 1.3rem 0;
}
.amenities li {
  position: relative; padding-left: 1.5rem; font-size: 0.95rem;
}
.amenities li::before {
  content: ""; position: absolute; left: 0; top: 0.5em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--sage);
}

.unit-booking-col {
  position: sticky; top: 100px;
}

/* =========================================================
   CHECKOUT (page-booking)
   ========================================================= */
.checkout-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.8rem, 4vw, 3.2rem); align-items: start;
}
.co-card {
  background: linear-gradient(172deg, #fff, var(--linen) 88%);
  border: 1px solid var(--line); border-radius: 16px;
  padding: 1.8rem; box-shadow: var(--lift-1);
}
.co-card h2 { font-size: 1.5rem; }
.co-field { margin-bottom: 1.3rem; }
.co-field label {
  display: block; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--bark); margin-bottom: 0.45rem;
}
.co-field input, .co-field select {
  width: 100%; font-family: var(--body-font); font-size: 1rem;
  color: var(--forest); background: #fff;
  border: 1px solid var(--line); border-radius: 9px;
  padding: 0.8rem 0.9rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.co-field input:focus, .co-field select:focus {
  outline: none; border-color: var(--ember);
  box-shadow: 0 0 0 3px rgba(200,112,58,.15);
}
.co-field input.invalid { border-color: #b4543f; }
.co-err { display: none; color: #b4543f; font-size: 0.8rem; margin-top: 0.35rem; }
.co-err.show { display: block; }

.co-summary-line {
  display: flex; justify-content: space-between; gap: 1rem;
  font-size: 0.92rem; padding: 0.3rem 0;
}
.co-summary-line--sub {
  border-top: 1px solid var(--line); margin-top: 0.4rem;
  padding-top: 0.5rem; font-weight: 600;
}
.co-summary-line--total {
  border-top: 2px solid var(--forest); margin-top: 0.5rem; padding-top: 0.6rem;
}
.co-summary-line--total span:last-child {
  font-family: var(--display-font); font-size: 1.3rem; color: var(--forest);
}

.co-pay-note {
  margin-top: 1.2rem; padding: 0.9rem 1rem;
  background: rgba(138,155,130,.13);
  border: 1px solid rgba(138,155,130,.4);
  border-radius: 9px; font-size: 0.84rem; color: var(--bark);
}
.co-confirm {
  display: none;
  background: linear-gradient(168deg, #fff, var(--linen));
  border: 1px solid var(--sage); border-radius: 16px;
  padding: 2.2rem; box-shadow: var(--lift-2);
  text-align: center;
}
.co-confirm.show { display: block; }
.co-confirm__ref {
  font-family: var(--display-font); font-size: 1.6rem; color: var(--ember);
  margin: 0.5rem 0 1rem;
}
.co-empty {
  text-align: center; padding: 3rem 1rem;
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.8rem, 5vw, 4rem); align-items: start;
}
.contact-aside dt {
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ember); margin-top: 1.5rem;
}
.contact-aside dd {
  font-family: var(--display-font); font-size: 1.1rem;
  color: var(--forest); margin-top: 0.25rem;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-foot {
  background: var(--pine);
  background-image:
    radial-gradient(700px 300px at 88% -30%, rgba(138,155,130,.16), transparent 70%),
    radial-gradient(560px 260px at 4% 130%, rgba(200,112,58,.13), transparent 72%);
  color: #97A293;
  padding: clamp(3.4rem, 6vw, 5rem) 0 0;
}
.foot-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.4rem; padding-bottom: 3rem;
}
.foot__brand .brand__name { color: var(--linen); }
.foot__brand p { font-size: 0.92rem; margin-top: 0.9rem; max-width: 32ch; color: #97A293; }
.foot-col h4 {
  font-family: var(--body-font); font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #C9A24A; margin-bottom: 0.9rem;
}
.foot-col a {
  display: block; text-decoration: none; font-size: 0.93rem;
  color: #AEB8A9; padding: 0.3rem 0;
  transition: color .15s ease;
}
.foot-col a:hover { color: #fff; }
.foot__legal {
  border-top: 1px solid var(--line-d);
  padding: 1.4rem 0; display: flex; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; font-size: 0.82rem; color: #74806F;
}

/* =========================================================
   SCROLL-REVEAL — JS-gated so content never depends on it
   ========================================================= */
.js .reveal {
  opacity: 0; transform: translateY(15px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
.js .reveal.in { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 940px) {
  .lede-grid, .unit-layout, .checkout-grid, .contact-grid {
    grid-template-columns: 1fr;
  }
  .steps { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .unit-booking-col { position: static; }
}
@media (max-width: 600px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--linen); border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--pad-x) 1.1rem; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
  .nav a:hover, .nav a.current { border-bottom-color: var(--line); }
  .nav .nav__cta { margin-top: 0.7rem; text-align: center; justify-content: center; }
  .amenities, .unit-gallery { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot__legal { flex-direction: column; }
  .hero__search { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .step, .whb-unit-card, .lede-grid__media img { transition: none; }
}
