/* ==========================================================================
   WanderInnStyle — Solterra Haus
   Design tokens: desert dusk + pool-glow + sun-gold
   ========================================================================== */

:root {
  /* Color */
  --ink:        #241D17;
  --paper:      #F2E8D6;
  --paper-soft: #EADFC7;
  --dusk:       #212A3B;
  --dusk-deep:  #161C29;
  --clay:       #A8502A;
  --clay-deep:  #7E3A1E;
  --pool:       #2E9C93;
  --pool-soft:  #BFE3DD;
  --gold:       #E3A83B;
  --line:       rgba(36, 29, 23, 0.14);
  --line-dark:  rgba(242, 232, 214, 0.16);

  /* Type */
  --font-display: 'Bricolage Grotesque', 'Segoe UI', sans-serif;
  --font-body: 'Manrope', 'Segoe UI', sans-serif;

  /* Scale */
  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.75rem, 1.5rem + 1vw, 2.25rem);
  --step-3: clamp(2.25rem, 1.8rem + 2vw, 3.25rem);
  --step-4: clamp(3rem, 2.2rem + 3.5vw, 5rem);

  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { max-width: 62ch; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 900px) {
  .wrap { padding: 0 2.5rem; }
}

/* Accessibility: visible focus */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  text-decoration: none;
  letter-spacing: -0.02em;
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand span {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--clay);
  margin-top: 0.3em;
}

.nav-toggle {
  display: inline-flex;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.5rem 0.7rem;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after { content: none; }
.nav-toggle svg { width: 20px; height: 20px; }

nav.site-nav {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

nav.site-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

nav.site-nav a:hover,
nav.site-nav a[aria-current="page"] {
  border-bottom-color: var(--clay);
}

.nav-cta {
  background: var(--clay);
  color: var(--paper);
  padding: 0.6rem 1.15rem !important;
  border-radius: 999px;
  border-bottom: none !important;
}
.nav-cta:hover { background: var(--clay-deep); border-bottom: none !important; }

@media (max-width: 780px) {
  .nav-toggle { display: inline-flex; }
  nav.site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  nav.site-nav.open { max-height: 400px; }
  nav.site-nav a {
    width: 100%;
    padding: 0.9rem 1.5rem;
    border-bottom: 1px solid var(--line);
  }
  .nav-cta { margin: 0.9rem 1.5rem; width: calc(100% - 3rem); text-align: center; }
}

@media (min-width: 781px) {
  .nav-toggle { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--dusk) 0%, var(--dusk-deep) 100%);
  color: var(--paper);
  overflow: hidden;
}

.hero .wrap {
  position: relative;
  padding-top: clamp(3.5rem, 6vw, 6rem);
  padding-bottom: clamp(3.5rem, 6vw, 6rem);
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: 1.1fr 0.9fr; align-items: end; }
}

/* Full-bleed photo hero variant (homepage) */
.hero-cover {
  background-image:
    linear-gradient(180deg, rgba(22,28,41,0.15) 0%, rgba(22,28,41,0.55) 55%, rgba(22,28,41,0.92) 100%),
    url('../images/solterra-haus/hero-cover-v2.jpg');
  background-size: cover;
  background-position: center 60%;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
}

.hero-cover .wrap {
  grid-template-columns: 1fr;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.hero-cover .hero-facts {
  border-top-color: var(--line-dark);
}

/* Full-bleed photo hero variant (brand homepage) */
.hero-brand {
  background-image:
    linear-gradient(180deg, rgba(22,28,41,0.35) 0%, rgba(22,28,41,0.55) 60%, rgba(22,28,41,0.85) 100%),
    url('../images/brand/hike-view.jpg');
  background-size: cover;
  background-position: center 45%;
  min-height: 78vh;
  display: flex;
  align-items: center;
}

.hero-brand .wrap {
  grid-template-columns: 1fr;
  text-align: center;
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.hero-brand .hero-eyebrow {
  text-align: center;
}

.hero-brand h1 {
  max-width: none;
  font-size: clamp(3rem, 4vw + 2rem, 6rem);
  font-style: italic;
}

.hero-brand .lede {
  margin-left: auto;
  margin-right: auto;
}

.hero-brand .hero-actions {
  justify-content: center;
}

.hero-eyebrow {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: var(--step-4);
  max-width: 14ch;
}

.hero p.lede {
  color: var(--pool-soft);
  font-size: var(--step-1);
  max-width: 34ch;
  margin-top: 1rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary { background: var(--gold); color: var(--dusk-deep); }
.btn-primary:hover { background: #f0b850; }

.btn-ghost {
  border-color: var(--line-dark);
  color: var(--paper);
}
.btn-ghost:hover { border-color: var(--paper); }

.btn-clay { background: var(--clay); color: var(--paper); }
.btn-clay:hover { background: var(--clay-deep); }

.hero-figure {
  aspect-ratio: 4/5;
  border-radius: 18px;
  background:
    radial-gradient(circle at 30% 20%, rgba(227,168,59,0.35), transparent 55%),
    linear-gradient(150deg, var(--pool) 0%, var(--dusk) 70%);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  border: 1px solid var(--line-dark);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line-dark);
}

.hero-facts strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: var(--gold);
}
.hero-facts span {
  font-size: 0.82rem;
  color: var(--pool-soft);
}

/* ---------- Photo placeholder block ---------- */
div.ph {
  border-radius: 14px;
  background:
    repeating-linear-gradient(135deg, rgba(36,29,23,0.05) 0 12px, rgba(36,29,23,0.02) 12px 24px),
    linear-gradient(160deg, var(--pool-soft), var(--paper-soft));
  border: 1px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clay-deep);
  font-weight: 600;
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
  min-height: 180px;
}

/* Real photo variant: an <img> using the .ph class fills its grid cell */
img.ph {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line-dark);
  display: block;
}

/* ---------- Section shell ---------- */
.section { padding: clamp(3.5rem, 6vw, 6rem) 0; }
.section-dark { background: var(--dusk); color: var(--paper); }
.section-clay { background: var(--clay); color: var(--paper); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.section-head h2 { font-size: var(--step-3); max-width: 16ch; }
.section-head p { color: var(--clay-deep); }
.section-dark .section-head p, .section-dark p { color: var(--pool-soft); }

/* ---------- The Compound (amenities directory) ---------- */
.compound-list {
  display: grid;
  border-top: 1px solid var(--line-dark);
}

.compound-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line-dark);
}

.compound-row .name {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
}

.compound-row .tag {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  font-weight: 700;
}

.section-dark .compound-row .name { color: var(--paper); }

/* generic light-mode variant for amenities page */
.section:not(.section-dark):not(.section-clay) .compound-list { border-top-color: var(--line); }
.section:not(.section-dark):not(.section-clay) .compound-row { border-bottom-color: var(--line); }
.section:not(.section-dark):not(.section-clay) .compound-row .tag { color: var(--clay); }

/* ---------- Cards / grid ---------- */
.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.stat-block {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.75rem;
}
.stat-block strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: var(--clay);
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 700px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid .ph:nth-child(3n+1) { grid-row: span 2; min-height: 380px; }
}

/* ---------- Booking / Shop Your Stay ---------- */
.booking-panel {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.widget-slot {
  margin-top: 1.5rem;
  border: 2px dashed var(--clay);
  border-radius: 14px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--clay-deep);
  background: rgba(168, 80, 42, 0.05);
}
.widget-slot code {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.78rem;
  background: var(--dusk);
  color: var(--pool-soft);
  padding: 0.9rem 1rem;
  border-radius: 8px;
  text-align: left;
  overflow-x: auto;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}
.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}
.steps .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--paper);
  background: var(--clay);
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

.field {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}
.field label {
  font-weight: 700;
  font-size: 0.85rem;
}
.field input,
.field textarea,
.field select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}
.field textarea { resize: vertical; min-height: 120px; }

.contact-info-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 1rem;
}
.contact-info-list li {
  display: grid;
  gap: 0.15rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line-dark);
}
.section-dark .contact-info-list li { border-bottom-color: var(--line-dark); }
.contact-info-list .label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--gold);
}

/* ---------- Property cards (brand homepage) ---------- */
.property-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.property-card {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-soft);
  text-decoration: none;
  color: var(--ink);
  display: block;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.property-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(36,29,23,0.12);
}

.property-card .photo {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.property-card .photo-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, var(--pool-soft), var(--paper-soft));
  color: var(--clay-deep);
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 1.1rem;
  text-align: center;
  padding: 1rem;
}

.property-card .body {
  padding: 1.5rem;
}

.property-card .eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--clay);
  margin-bottom: 0.4rem;
}

.property-card h3 {
  margin-bottom: 0.4rem;
}

.property-card .meta {
  font-size: 0.85rem;
  color: var(--clay-deep);
  margin-bottom: 0;
}

.property-card.is-placeholder {
  opacity: 0.75;
  cursor: default;
}
.property-card.is-placeholder:hover {
  transform: none;
  box-shadow: none;
}

/* ---------- Our Story page ---------- */
.story-copy {
  max-width: 68ch;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.75;
}
.story-copy p {
  max-width: none;
  margin-bottom: 1.4em;
}

.story-photo {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 18px;
  display: block;
  margin: 2.5rem 0;
}

.story-pullquote {
  max-width: 46ch;
  margin: 3.5rem auto;
  text-align: center;
}
.story-pullquote .main {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.6rem);
  color: var(--clay);
  line-height: 1.2;
  margin-bottom: 0.6rem;
}
.story-pullquote .sub {
  font-size: 1rem;
  color: var(--clay-deep);
}

.story-close {
  text-align: center;
  max-width: 50ch;
  margin: 0 auto;
}
.story-close .tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(2.2rem, 1.8rem + 2vw, 3.5rem);
  margin-top: 1.5rem;
}
.site-footer {
  background: var(--dusk-deep);
  color: var(--pool-soft);
  padding: 3rem 0 2rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.3fr 1fr 1fr;
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-grid h4 {
  color: var(--paper);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: none;
  margin-bottom: 0.9rem;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.footer-grid a { text-decoration: none; font-size: 0.9rem; }
.footer-grid a:hover { color: var(--gold); }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.78rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
