/* ===== The Misty Pine — brand tokens ===== */
:root {
  --charcoal: #171310;
  --walnut: #2b2118;
  --walnut-light: #3a2d20;
  --cream: #ede7dc;
  --stone: #5c564c;
  --stone-light: #8a8375;
  --amber: #c98a4b;
  --amber-soft: #e0b077;
  --ember: #a8461f;
  --ember-bright: #c65a2c;

  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}

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

body {
  margin: 0;
  background: var(--charcoal);
  color: var(--cream);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

a { color: var(--amber); text-decoration: none; }
a:hover { color: var(--amber-soft); }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  display: block;
  margin-bottom: 0.75em;
}

.section {
  padding: 6rem 1.5rem;
}
.section--walnut { background: var(--walnut); }

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.section-head {
  max-width: 640px;
  margin: 0 0 3rem;
}
.section-head p { color: var(--stone-light); }

/* ===== Topographic contour divider (signature motif) ===== */
.contour-divider {
  height: 64px;
  width: 100%;
  background-repeat: repeat-x;
  background-position: center;
  background-size: 320px 64px;
  opacity: 0.55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='64' viewBox='0 0 320 64'%3E%3Cg fill='none' stroke='%23c98a4b' stroke-width='1'%3E%3Cpath d='M0 32 C 40 10, 80 54, 120 32 S 200 10, 240 32 S 300 54, 320 32'/%3E%3Cpath d='M0 42 C 40 22, 80 60, 120 42 S 200 22, 240 42 S 300 60, 320 42' stroke-opacity='0.6'/%3E%3Cpath d='M0 22 C 40 4, 80 44, 120 22 S 200 2, 240 22 S 300 44, 320 22' stroke-opacity='0.35'/%3E%3C/g%3E%3C/svg%3E");
}

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: rgba(23, 19, 16, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--walnut-light);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--serif);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: var(--cream);
}
.nav-brand img { height: 36px; width: 36px; border-radius: 50%; display: block; }
.nav-brand .ph-empty { height: 36px; width: 36px; border-radius: 50%; }
.nav-links { display: flex; align-items: center; gap: 1.75rem; }
.nav-links a {
  color: var(--stone-light);
  font-size: 0.9rem;
}
.nav-links a:hover { color: var(--cream); }
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  border-radius: 3px;
  background: var(--ember);
  color: var(--cream) !important;
  border: 1px solid transparent;
  transition: background 0.2s ease;
}
.btn:hover { background: var(--ember-bright); }
.btn--ghost {
  background: transparent;
  border: 1px solid var(--stone);
  color: var(--cream) !important;
}
.btn--ghost:hover { border-color: var(--amber); background: var(--walnut-light); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-media .ph-empty { position: absolute; inset: 0; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23,19,16,0.15) 0%, rgba(23,19,16,0.55) 55%, var(--charcoal) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 4rem 1.5rem 5rem;
  max-width: 760px;
}
.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  color: var(--cream);
}
.hero-content h1 em { color: var(--amber-soft); font-style: normal; }
.hero-content p {
  color: var(--stone-light);
  font-size: 1.15rem;
  max-width: 46ch;
  margin-bottom: 1.75rem;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ===== Intro ===== */
.intro { text-align: center; }
.intro-inner { max-width: 760px; margin: 0 auto; }
.intro h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); }
.intro p { color: var(--stone-light); font-size: 1.1rem; }
.intro-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--walnut-light);
}
.stat .stat-num { font-family: var(--serif); font-size: 2.1rem; color: var(--amber-soft); }
.stat .stat-label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone-light); }

/* ===== Grid / cards ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}
.card {
  background: var(--walnut-light);
  border: 1px solid rgba(201, 138, 75, 0.12);
  border-radius: 4px;
  overflow: hidden;
}
.card-media { aspect-ratio: 4/3; position: relative; background: var(--walnut); }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-media .ph-empty { position: absolute; inset: 0; }
.card-body { padding: 1.4rem 1.5rem 1.6rem; }
.card-body h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.card-body p { color: var(--stone-light); font-size: 0.92rem; margin: 0; }
.status-badge {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: 0.6rem;
}
.status-badge--done { background: rgba(201,138,75,0.15); color: var(--amber-soft); }
.status-badge--progress { background: rgba(168,70,31,0.18); color: #e08a63; }
.status-badge--planned { background: rgba(92,86,76,0.25); color: var(--stone-light); }

/* ===== Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 0.5rem;
}
.gallery-item { position: relative; overflow: hidden; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .ph-empty { position: absolute; inset: 0; }
.gallery-item--wide { grid-column: span 2; }
.gallery-item--tall { grid-row: span 2; }
@media (max-width: 780px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item--wide { grid-column: span 2; }
}

/* ===== The Build (plans + construction + roadmap) ===== */
.build-tabs { display: flex; gap: 0.5rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.build-tab {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.55rem 1rem;
  border: 1px solid var(--walnut-light);
  border-radius: 999px;
  color: var(--stone-light);
}
.build-subhead { margin-top: 3.5rem; }
.build-subhead:first-of-type { margin-top: 0; }
.build-subhead h3 { font-size: 1.4rem; color: var(--amber-soft); }
.build-subhead p { color: var(--stone-light); max-width: 62ch; }

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.plan-card { background: var(--charcoal); border: 1px solid var(--walnut-light); border-radius: 4px; overflow: hidden; }
.plan-card .card-media { aspect-ratio: 4/3; background: var(--walnut); }
.plan-card figcaption { padding: 1rem 1.25rem; font-family: var(--mono); font-size: 0.78rem; color: var(--stone-light); }

.progress-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}
.progress-item { background: var(--charcoal); border: 1px solid var(--walnut-light); border-radius: 4px; overflow: hidden; }
.progress-item .card-media { aspect-ratio: 1/1; background: var(--walnut); }
.progress-item .cap { padding: 0.85rem 1rem; }
.progress-item .cap .date { font-family: var(--mono); font-size: 0.68rem; color: var(--amber); display: block; margin-bottom: 0.2rem; }
.progress-item .cap .note { font-size: 0.85rem; color: var(--stone-light); }

.roadmap-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.roadmap-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--charcoal);
  border: 1px solid var(--walnut-light);
  border-radius: 4px;
}
.roadmap-list .item-name { font-family: var(--serif); font-size: 1.05rem; }
.roadmap-list .item-detail { color: var(--stone-light); font-size: 0.85rem; }

/* ===== Sleeps 12 ===== */
.beds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.bed-card {
  padding: 1.5rem;
  background: var(--charcoal);
  border: 1px solid var(--walnut-light);
  border-radius: 4px;
}
.bed-card .room { font-family: var(--serif); font-size: 1.1rem; margin-bottom: 0.3rem; }
.bed-card .config { color: var(--amber); font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.04em; }

/* ===== Location ===== */
.location-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.location-map { aspect-ratio: 4/3; position: relative; background: var(--walnut); border-radius: 4px; overflow: hidden; }
.location-map img { width: 100%; height: 100%; object-fit: cover; }
.location-map .ph-empty { position: absolute; inset: 0; }
@media (max-width: 860px) { .location-layout { grid-template-columns: 1fr; } }

/* ===== Booking CTA ===== */
.cta-band {
  text-align: center;
  padding: 6rem 1.5rem;
  background: linear-gradient(180deg, var(--walnut) 0%, var(--charcoal) 100%);
}
.cta-band h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.cta-band p { color: var(--stone-light); max-width: 50ch; margin: 0 auto 2rem; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ===== Footer ===== */
.footer {
  padding: 3.5rem 1.5rem 2.5rem;
  border-top: 1px solid var(--walnut-light);
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--serif); }
.footer-brand img { height: 32px; width: 32px; border-radius: 50%; }
.footer-brand .ph-empty { height: 32px; width: 32px; border-radius: 50%; }
.footer-links { display: flex; gap: 3rem; flex-wrap: wrap; }
.footer-col h4 { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone-light); margin-bottom: 0.9rem; }
.footer-col a { display: block; color: var(--stone-light); font-size: 0.9rem; margin-bottom: 0.55rem; }
.footer-col a:hover { color: var(--amber); }
.footer-bottom {
  max-width: 1120px;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--walnut-light);
  color: var(--stone);
  font-size: 0.8rem;
  font-family: var(--mono);
}

/* ===== Photo placeholder (auto-shown when an image src 404s) ===== */
.ph-empty {
  width: 100%;
  height: 100%;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.75rem;
  background:
    repeating-linear-gradient(135deg, rgba(201,138,75,0.06) 0 10px, transparent 10px 20px),
    var(--walnut);
  border: 1px dashed rgba(201, 138, 75, 0.35);
}
.ph-empty span {
  font-family: var(--mono);
  font-size: 0.68rem;
  line-height: 1.5;
  color: var(--stone-light);
}
.ph-empty code {
  display: block;
  color: var(--amber);
  margin-top: 0.3rem;
  font-size: 0.68rem;
  word-break: break-all;
}

@media (max-width: 640px) {
  .section { padding: 4rem 1.25rem; }
  .nav-links { display: none; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
}
