/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
  --primary-gold: #006838;       /* Brand Green */
  --primary-gold-dark: #004e2a;
  --dark-bg: #121212;            
  --dark-text: #111111;
  --body-text: #444444;
  --light-bg: #f8f9fa;
  --white: #ffffff;
  --transition: all 0.3s ease-in-out;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--body-text);
  background-color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul { list-style: none; }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =========================================
   2. REUSABLE LAYOUT
   ========================================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.section {
  padding: 80px 0;
}

.section-title {
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 800;
  color: var(--dark-text);
  text-align: center;
  margin-bottom: 15px;
  letter-spacing: -1px;
}

.section-subtitle {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
  color: #666;
  font-size: 1.1rem;
}

.light-bg {
  background-color: var(--light-bg);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 35px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  text-align: center;
  font-size: 1rem;
  transition: var(--transition);
}

.btn-gold {
  background-color: var(--primary-gold);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(0, 104, 56, 0.3);
}

.btn-gold:hover {
  background-color: var(--primary-gold-dark);
  transform: translateY(-2px);
}

.btn-outline {
  border-color: var(--white);
  color: var(--white);
  background: transparent;
}

.btn-outline:hover {
  background-color: var(--white);
  color: var(--dark-bg);
  transform: translateY(-2px);
}

/* =========================================
   3. HEADER & NAVIGATION
   ========================================= */
.header {
  background-color: var(--white);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 9999;
  padding: 15px 0;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.logo-img {
  max-height: 50px;
  width: auto;
}

/* Desktop Navigation */
.main-nav {
  display: flex;
  gap: 30px;
  align-items: center;
}

.main-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--dark-text);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary-gold);
}

/* Hamburger (Hidden on Desktop) */
.hamburger {
  display: none; /* Only visible on mobile */
  cursor: pointer;
  z-index: 10001;
}

/* === CRITICAL FIX BELOW === */
.hamburger .bar {
  display: block; /* This was missing! Spans need this to be visible. */
  width: 25px;
  height: 3px;
  background-color: #000000; /* Forced Black */
  margin: 5px 0;
  transition: all 0.3s ease-in-out;
}

/* =========================================
   4. HERO
   ========================================= */
.hero {
  height: 70vh;
  min-height: 500px;
  background-image: url('https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.7));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 20px;
  animation: slideUp 1s ease-out;
}

.hero-content h2 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}

/* =========================================
   5. GRIDS & CARDS
   ========================================= */
.services-grid,
.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card,
.property-card {
  background: var(--white);
  border-radius: 8px;
  transition: var(--transition);
}

.service-card {
  padding: 40px 30px;
  border: 1px solid #eee;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-bottom: 3px solid var(--primary-gold);
}

.property-card {
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.property-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.property-info {
  padding: 25px;
}

.property-info .price {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-gold);
}

/* =========================================
   6. CTA & FOOTER
   ========================================= */
.cta {
  background-color: var(--dark-bg);
  color: var(--white);
  padding: 100px 20px;
  text-align: center;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer {
  background-color: #0b0b0b;
  color: #ccc;
  padding: 70px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
}

.office-locations {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 30px;
}

.footer hr {
  border: 0;
  border-top: 1px solid #333;
  margin: 30px 0;
}

.copyright {
  text-align: center;
  opacity: 0.6;
  font-size: 0.85rem;
}

/* =========================================
   7. RESPONSIVE & MOBILE MENU
   ========================================= */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {

  /* 1. Show hamburger */
  .hamburger {
    display: block;
  }

  /* 2. Mobile nav hidden by default */
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    gap: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    
    /* Animation States */
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    z-index: 10000; /* Ensure menu floats on top */
  }

  /* 3. Show menu when active */
  .main-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  /* 4. Hamburger → X Animation */
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero {
    height: 50vh;
  }

  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .cta-buttons .btn {
    width: 100%;
  }
}