/* =========================================================
   LERENG HALIMUN — villa & glamping (merek fiktif, portfolio Nauval Dev)
   Kabut, pinus, kayu, cahaya lampu: tenang dan editorial
   ========================================================= */
:root {
  --mist: #efece4;
  --mist-2: #e4dfd3;
  --paper: #f8f6f1;
  --pine: #1c2620;
  --pine-2: #26332b;
  --pine-3: #34443a;
  --moss: #6c7a64;
  --ember: #c27a3e;
  --ember-2: #a9652f;
  --ink: #1d211e;
  --muted: #6f7469;
  --line: #d9d3c5;
  --display: 'Cormorant Garamond', Georgia, serif;
  --body: 'Instrument Sans', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--mist); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }

.concept { background: var(--pine); color: #b9c1b4; font-size: 12.5px; text-align: center; padding: 7px 12px; position: relative; z-index: 60; }
.concept a { color: #fff; }

.kick { font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: #d9cfbd; margin: 0 0 16px; }
.kick--dark { color: var(--moss); }
h2 { font-family: var(--display); font-size: clamp(36px, 5vw, 58px); line-height: 1.02; color: #f3efe6; }
.h2--dark { color: var(--pine); }

.btn { display: inline-flex; align-items: center; justify-content: center; font: 600 15px/1 var(--body); padding: 16px 24px; border-radius: 2px; border: 1px solid transparent; text-decoration: none; cursor: pointer; letter-spacing: .02em; transition: background .2s, color .2s; }
.btn--sm { padding: 11px 16px; font-size: 13.5px; }
.btn--light { background: var(--paper); color: var(--pine); }
.btn--light:hover { background: #fff; }
.btn--line-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--line-light:hover { background: rgba(255,255,255,.12); }
.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn--ember { background: var(--ember); color: #fff; }
.btn--ember:hover { background: var(--ember-2); }
.btn--block { width: 100%; }

/* header */
.top { position: fixed; left: 0; right: 0; top: 30px; z-index: 50; color: #fff; transition: background .3s, color .3s, top .3s; }
.top.is-solid { top: 0; background: rgba(239,236,228,.95); color: var(--pine); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; gap: 22px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-size: 25px; font-weight: 600; }
.brand svg { width: 30px; height: 30px; }
.nav { display: none; gap: 30px; margin-left: auto; font-size: 14.5px; font-weight: 500; }
.nav a { text-decoration: none; opacity: .9; }
.nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }
.top .btn { margin-left: auto; }
@media (min-width: 900px) { .nav { display: flex; } .top .btn { margin-left: 8px; } }

/* hero */
.hero { position: relative; min-height: min(100svh, 920px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--pine); }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: drift 24s ease-out both; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,28,23,.35) 0%, rgba(20,28,23,0) 30%, rgba(20,28,23,.15) 55%, rgba(20,28,23,.78) 100%); }
@keyframes drift { from { transform: scale(1.08); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .hero__bg { animation: none; } }
.hero__in { position: relative; z-index: 1; padding: 160px 0 70px; }
.hero h1 { font-family: var(--display); font-size: clamp(72px, 14vw, 180px); line-height: .86; letter-spacing: -.02em; }
.hero h1 em { font-style: italic; font-weight: 500; padding-left: .5em; }
.hero__lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; max-width: 460px; margin: 26px 0 30px; color: #e8e4da; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* intro */
.intro { padding: 100px 0 70px; }
.intro__in { display: grid; gap: 48px; }
@media (min-width: 960px) { .intro__in { grid-template-columns: 1.5fr 1fr; align-items: end; } }
.intro__big { font-family: var(--display); font-size: clamp(28px, 3.4vw, 42px); line-height: 1.22; margin: 0; color: var(--pine); }
.intro__facts { margin: 0; display: grid; gap: 20px; }
.intro__facts div { display: flex; gap: 18px; align-items: baseline; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.intro__facts dt { font-family: var(--display); font-size: 38px; min-width: 110px; color: var(--pine); }
.intro__facts dd { margin: 0; color: var(--muted); font-size: 15px; }

/* stays */
.stays { padding: 30px 0 90px; }
.stay { display: grid; gap: 28px; margin: 0 auto 90px; width: min(1200px, 100% - 32px); align-items: center; }
.stay:last-child { margin-bottom: 0; }
@media (min-width: 960px) { .stay { grid-template-columns: 1.35fr 1fr; gap: 64px; } .stay:nth-child(even) .stay__pics { order: 2; } }
.stay__pics { position: relative; padding-bottom: 12%; }
.stay__main { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.stay__alt { position: absolute; right: -4%; bottom: 0; width: 38%; aspect-ratio: 3 / 4; object-fit: cover; border: 8px solid var(--mist); }
.stay:nth-child(even) .stay__alt { right: auto; left: -4%; }
@media (max-width: 959px) { .stay__alt { right: 4%; } .stay:nth-child(even) .stay__alt { left: 4%; } }
.stay__kind { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--moss); }
.stay h3 { font-family: var(--display); font-size: clamp(42px, 5vw, 60px); line-height: 1; color: var(--pine); margin: 10px 0 18px; }
.stay__lead { font-size: 16.5px; line-height: 1.7; color: #4a4f47; margin: 0 0 24px; }
.spec { margin: 0 0 26px; border-top: 1px solid var(--line); }
.spec div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; }
.stay__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.price { font-family: var(--display); font-size: 30px; color: var(--pine); }
.price small { font-family: var(--body); font-size: 13px; color: var(--muted); margin-left: 6px; }
.stay .btn { background: var(--pine); color: #fff; }
.stay .btn:hover { background: var(--pine-3); }

/* booking */
.book { background: var(--pine); color: #e7e4dc; padding: 90px 0; }
.book__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 34px; }
.book__head h2 { max-width: 640px; }
.book__note { max-width: 340px; font-size: 14.5px; line-height: 1.6; color: #aab3a6; margin: 0; }
.units { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 26px; }
.unit { display: flex; align-items: center; gap: 12px; text-align: left; padding: 8px; background: var(--pine-2); border: 1px solid #3a4a40; color: #e7e4dc; cursor: pointer; font: inherit; }
.unit img { width: 64px; height: 64px; object-fit: cover; flex: none; }
.unit b { display: block; font-family: var(--display); font-size: 22px; font-weight: 600; line-height: 1.1; }
.unit span { display: block; font-size: 12.5px; color: #aab3a6; margin-top: 2px; }
.unit[aria-checked="true"] { border-color: var(--ember); background: var(--pine-3); }
@media (max-width: 700px) { .units { grid-template-columns: 1fr; } }
.book__grid { display: grid; gap: 24px; }
@media (min-width: 1000px) { .book__grid { grid-template-columns: 1fr 380px; align-items: start; } }
.cal { background: var(--paper); color: var(--ink); padding: 22px; }
.cal__nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.cal__nav span { font-size: 14px; font-weight: 600; color: var(--moss); }
.cal__nav button { width: 40px; height: 40px; border: 1px solid var(--line); background: #fff; font-size: 22px; cursor: pointer; color: var(--pine); }
.cal__nav button:disabled { opacity: .3; cursor: default; }
.cal__months { display: grid; gap: 30px; }
@media (min-width: 700px) { .cal__months { grid-template-columns: 1fr 1fr; } }
.month h3 { font-family: var(--display); font-size: 26px; font-weight: 600; color: var(--pine); margin-bottom: 10px; }
.grid7 { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.dow { font-size: 11.5px; font-weight: 600; color: var(--muted); text-align: center; padding: 4px 0 8px; }
.day { aspect-ratio: 1; border: 0; background: transparent; font: 500 14.5px var(--body); color: var(--ink); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
.day small { font-size: 9.5px; color: var(--muted); font-weight: 500; }
.day:hover:not(:disabled) { background: var(--mist-2); }
.day:disabled { color: #b9b4a8; cursor: default; }
.day.is-booked { text-decoration: line-through; color: #b2ab9e; }
.day.is-booked small { visibility: hidden; }
.day.is-we small { color: var(--ember-2); }
.day.in-range { background: #e6dccb; }
.day.is-start, .day.is-end { background: var(--pine); color: #fff; }
.day.is-start small, .day.is-end small { color: #cfd6ca; }
.sum { background: var(--pine-2); border: 1px solid #3a4a40; padding: 22px; display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 1000px) { .sum { position: sticky; top: 90px; } }
.sum__dates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sum__dates div { background: var(--pine); padding: 12px 14px; }
.sum__dates span, .guests > span { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #aab3a6; }
.sum__dates b { display: block; font-family: var(--display); font-size: 22px; font-weight: 600; margin-top: 4px; color: #fff; }
.guests { display: flex; justify-content: space-between; align-items: center; }
.step { display: flex; align-items: center; gap: 14px; }
.step button { width: 36px; height: 36px; border: 1px solid #4a5a50; background: transparent; color: #fff; font-size: 18px; cursor: pointer; }
.step button:disabled { opacity: .35; cursor: default; }
.step b { font-size: 18px; min-width: 16px; text-align: center; }
.lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; }
.lines li { display: flex; justify-content: space-between; gap: 12px; }
.lines li span:first-child { color: #c3cabd; }
.lines .empty { color: #aab3a6; }
.adds { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.adds legend { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #aab3a6; margin-bottom: 8px; }
.add { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.add input { width: 17px; height: 17px; accent-color: var(--ember); margin-top: 2px; }
.add span { flex: 1; }
.add small { display: block; color: #aab3a6; font-size: 12.5px; }
.add em { font-style: normal; color: #e9c9a5; white-space: nowrap; }
.total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; border-top: 1px solid #3a4a40; }
.total span { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #aab3a6; }
.total b { font-family: var(--display); font-size: 40px; font-weight: 600; color: #fff; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #aab3a6; }
.field input { font: 500 15px var(--body); letter-spacing: 0; text-transform: none; padding: 13px 14px; border: 1px solid #4a5a50; background: var(--pine); color: #fff; }
.field input:focus { outline: none; border-color: var(--ember); }
.err { margin: 0; color: #f0a98a; font-size: 14px; font-weight: 600; }
.pv-label { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: #aab3a6; margin: 0 0 8px; }
.wa-preview { background: #e7f6dd; color: #1d211e; padding: 14px; white-space: pre-wrap; font-size: 13.5px; line-height: 1.5; }

/* moments */
.moments { padding: 100px 0 90px; }
.moments h2 { margin-bottom: 34px; max-width: 620px; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 420px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 max(16px, (100vw - 1200px) / 2) 10px; scrollbar-width: thin; }
.rail figure { margin: 0; scroll-snap-align: start; }
.rail figure:nth-child(odd) img { aspect-ratio: 4 / 5; }
.rail figure:nth-child(even) img { aspect-ratio: 4 / 5; margin-top: 50px; }
.rail img { width: 100%; object-fit: cover; }
.rail figcaption { font-family: var(--display); font-style: italic; font-size: 21px; color: var(--pine); margin-top: 12px; }

/* info */
.info { background: var(--paper); padding: 90px 0; border-top: 1px solid var(--line); }
.info__in { display: grid; gap: 40px; }
@media (min-width: 960px) { .info__in { grid-template-columns: 1fr 1.1fr; align-items: center; } }
.rules { margin: 28px 0; border-top: 1px solid var(--line); }
.rules div { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
@media (max-width: 520px) { .rules div, .spec div { grid-template-columns: 1fr; gap: 2px; } }
.rules dt { color: var(--muted); }
.rules dd { margin: 0; }
.addr { color: var(--muted); font-size: 14.5px; }
.map iframe { display: block; width: 100%; height: 440px; border: 0; filter: grayscale(.35) contrast(.95); }

.foot { background: var(--pine); color: #aab3a6; padding: 50px 0; }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; }
.foot__name { font-family: var(--display); font-size: 44px; color: #f3efe6; margin: 0; }
.foot p:last-child { margin: 0; font-size: 13px; max-width: 460px; line-height: 1.6; }
