/* ===== VARIABLES ===== */
:root {
  --green-dark:    #1B4332;
  --green-primary: #2D6A4F;
  --green-medium:  #40916C;
  --green-light:   #52B788;
  --green-pale:    #D8F3DC;
  --green-bg:      #F0FAF4;
  --white:         #FFFFFF;
  --text-dark:     #111827;
  --text-muted:    #6B7280;
  --border:        #E5E7EB;
  --shadow-sm:     0 1px 4px rgba(0,0,0,0.07);
  --shadow-md:     0 4px 20px rgba(0,0,0,0.09);
  --shadow-lg:     0 12px 40px rgba(0,0,0,0.13);
  --radius:        12px;
  --radius-sm:     8px;
  --transition:    0.3s ease;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 0.95rem; font-weight: 600; }

h1 span, h2 span { color: var(--green-primary); }

/* ===== LAYOUT ===== */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 100px 0; }
.section-alt { background: var(--green-bg); }
.text-center { text-align: center; }

/* ===== SECTION HEADER ===== */
.section-header { text-align: center; margin-bottom: 60px; }
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-primary);
  background: var(--green-pale);
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
}
.section-sub {
  max-width: 560px;
  margin: 14px auto 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.btn-primary {
  background: var(--green-primary);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--green-medium);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(45,106,79,0.28);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
  transform: translateY(-2px);
}
.btn-outline-green {
  background: transparent;
  color: var(--green-primary);
  border: 1.5px solid var(--green-primary);
}
.btn-outline-green:hover {
  background: var(--green-primary);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-white {
  background: var(--white);
  color: var(--green-primary);
  font-weight: 600;
}
.btn-white:hover {
  background: var(--green-pale);
}
.btn-full { width: 100%; text-align: center; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}
.navbar.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  padding: 12px 0;
}
.navbar.scrolled .nav-logo { color: var(--text-dark); }
.navbar.scrolled .nav-logo span { color: var(--green-primary); }
.navbar.scrolled .nav-links a { color: var(--text-muted); }
.navbar.scrolled .nav-links a:hover { color: var(--green-primary); }
.navbar.scrolled .nav-toggle span { background: var(--text-dark); }

.nav-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  transition: color var(--transition);
  flex-shrink: 0;
}
.nav-logo span { color: var(--green-light); }
.navbar.scrolled .nav-logo span { color: var(--green-primary); }

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  transition: color var(--transition);
  letter-spacing: 0.03em;
}
.nav-links a:hover { color: var(--white); }

.nav-cta {
  background: var(--green-primary);
  color: var(--white);
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: background var(--transition), transform var(--transition);
  flex-shrink: 0;
}
.nav-cta:hover {
  background: var(--green-medium);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--text-dark); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--text-dark); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?w=1920&q=80')
    center/cover no-repeat;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(17,24,39,0.55) 0%,
    rgba(17,24,39,0.65) 60%,
    rgba(17,24,39,0.85) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  padding: 0 24px;
}
.hero-tagline {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green-light);
  background: rgba(82,183,136,0.15);
  border: 1px solid rgba(82,183,136,0.3);
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 24px;
}
.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
}
.hero h1 span { color: var(--green-light); }
.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--green-dark);
  padding: 40px 0;
}
.stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 48px;
}
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  margin-top: 6px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.stat-divider {
  width: 1px;
  height: 50px;
  background: rgba(255,255,255,0.12);
}

/* ===== LISTINGS ===== */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}
.property-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
}
.property-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.property-img-wrap {
  position: relative;
  overflow: hidden;
  height: 220px;
}
.property-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.property-card:hover .property-img-wrap img {
  transform: scale(1.05);
}
.property-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--green-primary);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
  z-index: 1;
}
.badge-new { background: var(--green-light); }
.property-overlay {
  position: absolute;
  inset: 0;
  background: rgba(27,67,50,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}
.property-card:hover .property-overlay { opacity: 1; }
.property-info { padding: 22px 24px 26px; }
.property-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green-primary);
  margin-bottom: 6px;
}
.property-address {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.property-location {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.property-features {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.property-features span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.83rem;
  color: var(--text-muted);
  font-weight: 500;
}
.property-features svg {
  color: var(--green-primary);
  flex-shrink: 0;
}

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  box-shadow: var(--shadow-sm);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-pale);
}
.service-icon {
  width: 52px;
  height: 52px;
  background: var(--green-pale);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-primary);
  margin-bottom: 20px;
  transition: background var(--transition);
}
.service-card:hover .service-icon { background: var(--green-primary); color: var(--white); }
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { margin-bottom: 12px; color: var(--text-dark); }
.service-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-text .section-label { margin-bottom: 14px; }
.about-text h2 { margin-bottom: 20px; }
.about-text p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 18px;
}
.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.about-stat { display: flex; flex-direction: column; }
.about-stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--green-primary);
  line-height: 1;
}
.about-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 6px;
  letter-spacing: 0.06em;
}
.about-visual { display: flex; justify-content: center; }
.about-img-wrap {
  position: relative;
  width: 100%;
}
.about-img-wrap img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}
.about-badge {
  position: absolute;
  bottom: -18px;
  left: 24px;
  background: var(--green-primary);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 50px;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(45,106,79,0.35);
  letter-spacing: 0.05em;
}

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-info-side { padding-top: 4px; }
.contact-info-side h2 { margin-bottom: 16px; }
.contact-info-side > p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 40px;
}
.info-items { display: flex; flex-direction: column; gap: 28px; }
.info-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.info-icon {
  width: 46px;
  height: 46px;
  background: var(--green-pale);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--green-primary);
}
.info-icon svg { width: 20px; height: 20px; }
.info-item h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green-primary);
  margin-bottom: 4px;
}
.info-item p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }
.info-item a { color: var(--text-muted); transition: color var(--transition); }
.info-item a:hover { color: var(--green-primary); }
.info-map {
  margin-top: 36px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}
.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea,
.form-group select {
  background: var(--green-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-dark);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: border-color var(--transition), background var(--transition);
  outline: none;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(107,114,128,0.55); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--green-primary);
  background: var(--white);
}
.form-group select { cursor: pointer; }

/* ===== FOOTER ===== */
.footer {
  background: var(--green-dark);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-brand .footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  display: inline-block;
}
.footer-brand .footer-logo span { color: var(--green-light); }
.footer-brand p { color: rgba(255,255,255,0.5); font-size: 0.9rem; line-height: 1.7; max-width: 300px; }
.footer-links h4,
.footer-contact h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--green-light);
  margin-bottom: 20px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: rgba(255,255,255,0.5); font-size: 0.9rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--white); }
.footer-contact p { color: rgba(255,255,255,0.5); font-size: 0.9rem; margin-bottom: 8px; line-height: 1.5; }
.footer-contact a { color: rgba(255,255,255,0.5); transition: color var(--transition); }
.footer-contact a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  text-align: center;
}
.footer-bottom p { color: rgba(255,255,255,0.3); font-size: 0.85rem; }

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-visual { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .stat-item { padding: 12px 28px; }
}

@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .listings-grid { grid-template-columns: 1fr; }
  .nav-cta { display: none; }
  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 36px;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.3rem; color: var(--text-dark) !important; }
  .nav-links a:hover { color: var(--green-primary) !important; }
  .nav-toggle { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .about-stats { gap: 24px; flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; align-items: center; }
  .hero-btns .btn { width: 100%; max-width: 280px; text-align: center; }
  .contact-form { padding: 28px 20px; }
  .stats-grid { gap: 0; }
  .stat-divider { display: none; }
  .stat-item { width: 50%; padding: 16px; }
}
