/* Stay Social — pop-up colivings
   Layout concept: sand pages, photos framed in the brand's arch, Jungle bands for the moments that ask you to act. */

@font-face {
  font-family: "Marcellus";
  src: url("../assets/fonts/Marcellus-Regular.woff2") format("woff2"),
       url("../assets/fonts/Marcellus-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../assets/fonts/Jost-VariableFont_wght.woff2") format("woff2"),
       url("../assets/fonts/Jost-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Colour (brand guidelines, Nov 2026) */
  --jungle: #17362F;
  --clay: #C46A3C;
  --sand: #F6EFE3;
  --driftwood: #C9BBA3;
  --lagoon: #3F6E68;
  --sand-deep: #EDE3D2;     /* quiet surface, a step darker than Sand */
  --soon: #E4DCCD;          /* "coming soon" grey, warm toward Sand */
  --ink-soft: #4A5F59;      /* secondary text, Jungle softened */

  /* Type */
  --display: "Marcellus", "Cormorant Garamond", Georgia, serif;
  --text: "Jost", "Futura", "Avenir Next", "Segoe UI", sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.75rem;
  --step-3: clamp(2rem, 4vw, 2.75rem);
  --step-4: clamp(2.4rem, 6vw, 4.25rem);

  --wrap: 1180px;
  --radius: 4px;
  --arch: 999px 999px var(--radius) var(--radius);
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--sand);
  color: var(--jungle);
  font-family: var(--text);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* ---------- Type ---------- */
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
.caps {
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.label {
  font-family: var(--text);
  font-weight: 500;
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  margin: 0;
}
.lede { font-size: var(--step-1); font-weight: 300; line-height: 1.5; max-width: 38ch; margin: 0; }
p { margin: 0; max-width: 64ch; }
.muted { color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.95em 1.6em;
  border: 1px solid var(--jungle);
  border-radius: 999px;
  font: 500 var(--step--1)/1 var(--text);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-solid { background: var(--jungle); color: var(--sand); }
.btn-solid:hover { background: var(--lagoon); border-color: var(--lagoon); }
.btn-line { background: transparent; color: var(--jungle); }
.btn-line:hover { background: var(--jungle); color: var(--sand); }
.on-dark .btn-solid { background: var(--sand); color: var(--jungle); border-color: var(--sand); }
.on-dark .btn-solid:hover { background: var(--driftwood); border-color: var(--driftwood); }
.on-dark .btn-line { color: var(--sand); border-color: var(--sand); }
.on-dark .btn-line:hover { background: var(--sand); color: var(--jungle); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 30;
  background: var(--sand);
}
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: color-mix(in srgb, var(--sand) 94%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid color-mix(in srgb, var(--driftwood) 60%, transparent);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}
.brand img { width: 200px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) {
  text-decoration: none;
  font-size: var(--step--1);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.nav a:not(.btn):hover { color: var(--clay); }
.nav .btn { padding: 0.8em 1.3em; }
.nav a[aria-current="page"] { color: var(--clay); }
@media (max-width: 600px) {
  .nav { gap: 16px; }
  .nav a:not(.btn) { display: none; }
  .brand img { width: 160px; }
}
.btn-lg { padding: 1.25em 2.6em; font-size: 0.95rem; }

/* ---------- Arch frames ---------- */
.arch { border-radius: var(--arch); overflow: hidden; background: var(--sand-deep); }
.arch img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Home ---------- */
.home-intro {
  padding-block: 64px 36px;
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
}
.home-intro .symbol { width: 54px; }
.home-intro h1 { font-size: var(--step-3); }

.location-list { display: grid; gap: 24px; padding-bottom: 80px; }

.feature {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 28px;
  background: #FBF7F0;
  border: 1px solid var(--driftwood);
  border-radius: 6px;
  text-decoration: none;
  transition: border-color .25s ease, transform .25s ease;
}
.feature:hover { border-color: var(--jungle); }
.feature .trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.feature .trio .ph { aspect-ratio: 3 / 4.2; overflow: hidden; border-radius: var(--radius); background: var(--sand-deep); }
.feature .trio .ph img { width: 100%; height: 100%; object-fit: cover; }
.feature .trio img { transition: transform .8s ease; }
.feature:hover .trio img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .feature .trio img, .feature:hover .trio img { transition: none; transform: none; } }
.feature-body { display: grid; gap: 18px; align-content: center; }
.feature-body h2 { font-size: var(--step-3); }
.pill {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--jungle);
  color: var(--sand);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--clay); }
.facts-inline {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 16px 0;
  border-block: 1px solid var(--driftwood);
}
.facts-inline div { display: flex; justify-content: space-between; gap: 16px; }
.facts-inline dt { color: var(--ink-soft); font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.14em; padding-top: 3px; }
.facts-inline dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.feature .go { justify-self: start; }

/* Scouting: same card as a live location, quieter */
.feature.scouting { background: var(--sand-deep); border-color: transparent; cursor: default; }
.feature.scouting:hover { border-color: transparent; }
.feature.scouting .trio img { filter: saturate(.8); }
.feature.scouting:hover .trio img { transform: none; }
.feature.scouting .pill { background: var(--lagoon); }
.feature.scouting .pill::before { background: var(--sand); }
.feature.scouting .facts-inline { border-color: #D3C6B0; }
.scouting-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 36px; }
.scouting-head p { color: var(--ink-soft); }

@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; padding: 18px; gap: 24px; }
}

/* ---------- Hoi An page ---------- */
.hero { padding-block: 48px 28px; display: grid; gap: 22px; }
.hero .label { color: var(--lagoon); }
.hero h1 .dates {
  display: block;
  margin-top: 10px;
  font-family: var(--text);
  font-weight: 300;
  font-size: var(--step-1);
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
/* Hero: three photos side by side, each at its own shape (--ar), columns sized so heights match */
.mosaic {
  display: grid;
  grid-template-columns: 1.5fr 0.75fr 1.333fr;
  gap: 12px;
  align-items: start;
}
.mosaic figure { margin: 0; overflow: hidden; border-radius: var(--radius); aspect-ratio: var(--ar, 4 / 3); background: var(--sand-deep); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) {
  .mosaic { grid-template-columns: 0.75fr 1.333fr; gap: 8px; }
  .mosaic figure:first-child { grid-column: span 2; }
}

.section { padding-block: 88px; }
.section-head { display: grid; gap: 12px; margin-bottom: 36px; }
.section-head .label { color: var(--lagoon); }
.band { background: var(--sand-deep); }

.intro-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: start;
}
.intro-grid .lede { max-width: 30ch; }
.intro-copy { display: grid; gap: 22px; }
.keyfacts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin: 0;
  background: var(--driftwood);
  border: 1px solid var(--driftwood);
  border-radius: 6px;
  overflow: hidden;
}
.keyfacts div { background: var(--sand); padding: 18px 20px; display: grid; gap: 4px; }
.keyfacts dt { font-size: 0.78rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.2em; color: var(--ink-soft); }
.keyfacts dd { margin: 0; font-family: var(--display); font-size: var(--step-1); font-variant-numeric: tabular-nums; }
.included { display: grid; gap: 14px; }
.included ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.included li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--driftwood) 70%, transparent);
}
.included li::before {
  content: "";
  flex: none;
  width: 9px;
  height: 12px;
  border-radius: 9px 9px 1px 1px;
  background: var(--clay);
  transform: translateY(1px);
}
@media (max-width: 860px) { .intro-grid { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 520px) { .keyfacts dd { font-size: 1.05rem; } .keyfacts div { padding: 14px 16px; } }

.place-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.place { margin: 0; display: grid; gap: 14px; }
.place .arch { aspect-ratio: 3 / 4; border-radius: var(--radius); }
.place figcaption { font-family: var(--display); font-size: var(--step-1); text-transform: uppercase; letter-spacing: 0.16em; text-align: center; }
@media (max-width: 760px) {
  .place-row { grid-template-columns: 1fr 1fr; gap: 20px 10px; }
  .place:last-child { grid-column: span 2; }
  .place .arch { aspect-ratio: var(--ar, 3 / 4); }
  .place figcaption { font-size: var(--step-0); }
}

.house-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 210px;
  grid-auto-flow: dense;
  gap: 12px;
}
.shot {
  display: block;
  padding: 0;
  border: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--sand-deep);
  cursor: zoom-in;
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.shot:hover img { transform: scale(1.035); }
@media (prefers-reduced-motion: reduce) { .shot img, .shot:hover img { transition: none; transform: none; } }
.house-grid .wide { grid-column: span 2; }
.house-grid .tall { grid-row: span 2; }
/* Phones: a two-column masonry that keeps every photo's own shape */
@media (max-width: 860px) {
  .house-grid { display: block; columns: 2; column-gap: 8px; }
  .house-grid .shot { width: 100%; margin-bottom: 8px; break-inside: avoid; }
  .house-grid .shot img { height: auto; }
}
.section-foot { margin-top: 48px; display: grid; justify-items: center; gap: 18px; text-align: center; }

/* Full-screen gallery */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: rgba(16, 38, 33, 0.96);
  color: var(--sand);
  padding: calc(14px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) calc(18px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}
.lightbox[hidden] { display: none; }
.lb-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.lb-count { font-size: var(--step--1); letter-spacing: 0.18em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding-block: 12px; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--radius); }
.lb-caption { text-align: center; font-size: var(--step--1); color: var(--driftwood); min-height: 1.4em; }
.lb-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(246, 239, 227, .45);
  border-radius: 50%;
  background: rgba(23, 54, 47, .6);
  color: var(--sand);
  font: 400 1.3rem/1 var(--text);
  cursor: pointer;
}
.lb-btn:hover { background: var(--sand); color: var(--jungle); }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 0; }
.lb-next { right: 0; }
body.lb-open { overflow: hidden; }

/* Masonry columns so portrait and landscape photos keep their shape */
.life-grid { columns: 3; column-gap: 12px; }
.life-grid figure { margin: 0 0 12px; position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: var(--ar, 3 / 4); break-inside: avoid; }
.life-grid img { width: 100%; height: 100%; object-fit: cover; }
.life-grid figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--sand);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
@media (max-width: 760px) { .life-grid { columns: 2; column-gap: 8px; } .life-grid figure { margin-bottom: 8px; } }

.plans {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 56px;
  margin-top: 64px;
  align-items: start;
}
.plans-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 28px;
}
.plans-list li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--driftwood) 70%, transparent);
}
.plans-list li::before,
.included li::before {
  content: "";
  flex: none;
  width: 9px;
  height: 12px;
  border-radius: 9px 9px 1px 1px;
  background: var(--clay);
  transform: translateY(1px);
}
@media (max-width: 860px) {
  .plans { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 520px) { .plans-list { grid-template-columns: 1fr; } }

.about {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.about .arch { aspect-ratio: 4 / 5; }
.about-copy { display: grid; gap: 18px; }
.about-copy .sign { font-family: var(--display); font-size: var(--step-2); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; gap: 32px; } .about .arch { aspect-ratio: 4 / 3.6; } }

.cta-band { background: var(--jungle); color: var(--sand); }
.cta-band .wrap { padding-block: 80px; display: grid; gap: 26px; justify-items: center; text-align: center; }
.cta-band .symbol { width: 48px; }
.cta-band .facts-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--step--1);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--driftwood);
}

/* ---------- Rooms page ---------- */
.rooms-head { padding-block: 48px 36px; display: grid; gap: 16px; }
.rooms-head .label { color: var(--lagoon); }
.rooms-head .back { font-size: var(--step--1); text-decoration: none; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; }
.rooms-head .back:hover { color: var(--clay); }
.room-list { display: grid; gap: 24px; padding-bottom: 88px; }
.room {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  background: #FBF7F0;
  border: 1px solid var(--driftwood);
  border-radius: 6px;
  overflow: hidden;
}
.room-gallery { display: grid; gap: 6px; padding: 10px 0 10px 10px; min-width: 0; }
.room-main { aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); background: var(--sand-deep); }
.room-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; }
.thumbs button {
  flex: 0 0 calc((100% - 30px) / 6);
  min-width: 56px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  cursor: pointer;
  opacity: .62;
  outline-offset: 2px;
  background: var(--sand-deep);
  transition: opacity .2s ease;
}
.thumbs button[aria-pressed="true"], .thumbs button:hover { opacity: 1; }
.thumbs button[aria-pressed="true"] { outline: 2px solid var(--jungle); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.room-body { display: grid; gap: 14px; padding: 28px 32px; align-content: center; }
.room-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.room-title h2 { font-size: var(--step-2); }
.room-title .price { font-variant-numeric: tabular-nums; white-space: nowrap; }
.room-title .price strong { font-family: var(--display); font-weight: 400; font-size: var(--step-1); }
.beds { font-weight: 500; letter-spacing: 0.06em; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tags li {
  padding: 5px 11px;
  border: 1px solid var(--driftwood);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.room .btn { justify-self: start; margin-top: 6px; }
@media (max-width: 860px) {
  .room { grid-template-columns: 1fr; }
  .room-gallery { padding: 10px 10px 0; }
  .room-body { padding: 22px 24px 26px; }
}
.note { font-size: var(--step--1); color: var(--ink-soft); }

/* ---------- Room types ---------- */
.room-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.count {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--jungle);
  color: var(--sand);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.fit { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; list-style: none; font-size: var(--step--1); }
.fit li { display: flex; align-items: center; gap: 7px; }
.fit li::before { content: ""; width: 8px; height: 10px; border-radius: 8px 8px 1px 1px; background: var(--clay); }
.fit-label { font-size: 0.78rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); }
.room-desc { color: var(--ink-soft); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contact-card {
  display: grid;
  gap: 6px;
  padding: 24px;
  border: 1px solid var(--driftwood);
  border-radius: 6px;
  background: #FBF7F0;
  text-decoration: none;
  transition: border-color .2s ease;
}
.contact-card:hover { border-color: var(--jungle); }
.contact-card .label { color: var(--lagoon); }
.contact-card strong { font-family: var(--display); font-weight: 400; font-size: var(--step-1); overflow-wrap: anywhere; }
.contact-card span { color: var(--ink-soft); font-size: var(--step--1); }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: max(18px, calc(env(safe-area-inset-right, 0px) + 12px));
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 10px;
  border-radius: 999px;
  background: var(--jungle);
  color: var(--sand);
  text-decoration: none;
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 22px rgba(23, 54, 47, .28);
  transition: background-color .2s ease, transform .2s ease;
}
.wa-float:hover { background: var(--lagoon); transform: translateY(-2px); }
.wa-float .wa-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #25D366; }
.wa-float svg { width: 20px; height: 20px; }
@media (max-width: 600px) {
  .wa-float { padding: 10px; }
  .wa-float .wa-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
body.lb-open .wa-float { display: none; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--driftwood); }
.site-footer .wrap {
  justify-content: center;
  padding-block: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: var(--step--1);
  color: var(--ink-soft);
}
.site-footer img { width: 30px; }
.site-footer .left { display: flex; align-items: center; gap: 14px; }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer .links a { text-decoration: none; }
.site-footer .links a:hover { color: var(--clay); }
.cta-band + .site-footer { border-top: 0; }
