/* ============================================================
   JasaBangunVilla.com — Eco-Luxury villa construction, Bali
   Audience: high-net-worth Jakarta buyers
   ============================================================ */
:root {
  --ink:        #f3ece1;       /* warm off-white text */
  --ink-dim:    rgba(243, 236, 225, 0.62);
  --bg:         #0c0a07;       /* deep warm charcoal */
  --bg-2:       #14110c;
  --panel:      #1a160f;
  --line:       rgba(201, 160, 92, 0.18);
  --gold:       #c9a05c;       /* teak gold accent */
  --gold-soft:  #e2c693;
  --emerald:    #5e8b6a;       /* trust / legal */
  --terra:      #b9743f;
  --maxw:       1180px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans:  "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scrollbar-width: none; -webkit-text-size-adjust: 100%; }
html::-webkit-scrollbar { display: none; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.05; letter-spacing: -0.01em; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: var(--sans);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold);
}
.lang-en { display: none; }
html[data-lang="en"] .lang-id { display: none; }
html[data-lang="en"] .lang-en { display: inline; }
html[data-lang="en"] .lang-en.block { display: block; }

/* ---------- Top nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px;
  background: linear-gradient(180deg, rgba(12,10,7,0.85), transparent);
  backdrop-filter: blur(6px);
  transition: background 0.3s;
}
.nav.solid { background: rgba(12,10,7,0.96); border-bottom: 1px solid var(--line); }
.brand { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; letter-spacing: 0.01em; }
.brand b { color: var(--gold); }
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-links { display: flex; gap: 22px; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; }
.nav-links a { color: var(--ink-dim); transition: color 0.2s; }
.nav-links a:hover { color: var(--gold-soft); }
.lang-toggle {
  display: flex; gap: 2px; font-size: 0.72rem; font-weight: 700;
  border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
}
.lang-toggle button {
  background: transparent; color: var(--ink-dim); border: 0; cursor: pointer;
  padding: 5px 11px; font-family: var(--sans); font-weight: 700; letter-spacing: 0.05em;
  transition: all 0.2s;
}
.lang-toggle button.on { background: var(--gold); color: #1a1206; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.02em;
  padding: 13px 22px; border-radius: 999px; cursor: pointer; border: 0;
  transition: transform 0.18s, box-shadow 0.2s, background 0.2s;
}
.btn-wa { background: #1faa55; color: #fff; box-shadow: 0 8px 30px rgba(31,170,85,0.32); }
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(31,170,85,0.45); }
.btn-gold { background: var(--gold); color: #1a1206; box-shadow: 0 8px 30px rgba(201,160,92,0.28); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(201,160,92,0.42); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-soft); }
.btn svg { width: 18px; height: 18px; }
.nav .btn { padding: 9px 16px; font-size: 0.82rem; }

/* ---------- Cinematic scrub sections ---------- */
.cinematic { position: relative; }
.cinematic.hero { height: 480vh; }
.cinematic.proof { height: 360vh; }
.sticky {
  position: sticky; top: 0; height: 100vh; width: 100%;
  overflow: hidden; display: grid; place-items: center; background: #0a0805;
}
.sticky canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(130% 100% at 50% 40%, transparent 42%, rgba(0,0,0,0.5) 100%),
    linear-gradient(180deg, rgba(8,6,3,0.55) 0%, transparent 22%, transparent 62%, rgba(8,6,3,0.85) 100%);
}
.hero-poster { /* fallback before frames load */
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
}

/* overlay copy inside scrub */
.scrub-overlay { position: relative; z-index: 10; text-align: center; padding: 0 24px; width: 100%; }
.scrub-overlay .reveal-line {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: max-content; max-width: 92vw; opacity: 0; will-change: opacity, transform;
}
.scrub-overlay .reveal-line h1,
.scrub-overlay .reveal-line h2 {
  font-size: clamp(2.1rem, 6.5vw, 5.4rem);
  text-shadow: 0 6px 50px rgba(0,0,0,0.7);
}
.scrub-overlay .reveal-line p {
  margin-top: 14px; font-size: clamp(1rem, 2.2vw, 1.4rem); color: var(--ink);
  text-shadow: 0 2px 20px rgba(0,0,0,0.8); font-weight: 500;
}
.hero-kicker {
  position: absolute; top: 16vh; left: 50%; transform: translateX(-50%);
  z-index: 11; text-align: center; width: 100%;
}
.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 12;
  font-size: 11px; font-weight: 700; letter-spacing: 0.4em; color: var(--ink-dim);
  animation: bob 1.8s ease-in-out infinite; transition: opacity 0.4s;
}
@keyframes bob { 0%,100% { transform: translateX(-50%) translateY(0);} 50% { transform: translateX(-50%) translateY(7px);} }
.hero-cta-float {
  position: absolute; bottom: 64px; left: 50%; transform: translateX(-50%); z-index: 12;
  display: flex; gap: 14px; flex-wrap: wrap; justify-content: center;
}

/* ---------- Generic sections ---------- */
section.block { padding: clamp(64px, 11vh, 128px) 0; position: relative; }
.block.alt { background: var(--bg-2); }
.sec-head { max-width: 720px; margin-bottom: 52px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head h2 { font-size: clamp(2rem, 5vw, 3.4rem); margin: 14px 0 16px; }
.sec-head p { color: var(--ink-dim); font-size: 1.08rem; }
.lead { font-size: 1.18rem; color: var(--ink-dim); }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Pain / escape split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.pain-list { list-style: none; display: grid; gap: 18px; margin-top: 26px; }
.pain-list li { display: flex; gap: 14px; align-items: flex-start; }
.pain-list .ico { color: var(--gold); flex: 0 0 22px; margin-top: 3px; }
.pain-list b { color: var(--ink); }

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: 22px; }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 30px 26px; transition: transform 0.25s, border-color 0.25s;
}
.card:hover { transform: translateY(-5px); border-color: rgba(201,160,92,0.45); }
.card .ico { width: 40px; height: 40px; color: var(--gold); margin-bottom: 16px; }
.card h3 { font-size: 1.5rem; margin-bottom: 10px; }
.card p { color: var(--ink-dim); font-size: 0.96rem; }

/* ---------- Eco-luxury feature ---------- */
.feature-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.tag { font-size: 0.82rem; font-weight: 600; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--gold-soft); background: rgba(201,160,92,0.06); }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding-top: 44px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: 0; left: 0; font-family: var(--serif); font-size: 2.1rem;
  color: var(--gold); opacity: 0.85;
}
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--ink-dim); font-size: 0.9rem; }
.step::after {
  content: ""; position: absolute; top: 18px; left: 56px; right: -9px; height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}
.step:last-child::after { display: none; }

/* ---------- 12-step flow ---------- */
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: flow; }
.flow-step { position: relative; background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 22px 20px 22px 58px; transition: border-color 0.25s, transform 0.25s; }
.flow-step:hover { border-color: rgba(201,160,92,0.45); transform: translateY(-3px); }
.flow-step::before { counter-increment: flow; content: counter(flow, decimal-leading-zero);
  position: absolute; left: 18px; top: 20px; font-family: var(--serif); font-size: 1.4rem;
  font-weight: 700; color: var(--gold); }
.flow-step h3 { font-size: 1.08rem; margin-bottom: 5px; }
.flow-step p { color: var(--ink-dim); font-size: 0.86rem; line-height: 1.5; }
.flow-step.accent { border-color: rgba(201,160,92,0.55); background: linear-gradient(160deg, rgba(201,160,92,0.12), rgba(201,160,92,0.02)); }
@media (max-width: 820px) { .flow { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .flow { grid-template-columns: 1fr; } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-num { font-family: var(--serif); font-size: clamp(2.4rem, 6vw, 4rem); color: var(--gold); line-height: 1; }
.stat-lab { color: var(--ink-dim); font-size: 0.92rem; margin-top: 8px; }

/* ---------- Before/After slider ---------- */
.ba-wrap { display: grid; gap: 26px; }
.ba {
  position: relative; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden;
  user-select: none; box-shadow: 0 30px 80px rgba(0,0,0,0.5); border: 1px solid var(--line);
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba .after { clip-path: inset(0 0 0 50%); }
.ba .handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--gold);
  transform: translateX(-1px); z-index: 5;
}
.ba .handle::after {
  content: "⇄"; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 42px; height: 42px; border-radius: 50%; background: var(--gold); color: #1a1206;
  display: grid; place-items: center; font-size: 1rem; font-weight: 700;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.ba .lab { position: absolute; bottom: 12px; z-index: 6; font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.1em; padding: 5px 11px; border-radius: 999px; background: rgba(8,6,3,0.7); }
.ba .lab.l { left: 12px; } .ba .lab.r { right: 12px; }

/* ---------- Configurator / Calculator ---------- */
.tool {
  background: var(--panel); border: 1px solid var(--line); border-radius: 20px;
  padding: 36px; display: grid; gap: 26px;
}
.tool-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; align-items: start; }
.field { display: grid; gap: 10px; margin-bottom: 22px; }
.field > label { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; color: var(--ink-dim); text-transform: uppercase; }
.opts { display: flex; flex-wrap: wrap; gap: 10px; }
.opt {
  padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line); cursor: pointer;
  font-size: 0.9rem; font-weight: 600; color: var(--ink-dim); background: rgba(255,255,255,0.02);
  transition: all 0.18s;
}
.opt:hover { border-color: var(--gold); }
.opt.sel { background: var(--gold); color: #1a1206; border-color: var(--gold); }
input[type=range] { width: 100%; accent-color: var(--gold); }
.range-val { font-family: var(--serif); font-size: 1.3rem; color: var(--gold); }
.result {
  background: linear-gradient(160deg, rgba(201,160,92,0.12), rgba(201,160,92,0.02));
  border: 1px solid rgba(201,160,92,0.35); border-radius: 16px; padding: 28px;
}
.result .row { display: flex; justify-content: space-between; align-items: baseline;
  padding: 11px 0; border-bottom: 1px dashed var(--line); }
.result .row:last-of-type { border-bottom: 0; }
.result .row .k { color: var(--ink-dim); font-size: 0.9rem; }
.result .row .v { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); }
.result .row .v.big { color: var(--gold); font-size: 1.9rem; }
.result .note { font-size: 0.78rem; color: var(--ink-dim); margin-top: 14px; }

/* ---------- Realistic galleries ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery.c3 { grid-template-columns: repeat(3, 1fr); }
.gframe { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4/3;
  border: 1px solid var(--line); background: var(--panel); }
.gframe img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.gframe:hover img { transform: scale(1.05); }
.gframe .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 14px 12px; z-index: 2;
  font-size: 0.84rem; font-weight: 600; color: var(--ink);
  background: linear-gradient(transparent, rgba(8,6,3,0.9)); }
.gframe .step-tag { position: absolute; top: 10px; left: 10px; z-index: 3; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.08em; background: var(--gold); color: #1a1206; padding: 3px 9px; border-radius: 999px; }
.gallery-note { text-align: center; color: var(--ink-dim); font-size: 0.92rem; margin-top: 24px; }

/* ---------- Locations ---------- */
.loc-card { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 3/4;
  border: 1px solid var(--line); }
.loc-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s; }
.loc-card:hover img { transform: scale(1.06); }
.loc-card .ov { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(8,6,3,0.92)); }
.loc-card .txt { position: absolute; bottom: 0; left: 0; right: 0; padding: 22px; z-index: 2; }
.loc-card h3 { font-size: 1.7rem; }
.loc-card .roi { color: var(--gold); font-weight: 700; font-size: 0.86rem; margin-top: 4px; }

/* ---------- Articles ---------- */
.art-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; transition: transform 0.25s, border-color 0.25s; display: flex; flex-direction: column; }
.art-card:hover { transform: translateY(-5px); border-color: rgba(201,160,92,0.45); }
.art-card .thumb { aspect-ratio: 16/10; overflow: hidden; }
.art-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.art-card:hover .thumb img { transform: scale(1.05); }
.art-card .body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.art-card .cat { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.art-card h3 { font-size: 1.32rem; }
.art-card p { color: var(--ink-dim); font-size: 0.92rem; flex: 1; }
.art-card .more { color: var(--gold-soft); font-weight: 700; font-size: 0.86rem; margin-top: 6px; }

/* ---------- UGC video reviews ---------- */
.ugc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ugc-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.ugc-card .vid { position: relative; aspect-ratio: 9/16; background: #0a0805; }
.ugc-card video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ugc-card .who { padding: 16px 18px; }
.ugc-card .who b { display: block; font-size: 0.98rem; }
.ugc-card .who span { color: var(--ink-dim); font-size: 0.84rem; }
@media (max-width: 820px) { .ugc-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } }

/* ---------- Testimonials / UGC ---------- */
.quote { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 30px; }
.quote p { font-family: var(--serif); font-size: 1.3rem; line-height: 1.4; color: var(--ink); }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.quote .who img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.quote .who b { display: block; font-family: var(--sans); font-size: 0.92rem; }
.quote .who span { color: var(--ink-dim); font-size: 0.82rem; }

/* ---------- Final CTA ---------- */
.cta-final { text-align: center; background:
  radial-gradient(70% 80% at 50% 0%, rgba(201,160,92,0.14), transparent 60%), var(--bg-2); }
.cta-final h2 { font-size: clamp(2.2rem, 6vw, 4rem); margin-bottom: 18px; }
.cta-final p { color: var(--ink-dim); font-size: 1.15rem; max-width: 620px; margin: 0 auto 30px; }
.cta-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 48px 0 40px; background: var(--bg); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
footer .brand { margin-bottom: 12px; }
footer p, footer a { color: var(--ink-dim); font-size: 0.9rem; }
footer .col h4 { font-family: var(--sans); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
footer .col a { display: block; margin-bottom: 8px; transition: color 0.2s; }
footer .col a:hover { color: var(--gold-soft); }
.foot-bottom { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.82rem; color: var(--ink-dim); }

/* ---------- Floating WhatsApp ---------- */
.wa-float { position: fixed; bottom: 22px; right: 22px; z-index: 80; width: 58px; height: 58px;
  border-radius: 50%; background: #1faa55; display: grid; place-items: center;
  box-shadow: 0 10px 36px rgba(31,170,85,0.5); transition: transform 0.2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split, .tool-grid { grid-template-columns: 1fr; gap: 32px; }
  .grid.c3, .grid.c4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .foot-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .grid.c3, .grid.c4 { grid-template-columns: 1fr; }
  .nav { padding: 12px 16px; }
  .nav .btn { padding: 8px 12px; font-size: 0.74rem; }
  .brand { font-size: 1.2rem; }
  .cinematic.hero { height: 460vh; }
  /* keep scrub overlay text inside the screen */
  .scrub-overlay .reveal-line { width: 90vw; max-width: 90vw; }
  .scrub-overlay .reveal-line h1,
  .scrub-overlay .reveal-line h2 { font-size: clamp(1.8rem, 8vw, 2.6rem); overflow-wrap: break-word; }
  .scrub-overlay .reveal-line p { font-size: 0.98rem; }
  .hero-kicker { top: 12vh; }
  .hero-cta-float { bottom: 48px; width: 90vw; }
  .hero-cta-float .btn { font-size: 0.82rem; padding: 11px 16px; }
}
/* prevent any accidental horizontal scroll site-wide */
section, .wrap { max-width: 100%; }
.cinematic, .sticky { overflow-x: clip; }
