:root {
  --ink: #24352e;
  --muted: #68756e;
  --cream: #f2eadd;
  --paper: #faf8f2;
  --sage: #9aa98f;
  --deep: #18332c;
  --sand: #d9c8aa;
  --line: rgba(36, 53, 46, 0.16);
  --serif: var(--bs-body-font-family);
  --sans: "DM Sans", Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.7;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
}
.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  width: 100%;
  padding: 22px 5vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  transition: 0.3s;
}
.site-header.scrolled {
  background: rgba(24, 51, 44, 0.94);
  backdrop-filter: blur(12px);
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  font: 600 27px var(--serif);
  letter-spacing: -0.03em;
}
.brand span {
  font-style: italic;
  font-weight: 500;
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.nav a:not(.nav-cta) {
  opacity: 0.9;
}
.nav-cta {
  padding: 10px 17px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 99px;
}
.menu-toggle {
  display: none;
  border: 0;
  background: none;
  color: white;
  font-size: 25px;
}
.hero {
  height: 100vh;
  min-height: 680px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: white;
}
.hero-image,
.feature-image,
.canopy-image,
.gallery-item {
  background-size: cover;
  background-position: center;
}
.hero-image {
  position: absolute;
  inset: 0;
  background-image:
    url("../assets/img/melasti/background.jpg"),
    linear-gradient(135deg, #000000, #f2eadd);
  background-blend-mode: soft-light;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 32, 27, 0.68), rgba(12, 32, 27, 0.1) 70%),
    linear-gradient(0deg, rgba(12, 32, 27, 0.45), transparent 45%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(900px, 90%);
  margin: 70px auto 0;
}
.eyebrow,
.section-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 15px;
  font-weight: 600;
}
.hero h1 {
  margin: 14px 0 0;
  font: 500 clamp(70px, 11vw, 150px)/0.85 var(--serif);
  letter-spacing: -0.06em;
}
.hero h2 {
  max-width: 650px;
  margin: 25px 0 10px;
  font: 500 clamp(25px, 3.3vw, 43px)/1.1 var(--serif);
}
.hero-copy {
  max-width: 560px;
  font-size: 17px;
  opacity: 0.9;
}
.button {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding: 14px 21px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 13px;
  transition:
    transform 0.2s,
    background 0.2s;
}
.button:hover {
  transform: translateY(-2px);
}
.button-light {
  margin-top: 16px;
  color: var(--ink);
  background: white;
}
.button-dark {
  color: white;
  background: var(--deep);
}
.hero-stats {
  position: absolute;
  z-index: 2;
  right: 5vw;
  bottom: 40px;
  display: flex;
  gap: 35px;
  text-align: right;
}
.hero-stats div {
  display: grid;
  gap: 1px;
}
.hero-stats strong {
  font: 500 27px var(--serif);
}
.hero-stats span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.75;
}
.section {
  padding: 115px 8vw;
}
.section-label {
  color: var(--ink);
  margin-bottom: 35px;
}
.intro,
.space,
.gallery-section,
.notes {
  background: var(--cream);
}
.intro-grid,
.space-grid,
.gallery-head {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 10vw;
}
h2 {
  font: 500 clamp(39px, 5vw, 68px)/1.08 var(--serif);
  letter-spacing: -0.035em;
  margin: 0 0 25px;
}
h2 em {
  font-weight: 400;
}
.intro p,
.space-copy p {
  font-size: 1.125rem;
  line-height: 1.5;
}
.feature-image {
  height: 70vh;
  min-height: 500px;
  background-image:
    url("../assets/img/melasti/banner1.jpg"),
    linear-gradient(135deg, #718c72, #d4c5a6);
  position: relative;
}
.feature-caption {
  position: absolute;
  bottom: 40px;
  left: 8vw;
  color: white;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}
.feature-caption span {
  font-size: 11px;
  letter-spacing: 0.15em;
}
.feature-caption h3 {
  margin: 5px 0;
  font: 500 36px var(--serif);
}
.feature-caption p {
  margin: 0;
  font-size: 13px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 80px;
  background: var(--line);
}
.info-card {
  background: var(--paper);
  padding: 38px;
  min-height: 240px;
}
.card-icon {
  font-size: 30px;
  margin-bottom: 20px;
}
.info-card h3 {
  font: 500 26px var(--serif);
  margin: 0 0 10px;
}
.info-card p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}
.canopy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--deep);
  color: white;
}
.canopy-image {
  min-height: 650px;
  background-image:
    url("../assets/img/melasti/canopy.jpg"),
    linear-gradient(135deg, #516a57, #c5b38f);
}
.canopy-content {
  align-self: center;
  padding: 10vw;
}
.canopy-content .section-label {
  color: #b8c3b7;
}
.canopy-content p {
  color: #cbd2cc;
  max-width: 500px;
}
.gallery-head {
  align-items: end;
  margin-bottom: 60px;
}
.gallery-head p {
  color: var(--muted);
  max-width: 400px;
}
.gallery-head code {
  font-size: 11px;
}
.amenities {
  background: var(--paper);
}
.amenities-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.25fr;
  gap: 3vw;
  align-items: start;
}
.amenities-copy h2 {
  margin-bottom: 0;
}
.amenity-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 32px;
}
.amenity-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.5;
}
.amenity-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(154, 169, 143, 0.18);
  color: rgba(24, 51, 44, 0.82);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(24, 51, 44, 0.04);
}
.gallery {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  grid-template-rows: 260px 260px;
  gap: 14px;
}
.gallery-item {
  position: relative;
  min-height: 200px;
  background-image: linear-gradient(135deg, #738c72, #cdbf9f);
  overflow: hidden;
}
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.4), transparent 55%);
}
.gallery-item span {
  position: absolute;
  z-index: 1;
  left: 20px;
  bottom: 17px;
  color: white;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.g1 {
  grid-row: span 2;
  background-image:
    url("../assets/img/melasti/villa.jpg"),
    linear-gradient(135deg, #738c72, #cdbf9f);
}
.g2 {
  background-image:
    url("../assets/img/melasti/pool.jpg"),
    linear-gradient(135deg, #6d8d7c, #d8c8a5);
}
.g3 {
  background-image:
    url("../assets/img/melasti/living.jpg"),
    linear-gradient(135deg, #82765f, #d7c6a4);
}
.g4 {
  background-image:
    url("../assets/img/melasti/bedroom.jpg"),
    linear-gradient(135deg, #6f7e68, #c7b38f);
}
.g5 {
  background-image:
    url("../assets/img/melasti/background.jpg"),
    linear-gradient(135deg, #58755d, #b4a987);
}
.access {
  background: var(--sage);
  padding-top: 85px;
  padding-bottom: 85px;
}
.access-box {
  max-width: 850px;
}
.access-box p {
  max-width: 570px;
  font-size: 17px;
}
.notes > h2 {
  max-width: 700px;
}
.accordion {
  max-width: 950px;
  margin: 55px auto 0;
  border-top: 1px solid var(--line);
}
details {
  padding: 0;
}
summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  padding: 23px 0;
  font: 500 20px var(--serif);
}
summary::-webkit-details-marker {
  display: none;
}
summary span {
  font: 400 22px var(--sans);
  transition: transform 0.2s;
}
details[open] summary span {
  transform: rotate(45deg);
}
details p {
  max-width: 780px;
  color: var(--muted);
  margin: -4px 0 25px;
  font-size: 14px;
}
.booking {
  background: var(--sand);
  padding: 120px 8vw;
}
.booking-inner {
  max-width: 850px;
  margin: auto;
  text-align: center;
}
.booking-inner h2 {
  font-size: clamp(55px, 8vw, 105px);
}
.booking-inner > p:not(.eyebrow) {
  max-width: 650px;
  margin: 0 auto 28px;
}
.registration {
  padding: 32px 8vw;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-top: 1px solid var(--line);
}
.registration p {
  margin: 0;
}

@media (max-width: 800px) {
  .site-header {
    padding: 18px 6vw;
  }
  .menu-toggle {
    display: block;
  }
  .nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 5%;
    right: 5%;
    padding: 20px;
    background: var(--deep);
    flex-direction: column;
    align-items: stretch;
    border-radius: 16px;
  }
  .nav.open {
    display: flex;
  }
  .nav a {
    padding: 9px;
  }
  .hero {
    min-height: 720px;
  }
  .hero-content {
    margin-top: 30px;
  }
  .hero-stats {
    left: 6vw;
    right: auto;
    bottom: 28px;
    text-align: left;
    gap: 20px;
    flex-wrap: wrap;
  }
  .hero-stats strong {
    font-size: 22px;
  }
  .section {
    padding: 75px 7vw;
  }
  .intro-grid,
  .space-grid,
  .gallery-head,
  .canopy,
  .amenities-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .amenity-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .cards {
    grid-template-columns: 1fr;
    margin-top: 45px;
  }
  .feature-image {
    height: 55vh;
  }
  .canopy-image {
    min-height: 420px;
  }
  .canopy-content {
    padding: 75px 7vw;
  }
  .gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 220px 220px 220px;
  }
  .g1 {
    grid-row: span 2;
  }
  .g5 {
    grid-column: span 2;
  }
  .registration {
    flex-direction: column;
    align-items: flex-start;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

.intro-grid h2,
.space-grid h2,
.gallery-head h2,
.access-box h2 {
  font-weight: 200;
}
