/* ================================================
   RUMAHKU RESIDENCE — style.css
   ================================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy:        #1B2A4A;
  --navy-light:  #263d6b;
  --navy-dark:   #111C2E;
  --gold:        #C9A84C;
  --gold-light:  #E8C76A;
  --gold-dim:    rgba(201, 168, 76, 0.15);
  --cream:       #F7F4EE;
  --white:       #FAFAFA;
  --gray:        #6B7280;
  --light-bg:    #F0F2F5;
  --border:      rgba(0, 0, 0, 0.08);
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:   0 4px 20px rgba(0,0,0,0.10);
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --transition:  0.2s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: #222;
  background: var(--white);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  line-height: 1.25;
}

/* ================================================
   NAVBAR
   ================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--navy);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.navbar__logo {
  font-family: Georgia, serif;
  color: var(--gold);
  font-size: 18px;
  letter-spacing: 0.4px;
}

.navbar__logo span {
  color: #fff;
  font-weight: 400;
}

.navbar__links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.navbar__links a {
  color: rgba(255,255,255,0.70);
  font-size: 13px;
  letter-spacing: 0.5px;
  transition: color var(--transition);
}

.navbar__links a:hover,
.navbar__links a.active {
  color: var(--gold);
}

.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 4px;
}

.navbar__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}

/* ================================================
   HERO
   ================================================ */
.hero {
  background: var(--navy);
  padding: 5rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 40px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.hero__badge {
  display: inline-block;
  border: 1px solid rgba(201,168,76,0.45);
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 5px 18px;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}

.hero__title {
  font-size: clamp(30px, 5vw, 48px);
  color: #fff;
  margin-bottom: 1rem;
}

.hero__title em {
  color: var(--gold);
  font-style: normal;
}

.hero__subtitle {
  color: rgba(255,255,255,0.60);
  font-size: 15px;
  max-width: 500px;
  margin: 0 auto 2rem;
}

.hero__cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.10);
}

.hero__stat-num {
  font-family: Georgia, serif;
  font-size: 28px;
  color: var(--gold);
}

.hero__stat-label {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ================================================
   BUTTONS
   ================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 26px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.4px;
  cursor: pointer;
  border: none;
  transition: background var(--transition), color var(--transition), transform 0.1s;
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: var(--gold);
  color: var(--navy);
}

.btn--primary:hover {
  background: var(--gold-light);
}

.btn--outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
}

.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn--navy {
  background: var(--navy);
  color: #fff;
}

.btn--navy:hover {
  background: var(--navy-light);
}

.btn--wa {
  background: #25D366;
  color: #fff;
}

.btn--wa:hover {
  background: #1EBE5A;
}

.btn--wa-outline {
  background: transparent;
  border: 2px solid #25D366;
  color: #25D366;
}

.btn--wa-outline:hover {
  background: #25D366;
  color: #fff;
}

.btn--lg {
  padding: 13px 32px;
  font-size: 14px;
}

.btn--icon {
  width: 18px;
  height: 18px;
}

/* ================================================
   SECTIONS — Shared
   ================================================ */
.section {
  padding: 4rem 2rem;
}

.section--alt {
  background: var(--light-bg);
}

.section--dark {
  background: var(--navy);
}

.section__eyebrow {
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.section__title {
  font-size: clamp(22px, 3vw, 30px);
  color: var(--navy);
  margin-bottom: 0.6rem;
}

.section__title--light {
  color: #fff;
}

.section__desc {
  color: var(--gray);
  font-size: 14px;
  max-width: 520px;
  margin-bottom: 2.5rem;
}

.section__desc--light {
  color: rgba(255,255,255,0.55);
}

/* ================================================
   TIPE RUMAH CARDS
   ================================================ */
.tipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.75rem;
  max-width: 900px;
}

.house-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.house-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}

.house-card__header {
  background: var(--navy);
  padding: 1.5rem 1.5rem 1.1rem;
  position: relative;
}

.house-card__header--sapphire {
  background: #1e3458;
}

.house-card__icon-ring {
  position: absolute;
  right: 1.25rem;
  top: 1.25rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 22px;
}

.house-card__eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

.house-card__name {
  font-size: 24px;
  color: #fff;
}

.house-card__luas {
  font-size: 12px;
  color: rgba(255,255,255,0.50);
  margin-top: 4px;
}

.house-card__body {
  padding: 1.5rem;
}

.fasilitas-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fasilitas-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: #444;
}

.fasilitas-list__icon {
  width: 32px;
  height: 32px;
  background: var(--gold-dim);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #8B6914;
  font-size: 16px;
}

.house-card__footer {
  padding: 1rem 1.5rem;
  background: var(--cream);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.house-card__footer-label {
  font-size: 11px;
  color: var(--gray);
}

.house-card__footer-val {
  font-family: Georgia, serif;
  font-size: 14px;
  color: var(--navy);
}

/* ================================================
   KEUNGGULAN GRID
   ================================================ */
.unggulan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
}

.unggulan-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition);
}

.unggulan-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}

.unggulan-card__icon {
  width: 50px;
  height: 50px;
  background: var(--gold-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: #8B6914;
  font-size: 22px;
}

.unggulan-card__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
  font-family: 'Segoe UI', sans-serif;
}

.unggulan-card__desc {
  font-size: 12.5px;
  color: var(--gray);
  line-height: 1.55;
}

/* ================================================
   LOKASI SECTION
   ================================================ */
.lokasi-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 460px;
  margin: 0 auto;
}

.lokasi-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
}

.lokasi-item__icon {
  color: var(--gold);
  font-size: 20px;
  margin-top: 1px;
  flex-shrink: 0;
}

.lokasi-item__text {
  font-size: 13.5px;
  color: rgba(255,255,255,0.72);
  line-height: 1.55;
}

/* ================================================
   KONTAK PAGE
   ================================================ */
.kontak-page {
  background: var(--light-bg);
  min-height: calc(100vh - 64px);
  padding: 3.5rem 2rem 4rem;
}

.kontak-wrapper {
  max-width: 680px;
  margin: 0 auto;
}

.kontak-hero {
  text-align: center;
  margin-bottom: 2.5rem;
}

.kontak-hero .section__title {
  margin-bottom: 0.5rem;
}

.kontak-hero p {
  color: var(--gray);
  font-size: 14px;
}

/* Kontak Info Cards */
.kontak-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.kontak-info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.kontak-info-card__icon {
  width: 42px;
  height: 42px;
  background: var(--gold-dim);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8B6914;
  font-size: 18px;
  flex-shrink: 0;
}

.kontak-info-card__label {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 3px;
}

.kontak-info-card__value {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
}

/* Kontak Form Card */
.kontak-form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.kontak-form-card__title {
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.kontak-form-card__sub {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 1.75rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}

.form-label span {
  color: #e05050;
  margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #D1D5DB;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  color: #222;
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}

.form-textarea {
  resize: vertical;
  min-height: 110px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-hint {
  font-size: 12px;
  color: var(--gray);
  margin-top: 5px;
}

.form-error {
  font-size: 12px;
  color: #e05050;
  margin-top: 4px;
  display: none;
}

.form-error.visible {
  display: block;
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: #e05050;
}

/* Form submit row */
.form-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.form-privacy {
  font-size: 12px;
  color: var(--gray);
  max-width: 300px;
  line-height: 1.5;
}

/* Success message */
.form-success {
  display: none;
  text-align: center;
  padding: 2rem 1rem;
}

.form-success.visible {
  display: block;
}

.form-success__icon {
  width: 64px;
  height: 64px;
  background: #D1FAE5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 28px;
  color: #059669;
}

.form-success__title {
  font-size: 20px;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.form-success__desc {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 1.5rem;
}

/* WhatsApp CTA Card */
.wa-cta-card {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.wa-cta-card__text h3 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 4px;
}

.wa-cta-card__text p {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
  background: var(--navy-dark);
  padding: 2rem;
  text-align: center;
  color: rgba(255,255,255,0.35);
  font-size: 12.5px;
}

.footer strong {
  color: var(--gold);
  font-weight: 400;
}

/* ================================================
   UTILITIES
   ================================================ */
.container {
  max-width: 1100px;
  margin: 0 auto;
}

.text-center {
  text-align: center;
}

/* ================================================
   MODAL (Denah)
   ================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal__header {
  background: var(--navy);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal__title {
  font-size: 18px;
  color: #fff;
}

.modal__close {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 2px 6px;
  transition: color var(--transition);
}

.modal__close:hover {
  color: #fff;
}

.modal__body {
  padding: 1.5rem;
}

.modal__eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

.modal__luas {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 1.25rem;
}

.modal__denah-box {
  background: var(--light-bg);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  margin-bottom: 1.25rem;
}

.modal__denah-caption {
  font-size: 11px;
  color: var(--gray);
  margin-top: 6px;
}

.modal__flist-title {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 10px;
}

.modal__flist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 1.25rem;
}

.modal__flist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #333;
}

.modal__flist-icon {
  color: var(--gold);
  font-size: 17px;
  margin-top: 1px;
  flex-shrink: 0;
}

.modal__note {
  font-size: 12.5px;
  color: var(--gray);
  background: var(--light-bg);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.modal__footer {
  text-align: center;
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 640px) {
  .navbar__links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 1rem 2rem;
    gap: 1rem;
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  .navbar__links.open {
    display: flex;
  }

  .navbar__hamburger {
    display: flex;
  }

  .hero {
    padding: 3.5rem 1.25rem 3rem;
  }

  .hero__stats {
    gap: 1.75rem;
  }

  .section {
    padding: 2.75rem 1.25rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .wa-cta-card {
    flex-direction: column;
    text-align: center;
  }

  .form-submit-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .kontak-form-card {
    padding: 1.25rem;
  }
}
