:root {
  --white: #ffffff;
  --cream: #faf8f5;
  --warm: #f5f0e8;
  --brown: #8b5e3c;
  --brown-dark: #6b4428;
  --brown-dim: rgba(139, 94, 60, 0.12);
  --green: #2d6a4f;
  --green-light: #40916c;
  --navy: #1a2535;
  --grey: #7a7a8a;
  --grey-light: #b0b0be;
  --border: rgba(0,0,0,0.08);
  --border-warm: rgba(139,94,60,0.2);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  background: var(--cream);
  color: var(--navy);
  overflow-x: hidden;
}

/* ===== POPUP ===== */
.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
}

.popup-box {
  background: var(--white);
  border-radius: 20px;
  padding: 48px 40px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0,0,0,0.2);
  border: 1px solid var(--border-warm);
  animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1); }
}

.popup-icon { font-size: 3rem; margin-bottom: 16px; }

.popup-box h2 {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
}

.popup-box p {
  font-size: 0.92rem;
  color: var(--grey);
  line-height: 1.7;
  margin-bottom: 28px;
}

.popup-btn {
  background: var(--brown);
  color: white;
  border: none;
  padding: 13px 40px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'Jost', sans-serif;
  cursor: pointer;
  transition: all 0.3s;
}

.popup-btn:hover {
  background: var(--brown-dark);
  transform: translateY(-2px);
}

/* ===== NAVBAR ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 6%;
  background: rgba(250,248,245,0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}

.nav-logo {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
}

.nav-logo span { color: var(--brown); }

.nav-links { display: flex; gap: 36px; list-style: none; align-items: center; }

.nav-links a {
  text-decoration: none;
  color: var(--grey);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover { color: var(--navy); }

.nav-btn {
  background: var(--brown) !important;
  color: white !important;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 600 !important;
  font-size: 0.82rem !important;
  transition: all 0.3s !important;
}

.nav-btn:hover {
  background: var(--brown-dark) !important;
  transform: translateY(-1px);
}

/* ===== HERO ===== */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 6% 80px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(26,37,53,0.7), rgba(26,37,53,0.75)),
    linear-gradient(135deg, #2d4a3e, #1a2535, #3d2a1a);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(139,94,60,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(45,106,79,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  max-width: 750px;
  position: relative;
  z-index: 1;
  animation: fadeUp 0.9s ease forwards;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 28px;
}

.hero-heading {
  font-family: 'Fraunces', serif;
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 20px;
}

.hero-heading span {
  color: #c9a96e;
  font-style: italic;
}

.hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 520px;
}

/* Search Box */
.search-box {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 16px;
  padding: 8px 8px 8px 24px;
  gap: 0;
  margin-bottom: 48px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  max-width: 680px;
}

.search-field {
  flex: 1;
  padding: 8px 16px 8px 0;
}

.search-field label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 4px;
}

.search-field select {
  border: none;
  outline: none;
  font-family: 'Jost', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
  background: transparent;
  cursor: pointer;
  width: 100%;
}

.search-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
  margin: 0 8px;
}

.search-btn {
  background: var(--brown);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 10px;
  font-family: 'Jost', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.search-btn:hover {
  background: var(--brown-dark);
  transform: translateY(-1px);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.stat-num {
  font-family: 'Fraunces', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
}

.stat-num span { color: #c9a96e; }
.stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.6); margin-top: 2px; }

.stat-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
}

/* ===== LISTINGS ===== */
#listings {
  padding: 100px 6%;
  background: var(--white);
}

.section-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--brown);
  margin-bottom: 16px;
}

.section-heading {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  text-align: center;
  color: var(--navy);
  margin-bottom: 12px;
}

.section-heading span { color: var(--brown); font-style: italic; }

.section-sub {
  text-align: center;
  font-size: 0.95rem;
  color: var(--grey);
  line-height: 1.7;
  max-width: 500px;
  margin: 0 auto 60px;
}

.listings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.property-card {
  background: var(--cream);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s;
  cursor: pointer;
}

.property-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.1);
  border-color: var(--border-warm);
}

.featured-card {
  border-color: var(--border-warm);
  box-shadow: 0 8px 32px rgba(139,94,60,0.1);
}

.property-img {
  height: 180px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.property-emoji {
  font-size: 4rem;
  opacity: 0.8;
}

.property-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--green);
  color: white;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
}

.property-badge.hot { background: #c0392b; }
.property-badge.rent { background: var(--brown); }

.property-price {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: 'Fraunces', serif;
}

.property-info { padding: 20px; }

.property-info h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.property-loc {
  font-size: 0.82rem;
  color: var(--grey);
  margin-bottom: 14px;
}

.property-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.property-meta span {
  font-size: 0.75rem;
  color: var(--grey);
  background: var(--warm);
  padding: 4px 10px;
  border-radius: 50px;
}

.btn-outline {
  display: inline-block;
  border: 2px solid var(--brown);
  color: var(--brown);
  padding: 14px 36px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s;
}

.btn-outline:hover {
  background: var(--brown);
  color: white;
}

/* ===== WHY US ===== */
#why {
  padding: 100px 6%;
  background: var(--warm);
}

.why-inner {
  display: flex;
  gap: 80px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.why-left { flex: 1.2; }
.why-right {
  flex: 0.8;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.why-features { margin-top: 36px; display: flex; flex-direction: column; gap: 24px; }

.feature { display: flex; gap: 16px; align-items: flex-start; }

.feature-icon {
  font-size: 1.4rem;
  width: 44px;
  height: 44px;
  background: var(--white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.feature h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}

.feature p { font-size: 0.85rem; color: var(--grey); line-height: 1.6; }

.trust-card {
  background: var(--white);
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.trust-card:hover {
  border-color: var(--border-warm);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.trust-num {
  font-family: 'Fraunces', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 6px;
}

.trust-label { font-size: 0.78rem; color: var(--grey); font-weight: 500; }

/* ===== AGENT ===== */
#agent {
  padding: 100px 6%;
  background: var(--white);
}

.agent-container {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 900px;
  margin: 0 auto;
}

.agent-avatar {
  font-size: 5rem;
  width: 160px;
  height: 160px;
  background: var(--warm);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 3px solid var(--border-warm);
}

.agent-name {
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  margin-top: 12px;
}

.agent-title { font-size: 0.9rem; color: var(--brown); margin-bottom: 16px; font-weight: 500; }

.agent-desc {
  font-size: 0.95rem;
  color: var(--grey);
  line-height: 1.8;
  margin-bottom: 20px;
  max-width: 480px;
}

.agent-badges { display: flex; gap: 10px; flex-wrap: wrap; }

.badge {
  background: var(--warm);
  border: 1px solid var(--border-warm);
  color: var(--brown-dark);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* ===== CONTACT ===== */
#contact {
  padding: 100px 6%;
  background: var(--navy);
  color: white;
  text-align: center;
}

#contact .section-label { color: #c9a96e; }
#contact .section-heading { color: white; }
#contact .section-heading span { color: #c9a96e; font-style: italic; }
#contact .section-sub { color: rgba(255,255,255,0.6); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  max-width: 860px;
  margin: 48px auto;
}

.contact-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 24px 16px;
  transition: all 0.3s;
}

.contact-card:hover {
  background: rgba(201,169,110,0.1);
  border-color: rgba(201,169,110,0.3);
}

.contact-icon { font-size: 1.6rem; margin-bottom: 10px; }

.contact-card h4 {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 6px;
}

.contact-card p { font-size: 0.9rem; color: white; font-weight: 500; }

.contact-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  background: var(--brown);
  color: white;
  padding: 15px 36px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(139,94,60,0.4);
}

.btn-primary:hover {
  background: var(--brown-dark);
  transform: translateY(-2px);
}

.btn-whatsapp {
  display: inline-block;
  background: #25d366;
  color: white;
  padding: 15px 36px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(37,211,102,0.3);
}

.btn-whatsapp:hover {
  background: #1da851;
  transform: translateY(-2px);
}

/* ===== FOOTER ===== */
footer {
  background: #0f1720;
  color: rgba(255,255,255,0.4);
  text-align: center;
  padding: 24px;
  font-size: 0.82rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

footer a { color: #c9a96e; text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* ===== HAMBURGER ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
  z-index: 101;
}

.hamburger span {
  width: 26px;
  height: 2px;
  background: var(--brown);
  border-radius: 2px;
  transition: 0.2s;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .listings-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    background: rgba(250, 248, 245, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: center;
    padding: 30px 0;
    gap: 20px;
    transition: left 0.3s ease;
    border-bottom: 1px solid var(--border-warm);
    z-index: 99;
  }

  .nav-links.active {
    left: 0;
  }

  .nav-btn {
    margin-top: 10px;
  }

  .search-box {
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 16px;
  }

  .search-field {
    padding: 0;
  }

  .search-divider {
    display: none;
  }

  .search-btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 20px;
  }

  .listings-grid {
    grid-template-columns: 1fr;
  }

  .why-inner {
    flex-direction: column;
    gap: 40px;
  }

  .why-right {
    width: 100%;
  }

  .agent-container {
    flex-direction: column;
    text-align: center;
  }

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

  .agent-badges {
    justify-content: center;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-btns {
    flex-direction: column;
    align-items: center;
  }

  .contact-btns a {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-heading {
    font-size: 2.5rem;
  }

  .hero-badge {
    font-size: 0.7rem;
  }

  .property-card {
    max-width: 100%;
  }

  .trust-card {
    padding: 20px 12px;
  }

  .trust-num {
    font-size: 1.4rem;
  }
}