/* =====================================================
   LEMBAH RADEN ECO RETREAT
   styles.css — Global Shared Stylesheet
   All pages import this file
   ===================================================== */

/* ── GOOGLE FONTS ──────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,700;1,400;1,500&family=Jost:wght@200;300;400;500&display=swap');

/* ── RESET ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
a { text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ── DESIGN TOKENS ─────────────────────────────────── */
:root {
  /* Brand palette — from brandbook */
  --olive:        #626b3a;
  --olive-deep:   #4a5028;
  --olive-light:  #8a9450;
  --olive-pale:   #c8cd9a;
  --brown:        #3a2e0a;
  --brown-mid:    #5c4a18;
  --brown-light:  #a07840;
  --cream:        #e8e0cc;
  --cream-light:  #f2ede0;
  --cream-dark:   #d4c8a8;
  --black:        #0e0e0c;
  --off-black:    #1c1a14;
  --white:        #faf8f2;
  --text-dark:    #1c1a14;
  --text-mid:     #4a4232;
  --text-light:   #7a7060;

  /* Typography */
  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'Jost', sans-serif;

  /* Spacing */
  --section-pad: 6rem 4rem;
  --section-pad-sm: 4rem 2rem;

  /* Nav height */
  --nav-h: 76px;

  /* Transitions */
  --t-fast: .25s;
  --t-med:  .4s;
  --t-slow: .8s;
  --ease:   cubic-bezier(.25,.46,.45,.94);
}

/* ── BASE ───────────────────────────────────────────── */
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--text-dark);
  overflow-x: hidden;
  cursor: none;
}

/* ── CUSTOM CURSOR ──────────────────────────────────── */
.cursor {
  width: 10px; height: 10px;
  background: var(--olive);
  border-radius: 50%;
  position: fixed; pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width var(--t-fast), height var(--t-fast), background var(--t-fast);
  mix-blend-mode: multiply;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid var(--olive);
  border-radius: 50%;
  position: fixed; pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width .3s, height .3s, border-color .3s;
  opacity: .5;
}
/* Dark pages — screen blend mode */
body.page-dark .cursor {
  background: var(--olive-pale);
  mix-blend-mode: screen;
}
body.page-dark .cursor-ring {
  border-color: rgba(200,205,154,.4);
}
body:has(a:hover)    .cursor,
body:has(button:hover) .cursor  { width: 18px; height: 18px; }
body.page-light:has(a:hover) .cursor { background: var(--brown); }
body.page-dark:has(a:hover)  .cursor { background: var(--cream); }
body:has(a:hover)    .cursor-ring,
body:has(button:hover) .cursor-ring { width: 52px; height: 52px; }

/* ── NAVIGATION ─────────────────────────────────────── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 3.5rem;
  height: var(--nav-h);
  transition: background var(--t-med), border-color var(--t-med),
              backdrop-filter var(--t-med);
}

/* Light variant — cream background (Contact page etc.) */
.site-nav--light {
  background: var(--cream-light);
  border-bottom: 1px solid rgba(98,107,58,.15);
}
.site-nav--light .nav-brand-name  { color: var(--brown); }
.site-nav--light .nav-brand-tag   { color: var(--text-light); }
.site-nav--light .nav-links a     { color: var(--text-mid); }
.site-nav--light .nav-links a::after { background: var(--olive); }
.site-nav--light .nav-links a:hover,
.site-nav--light .nav-links a.active { color: var(--olive-deep); }
.site-nav--light .nav-cta {
  border: 1px solid var(--olive);
  color: var(--olive);
}
.site-nav--light .nav-cta:hover {
  background: var(--olive); color: var(--white);
}

/* Dark/transparent variant — over hero (most pages) */
.site-nav--dark {
  background: transparent;
  border-bottom: 1px solid transparent;
}
.site-nav--dark.is-scrolled {
  background: rgba(28,26,20,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: rgba(200,205,154,.08);
}
.site-nav--dark .nav-brand-name     { color: var(--white); }
.site-nav--dark .nav-brand-tag      { color: rgba(255,255,255,.4); }
.site-nav--dark.is-scrolled .nav-brand-name { color: var(--olive-pale); }
.site-nav--dark.is-scrolled .nav-brand-tag  { color: rgba(200,205,154,.4); }
.site-nav--dark .nav-links a        { color: rgba(255,255,255,.75); }
.site-nav--dark .nav-links a::after { background: var(--olive-pale); }
.site-nav--dark .nav-links a:hover,
.site-nav--dark .nav-links a.active { color: var(--olive-pale); }
.site-nav--dark.is-scrolled .nav-links a { color: rgba(200,205,154,.65); }
.site-nav--dark .nav-cta {
  border: 1px solid rgba(200,205,154,.4);
  color: var(--olive-pale);
}
.site-nav--dark .nav-cta:hover {
  background: var(--olive-pale); color: var(--brown);
}

/* Nav shared elements */
.nav-logo {
  display: flex; align-items: center; gap: .9rem;
}
.nav-logo-icon { width: 42px; height: 42px; flex-shrink: 0; }
.nav-brand { display: flex; flex-direction: column; }
.nav-brand-name {
  font-family: var(--sans); font-size: .88rem; font-weight: 500;
  letter-spacing: .28em; text-transform: uppercase; line-height: 1;
  transition: color var(--t-med);
}
.nav-brand-tag {
  font-size: .52rem; font-weight: 300;
  letter-spacing: .3em; text-transform: uppercase;
  transition: color var(--t-med);
}
.nav-links {
  display: flex; gap: 2.75rem; align-items: center;
}
.nav-links a {
  font-size: .72rem; font-weight: 400;
  letter-spacing: .18em; text-transform: uppercase;
  position: relative; padding-bottom: 2px;
  transition: color .3s;
}
.nav-links a::after {
  content: ''; position: absolute;
  bottom: -2px; left: 0; right: 100%;
  height: 1px;
  transition: right .3s;
}
.nav-links a:hover::after,
.nav-links a.active::after { right: 0; }
.nav-cta {
  padding: .6rem 1.6rem;
  font-size: .68rem; font-weight: 400;
  letter-spacing: .2em; text-transform: uppercase;
  transition: background var(--t-fast), color var(--t-fast);
}

/* ── LOGO SVG VARIANTS ──────────────────────────────── */
/* Applied as class on the <svg> element */
.logo--light path:nth-child(1) { fill: rgba(98,107,58,.15); stroke: #626b3a; stroke-width: 1.5; }
.logo--light path:nth-child(2) { fill: #626b3a; }
.logo--light path:nth-child(3) { fill: #626b3a; opacity: .5; }
.logo--light path:nth-child(4) { fill: #626b3a; opacity: .22; }
.logo--light circle             { fill: #626b3a; opacity: .65; }

.logo--dark path:nth-child(1) { fill: rgba(200,205,154,.2); stroke: rgba(200,205,154,.5); stroke-width: 1.2; }
.logo--dark path:nth-child(2) { fill: rgba(200,205,154,.7); }
.logo--dark path:nth-child(3) { fill: rgba(200,205,154,.45); }
.logo--dark path:nth-child(4) { fill: rgba(200,205,154,.2); }
.logo--dark circle             { fill: rgba(200,205,154,.55); }

.logo--footer path:nth-child(1) { fill: rgba(200,205,154,.5); }
.logo--footer path:nth-child(2) { fill: rgba(98,107,58,.8); }
.logo--footer path:nth-child(3) { fill: rgba(98,107,58,.5); }
.logo--footer path:nth-child(4) { fill: rgba(98,107,58,.25); }
.logo--footer circle             { fill: rgba(200,205,154,.6); }

/* ── SCROLL REVEAL ──────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity var(--t-slow) var(--ease),
              transform var(--t-slow) var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-scale {
  opacity: 0; transform: scale(.97);
  transition: opacity .9s ease, transform .9s ease;
}
.reveal-scale.is-visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }
.delay-4 { transition-delay: .45s; }

/* ── TYPOGRAPHY UTILITIES ───────────────────────────── */
.eyebrow {
  font-size: .62rem; font-weight: 400;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--olive);
  display: flex; align-items: center; gap: .75rem;
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: ''; display: block;
  width: 28px; height: 1px; background: var(--olive);
  flex-shrink: 0;
}
.eyebrow--light { color: var(--olive-pale); }
.eyebrow--light::before { background: var(--olive-pale); }
.eyebrow--center { justify-content: center; }
.eyebrow--center::before { display: none; }

.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 400; line-height: 1.2;
  color: var(--brown); margin-bottom: 1.5rem;
}
.section-title em { font-style: italic; color: var(--olive-deep); }
.section-title--light { color: var(--cream); }
.section-title--light em { color: var(--olive-pale); }

.body-copy {
  font-size: .95rem; font-weight: 200;
  line-height: 1.95; color: var(--text-mid);
}
.body-copy--light { color: rgba(200,213,160,.58); }
.body-copy + .body-copy { margin-top: 1.25rem; }

.pull-quote {
  font-family: var(--serif);
  font-size: 1.2rem; font-weight: 400; font-style: italic;
  line-height: 1.6; color: var(--olive-deep);
  border-left: 2px solid var(--olive-pale);
  padding-left: 1.75rem; margin: 2rem 0;
}
.pull-quote--light {
  color: rgba(200,213,160,.8);
  border-left-color: rgba(200,205,154,.3);
}

/* ── BUTTONS ────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .65rem;
  font-family: var(--sans); font-size: .72rem; font-weight: 400;
  letter-spacing: .18em; text-transform: uppercase;
  padding: .85rem 2rem;
  transition: background var(--t-fast), color var(--t-fast),
              border-color var(--t-fast), transform var(--t-fast);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }

.btn--primary {
  background: var(--olive); color: var(--white);
  border: 1px solid var(--olive);
}
.btn--primary:hover { background: var(--olive-deep); border-color: var(--olive-deep); }

.btn--outline {
  background: transparent; color: var(--olive);
  border: 1px solid rgba(98,107,58,.35);
}
.btn--outline:hover { background: var(--olive); color: var(--white); border-color: var(--olive); }

.btn--cream {
  background: var(--cream); color: var(--olive-deep); border: none;
}
.btn--cream:hover { background: var(--white); }

.btn--ghost-light {
  background: transparent; color: var(--olive-pale);
  border: 1px solid rgba(200,205,154,.3);
}
.btn--ghost-light:hover {
  background: rgba(200,205,154,.1);
  border-color: rgba(200,205,154,.55);
}

.btn--text {
  padding: 0 0 3px;
  color: var(--olive-deep);
  border-bottom: 1px solid var(--olive);
}
.btn--text:hover { color: var(--brown); border-color: var(--brown); transform: none; }

.btn--text-light {
  padding: 0 0 3px;
  color: var(--olive-pale);
  border-bottom: 1px solid rgba(200,205,154,.4);
}
.btn--text-light:hover { color: var(--cream); border-bottom-color: var(--cream); transform: none; }

/* ── HERO SHARED ELEMENTS ───────────────────────────── */
/* Forest atmosphere — reused across all dark heroes */
.hero-atmosphere {
  position: absolute; inset: 0; pointer-events: none;
}
.hero-bg-dark {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 70% at 0% 80%, rgba(8,14,4,.75) 0%, transparent 65%),
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(6,10,3,.6) 0%, transparent 55%),
    radial-gradient(ellipse 50% 45% at 100% 0%, rgba(30,45,12,.3) 0%, transparent 60%),
    linear-gradient(170deg, rgba(8,12,4,.4) 0%, rgba(15,22,8,.25) 40%, rgba(20,30,10,.15) 70%, rgba(10,15,5,.35) 100%);
}
.hero-mist {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 180% 28% at 50% 68%, rgba(200,210,170,.07) 0%, transparent 60%);
  animation: mistDrift 9s ease-in-out infinite alternate;
}
@keyframes mistDrift {
  from { transform: translateX(-12px); opacity: .7; }
  to   { transform: translateX(12px);  opacity: 1;  }
}
.hero-forest-far {
  position: absolute; bottom: 0; left: 0; right: 0; height: 38%;
  background: linear-gradient(to bottom, transparent 0%, rgba(12,18,6,.75) 60%, rgba(8,12,4,1) 100%);
  clip-path: polygon(0% 100%,0% 62%,3% 47%,7% 36%,11% 26%,15% 34%,19% 20%,23% 30%,27% 16%,31% 24%,35% 12%,39% 20%,43% 8%,47% 16%,51% 4%,55% 12%,59% 3%,63% 9%,67% 1%,71% 7%,75% 12%,79% 4%,83% 15%,87% 8%,91% 20%,95% 13%,98% 28%,100% 35%,100% 100%);
}
.hero-forest-near {
  position: absolute; bottom: 0; left: 0; right: 0; height: 48%;
  background: linear-gradient(to bottom, transparent 0%, rgba(6,10,3,.95) 60%, #080c04 100%);
  clip-path: polygon(0% 100%,0% 72%,5% 52%,9% 66%,13% 44%,17% 58%,21% 38%,25% 52%,30% 30%,34% 48%,38% 20%,42% 38%,46% 16%,50% 32%,54% 12%,58% 28%,62% 18%,66% 35%,70% 22%,74% 40%,78% 28%,82% 48%,86% 35%,90% 55%,94% 42%,97% 60%,100% 50%,100% 100%);
}
.hero-river {
  position: absolute; left: 25%; right: 25%; bottom: 24%; height: 3px;
  background: linear-gradient(90deg, transparent, rgba(180,200,160,.2), rgba(200,215,180,.35), rgba(180,200,160,.2), transparent);
  filter: blur(2px);
  animation: riverGlow 4s ease-in-out infinite alternate;
}
@keyframes riverGlow {
  from { opacity: .4; transform: scaleX(.85); }
  to   { opacity: .75; transform: scaleX(1.1); }
}
.hero-grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
  background-size: 200px; opacity: .4;
  mix-blend-mode: overlay; pointer-events: none;
}
.hero-light-shaft {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(-8deg, transparent 0px, transparent 90px, rgba(150,180,110,.01) 90px, rgba(150,180,110,.01) 115px);
  animation: shaftSway 18s ease-in-out infinite alternate;
}
@keyframes shaftSway {
  from { transform: rotate(-1deg); opacity: .6; }
  to   { transform: rotate(1deg);  opacity: 1;  }
}

/* Hero scroll indicator */
.hero-scroll {
  position: absolute; bottom: 3rem; right: 3.5rem;
  z-index: 5;
  display: flex; flex-direction: column; align-items: center; gap: .75rem;
}
.hero-scroll__bar {
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, rgba(200,205,154,.5), transparent);
  animation: scrollPulse 2.5s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1);    opacity: .5; }
  50%       { transform: scaleY(1.15); opacity: 1;  }
}
.hero-scroll__text {
  font-size: .52rem; letter-spacing: .28em; text-transform: uppercase;
  color: rgba(200,205,154,.3); writing-mode: vertical-rl;
}

/* ── IMAGE PLACEHOLDERS ─────────────────────────────── */
/* Applied to <img> tags while SVG placeholders are in use */
.img-placeholder {
  display: block; width: 100%; height: 100%;
  object-fit: cover;
  background: rgba(98,107,58,.08);
}
.img-cover {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* ── SECTION UTILITIES ──────────────────────────────── */
.section-pad    { padding: var(--section-pad); }
.section-pad-sm { padding: var(--section-pad-sm); }

.divider { height: 1.5px; background: linear-gradient(to right, transparent, rgba(98,107,58,.2), transparent); }
.divider--light { background: linear-gradient(to right, transparent, rgba(200,205,154,.1), transparent); }

/* Two-column grid utility */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; }
.grid-2--asymL { grid-template-columns: 3fr 2fr; }
.grid-2--asymR { grid-template-columns: 2fr 3fr; }

/* ── FOOTER ─────────────────────────────────────────── */
.site-footer {
  background: var(--off-black);
  padding: 5.5rem 4rem 2.5rem;
}
.site-footer__top {
  display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 4rem; padding-bottom: 4rem;
  border-bottom: 1px solid rgba(200,205,154,.08);
}
.site-footer__logo-row {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem;
}
.site-footer__brand-name {
  font-family: var(--sans); font-size: .82rem; font-weight: 500;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--cream); display: block;
}
.site-footer__brand-sub {
  font-size: .5rem; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(200,213,160,.4); display: block;
}
.site-footer__tagline {
  font-family: var(--serif); font-size: .92rem; font-weight: 400;
  font-style: italic; color: rgba(200,213,160,.4);
  line-height: 1.7; max-width: 280px; margin-bottom: 2rem;
}
.site-footer__social { display: flex; gap: .75rem; }
.site-footer__social-btn {
  width: 34px; height: 34px;
  border: 1px solid rgba(200,205,154,.15); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(200,205,154,.35); font-size: .65rem; font-weight: 500;
  transition: border-color .3s, color .3s;
}
.site-footer__social-btn:hover { border-color: var(--olive-pale); color: var(--olive-pale); }
.site-footer__col-head {
  font-size: .6rem; font-weight: 400; letter-spacing: .25em;
  text-transform: uppercase; color: rgba(200,205,154,.3); margin-bottom: 1.5rem;
}
.site-footer__links { display: flex; flex-direction: column; gap: .7rem; }
.site-footer__links a {
  font-size: .83rem; font-weight: 200; color: rgba(200,213,160,.5);
  transition: color .3s;
}
.site-footer__links a:hover { color: var(--olive-pale); }
.site-footer__bottom {
  padding-top: 2rem;
  display: flex; justify-content: space-between; align-items: center;
}
.site-footer__copy  { font-size: .68rem; font-weight: 200; color: rgba(200,205,154,.2); }
.site-footer__loc   { font-family: var(--serif); font-size: .78rem; font-style: italic; color: rgba(200,205,154,.2); }

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --section-pad: 5rem 2rem; }
  .site-nav { padding: 0 2rem; }
  .nav-links { display: flex; }
  .site-footer { padding: 4rem 2rem 2rem; }
  .site-footer__top { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .site-footer__bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .grid-2, .grid-2--asymL, .grid-2--asymR { grid-template-columns: 1fr; }
  .hero-scroll { bottom: 2rem; right: 2rem; }
}
@media (max-width: 600px) {
  :root { --section-pad: 4rem 1.5rem; }
  .site-footer__top { grid-template-columns: 1fr; }
}

/* nav meni */

/* ── HAMBURGER BUTTON ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  z-index: 201;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition: transform .3s, opacity .3s;
}
.site-nav--light .nav-hamburger span { background: var(--brown); }

/* Hamburger animasi saat terbuka */
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── MOBILE NAV ── */
@media (max-width: 1024px) {
  .nav-hamburger { display: flex; }

   .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
    background: rgba(28,26,20,.97);
    backdrop-filter: blur(12px);
    padding: 100px 2.5rem 3rem;
    /* padding top 100px = nav height + breathing room */
    gap: 1.75rem;
    transform: translateX(100%);
    transition: transform .4s cubic-bezier(.25,.46,.45,.94);
    z-index: 198;
    /* z-index lebih rendah dari nav agar logo tetap terlihat */
    overflow-y: auto;
    justify-content: flex-start;
  }
  .nav-links.is-open {
    transform: translateX(0);
  }
}
  .nav-links.is-open { transform: translateX(0); }

  .nav-links a {
    font-size: 1.2rem;
    letter-spacing: .12em;
    color: var(--cream);
  }
  .nav-links a::after { background: var(--olive-pale); }
  .nav-cta { display: none; }
}
