/* ============================================================
   ZAKI PROPERTY GROUP — Global Stylesheet
   "Building Better Living"
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=DM+Sans:wght@300;400;500;600&family=DM+Mono:wght@400;500&display=swap");

/* ── CSS Custom Properties ─────────────────────────────────── */
:root {
  --navy-950: #050d1a;
  --navy-900: #0f172a;
  --navy-800: #1e293b;
  --navy-700: #334155;
  --navy-600: #475569;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-100: #f1f5f9;
  --white: #ffffff;

  --gold-700: #b45309;
  --gold-600: #d97706;
  --gold-500: #f59e0b;
  --gold-400: #fbbf24;
  --gold-100: #fef3c7;

  --green-500: #22c55e;
  --green-600: #16a34a;

  --glass-bg: rgba(15, 23, 42, 0.65);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  --font-display: "Cormorant Garamond", serif;
  --font-body: "DM Sans", sans-serif;
  --font-mono: "DM Mono", monospace;

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--navy-900);
  color: var(--slate-300);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}
button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-body);
}
input,
select,
textarea {
  font-family: var(--font-body);
}

/* ── Typography ─────────────────────────────────────────────── */
.font-display {
  font-family: var(--font-display);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  color: var(--white);
  line-height: 1.15;
  font-weight: 600;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
}
h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}
h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
}
h4 {
  font-size: 1.25rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 1rem;
}
.section-label::before {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold-500);
}

/* ── Glassmorphism Utility ──────────────────────────────────── */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.glass-light {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-600), var(--gold-700));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(217, 119, 6, 0.35);
}
.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  box-shadow: 0 6px 28px rgba(217, 119, 6, 0.5);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--slate-300);
  border: 1px solid var(--glass-border);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

/* ── Navbar ─────────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all var(--transition-base);
  padding: 0 1.5rem;
}

#navbar.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  flex-shrink: 0;
}

.nav-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  margin-bottom: 4px;
}

.nav-logo .logo-main {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}
.nav-logo .logo-sub {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-top: 1px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-link {
  padding: 8px 14px;
  font-size: 0.875rem;
  color: var(--slate-300);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: calc(100% - 28px);
  height: 1px;
  background: var(--gold-500);
  transition: transform var(--transition-fast);
}
.nav-link:hover,
.nav-link.active {
  color: var(--white);
}
.nav-link:hover::after,
.nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-cta {
  margin-left: 0.5rem;
}

/* Mobile hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  gap: 5px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition-base);
}
.hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile menu overlay */
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 1.5rem 1.5rem;
  z-index: 999;
  flex-direction: column;
  gap: 0.25rem;
}
.mobile-menu.open {
  display: flex;
}
.mobile-menu .nav-link {
  padding: 12px 16px;
  font-size: 1rem;
}
.mobile-menu .btn {
  width: 100%;
  justify-content: center;
  margin-top: 0.75rem;
}

/* ── Footer ─────────────────────────────────────────────────── */
footer {
  background: var(--navy-950);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 5rem 1.5rem 2rem;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-col h5 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 1.25rem;
  font-weight: 600;
}
.footer-col p {
  font-size: 0.875rem;
  color: var(--slate-400);
  line-height: 1.7;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-links a {
  font-size: 0.875rem;
  color: var(--slate-400);
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-links a::before {
  content: "→";
  color: var(--gold-600);
  font-size: 0.75rem;
  transition: transform var(--transition-fast);
}
.footer-links a:hover {
  color: var(--white);
}
.footer-links a:hover::before {
  transform: translateX(3px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 0.75rem;
}
.footer-contact-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--gold-500);
}
.footer-contact-item span {
  font-size: 0.875rem;
  color: var(--slate-400);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.newsletter-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.875rem;
  color: var(--white);
  outline: none;
  transition: border-color var(--transition-fast);
  width: 100%;
}
.newsletter-input::placeholder {
  color: var(--slate-400);
}
.newsletter-input:focus {
  border-color: var(--gold-600);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: var(--navy-600);
}
.footer-socials {
  display: flex;
  gap: 0.75rem;
}
.social-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--slate-400);
  transition: all var(--transition-fast);
}
.social-icon:hover {
  background: var(--gold-700);
  border-color: var(--gold-700);
  color: var(--white);
  transform: translateY(-2px);
}

/* ── WhatsApp Floating Button ───────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  width: 56px;
  height: 56px;
  background: var(--green-500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.45);
  transition: all var(--transition-base);
  animation: wa-pulse 2.5s ease-in-out infinite;
}
.wa-float:hover {
  background: var(--green-600);
  transform: scale(1.1);
  animation: none;
  box-shadow: 0 8px 32px rgba(34, 197, 94, 0.6);
}
.wa-float svg {
  width: 28px;
  height: 28px;
  color: white;
}

@keyframes wa-pulse {
  0%,
  100% {
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.45);
  }
  50% {
    box-shadow:
      0 4px 40px rgba(34, 197, 94, 0.75),
      0 0 0 8px rgba(34, 197, 94, 0.12);
  }
}

/* ── Property Card ──────────────────────────────────────────── */
.prop-card {
  background: var(--navy-800);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  position: relative;
}
.prop-card:hover {
  transform: translateY(-6px);
  border-color: rgba(217, 119, 6, 0.3);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4);
}
.prop-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.prop-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.prop-card:hover .prop-card-img img {
  transform: scale(1.06);
}
.prop-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.badge-jual {
  background: var(--gold-700);
  color: var(--white);
}
.badge-sewa {
  background: rgba(99, 102, 241, 0.85);
  color: var(--white);
}
.badge-baru {
  background: var(--green-600);
  color: var(--white);
}

.prop-body {
  padding: 1.5rem;
}
.prop-location {
  font-size: 0.75rem;
  color: var(--slate-400);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 0.5rem;
}
.prop-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--white);
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.prop-price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold-500);
  font-weight: 700;
  margin-bottom: 1rem;
}
.prop-price span {
  font-size: 0.875rem;
  color: var(--slate-400);
  font-family: var(--font-body);
  font-weight: 400;
}
.prop-specs {
  display: flex;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 1rem;
}
.spec-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  color: var(--slate-400);
}
.spec-item svg {
  width: 14px;
  height: 14px;
  color: var(--gold-600);
}

/* ── Section Utilities ──────────────────────────────────────── */
.section {
  padding: 6rem 1.5rem;
}
.section-sm {
  padding: 4rem 1.5rem;
}
.container {
  max-width: 1280px;
  margin: 0 auto;
}
.container-md {
  max-width: 900px;
  margin: 0 auto;
}

.divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-600), var(--gold-400));
  border-radius: 2px;
  margin: 1rem 0 2rem;
}

/* ── Form Elements ──────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--slate-300);
  letter-spacing: 0.03em;
}
.form-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--white);
  outline: none;
  transition: all var(--transition-fast);
  width: 100%;
}
.form-input::placeholder {
  color: var(--slate-400);
  font-size: 0.875rem;
}
.form-input:focus {
  border-color: var(--gold-600);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}
.form-select option {
  background: var(--navy-800);
  color: var(--white);
}

/* ── Stars Rating ───────────────────────────────────────────── */
.stars {
  display: flex;
  gap: 2px;
  color: var(--gold-500);
}
.stars svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* ── Badge Utility ──────────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 500;
  background: rgba(217, 119, 6, 0.15);
  color: var(--gold-400);
  border: 1px solid rgba(217, 119, 6, 0.2);
}

/* ── Scroll Animation ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}
.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ── Responsive Breakpoints ─────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .nav-menu,
  .nav-cta {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .section {
    padding: 4rem 1.25rem;
  }
  .section-sm {
    padding: 3rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .wa-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
  .btn {
    padding: 10px 20px;
    font-size: 0.8rem;
  }
}
