/* ==========================================================
   HKU PROJECT — style.css
   Warna utama diatur dari config.php (variabel --navy/--aksen)
   ========================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: #16222c;
  background: #fff;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 1.18;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}

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

/* ---------- Tombol ---------- */
.btn {
  display: inline-block;
  background: var(--aksen);
  color: #12202b;
  font-weight: 600;
  font-size: .95rem;
  padding: .85rem 1.7rem;
  border: 1px solid var(--aksen);
  border-radius: 2px;
  cursor: pointer;
  transition: background .25s, color .25s, transform .2s;
}
.btn:hover { background: transparent; color: var(--aksen); transform: translateY(-2px); }
.btn-kecil { padding: .55rem 1.1rem; font-size: .85rem; }
.btn-blok { width: 100%; text-align: center; }
.btn-garis { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-garis:hover { background: var(--navy); color: #fff; }

/* ---------- Header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e8e4db;
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 0; }
.brand { display: flex; align-items: center; gap: .6rem; }
.brand img { height: 44px; width: auto; }
.brand-text {
  display: none;
  font-family: 'Fraunces', serif; font-weight: 700; font-size: 1.15rem;
  color: var(--navy); letter-spacing: .02em;
}
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav-link {
  font-size: .93rem; font-weight: 500; color: #3d4b57;
  padding-bottom: 3px; border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav-link:hover { color: var(--navy); }
.nav-link.aktif { color: var(--navy); border-color: var(--aksen); font-weight: 600; }

.burger { display: none; background: none; border: 0; padding: .4rem; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .3s; }
.burger.buka span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.buka span:nth-child(2) { opacity: 0; }
.burger.buka span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex; align-items: center;
  background-size: cover; background-position: center;
  color: #fff;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,22,33,.88) 0%, rgba(8,22,33,.62) 55%, rgba(8,22,33,.35) 100%);
}
.hero-isi { position: relative; z-index: 2; max-width: 640px; padding: 6rem 0; }
.hero-eyebrow {
  display: inline-block; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--aksen); margin-bottom: 1.1rem; font-weight: 600;
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); color: #fff; }
.hero p { font-size: 1.08rem; color: #dfe6ec; max-width: 34em; margin-bottom: 2rem; }

.hero-kecil { min-height: 46vh; background: var(--navy); }
.hero-kecil::after { background: linear-gradient(90deg, rgba(8,22,33,.92), rgba(8,22,33,.6)); }
.hero-kecil .hero-isi { padding: 4.5rem 0 4rem; }

/* ---------- Seksi umum ---------- */
.seksi { padding: 5.5rem 0; }
.seksi-terang { background: var(--terang); }
.seksi-navy { background: var(--navy); color: #e7edf2; }
.seksi-navy h2, .seksi-navy h3 { color: #fff; }

.kepala { max-width: 640px; margin-bottom: 3rem; }
.kepala.tengah { margin-inline: auto; text-align: center; }
.kepala .eyebrow {
  display: block; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--aksen); font-weight: 700; margin-bottom: .8rem;
}
.kepala h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); color: var(--navy); }
.seksi-navy .kepala h2 { color: #fff; }
.kepala p { color: #566673; margin: 0; }
.seksi-navy .kepala p { color: #b9c6d1; }

/* ---------- Tentang ---------- */
.dua-kolom { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3.5rem; align-items: center; }
.dua-kolom img { border-radius: 3px; height: 100%; object-fit: cover; }

.statistik { display: flex; gap: 3rem; margin-top: 2rem; }
.stat-angka {
  font-family: 'Fraunces', serif; font-size: 2.6rem; font-weight: 700;
  color: var(--aksen); line-height: 1;
}
.stat-label { font-size: .9rem; color: #5b6a76; }

/* ---------- Kartu layanan ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }

.kartu {
  background: #fff; border: 1px solid #e8e4db; border-radius: 3px; overflow: hidden;
  transition: transform .3s, box-shadow .3s;
  display: flex; flex-direction: column;
}
.kartu:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(13,36,54,.12); }
.kartu-gambar { aspect-ratio: 4/3; width: 100%; object-fit: cover; }
.kartu-isi { padding: 1.6rem 1.5rem 1.9rem; flex: 1; }
.kartu-isi h3 { font-size: 1.18rem; color: var(--navy); margin-bottom: .5rem; }
.kartu-isi p { margin: 0; color: #5b6a76; font-size: .95rem; }

/* nomor urut layanan */
.kartu-nomor {
  font-family: 'Fraunces', serif; font-size: .8rem; letter-spacing: .18em;
  color: var(--aksen); font-weight: 700; display: block; margin-bottom: .45rem;
}

/* ---------- Baris bergantian (layanan / proyek) ---------- */
.baris { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; margin-bottom: 3.5rem; }
.baris:nth-child(even) .baris-gambar { order: 2; }
.baris img { border-radius: 3px; aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.baris h3 { font-size: 1.5rem; color: var(--navy); }
.baris p { color: #5b6a76; margin: 0; }

/* ---------- Paket investasi ---------- */
.paket { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid #e8e4db; margin-bottom: 2rem; background: #fff; }
.paket img { width: 100%; height: 100%; object-fit: cover; min-height: 300px; }
.paket-isi { padding: 2.6rem 2.4rem; display: flex; flex-direction: column; justify-content: center; }
.paket-isi h3 { font-size: 1.4rem; color: var(--navy); }
.paket-isi p { color: #5b6a76; }
.paket-harga { display: flex; align-items: baseline; gap: .7rem; margin: 1.4rem 0 1.6rem; }
.paket-nilai { font-family: 'Fraunces', serif; font-size: 2rem; font-weight: 700; color: var(--navy); }
.paket-label { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #8b98a3; }
.paket:nth-child(even) .paket-gambar { order: 2; }

/* ---------- Testimoni ---------- */
.testimoni-bg { background-size: cover; background-position: center; position: relative; }
.testimoni-bg::after { content: ''; position: absolute; inset: 0; background: rgba(9,24,36,.86); }
.testimoni-bg > .wrap { position: relative; z-index: 2; }
.testi { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); padding: 2rem; border-radius: 3px; }
.testi-bintang { color: var(--aksen); letter-spacing: .18em; margin-bottom: 1rem; font-size: .95rem; }
.testi p { color: #dbe4eb; font-style: italic; margin: 0 0 1.4rem; }
.testi-orang { display: flex; align-items: center; gap: .8rem; }
.testi-orang img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.testi-nama { font-weight: 600; color: #fff; font-size: .95rem; }

/* ---------- Galeri ---------- */
.galeri { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.galeri img { aspect-ratio: 3/4; object-fit: cover; width: 100%; border-radius: 3px; transition: transform .4s, filter .4s; filter: saturate(.85); }
.galeri img:hover { transform: scale(1.03); filter: saturate(1.1); }

/* ---------- Kontak ---------- */
.kontak-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 3.5rem; }
.kontak-info .item { margin-bottom: 1.6rem; }
.kontak-info .label { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--aksen); font-weight: 700; }
.kontak-info .isi { font-size: 1.05rem; color: var(--navy); font-weight: 500; }
.seksi-navy .kontak-info .isi { color: #fff; }

.form-baris { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grup { margin-bottom: 1rem; }
.form-grup label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: .35rem; color: #44525e; }
.seksi-navy .form-grup label { color: #c4d0da; }
input, textarea, select {
  width: 100%; font-family: inherit; font-size: .95rem; color: #16222c;
  padding: .8rem .9rem; border: 1px solid #d5cfc3; border-radius: 2px; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus { outline: none; border-color: var(--aksen); box-shadow: 0 0 0 3px rgba(200,164,92,.22); }
textarea { min-height: 130px; resize: vertical; }
.jebakan { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.notif { padding: 1rem 1.2rem; border-radius: 2px; margin-bottom: 1.5rem; font-size: .95rem; }
.notif-ok { background: #e8f5ec; border: 1px solid #b6dcc3; color: #22603a; }
.notif-gagal { background: #fdeceb; border: 1px solid #f2c2bf; color: #8f2a23; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #b9c6d1; padding: 4rem 0 0; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr 1fr 1.3fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-judul { font-family: 'Fraunces', serif; font-size: 1.3rem; color: #fff; margin-bottom: .6rem; }
.footer-teks { margin: 0; color: #93a4b1; }
.footer-label { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--aksen); font-weight: 700; margin-bottom: 1rem; }
.footer-link { display: block; margin-bottom: .55rem; color: #b9c6d1; transition: color .2s; }
.footer-link:hover { color: #fff; }
.footer-form input { margin-bottom: .7rem; background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.2); color: #fff; }
.footer-form input::placeholder { color: #8497a4; }
.footer-bawah { border-top: 1px solid rgba(255,255,255,.12); padding: 1.4rem 0; font-size: .85rem; color: #8497a4; }

/* ---------- Tombol WhatsApp mengambang ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 95;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  transition: transform .25s;
}
.wa-float:hover { transform: scale(1.08); }

/* ---------- Animasi masuk ---------- */
.muncul { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.muncul.tampil { opacity: 1; transform: none; }

/* ---------- Responsif ---------- */
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .galeri { grid-template-columns: repeat(2, 1fr); }
  .dua-kolom, .baris, .kontak-grid, .paket, .grid-2 { grid-template-columns: 1fr; gap: 2rem; }
  .baris:nth-child(even) .baris-gambar, .paket:nth-child(even) .paket-gambar { order: 0; }
  .paket img { min-height: 220px; }
  .paket-isi { padding: 2rem 1.6rem; }
}

@media (max-width: 720px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 70px 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: #fff; border-bottom: 1px solid #e8e4db;
    padding: 1rem 4%; display: none;
  }
  .nav.buka { display: flex; }
  .nav-link { width: 100%; padding: .8rem 0; border-bottom: 1px solid #f0ece4; }
  .nav .btn { margin-top: .8rem; }
  .seksi { padding: 3.5rem 0; }
  .hero-isi { padding: 4.5rem 0; }
  .grid-3, .grid-4, .form-baris { grid-template-columns: 1fr; }
  .statistik { gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 460px) {
  .footer-grid { grid-template-columns: 1fr; }
  .galeri { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .muncul { opacity: 1; transform: none; }
}

:focus-visible { outline: 2px solid var(--aksen); outline-offset: 3px; }
