/* ============================================================
   Sempu Indah Residence — Landing Page
   Palet: hijau pinus, krem hangat, aksen emas
   ============================================================ */
:root {
  --pine-950: #081f16;
  --pine-900: #0B3D2E;
  --pine-800: #0F5132;
  --pine-700: #16613F;
  --pine-600: #1F7A4D;
  --gold: #D4A94E;
  --gold-soft: #F6C453;
  --cream: #FAF7F0;
  --cream-2: #F3EDDF;
  --ink: #1E2A26;
  --muted: #64706B;
  --line: #E4DCCB;
  --white: #FFFFFF;
  --shadow: 0 18px 40px -18px rgba(8, 31, 22, 0.28);
  --shadow-lg: 0 30px 60px -22px rgba(8, 31, 22, 0.35);
  --radius: 18px;
  --maxw: 1160px;
}

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

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

body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.22; color: var(--pine-900); }
h1 em, h2 em { font-family: "Lora", serif; font-style: italic; font-weight: 600; color: var(--gold); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); font-weight: 800; letter-spacing: -0.02em; }
h3 { font-size: 1.18rem; font-weight: 700; }
p { color: var(--muted); }
a { text-decoration: none; color: inherit; }
img, svg, iframe { display: block; max-width: 100%; }

.container { max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--pine-800); color: var(--white); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--pine-700); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.45); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-outline { background: transparent; color: var(--pine-800); border-color: var(--pine-800); }
.btn-outline:hover { background: var(--pine-800); color: var(--white); }
.btn-light { background: var(--white); color: var(--pine-900); box-shadow: var(--shadow); }
.btn-light:hover { background: var(--cream-2); color: var(--pine-900); }
.btn-lg { padding: 15px 28px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-nav { padding: 10px 18px; font-size: 0.88rem; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.74rem; font-weight: 800; color: var(--pine-700);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); display: inline-block; }
.section-head.center .eyebrow { justify-content: center; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(250, 247, 240, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.navbar.scrolled { box-shadow: 0 10px 30px -18px rgba(8,31,22,0.25); border-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-icon { width: 34px; height: 34px; color: var(--pine-800); }
.brand-text { font-size: 1.12rem; font-weight: 800; color: var(--pine-900); letter-spacing: -0.02em; display: flex; flex-direction: column; line-height: 1.05; }
.brand-sub { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.28em; color: var(--gold); text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-link { font-size: 0.92rem; font-weight: 600; color: var(--ink); opacity: 0.82; position: relative; padding-block: 6px; }
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--gold); transition: width 0.22s ease;
}
.nav-link:hover, .nav-link.active { opacity: 1; color: var(--pine-900); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--pine-900); border-radius: 2px; transition: 0.25s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 150px 0 90px;
  background: linear-gradient(160deg, #EAF3E9 0%, #DCEBD7 45%, #F4EDDD 100%);
}
.hero-deco { position: absolute; border-radius: 50%; pointer-events: none; }
.deco-1 { width: 480px; height: 480px; background: rgba(15,81,50,0.06); top: -160px; right: -120px; }
.deco-2 { width: 340px; height: 340px; background: rgba(212,169,78,0.18); bottom: -140px; left: -100px; }

.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); font-weight: 800; letter-spacing: -0.03em; margin: 16px 0 18px; }
.hero-sub { font-size: 1.08rem; max-width: 30rem; color: #3E4B45; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 18px; margin-top: 30px; }
.hero-trust li { font-size: 0.9rem; font-weight: 700; color: var(--pine-900); }

.hero-visual { position: relative; }
.house-illustration { width: 100%; height: auto; border-radius: 28px; box-shadow: var(--shadow-lg); }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: var(--white); border-radius: 14px; padding: 10px 16px;
  box-shadow: var(--shadow); font-size: 0.82rem;
}
.float-card strong { display: block; color: var(--pine-900); font-size: 0.95rem; }
.float-card span { color: var(--muted); }
.fc-icon { font-size: 1.5rem; }
.float-card-1 { top: 26px; left: -14px; animation: bob 5s ease-in-out infinite; }
.float-card-2 { bottom: 34px; right: -10px; animation: bob 6s ease-in-out 1s infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ---------- Stats ---------- */
.stats { background: var(--pine-900); color: var(--white); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-block: 40px; text-align: center; }
.stat strong { display: block; font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--gold-soft); font-weight: 800; }
.stat span { font-size: 0.85rem; color: rgba(255,255,255,0.75); }

/* ---------- Sections ---------- */
.section { padding-block: 88px; }
.section-tint { background: var(--cream-2); }
.section-dark { background: var(--pine-950); }
.section-dark h2, .section-dark h3, .section-dark .section-sub { color: var(--cream); }
.section-dark .eyebrow { color: var(--gold-soft); }
.section-head { margin-bottom: 46px; max-width: 720px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-top: 12px; }
.section-sub { margin-top: 14px; font-size: 1rem; }
.section-dark .section-sub { color: rgba(255,255,255,0.7); }

/* ---------- Tentang ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-visual { position: relative; }
.about-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about-img svg { width: 100%; height: 100%; }
.img-a { aspect-ratio: 4 / 3; }
.img-b { position: absolute; width: 46%; bottom: -26px; right: -18px; border: 6px solid var(--cream); border-radius: 16px; aspect-ratio: 300/220; }
.badge-float {
  position: absolute; top: 20px; left: -16px; background: var(--white);
  border-radius: 14px; padding: 10px 16px; font-weight: 800; font-size: 0.85rem;
  color: var(--pine-900); box-shadow: var(--shadow); display: flex; align-items: center; gap: 8px;
}
.badge-float span { color: var(--gold); font-size: 1.1rem; }
.about-copy .lead { font-size: 1.08rem; color: var(--ink); margin: 16px 0 14px; }
.about-copy p + p { margin-top: 12px; }
.check-list { list-style: none; margin: 22px 0 30px; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--muted); }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--pine-800); color: var(--white);
  font-size: 0.72rem; font-weight: 800;
  display: grid; place-items: center;
}

/* ---------- Fasilitas ---------- */
.fac-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.fac-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 24px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.fac-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.fac-icon { font-size: 1.9rem; display: inline-block; margin-bottom: 14px; }
.fac-card h3 { margin-bottom: 8px; }
.fac-card p { font-size: 0.93rem; }

/* ---------- Tipe Rumah ---------- */
.type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.type-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.type-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.type-card.featured { border: 2px solid var(--gold); box-shadow: var(--shadow-lg); }
.type-art { position: relative; }
.type-art svg { width: 100%; height: auto; }
.type-tag {
  position: absolute; top: 12px; left: 12px; background: var(--pine-800);
  color: var(--white); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 5px 12px; border-radius: 999px;
}
.type-card.featured .type-tag { background: var(--gold); color: var(--pine-950); }
.type-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.type-desc { font-size: 0.88rem; }
.spec-list { list-style: none; border-top: 1px dashed var(--line); padding-top: 14px; margin-bottom: auto; }
.spec-list li { display: flex; justify-content: space-between; font-size: 0.92rem; padding-block: 7px; border-bottom: 1px solid var(--cream-2); }
.spec-list li span { color: var(--muted); }
.spec-list li strong { color: var(--ink); }
.spec-list .price { color: var(--pine-700); font-weight: 800; }
.type-body .btn { margin-top: 8px; }

/* ---------- Galeri ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.g-item {
  border-radius: var(--radius); overflow: hidden; position: relative;
  aspect-ratio: 4 / 3; cursor: pointer;
  background: linear-gradient(135deg, #D9E8D4 0%, #BFD8B6 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
  transition: transform 0.25s ease;
}
.g-item:hover { transform: scale(1.03); }
.g-1 { background: linear-gradient(160deg, #A9CE9F, #6FA66C 60%, #4E8A5B); }
.g-2 { background: linear-gradient(160deg, #CBE8C6, #8FC48E 55%, #57A06B); }
.g-3 { background: linear-gradient(160deg, #F4E8CE, #E2C990 60%, #C9A05B); }
.g-4 { background: linear-gradient(160deg, #F3DCC4, #E0B285 60%, #C98B52); }
.g-5 { background: linear-gradient(160deg, #D9E3DC, #A9C1B1 60%, #6B8E7E); }
.g-6 { background: linear-gradient(160deg, #F7D9A8, #E8A75C 60%, #C97C3A); }
.g-label {
  position: absolute; left: 14px; bottom: 12px; background: rgba(8,31,22,0.65);
  color: var(--white); font-size: 0.8rem; font-weight: 700;
  padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(4px);
}

/* ---------- Lokasi ---------- */
.loc-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 34px; align-items: stretch; }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 380px; }
.map-wrap iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }
.loc-info { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.loc-info h3 { margin-bottom: 8px; }
.loc-address { font-size: 0.95rem; margin-bottom: 20px; }
.dist-list { list-style: none; }
.dist-list li { display: flex; justify-content: space-between; gap: 14px; padding-block: 11px; border-bottom: 1px solid var(--cream-2); font-size: 0.93rem; }
.dist-list li span { color: var(--muted); }
.dist-list li strong { color: var(--pine-900); }

/* ---------- Kontak ---------- */
.contact-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 30px; align-items: start; }
.contact-card, .contact-side > * { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.contact-card { padding: 32px; }
.contact-card h3 { margin-bottom: 20px; }
.contact-form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.85rem; font-weight: 700; color: var(--pine-900); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: 12px; font-family: inherit; font-size: 0.95rem;
  background: var(--cream); color: var(--ink); transition: border-color 0.18s ease, background 0.18s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--pine-700); background: var(--white);
}
.form-note { font-size: 0.78rem; text-align: center; }

.contact-side { display: grid; gap: 16px; }
.contact-side .contact-block { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; }
.c-icon { font-size: 1.5rem; }
.contact-block h4 { font-size: 0.95rem; margin-bottom: 2px; }
.contact-block p { font-size: 0.92rem; }
.contact-block .muted { font-size: 0.78rem; opacity: 0.7; }
.cta-box { background: var(--pine-900) !important; border-color: var(--pine-900) !important; padding: 26px; text-align: center; }
.cta-box h3 { color: var(--white); margin-bottom: 8px; }
.cta-box p { color: rgba(255,255,255,0.78); font-size: 0.9rem; margin-bottom: 18px; }

/* ---------- Footer ---------- */
.footer { background: var(--pine-950); color: rgba(255,255,255,0.75); padding-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 34px; padding-bottom: 40px; }
.brand-footer { color: var(--white); margin-bottom: 14px; }
.brand-footer .brand-icon { color: var(--gold-soft); }
.brand-footer .brand-text { color: var(--white); }
.footer-desc { font-size: 0.9rem; max-width: 30rem; }
.footer h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 14px; }
.footer a, .footer p { display: block; font-size: 0.88rem; color: rgba(255,255,255,0.7); margin-bottom: 8px; }
.footer a:hover { color: var(--gold-soft); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-block: 18px; font-size: 0.82rem; color: rgba(255,255,255,0.5); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 560px; margin-inline: auto; }
  .about-grid, .loc-grid, .contact-grid { grid-template-columns: 1fr; }
  .fac-grid, .type-grid { grid-template-columns: repeat(2, 1fr); }
  .img-b { right: 6px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--cream); padding: 18px 22px 26px;
    box-shadow: var(--shadow); border-bottom: 1px solid var(--line);
    transform: translateY(-130%); transition: transform 0.3s ease;
  }
  .nav-links.open { transform: none; }
  .nav-link { padding-block: 10px; font-size: 1rem; }
  .btn-nav { margin-top: 10px; }
  .nav-toggle { display: flex; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .fac-grid, .type-grid, .gallery-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 130px; }
  .float-card-1 { left: 2px; }
  .float-card-2 { right: 2px; }
  .section { padding-block: 64px; }
}