
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: #1c1917;
  background-color: #f5f5f4;
  line-height: 1.5;
}

.cluster-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Nav */
.cluster-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #e7e5e4;
  height: 64px;
  display: flex;
  align-items: center;
}

.cluster-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
}

.cluster-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #1c1917;
  min-width: 0;
  flex-shrink: 1;
}

.cluster-brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 50%;
  background: #ffffff;
  padding: 2px;
  border: 1.5px solid #f59e0b;
  flex-shrink: 0;
}

.cluster-brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cluster-brand-title {
  font-weight: 800;
  font-size: 16px;
  line-height: 1.2;
  color: #1c1917;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cluster-brand-dev {
  font-size: 10px;
  font-weight: 700;
  color: var(--cluster-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cluster-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cluster-nav a {
  text-decoration: none;
  color: #57534e;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
  white-space: nowrap;
}

.cluster-nav a:hover {
  color: var(--cluster-primary);
}

.cluster-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-wa-header {
  background-color: #ecfdf5;
  color: #065f46 !important;
  border: 1px solid #a7f3d0;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.btn-wa-header:hover {
  background-color: #d1fae5;
  color: #047857 !important;
}

.btn-wa-header svg {
  color: #059669;
  flex-shrink: 0;
}

.wa-text-full {
  display: inline;
}

.wa-text-short {
  display: none;
}

.btn-survey-header {
  white-space: nowrap;
  flex-shrink: 0;
}

.mobile-menu-toggle {
  display: none;
  background: #f5f5f4;
  border: 1px solid #d6d3d1;
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  color: #1c1917;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.mobile-menu-toggle:hover {
  background: #e7e5e4;
}

.mobile-menu-toggle:active {
  background: #d6d3d1;
  transform: scale(0.96);
}

.mobile-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 1999;
}

.mobile-nav-backdrop.is-open {
  display: block !important;
}

.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  width: 100%;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #ffffff;
  border-bottom: 2px solid #e7e5e4;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  padding: 16px 20px 24px;
  z-index: 2000;
  box-sizing: border-box;
}

.mobile-nav-drawer.is-open {
  display: block !important;
}

.mobile-nav-dev-card {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  color: #292524;
  border-bottom: 1px solid #f5f5f4;
  transition: background-color 0.15s, color 0.15s;
}

.mobile-nav-link:hover, .mobile-nav-link:active {
  color: var(--cluster-primary);
  background-color: #fbfbfa;
}

.mobile-nav-link:last-child {
  border-bottom: none;
}

/* Responsive Breakpoints */
@media (max-width: 991px) {
  .cluster-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex !important;
  }
}

@media (max-width: 767px) {
  .wa-text-full {
    display: none;
  }
  .wa-text-short {
    display: inline;
  }
  .btn-wa-header {
    padding: 7px 10px;
    font-size: 12px;
  }
}

@media (max-width: 639px) {
  .cluster-header {
    height: 58px;
  }
  .mobile-nav-drawer {
    top: 58px;
    max-height: calc(100vh - 58px);
  }
  .cluster-container {
    padding: 0 12px;
  }
  .cluster-brand-logo {
    width: 36px;
    height: 36px;
  }
  .cluster-brand-title {
    font-size: 13px;
    max-width: 145px;
  }
  .cluster-brand-dev {
    font-size: 9px;
    max-width: 145px;
  }
  .btn-survey-header {
    display: none !important; /* Hides in mobile header to guarantee no overlapping */
  }
  .btn-wa-header {
    padding: 6px 9px;
    font-size: 11px;
    gap: 4px;
  }
  .cluster-header-actions {
    gap: 6px;
  }
}

@media (max-width: 375px) {
  .cluster-brand-title {
    font-size: 12px;
    max-width: 120px;
  }
  .cluster-brand-dev {
    font-size: 8.5px;
    max-width: 120px;
  }
}

.btn-primary {
  background-color: var(--cluster-primary);
  color: #ffffff !important;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-secondary {
  background-color: #292524;
  color: #ffffff !important;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #44403c;
  cursor: pointer;
}

/* Hero Section */
.cluster-hero {
  background-color: #0c0a09;
  color: #ffffff;
  padding: 60px 0 80px;
  border-bottom: 1px solid #292524;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 7fr 5fr;
  }
}

.hero-kicker {
  font-size: 12px;
  font-weight: 600;
  color: #34d399;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.hero-title {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 16px;
  color: #ffffff;
}

.hero-desc {
  font-size: 15px;
  color: #d6d3d1;
  line-height: 1.6;
  margin-bottom: 24px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid #292524;
  border-bottom: 1px solid #292524;
  margin-bottom: 24px;
}

@media (min-width: 576px) {
  .hero-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.hero-stat-label {
  font-size: 11px;
  color: #a8a29e;
}

.hero-stat-val {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
}

.hero-image-card {
  background: #1c1917;
  border: 1px solid #44403c;
  border-radius: 16px;
  padding: 12px;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.5);
}

.hero-image-card img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

/* Masterplan Section */
.cluster-section {
  padding: 70px 0;
  border-bottom: 1px solid #e7e5e4;
}

.section-head {
  margin-bottom: 32px;
}

.section-kicker {
  font-size: 12px;
  font-weight: 700;
  color: var(--cluster-primary);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.section-title {
  font-size: 30px;
  font-weight: 800;
  margin: 0 0 8px;
  color: #1c1917;
}

.section-desc {
  font-size: 14px;
  color: #78716c;
  max-width: 650px;
  margin: 0;
}

/* Masterplan visualizer */
.masterplan-box {
  background: #0c121e;
  border-radius: 16px;
  border: 1px solid #1e293b;
  overflow: hidden;
  position: relative;
}

.masterplan-bar {
  background: #080d16;
  padding: 12px 16px;
  border-bottom: 1px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #cbd5e1;
  font-size: 12px;
}

.masterplan-tabs {
  display: flex;
  gap: 6px;
  background: #1e293b;
  padding: 4px;
  border-radius: 8px;
}

.mp-tab-btn {
  background: transparent;
  color: #94a3b8;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.mp-tab-btn.active {
  background: #ffffff;
  color: #0f172a;
}

.masterplan-canvas-wrap {
  overflow: auto;
  max-height: 560px;
  background: #090e17;
}

/* Floor Plan Grid */
.floorplan-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 992px) {
  .floorplan-grid {
    grid-template-columns: 7fr 5fr;
  }
}

.card-white {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e7e5e4;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Facilities Bento */
.fac-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.fac-card {
  background: #ffffff;
  border: 1px solid #e7e5e4;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.fac-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #1c1917;
}

.fac-desc {
  font-size: 13px;
  color: #78716c;
  line-height: 1.5;
  margin: 0 0 16px;
}

/* KPR Calculator */
.calc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 992px) {
  .calc-grid {
    grid-template-columns: 7fr 5fr;
  }
}

.calc-box-result {
  background: #1c1917;
  color: #ffffff;
  border-radius: 16px;
  padding: 28px;
  border: 1px solid #292524;
}

.calc-installment {
  font-size: 34px;
  font-weight: 800;
  color: #34d399;
  margin: 8px 0;
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

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

.modal-box {
  background: #ffffff;
  border-radius: 16px;
  max-width: 500px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}
