/* ==========================================================================
   1. GLOBAL VARIABLES & RESET
   ========================================================================== */
:root {
  --primary: #0f172a;
  --secondary: #1e293b;
  --accent: #d4af37;
  --light: #f8fafc;
  --white: #ffffff;
  --gray: #64748b;
  --border: #e2e8f0;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  scroll-behavior: smooth;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

body {
  background: var(--white);
  color: #334155;
  line-height: 1.6;
  animation: fadeIn .4s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.container {
  width: 88%;
  max-width: 1140px;
  margin: 0 auto;
}

/* ==========================================================================
   2. HEADER & NAVIGATION (DESKTOP)
   ========================================================================== */
header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  width: 100%;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  gap: 20px;
}

.logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.5px;
}

nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}

nav ul li a {
  position: relative;
  text-decoration: none;
  color: #334155;
  font-weight: 500;
  font-size: 15px;
  padding-bottom: 4px;
  transition: .3s ease;
}

nav ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: var(--accent);
  transition: .3s ease;
}

nav ul li a:hover,
nav ul li a.page-current {
  color: var(--primary);
}

nav ul li a:hover::after,
nav ul li a.page-current::after {
  width: 100%;
}

/* Hide Hamburger Menu Toggle on Desktop/Laptop Screens */
.menu-toggle {
  display: none !important;
  position: relative;
  z-index: 1010 !important;
  cursor: pointer;
  font-size: 26px;
  color: var(--primary);
  background: transparent;
  border: none;
  outline: none;
  transition: color 0.3s ease;
}

.menu-toggle.active {
  color: var(--white) !important;
}

.menu-toggle::before {
  content: "☰";
}

.menu-toggle.active::before {
  content: "✕";
}

.menu-footer-text {
  display: none;
}

/* Background Backdrop Overlay for Mobile Drawer */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   3. BUTTONS (GOLD UNIFIED BRANDING)
   ========================================================================== */
.btn,
.cta-btn,
.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent) !important;
  color: #0f172a !important;
  padding: 10px 24px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: .3s ease;
}

.btn:hover,
.cta-btn:hover,
.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.btn-dark {
  background: var(--primary) !important;
  color: var(--white) !important;
}

.btn-dark:hover {
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.3);
}

/* ==========================================================================
   4. HERO SECTIONS
   ========================================================================== */
.hero {
  padding: 100px 0;
  min-height: 70vh;
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.75)),
              url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?auto=format&fit=crop&w=1600&q=80');
  background-size: cover;
  background-position: center;
  color: var(--white);
}

.hero-content {
  max-width: 650px;
}

.hero h1 {
  font-size: 44px;
  line-height: 1.2;
  margin-bottom: 16px;
  font-weight: 700;
}

.hero p {
  font-size: 17px;
  margin-bottom: 28px;
  color: #e2e8f0;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.hero-page {
  background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.8)),
              url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?auto=format&fit=crop&w=1600&q=80');
  background-size: cover;
  background-position: center;
  color: var(--white);
  text-align: center;
  padding: 70px 20px;
}

.hero-page h1 {
  font-size: 36px;
  margin-bottom: 8px;
}

.hero-page p {
  color: #cbd5e1;
  font-size: 15px;
}

/* ==========================================================================
   5. SECTIONS & LAYOUT GRIDS
   ========================================================================== */
.section {
  padding: 75px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 45px;
}

.section-title h2 {
  font-size: 32px;
  color: var(--primary);
  font-weight: 700;
}

.trust-strip {
  padding: 28px 0;
  background: #f1f5f9;
}

.trust-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
  font-weight: 600;
  color: var(--primary);
  font-size: 15px;
}

.benefits,
.services-preview,
.testimonial-grid,
.grid,
.properties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card,
.property-card,
.testimonial,
.service-card,
.step,
.stat {
  background: var(--white);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: all .3s ease;
  word-wrap: break-word;
}

.card:hover,
.property-card:hover,
.testimonial:hover,
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}

.card img,
.property-card img,
.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 14px;
}

.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 45px;
  align-items: center;
}

.about-preview img {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow-hover);
}

/* ==========================================================================
   6. PROPERTY FILTERS
   ========================================================================== */
.filters,
.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 35px;
}

.filters button,
.filter-btn {
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: 30px;
  cursor: pointer;
  background: var(--white);
  color: #475569;
  font-weight: 600;
  font-size: 13px;
  transition: .3s ease;
}

.filters button.active,
.filters button:hover,
.filter-btn.active,
.filter-btn:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

.tag,
.property-tag {
  display: inline-block;
  padding: 3px 10px;
  background: #f1f5f9;
  color: #475569;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 8px;
}

.price,
.property-price {
  color: var(--primary);
  font-weight: 700;
  font-size: 17px;
  margin-top: 8px;
}

/* ==========================================================================
   7. CALL TO ACTION & FOOTER
   ========================================================================== */
.final-cta,
.cta {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 65px 20px;
}

.final-cta h2,
.cta h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

footer {
  background: var(--primary);
  color: var(--white);
  padding: 50px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
}

.footer-grid h3,
.footer-col h3 {
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 18px;
  font-weight: 700;
}

.footer-grid a, 
.footer-grid p,
.footer-col a,
.footer-col p {
  color: #94a3b8;
  text-decoration: none;
  margin-bottom: 8px;
  font-size: 14px;
  display: block;
  transition: .2s;
}

.footer-grid a:hover,
.footer-col a:hover {
  color: var(--accent);
}

.copyright,
.copy {
  text-align: center;
  margin-top: 35px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #64748b;
  font-size: 13px;
}

.whatsapp-float {
  position: fixed;
  width: 48px;
  height: 48px;
  bottom: 24px;
  right: 24px;
  background: #25D366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  z-index: 9999;
}

/* ==========================================================================
   8. RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Tablet Screens (Max Width: 992px) */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 36px;
  }

  .benefits,
  .services-preview,
  .testimonial-grid,
  .grid,
  .properties-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-preview {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* Mobile Screens (Max Width: 768px) */
@media (max-width: 768px) {
  header {
    z-index: 1000;
  }

  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
  }

  /* Hide Logo on Mobile */
  .logo {
    display: none !important;
  }

  /* Show Mobile Toggle Icon strictly below 768px */
  .menu-toggle {
    display: block !important;
    position: relative;
    z-index: 1010 !important;
    cursor: pointer;
  }

  /* Consultation Action Button */
  header .contact-btn,
  header .btn {
    padding: 7px 16px;
    font-size: 12px;
    border-radius: 20px;
    background: var(--accent) !important;
    color: #0f172a !important;
  }

  /* Mobile Drawer Container */
  nav#mainNav {
    display: block !important;
    position: fixed !important;
    top: 0;
    left: 0;
    width: 65%;
    max-width: 300px;
    height: 100vh;
    background: #0f172a !important;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.5);
    z-index: 1005 !important;
    transform: translateX(-100%) !important;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }

  /* ONLY slide in drawer when container ID has .active */
  nav#mainNav.active {
    transform: translateX(0) !important;
  }

  nav#mainNav ul {
    display: flex;
    flex-direction: column;
    padding: 85px 24px 30px;
    gap: 20px;
    height: 100%;
    list-style: none;
  }

  nav#mainNav ul li a {
    color: var(--white) !important;
    font-size: 17px;
    font-weight: 500;
    text-decoration: none;
  }

  nav#mainNav ul li a:hover,
  nav#mainNav ul li a.page-current {
    color: var(--accent) !important;
  }

  /* Bottom Branding Text inside Mobile Drawer */
  .menu-footer-text {
    display: block !important;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  /* Dark Backdrop Overlay */
  .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    z-index: 998 !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .menu-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* Mobile Grid Restructuring */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    text-align: left;
  }

  .hero {
    padding: 80px 0 50px;
    text-align: center;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 15px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .trust-items {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    font-size: 13px;
  }

  .section {
    padding: 45px 0;
  }

  .section-title h2 {
    font-size: 26px;
  }

  .benefits,
  .services-preview,
  .testimonial-grid,
  .grid,
  .properties-grid {
    grid-template-columns: 1fr;
  }

  .final-cta h2,
  .cta h2 {
    font-size: 24px;
  }
}

/* Extra Small Phones (Max Width: 480px) */
@media (max-width: 480px) {
  nav#mainNav {
    width: 75%;
  }

  .trust-items {
    grid-template-columns: 1fr;
  }
}