@import url('https://fonts.googleapis.com/css2?family=Anuphan:wght@300;400;500;600;700&family=Noto+Serif+Thai:wght@500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --ink: #1a2420;
  --ink-mid: #3d4f46;
  --muted: #5c6b64;
  --bg: #eef2ef;
  --bg-soft: #e2ebe5;
  --white: #ffffff;
  --line: rgba(26, 36, 32, 0.1);
  --leaf: #3d6b54;
  --leaf-deep: #2f5a42;
  --leaf-soft: #d8ebe0;
  --font: 'Anuphan', sans-serif;
  --heading: 'Noto Serif Thai', Georgia, serif;
  --mono: 'IBM Plex Mono', 'Anuphan', monospace;
  --max: 1100px;
  --demo-h: 48px;
  --header-h: 70px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --z-header: 50;
  --z-demo: 60;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(ellipse 55% 40% at 100% 0%, rgba(61, 107, 84, 0.08), transparent 50%),
    var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
ul { list-style: none; }
.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
:focus-visible { outline: 2px solid var(--leaf); outline-offset: 3px; }

.demo-bar {
  position: sticky; top: 0; z-index: var(--z-demo);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: 0.55rem 1.25rem; background: var(--ink); color: #fff; font-size: 0.82rem;
}
.demo-bar strong {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em;
  color: #9dcdb8; font-weight: 500;
}
.demo-bar__actions { display: flex; gap: 0.45rem; flex-wrap: wrap; }
.demo-bar a {
  padding: 0.35rem 0.7rem; border: 1px solid rgba(255,255,255,0.25);
  border-radius: 2px; font-size: 0.78rem; font-weight: 500;
  transition: background 0.2s var(--ease);
}
.demo-bar a:hover { background: rgba(255,255,255,0.08); }
.demo-bar a.is-primary { background: var(--leaf); border-color: var(--leaf); }

.site-header {
  position: sticky; top: var(--demo-h); z-index: var(--z-header);
  background: rgba(238, 242, 239, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); gap: 1rem;
}
.brand {
  font-family: var(--heading); font-weight: 700; font-size: 1.3rem;
  letter-spacing: -0.02em; display: inline-flex; align-items: baseline; gap: 0.4rem;
}
.brand small {
  font-family: var(--mono); font-size: 0.62rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--leaf);
}
.menu-toggle {
  display: none; background: none; border: 1px solid var(--line);
  padding: 0.4rem 0.75rem; cursor: pointer; font-size: 0.85rem; font-weight: 500;
}
.nav { display: flex; align-items: center; gap: 1.35rem; }
.nav a { font-size: 0.92rem; font-weight: 500; color: var(--ink-mid); }
.nav a:hover { color: var(--ink); }
.nav-cta {
  background: var(--leaf); color: #fff !important;
  padding: 0.5rem 1rem; border-radius: 2px;
}
.nav-cta:hover { background: var(--leaf-deep); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 1.35rem; font-weight: 600; font-size: 0.95rem;
  border-radius: 2px; border: 1.5px solid transparent; cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--leaf { background: var(--leaf); color: #fff; border-color: var(--leaf); }
.btn--leaf:hover { background: var(--leaf-deep); border-color: var(--leaf-deep); }
.btn--ghost {
  background: transparent; color: #fff; border-color: rgba(255,255,255,0.45);
}
.btn--ghost:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.text-link {
  font-weight: 600; color: var(--leaf-deep);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.text-link:hover { border-bottom-color: var(--leaf-deep); }

.hero {
  position: relative; min-height: min(92vh, 820px);
  display: flex; align-items: flex-end; color: #fff; overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.04);
  animation: hero-ken 18s var(--ease) both;
}
.hero__media::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(26, 36, 32, 0.88) 0%, rgba(26, 36, 32, 0.68) 48%, rgba(26, 36, 32, 0.3) 100%),
    linear-gradient(to top, rgba(26, 36, 32, 0.55), transparent 42%);
}
.hero__inner {
  position: relative; z-index: 1;
  padding: 5.5rem 0 3.5rem;
  max-width: 40rem;
  margin-left: max(calc((100% - var(--max)) / 2), 1.25rem);
  width: min(100% - 2.5rem, 40rem);
  animation: hero-rise 0.9s var(--ease) both;
}
.hero__brand {
  font-family: var(--heading); font-size: 1.15rem; font-weight: 600;
  margin-bottom: 1.1rem; display: flex; align-items: baseline; gap: 0.45rem;
}
.hero__brand span {
  font-family: var(--mono); font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: #9dcdb8;
}
.hero h1 {
  font-family: var(--heading); font-weight: 700;
  font-size: clamp(1.7rem, 3.8vw, 2.55rem);
  line-height: 1.3; letter-spacing: -0.02em; margin-bottom: 1rem;
}
.hero h1 em {
  display: block; margin-top: 0.4rem;
  font-style: normal; color: #c5e0d2; font-weight: 600; font-size: 0.9em;
}
.hero__lead {
  font-size: 1.05rem; color: rgba(255,255,255,0.82);
  max-width: 34rem; margin-bottom: 1.5rem;
}
.hero__proof {
  margin-top: 1.75rem; font-size: 0.92rem; color: rgba(255,255,255,0.75);
}
.hero__proof strong { color: #fff; }

@keyframes hero-ken {
  from { transform: scale(1.04); }
  to { transform: scale(1); }
}
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

.section { padding: 4.5rem 0; }
.section--soft { background: var(--bg-soft); }
.section--leaf {
  background: var(--ink);
  color: #fff;
  background-image: radial-gradient(ellipse 50% 60% at 100% 0%, rgba(61, 107, 84, 0.35), transparent 55%);
}
.section__head { margin-bottom: 2.25rem; max-width: 36rem; }
.section__head h2 {
  font-family: var(--heading); font-size: clamp(1.55rem, 3vw, 2.1rem);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.35; margin-bottom: 0.55rem;
}
.section__head p { color: var(--muted); }
.eyebrow {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--leaf); font-weight: 500; margin-bottom: 0.55rem;
}
.eyebrow.light { color: #9dcdb8; }
.section--leaf .section__head h2,
.section--leaf h2 { color: #fff; }
.section--leaf p { color: rgba(255,255,255,0.72); }

.rooms {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.15rem;
}
.room {
  background: var(--white); border: 1px solid var(--line);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.room:hover { transform: translateY(-3px); border-color: rgba(26, 36, 32, 0.22); }
.room__photo { aspect-ratio: 3 / 2; overflow: hidden; }
.room__photo img { width: 100%; height: 100%; object-fit: cover; }
.room__body { padding: 1.25rem 1.2rem 1.4rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.room__tag {
  font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--leaf); font-weight: 500;
}
.room h3 { font-family: var(--heading); font-size: 1.2rem; }
.room__body > p { font-size: 0.92rem; color: var(--muted); flex: 1; }
.room__price { font-size: 1.35rem; font-weight: 700; color: var(--ink) !important; }
.room__price small { font-size: 0.85rem; font-weight: 500; color: var(--muted); }

.amenity-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.85rem 1.5rem;
}
.amenity-grid li {
  position: relative; padding-left: 1.5rem; font-size: 1.02rem; font-weight: 500;
}
.amenity-grid li::before {
  content: ''; position: absolute; left: 0; top: 0.55rem;
  width: 0.65rem; height: 0.65rem; background: var(--leaf); border-radius: 1px;
}

.stay-split {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 2.5rem; align-items: start;
}
.stay-split h2 {
  font-family: var(--heading); font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.35; margin-bottom: 0.85rem;
}
.lede { color: var(--muted); margin-bottom: 1.25rem; max-width: 36rem; }
.ticks { display: grid; gap: 0.65rem; }
.ticks li {
  position: relative; padding-left: 1.4rem; font-weight: 500;
}
.ticks li::before {
  content: ''; position: absolute; left: 0; top: 0.55rem;
  width: 0.55rem; height: 0.55rem; border: 2px solid var(--leaf);
}
.stay-card {
  background: var(--white); border-left: 3px solid var(--leaf);
  padding: 1.5rem 1.35rem;
}
.stay-card strong {
  display: block; font-family: var(--heading); font-size: 1.15rem; margin-bottom: 0.5rem;
}
.stay-card p { color: var(--muted); font-size: 0.95rem; }

.feature-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center;
}
.feature-split__media { overflow: hidden; aspect-ratio: 4 / 3; }
.feature-split__media img { width: 100%; height: 100%; object-fit: cover; }
.feature-split h2 {
  font-family: var(--heading); font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.35; margin-bottom: 0.75rem;
}

.nearby-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
.nearby-grid article { display: flex; flex-direction: column; gap: 0.55rem; }
.nearby-grid img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
}
.nearby-grid h3 {
  font-family: var(--heading); font-size: 1.15rem;
}
.nearby-grid p { font-size: 0.92rem; color: var(--muted); }

.room--family { border-color: rgba(61, 107, 84, 0.35); }
.room--family .room__tag { color: var(--leaf-deep); }


.faq { max-width: 40rem; display: grid; gap: 0.5rem; }
.faq details { background: var(--white); border: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.05rem 1.2rem;
  font-weight: 600; display: flex; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; font-family: var(--mono); color: var(--leaf); font-weight: 500;
}
.faq details[open] summary::after { content: '−'; }
.faq details p {
  padding: 0 1.2rem 1.15rem; color: var(--muted); font-size: 0.95rem;
}

.book-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start;
}
.book-split h2 {
  font-family: var(--heading); font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0.4rem 0 0.75rem;
}
.book-ids { margin-top: 1.25rem; color: rgba(255,255,255,0.8); }
.book-ids strong { color: #fff; }
.book-form {
  background: var(--white); color: var(--ink);
  border: 1.5px solid rgba(255,255,255,0.2);
  padding: 1.65rem 1.45rem; display: grid; gap: 0.9rem;
}
.field { display: grid; gap: 0.35rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.field label { font-size: 0.85rem; font-weight: 500; color: var(--ink-mid); }
.field input, .field select {
  padding: 0.7rem 0.85rem; border: 1px solid var(--line);
  background: var(--bg); border-radius: 2px;
}
.field input:focus, .field select:focus {
  outline: none; border-color: var(--leaf);
}

.site-footer {
  background: #121816; color: rgba(255,255,255,0.78); padding: 3rem 0 1.5rem;
}
/* Voice strip — soft quotes */
.voice-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.voice-strip__item {
  margin: 0;
  padding: 1.55rem 1.4rem 1.45rem 1.5rem;
  border-bottom: 1px solid var(--line);
  border-left: 2px solid var(--leaf, var(--accent, var(--line)));
  background: transparent;
}
.voice-strip__item:nth-child(even) {
  border-left-color: color-mix(in srgb, var(--accent, var(--gold, var(--blush, var(--line)))) 55%, transparent);
}
.voice-strip__item p {
  font-family: var(--heading, var(--brand, var(--display, inherit)));
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
  line-height: 1.45;
  margin: 0 0 0.85rem;
  color: var(--ink);
  font-weight: 500;
}
.voice-strip__item cite {
  display: block;
  font-style: normal;
  font-size: 0.88rem;
  color: var(--muted);
}
@media (max-width: 720px) {
  .voice-strip { grid-template-columns: 1fr; }
  .voice-strip__item { padding-inline: 0 0.25rem; border-left-width: 2px; padding-left: 1.1rem; }
}

.footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem;
}
.site-footer .brand { color: #fff; }
.site-footer .brand small { color: #9dcdb8; }
.footer__lede { font-size: 0.9rem; max-width: 18rem; margin-top: 0.5rem; }
.footer__grid h4 {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: #9dcdb8; margin-bottom: 0.75rem; font-weight: 500;
}
.footer__grid a { display: block; font-size: 0.92rem; margin-bottom: 0.4rem; }
.footer__grid a:hover { color: #fff; }
.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
  padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.8rem; color: rgba(255,255,255,0.5);
}


/* Atmosphere gallery */
.gallery-section { padding-bottom: 3.75rem; }
.gallery-bleed { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.atm-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, minmax(150px, 18vw));
  gap: 0.45rem;
}
.atm-item {
  position: relative; margin: 0; overflow: hidden; min-height: 0;
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  background: var(--bg-soft);
}
.atm-item.is-in { opacity: 1; transform: none; }
.atm-item:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 3; }
.atm-item:nth-child(2) { grid-column: 3; grid-row: 1; }
.atm-item:nth-child(3) { grid-column: 3; grid-row: 2; }
.atm-item:nth-child(4) { grid-column: 1; grid-row: 3; }
.atm-item:nth-child(5) { grid-column: 2; grid-row: 3; }
.atm-item:nth-child(6) { grid-column: 3; grid-row: 3; }
.atm-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.8s var(--ease);
}
.atm-item:hover img { transform: scale(1.05); }
.atm-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0.95rem 1rem;
  background: linear-gradient(transparent, rgba(16, 18, 16, 0.78));
  color: #fff; font-size: 0.88rem; font-weight: 500;
}

/* Room card actions */
.room__actions {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.1rem;
  align-items: center; margin-top: 0.35rem;
}
.room__actions .text-link--mute {
  font-weight: 500; opacity: 0.75;
}

/* Room type detail page */
.room-crumb {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 0.85rem;
}
.room-crumb a { color: inherit; border-bottom: 1px solid transparent; }
.room-crumb a:hover { border-bottom-color: currentColor; }
.room-hero-block {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2.25rem;
  align-items: start; padding: 2.75rem 0 1.5rem;
}
.room-hero-block__media {
  overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-soft);
}
.room-hero-block__media img { width: 100%; height: 100%; object-fit: cover; }
.room-hero-block h1 {
  font-family: var(--heading); font-size: clamp(1.85rem, 3.8vw, 2.55rem);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 0.65rem;
}
.room-hero-block .room__tag { display: inline-block; margin-bottom: 0.55rem; }
.room-hero-block .lede { margin-bottom: 1.25rem; }
.room-facts {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.65rem 1.25rem;
  margin: 1.35rem 0 1.6rem; padding: 1.15rem 0; border-block: 1px solid var(--line);
}
.room-facts li {
  position: relative; padding-left: 1.15rem; font-size: 0.95rem; font-weight: 500;
}
.room-facts li::before {
  content: ''; position: absolute; left: 0; top: 0.55rem;
  width: 0.45rem; height: 0.45rem; border-radius: 1px;
}
.room-shots { padding: 1rem 0 3.5rem; }
.room-shots__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.65rem;
}
.room-shots__grid figure { margin: 0; overflow: hidden; aspect-ratio: 4 / 3; }
.room-shots__grid img { width: 100%; height: 100%; object-fit: cover; }
.room-shots__grid figcaption {
  font-size: 0.82rem; color: var(--muted); margin-top: 0.45rem;
}
.room-more { padding: 0 0 4.5rem; }
.room-more h2 {
  font-family: var(--heading); font-size: 1.35rem; margin-bottom: 1.15rem;
}
.room-more__grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
}
.room-more a {
  display: grid; grid-template-columns: 110px 1fr; gap: 0.95rem;
  align-items: center; padding: 0.75rem; border: 1px solid var(--line);
  background: var(--white, var(--bg-soft));
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.room-more a:hover { transform: translateY(-2px); }
.room-more a img { width: 110px; height: 80px; object-fit: cover; }
.room-more strong { display: block; font-family: var(--heading); font-size: 1.05rem; margin-bottom: 0.2rem; }
.room-more span { font-size: 0.88rem; color: var(--muted); }

@media (max-width: 960px) {
  .atm-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
    grid-auto-rows: minmax(150px, 32vw);
  }
  .atm-item:nth-child(1) { grid-column: 1 / 3; grid-row: auto; min-height: 210px; }
  .atm-item:nth-child(n + 2) { grid-column: auto; grid-row: auto; }
  .room-hero-block, .room-shots__grid, .room-more__grid { grid-template-columns: 1fr; }
  .room-facts { grid-template-columns: 1fr; }
}

.gallery-section { background: var(--ink); color: #fff; }
.gallery-section .section__head .eyebrow { color: #9dcdb8; }
.gallery-section .section__head h2 { color: #fff; }
.gallery-section .section__head p { color: rgba(255,255,255,0.7); }
.room-facts li::before { background: var(--leaf); }
.room-more a:hover { border-color: rgba(61, 107, 84, 0.45); }
.btn--ghost.btn--ink {
  color: var(--ink); border-color: rgba(26, 36, 32, 0.25);
}
.btn--ghost.btn--ink:hover { background: rgba(26, 36, 32, 0.05); border-color: var(--ink); }

.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal-stagger > * {
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.reveal.is-in.reveal-stagger > *:nth-child(1) { transition-delay: 0.04s; }
.reveal.is-in.reveal-stagger > *:nth-child(2) { transition-delay: 0.1s; }
.reveal.is-in.reveal-stagger > *:nth-child(3) { transition-delay: 0.16s; }
.reveal.is-in.reveal-stagger > *:nth-child(4) { transition-delay: 0.22s; }
.reveal.is-in.reveal-stagger > *:nth-child(5) { transition-delay: 0.28s; }
.reveal.is-in.reveal-stagger > *:nth-child(6) { transition-delay: 0.34s; }
.reveal.is-in.reveal-stagger > * { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .hero__media img { animation: none; transform: none; }
  .hero__inner { animation: none; }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 960px) {
  .rooms, .amenity-grid, .book-split, .stay-split,
  .feature-split, .nearby-grid {
    grid-template-columns: 1fr;
  }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .menu-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 0.75rem 1.25rem 1rem;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
  .nav-cta { text-align: center; margin-top: 0.5rem; }
  .field-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
}
