/* ==========================================================================
   Mitra Niaga Properti (MiTPRO) — Stylesheet
   Palet: Deep Navy + Emas hangat + Aksen hijau properti
   ========================================================================== */

:root {
  --navy: #0e2a47;
  --navy-700: #16375c;
  --navy-900: #081b30;
  --gold: #c8a45c;
  --gold-dark: #b08e42;
  --green: #1f9d78;
  --ink: #1a2434;
  --muted: #5b6675;
  --line: #e6e9ee;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(14, 42, 71, .06);
  --shadow-md: 0 12px 30px rgba(14, 42, 71, .1);
  --shadow-lg: 0 24px 60px rgba(14, 42, 71, .16);
  --radius: 16px;
  --radius-sm: 10px;
  --font-head: "Poppins", "Plus Jakarta Sans", sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

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

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { width: min(1180px, 92%); margin-inline: auto; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 700; font-size: .95rem;
  padding: .85rem 1.6rem; border-radius: 50px; border: 2px solid transparent;
  cursor: pointer; transition: all .3s var(--ease); white-space: nowrap;
}
.btn--sm { padding: .6rem 1.2rem; font-size: .85rem; }
.btn--lg { padding: 1.05rem 2.1rem; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--gold); color: var(--navy-900); box-shadow: 0 8px 20px rgba(200,164,92,.35); }
.btn--primary:hover { background: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(200,164,92,.45); }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
.btn--white { background: #fff; color: var(--navy); }
.btn--white:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.eyebrow {
  display: inline-block; font-weight: 700; font-size: .8rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold-dark); margin-bottom: .8rem;
}

/* ===== Header ===== */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 1.1rem 0; transition: all .35s var(--ease);
}
.header.is-scrolled {
  background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm); padding: .7rem 0;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; }

.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand__mark {
  display: inline-flex; align-items: center; justify-content: center; height: 42px; min-width: 42px; padding: 0 .7rem; border-radius: 12px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy-900); font-family: var(--font-head); font-weight: 800; font-size: .92rem; letter-spacing: -.02em;
  box-shadow: var(--shadow-sm); flex-shrink: 0; white-space: nowrap;
}
.brand__text { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: var(--white); letter-spacing: -.01em; white-space: nowrap; }
.brand__text strong { color: var(--gold); }
.header.is-scrolled .brand__text { color: var(--navy); }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav__list { display: flex; gap: 1.6rem; }
.nav__link {
  font-weight: 600; font-size: .95rem; color: rgba(255,255,255,.9);
  position: relative; padding: .3rem 0; transition: color .25s;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--gold); transition: width .3s var(--ease);
}
.nav__link:hover::after, .nav__link.is-active::after { width: 100%; }
.nav__link:hover { color: #fff; }
.header.is-scrolled .nav__link { color: var(--navy-700); }
.header.is-scrolled .nav__link:hover { color: var(--navy); }
.nav__close { display: none; background: none; border: none; font-size: 2rem; color: var(--navy); cursor: pointer; }

.nav__toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px;
}
.nav__toggle span { width: 26px; height: 3px; background: #fff; border-radius: 3px; transition: .3s; }
.header.is-scrolled .nav__toggle span { background: var(--navy); }

/* ===== Hero ===== */
.hero { position: relative; padding: 11rem 0 8rem; color: #fff; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(120deg, var(--navy-900) 0%, var(--navy) 55%, var(--navy-700) 100%);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(200,164,92,.22), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(31,157,120,.18), transparent 40%),
    url("https://images.unsplash.com/photo-1512917774080-9991f1c4c750?auto=format&fit=crop&w=1600&q=70");
  background-size: cover; background-position: center; opacity: .28; mix-blend-mode: luminosity;
}
.hero__inner { position: relative; z-index: 1; max-width: 760px; }
.hero__badge {
  display: inline-block; background: rgba(200,164,92,.16); border: 1px solid rgba(200,164,92,.4);
  color: var(--gold); padding: .5rem 1.1rem; border-radius: 50px; font-weight: 600; font-size: .85rem; margin-bottom: 1.4rem;
}
.hero__title {
  font-family: var(--font-head); font-weight: 800; font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.12; letter-spacing: -.02em; margin-bottom: 1.2rem;
}
.hero__title span { color: var(--gold); }
.hero__subtitle { font-size: clamp(1rem, 2vw, 1.18rem); color: rgba(255,255,255,.82); max-width: 640px; margin-bottom: 2rem; }
.hero__subtitle strong { color: #fff; font-weight: 700; }

/* Search */
.search {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: .8rem;
  background: #fff; padding: 1rem; border-radius: var(--radius); box-shadow: var(--shadow-lg); align-items: end;
}
.search__field { display: flex; flex-direction: column; gap: .35rem; text-align: left; }
.search__field label { font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding-left: .2rem; }
.search__field input, .search__field select {
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: .7rem .8rem;
  font-family: var(--font-body); font-size: .92rem; color: var(--ink); background: #fff; transition: border-color .2s;
}
.search__field input:focus, .search__field select:focus { outline: none; border-color: var(--gold); }
.search__btn { height: 46px; }

.hero__stats { display: flex; gap: 2.5rem; margin-top: 2.5rem; flex-wrap: wrap; }
.stat strong { display: block; font-family: var(--font-head); font-weight: 800; font-size: 2rem; color: var(--gold); }
.stat span { font-size: .85rem; color: rgba(255,255,255,.75); }

.hero__wave {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 60px; z-index: 1;
  background: var(--bg);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60'%3E%3Cpath d='M0 60V20C240 0 480 0 720 20s480 20 720 0v40z' fill='black'/%3E%3C/svg%3E") no-repeat center/cover;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60'%3E%3Cpath d='M0 60V20C240 0 480 0 720 20s480 20 720 0v40z' fill='black'/%3E%3C/svg%3E") no-repeat center/cover;
}

/* ===== Trust bar ===== */
.trustbar { padding: 2.2rem 0; border-bottom: 1px solid var(--line); background: var(--bg); }
.trustbar__label { text-align: center; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.1rem; }
.trustbar__logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2.6rem; }
.trustbar__logos span { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--navy); opacity: .5; transition: opacity .25s; }
.trustbar__logos span:hover { opacity: 1; }

/* ===== Section base ===== */
.section { padding: 5.5rem 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 680px; margin: 0 auto 3rem; text-align: center; }
.section__title { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.7rem, 3.5vw, 2.5rem); line-height: 1.2; letter-spacing: -.02em; color: var(--navy); }
.section__desc { color: var(--muted); font-size: 1.05rem; margin-top: .9rem; }
.section__cta { text-align: center; margin-top: 3rem; }

/* ===== Developer grid ===== */
.dev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.dev-card {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 340px;
  display: flex; align-items: flex-end; box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.dev-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.dev-card__img { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .6s var(--ease); }
.dev-card:hover .dev-card__img { transform: scale(1.08); }
.dev-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,27,48,.9) 5%, rgba(8,27,48,.15) 60%, transparent); }
.dev-card__body { position: relative; z-index: 1; padding: 1.6rem; color: #fff; }
.dev-card__tag { display: inline-block; background: var(--gold); color: var(--navy-900); font-weight: 700; font-size: .72rem; padding: .3rem .7rem; border-radius: 50px; margin-bottom: .7rem; }
.dev-card__body h3 { font-family: var(--font-head); font-size: 1.35rem; font-weight: 700; margin-bottom: .3rem; }
.dev-card__body p { font-size: .9rem; color: rgba(255,255,255,.85); margin-bottom: .9rem; }
.dev-card__link { font-weight: 700; font-size: .9rem; color: var(--gold); display: inline-flex; align-items: center; gap: .4rem; }
.dev-card__link::after { content: "→"; transition: transform .25s; }
.dev-card:hover .dev-card__link::after { transform: translateX(4px); }

/* ===== Filters ===== */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-bottom: 2.5rem; }
.chip {
  border: 1.5px solid var(--line); background: #fff; color: var(--muted); font-weight: 600; font-size: .9rem;
  padding: .55rem 1.3rem; border-radius: 50px; cursor: pointer; transition: all .25s var(--ease); font-family: var(--font-body);
}
.chip:hover { border-color: var(--gold); color: var(--navy); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ===== Listing grid ===== */
.listing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.property {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease); border: 1px solid var(--line);
}
.property:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.property__media { position: relative; aspect-ratio: 16/11; overflow: hidden; }
.property__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.property:hover .property__media img { transform: scale(1.07); }
.property__badge { position: absolute; top: .9rem; left: .9rem; background: var(--green); color: #fff; font-weight: 700; font-size: .72rem; padding: .35rem .8rem; border-radius: 50px; }
.property__fav { position: absolute; top: .9rem; right: .9rem; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.9); display: grid; place-items: center; border: none; cursor: pointer; font-size: 1rem; transition: transform .2s; }
.property__fav:hover { transform: scale(1.15); }
.property__body { padding: 1.3rem; }
.property__price { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: var(--navy); }
.property__price small { font-size: .75rem; font-weight: 600; color: var(--muted); }
.property__title { font-weight: 700; font-size: 1.05rem; margin: .4rem 0 .2rem; color: var(--ink); }
.property__loc { font-size: .85rem; color: var(--muted); display: flex; align-items: center; gap: .3rem; }
.property__specs { display: flex; gap: 1.1rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.property__specs span { display: inline-flex; align-items: center; gap: .35rem; }
.property__specs b { color: var(--ink); font-weight: 700; }

/* ===== Features ===== */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.7rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.feature__icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; font-size: 1.6rem; background: linear-gradient(135deg, rgba(200,164,92,.18), rgba(31,157,120,.14)); margin-bottom: 1.1rem; }
.feature h3 { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; color: var(--navy); margin-bottom: .5rem; }
.feature p { font-size: .93rem; color: var(--muted); }

/* ===== CTA banner ===== */
.cta-banner { padding: 4rem 0; background: linear-gradient(120deg, var(--navy) 0%, var(--navy-900) 100%); position: relative; overflow: hidden; }
.cta-banner::before { content: ""; position: absolute; top: -40%; right: -10%; width: 500px; height: 500px; background: radial-gradient(circle, rgba(200,164,92,.2), transparent 70%); }
.cta-banner__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; color: #fff; }
.cta-banner h2 { font-family: var(--font-head); font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; }
.cta-banner p { color: rgba(255,255,255,.8); margin-top: .5rem; }

/* ===== Testimoni ===== */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.testi { background: #fff; border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-sm); border: 1px solid var(--line); display: flex; flex-direction: column; }
.testi__stars { color: var(--gold); font-size: 1rem; margin-bottom: .8rem; letter-spacing: 2px; }
.testi__text { font-size: .98rem; color: var(--ink); flex: 1; }
.testi__person { display: flex; align-items: center; gap: .9rem; margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.testi__avatar { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--navy), var(--navy-700)); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; }
.testi__person strong { display: block; font-size: .95rem; color: var(--navy); }
.testi__person span { font-size: .82rem; color: var(--muted); }

/* ===== Contact ===== */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
.contact__list { margin-top: 1.8rem; display: flex; flex-direction: column; gap: 1.2rem; }
.contact__list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact__list span { font-size: 1.3rem; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-alt); flex-shrink: 0; }
.contact__list strong { color: var(--navy); }
.contact__socials { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
.contact__socials a { font-weight: 600; font-size: .9rem; color: var(--navy); padding: .5rem 1.1rem; border: 1.5px solid var(--line); border-radius: 50px; transition: all .25s; }
.contact__socials a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

.contact__form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2.2rem; box-shadow: var(--shadow-md); }
.contact__form h3 { font-family: var(--font-head); font-size: 1.35rem; font-weight: 700; color: var(--navy); margin-bottom: 1.3rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.contact__form input, .contact__form textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: .85rem 1rem;
  font-family: var(--font-body); font-size: .95rem; margin-bottom: .9rem; transition: border-color .2s; resize: vertical;
}
.contact__form input:focus, .contact__form textarea:focus { outline: none; border-color: var(--gold); }
.form-note { font-size: .8rem; color: var(--muted); text-align: center; margin-top: .6rem; }

/* ===== Footer ===== */
.footer { background: var(--navy-900); color: rgba(255,255,255,.7); padding-top: 4rem; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.brand--footer .brand__text { color: #fff; }
.footer__brand p { margin-top: 1rem; font-size: .92rem; max-width: 320px; }
.footer__col h4 { color: #fff; font-family: var(--font-head); font-size: 1.05rem; margin-bottom: 1.1rem; }
.footer__col a { display: block; font-size: .92rem; padding: .3rem 0; transition: color .2s; }
.footer__col a:hover { color: var(--gold); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.4rem 0; }
.footer__bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.footer__bottom p { font-size: .85rem; }

/* ===== Floating WA ===== */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 25px rgba(37,211,102,.45);
  animation: wa-pulse 2.4s infinite; transition: transform .25s;
}
.wa-float:hover { transform: scale(1.08); }
@keyframes wa-pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }

/* ===== Reveal animation ===== */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .dev-grid, .listing-grid, .features, .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .contact { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 960px) {
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 82%); background: #fff;
    flex-direction: column; align-items: flex-start; justify-content: flex-start;
    padding: 5rem 2rem 2rem; gap: 1.5rem; transform: translateX(105%);
    transition: transform .4s var(--ease); box-shadow: var(--shadow-lg); z-index: 200;
  }
  .nav.is-open { transform: none; }
  .nav__list { flex-direction: column; gap: 1.2rem; width: 100%; }
  .nav__link { color: var(--navy) !important; font-size: 1.05rem; }
  .nav__cta { width: 100%; }
  .nav__close { display: block; position: absolute; top: 1.2rem; right: 1.4rem; }
  .nav__toggle { display: flex; }
  .search { grid-template-columns: 1fr; }
  .hero { padding: 8.5rem 0 6rem; }
  .hero__stats { gap: 1.5rem 2rem; }
  .stat strong { font-size: 1.6rem; }
}

@media (max-width: 540px) {
  .dev-grid, .listing-grid, .features, .testi-grid, .footer__inner, .form-row { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
}
