/* ════════════════════════════════════════════════════════════════════
   PADMA LAND — Template Properti / Developer
   Konsep: tenang, mahal, lapang. Arang + sage + pasir.
   Tanda tangan: kalkulator KPR dengan slider (fitur unggulan template ini).
   ════════════════════════════════════════════════════════════════════ */

/* ── 1. TOKEN ─────────────────────────────────────────────────────── */
:root {
  --ink:       #1F2420;
  --ink-2:     #2C332C;
  --sage:      #7D9471;
  --sage-dk:   #5C7351;
  --sand:      #F0EBE1;
  --sand-2:    #E4DDCF;
  --stone:     #5F6459;
  --white:     #FFFFFF;
  --line-raw:  #DAD3C5;

  --bg:            var(--white);
  --bg-sand:       var(--sand);
  --bg-panel:      var(--white);
  --bg-input:      var(--sand);
  --surface-dark:  var(--ink);
  --surface-dark-2:var(--ink-2);
  --text:          var(--ink);
  --text-soft:     var(--stone);
  --on-dark:       var(--sand);
  --on-dark-soft:  #A9B3A5;
  --border:        var(--line-raw);
  --header-bg:     rgba(255,255,255,.93);
  --accent:        var(--sage);        /* garis & isian slider          */
  /* Untuk bidang penuh berteks putih: sage terang hanya 3.3:1, versi
     pekat ini 5.2:1. Sage terang tetap dipakai untuk garis dan slider. */
  --accent-solid:  var(--sage-dk);
  --accent-ink:    #4A6140;            /* aksen SEBAGAI teks         */
  --on-accent:     #FFFFFF;            /* teks DI ATAS aksen         */
  --ph-a:          var(--sand-2);
  --ph-b:          #D5CDBC;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Jost', system-ui, -apple-system, sans-serif;

  --fs-hero: clamp(2.5rem, 6.4vw, 5rem);
  --fs-h2:   clamp(1.8rem, 3.8vw, 2.9rem);
  --fs-lead: clamp(1.02rem, 1.5vw, 1.2rem);
  --fs-sm:   0.86rem;

  --hold:      1240px;
  --gutter:    clamp(18px, 4.5vw, 54px);
  --section-y: clamp(60px, 8vw, 122px);
  --r:         3px;
  --ease:      cubic-bezier(.22,.61,.36,1);
}

[data-theme="dark"] {
  --bg:             #14170F;
  --bg-sand:        #1A1E16;
  --bg-panel:       #1C211A;
  --bg-input:       #14170F;
  --surface-dark:   #1F2420;
  --surface-dark-2: #2C332C;
  --text:           #EAE7DC;
  --text-soft:      #A2A99B;
  --on-dark:        #EAE7DC;
  --on-dark-soft:   #A2A99B;
  --border:         #2E352B;
  --header-bg:      rgba(20,23,15,.93);
  --accent-ink:     #A8C199;
  --ph-a:           #242B20;
  --ph-b:           #1A1E16;
}
[data-theme="dark"] img { filter: brightness(.88) contrast(1.02); }

/* ── 2. RESET ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); line-height: 1.65; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.06; letter-spacing: -.01em; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 999; background: var(--surface-dark); color: var(--on-dark); padding: 12px 20px; }
.skip:focus { left: 0; }

/* ── 3. LAYOUT ────────────────────────────────────────────────────── */
.hold { width: 100%; max-width: var(--hold); margin-inline: auto; padding-inline: var(--gutter); }
.sec { padding-block: var(--section-y); }
.sec--sand { background: var(--bg-sand); }
.sec--dark { background: var(--surface-dark); color: var(--on-dark); }

.eyebrow { display: inline-block; font-size: var(--fs-sm); font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 14px; }
.eyebrow--light { color: var(--accent); }
.h2 { font-size: var(--fs-h2); max-width: 18ch; }
.head { margin-bottom: clamp(32px, 5vw, 60px); }
.head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 26px; flex-wrap: wrap; }
.head--center { text-align: center; }
.head--center .h2 { margin-inline: auto; }
.head__sub { margin-top: 12px; color: var(--text-soft); max-width: 54ch; }
.head--center .head__sub { margin-inline: auto; }

.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ── 4. TOMBOL ────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 14px 28px; border-radius: var(--r); font-weight: 500; font-size: .95rem; letter-spacing: .02em; border: 1px solid transparent; transition: background .22s var(--ease), color .22s, border-color .22s, transform .22s; }
.btn--lg { padding: 17px 34px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--solid { background: var(--accent-solid); color: var(--on-accent); }
.btn--solid:hover { background: var(--sage-dk); transform: translateY(-2px); }
.btn--line { border-color: var(--border); color: var(--text); }
.btn--line:hover { border-color: var(--accent); color: var(--accent-ink); }

/* ── 5. HEADER ────────────────────────────────────────────────────── */
.top { position: sticky; top: 0; z-index: 100; background: var(--header-bg); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.top.is-stuck { border-bottom-color: var(--border); box-shadow: 0 4px 20px rgba(31,36,32,.06); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 78px; }
.mark { display: flex; align-items: center; gap: 11px; color: var(--text); }
.mark__ico { color: var(--accent); flex: none; }
.mark__txt { display: flex; flex-direction: column; line-height: 1.15; }
.mark__txt strong { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; letter-spacing: .02em; }
.mark__txt small { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-soft); }

.nav { display: flex; gap: clamp(14px, 2vw, 28px); margin-left: auto; }
.nav a { font-size: .93rem; color: var(--text-soft); padding-block: 5px; position: relative; transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--accent); transition: width .26s var(--ease); }
.nav a:hover, .nav a.is-current { color: var(--text); }
.nav a:hover::after, .nav a.is-current::after { width: 100%; }

.top__end { display: flex; align-items: center; gap: 12px; }
.theme-btn { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border: 1px solid var(--border); border-radius: var(--r); color: var(--text-soft); transition: color .2s, border-color .2s; }
.theme-btn:hover { color: var(--accent-ink); border-color: var(--accent); }
.theme-btn .i-moon { display: none; }
[data-theme="dark"] .theme-btn .i-sun { display: none; }
[data-theme="dark"] .theme-btn .i-moon { display: block; }
.burger { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: var(--r); }
.burger span { width: 18px; height: 1.6px; background: var(--text); transition: transform .3s var(--ease), opacity .2s; }
.burger.is-open span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

/* Pemilih bahasa ID / EN — ringkas seperti teks */
.lang-switch { display: inline-flex; align-items: center; flex: none; }
.lang-switch button { padding: 4px 7px; font-size: .74rem; font-weight: 600; letter-spacing: .04em; color: var(--text-soft); transition: color .2s; }
.lang-switch button.is-on { color: var(--accent-ink); }
.lang-switch button:not(.is-on):hover { color: var(--text); }
.lang-switch button + button { border-left: 1px solid var(--border); }

/* ── 6. HERO ──────────────────────────────────────────────────────── */
.hero { padding-top: clamp(44px, 6vw, 92px); padding-bottom: var(--section-y); }
.hero__title { font-size: var(--fs-hero); max-width: 15ch; }
.hero__title em { font-style: italic; color: var(--accent-ink); }
.hero__lead { margin-top: 22px; max-width: 50ch; font-size: var(--fs-lead); color: var(--text-soft); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__pic { margin-top: clamp(36px, 5vw, 62px); }
.hero__pic img { width: 100%; aspect-ratio: 25/12; object-fit: cover; background: linear-gradient(140deg, var(--ph-a), var(--ph-b)); }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); margin-top: clamp(36px, 5vw, 58px); }
.facts > div { background: var(--bg); padding: 24px 22px; display: grid; gap: 7px; }
.facts dt { font-size: var(--fs-sm); color: var(--text-soft); }
.facts dd { font-family: var(--serif); font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 1; }

/* ── 7. LISTING PROYEK ────────────────────────────────────────────── */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 9px 20px; border: 1px solid var(--border); border-radius: 100px; color: var(--text-soft); font-size: .9rem; transition: .22s var(--ease); }
.chip:hover { border-color: var(--accent); color: var(--text); }
.chip.is-on { background: var(--surface-dark); border-color: var(--surface-dark); color: var(--on-dark); }

.listing { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.2vw, 26px); }
.prop { background: var(--bg-panel); border: 1px solid var(--border); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.prop:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(31,36,32,.12); }
.prop.is-hidden { display: none; }
.prop__pic { position: relative; }
.prop__pic img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: linear-gradient(140deg, var(--ph-a), var(--ph-b)); }
.prop__status { position: absolute; left: 12px; top: 12px; background: var(--accent-solid); color: var(--on-accent); font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: 100px; }
.prop__body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.prop__loc { font-size: var(--fs-sm); color: var(--accent-ink); letter-spacing: .08em; text-transform: uppercase; }
.prop__name { font-family: var(--serif); font-size: 1.4rem; }
.prop__specs { display: flex; flex-wrap: wrap; gap: 14px; font-size: var(--fs-sm); color: var(--text-soft); }
.prop__price { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); font-size: 1.1rem; font-weight: 600; }
.prop__price small { display: block; font-size: var(--fs-sm); font-weight: 400; color: var(--text-soft); }

/* ── 8. ★ KALKULATOR KPR ──────────────────────────────────────────── */
.calc { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(26px, 4vw, 54px); align-items: start; }
.calc__inputs { display: grid; gap: clamp(22px, 3vw, 32px); }

.range { display: grid; gap: 10px; }
.range__top { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.range__top label { font-size: .95rem; font-weight: 500; }
.range__top output { font-weight: 600; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.range__ends { display: flex; justify-content: space-between; font-size: .76rem; color: var(--text-soft); }

/* Slider digaya ulang di kedua mesin render */
.range input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px; border-radius: 2px;
  background: var(--border); cursor: pointer;
}
.range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--bg);
  box-shadow: 0 2px 8px rgba(31,36,32,.28); cursor: grab;
}
.range input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--bg);
  box-shadow: 0 2px 8px rgba(31,36,32,.28); cursor: grab;
}
.range input[type="range"]:active::-webkit-slider-thumb { cursor: grabbing; }

.calc__result { background: var(--surface-dark); color: var(--on-dark); padding: clamp(26px, 3.4vw, 38px); position: sticky; top: 100px; }
.calc__label { font-size: var(--fs-sm); letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-soft); }
.calc__big { font-family: var(--serif); font-size: clamp(2.1rem, 4.4vw, 3rem); line-height: 1.05; margin-top: 6px; color: var(--accent); font-variant-numeric: tabular-nums; }
.calc__rows { display: grid; gap: 11px; margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.16); }
.calc__rows > div { display: flex; justify-content: space-between; gap: 14px; font-size: .94rem; }
.calc__rows dt { color: var(--on-dark-soft); }
.calc__rows dd { font-variant-numeric: tabular-nums; }
.calc__rows-total { padding-top: 11px; border-top: 1px solid rgba(255,255,255,.16); font-weight: 600; }
.calc__note { margin-top: 20px; font-size: .82rem; color: var(--on-dark-soft); }
.calc__result .btn { margin-top: 20px; }

/* ── 9. TENTANG ───────────────────────────────────────────────────── */
.about { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.about__text > p { margin-top: 16px; color: var(--on-dark-soft); font-size: var(--fs-lead); max-width: 50ch; }
.ticks { display: grid; gap: 10px; margin-top: 28px; }
.ticks li { position: relative; padding-left: 26px; color: var(--on-dark-soft); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.about__pic img { width: 100%; aspect-ratio: 8/9; object-fit: cover; background: linear-gradient(140deg, var(--ph-a), var(--ph-b)); }

/* ── 10. PROSES ───────────────────────────────────────────────────── */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.flow li { background: var(--bg-sand); padding: clamp(24px, 3vw, 34px); display: flex; flex-direction: column; gap: 9px; }
.flow__n { font-family: var(--serif); font-size: 1.6rem; color: var(--accent-ink); }
.flow h3 { font-family: var(--sans); font-weight: 600; font-size: 1.06rem; }
.flow p { font-size: .93rem; color: var(--text-soft); flex: 1; }
.flow__t { font-size: var(--fs-sm); color: var(--accent-ink); padding-top: 12px; border-top: 1px solid var(--border); }

/* ── 11. KONTAK ───────────────────────────────────────────────────── */
.contact { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(32px, 5vw, 70px); align-items: start; }
.contact__text > p { margin-top: 14px; color: var(--text-soft); max-width: 44ch; }
.addr { display: grid; gap: 14px; margin-top: 30px; }
.addr li { display: grid; gap: 2px; padding-bottom: 13px; border-bottom: 1px solid var(--border); }
.addr li > span:first-child { font-size: var(--fs-sm); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }
.addr a:hover { color: var(--accent-ink); }

.form { background: var(--bg-panel); border: 1px solid var(--border); padding: clamp(24px, 3.4vw, 38px); display: grid; gap: 15px; }
.fld { display: grid; gap: 6px; }
.fld--2 { grid-template-columns: 1fr 1fr; gap: 14px; }
.fld--2 > div { display: grid; gap: 6px; }
.form label { font-size: var(--fs-sm); font-weight: 500; }
.form .opt { font-weight: 400; color: var(--text-soft); }
.form input, .form select, .form textarea { width: 100%; padding: 12px 14px; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--r); transition: border-color .2s, box-shadow .2s; }
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 24%, transparent); }
.form__status { font-size: var(--fs-sm); min-height: 1.3em; }
.form__status.is-ok  { color: #1F7A4C; }
.form__status.is-err { color: #B4321F; }

/* Peta lokasi (Google Maps embed) */
.map-embed { margin-top: clamp(32px, 4vw, 54px); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; background: var(--bg-sand); }
.map-embed iframe { display: block; width: 100%; height: clamp(280px, 42vw, 440px); border: 0; }
.map-embed figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding: 16px 20px; font-size: var(--fs-sm); color: var(--text-soft); background: var(--bg-panel); border-top: 1px solid var(--border); }
.map-embed .map-open { color: var(--accent-ink); font-weight: 600; }
.map-embed .map-open:hover { text-decoration: underline; }

/* Tombol WhatsApp mengambang */
.wa-float { position: fixed; right: clamp(16px, 3vw, 26px); bottom: clamp(16px, 3vw, 26px); z-index: 90;
  display: inline-flex; align-items: center; gap: 9px; padding: 12px 18px; border-radius: 100px;
  background: var(--accent-solid); color: var(--on-accent); font-size: .9rem; font-weight: 500;
  box-shadow: 0 10px 28px rgba(31,36,32,.28); transition: background .22s var(--ease), transform .22s var(--ease); }
.wa-float:hover { background: var(--ink); transform: translateY(-2px); }
.wa-float svg { flex: none; }
@media (max-width: 600px) { .wa-float { padding: 12px; } .wa-float .wa-float__txt { display: none; } }

/* ── 12. FOOTER ───────────────────────────────────────────────────── */
.foot { background: var(--surface-dark); color: var(--on-dark-soft); }
.foot__grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.1fr; gap: clamp(24px, 4vw, 46px); padding-block: clamp(44px, 6vw, 72px) 36px; }
.foot__brand .mark__txt strong { color: var(--on-dark); }
.foot__brand .mark__txt small { color: var(--accent); }
.foot__brand p { margin-top: 12px; max-width: 34ch; font-size: .92rem; }
.foot__col { display: grid; gap: 10px; align-content: start; }
.foot__col h2 { font-family: var(--sans); font-size: var(--fs-sm); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 3px; }
.foot__col a, .foot__col span { font-size: .92rem; transition: color .2s; }
.foot__col a:hover { color: var(--on-dark); }
.foot__base { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-block: 20px; border-top: 1px solid rgba(255,255,255,.14); font-size: var(--fs-sm); }

/* ════════════════════════════════════════════════════════════════════
   13. RESPONSIF
   ════════════════════════════════════════════════════════════════════ */
@media (max-width: 1040px) {
  .listing { grid-template-columns: repeat(2, 1fr); }
  .facts   { grid-template-columns: repeat(2, 1fr); }
  .flow    { grid-template-columns: repeat(2, 1fr); }
  .foot__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav {
    position: fixed; top: 78px; left: 0; right: 0;
    flex-direction: column; gap: 0; margin: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 6px var(--gutter) 20px;
    transform: translateY(-140%); transition: transform .35s var(--ease);
    box-shadow: 0 18px 40px rgba(31,36,32,.14);
  }
  .nav.is-open { transform: translateY(0); }
  .nav a { padding-block: 14px; border-bottom: 1px solid var(--border); font-size: 1.02rem; }
  .nav a::after { display: none; }
  .burger { display: flex; }
  .top__end .btn--solid { display: none; }

  .calc, .about, .contact { grid-template-columns: 1fr; }
  .calc__result { position: static; }
  .about__pic { max-width: 520px; }
}

@media (max-width: 600px) {
  .listing { grid-template-columns: 1fr; }
  .facts   { grid-template-columns: 1fr; }
  .flow    { grid-template-columns: 1fr; }
  .fld--2  { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr; }
}
