/* =========================================================
   RESET & BASE
========================================================= */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #f6f8f6;
  color: #333;
}

a {
  text-decoration: none;
  color: inherit;
}

/* =========================================================
   FRONT HEADER
========================================================= */

.header {
  background: #2f6f3e;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  max-width: 1200px;
  margin: auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.nav-menu {
  display: flex;
  gap: 20px;
}

.nav-menu a {
  color: #fff;
  font-weight: 500;
}

.nav-menu .btn {
  background: #4caf50;
  padding: 6px 14px;
  border-radius: 6px;
}

.menu-toggle {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

/* =========================================================
   HERO
========================================================= */

.hero {
  background: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.55)),
    url("../images/hero-real-estate.jpg") center/cover no-repeat;
  padding: 120px 20px;
  color: #fff;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: auto;
}

.hero h1 {
  font-size: 42px;
  line-height: 1.2;
}

.hero p {
  margin-top: 15px;
  font-size: 18px;
}

.trust-points {
  margin-top: 15px;
  font-size: 14px;
  opacity: 0.9;
}

.hero-cta {
  margin-top: 30px;
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: #2f6f3e;
  color: #fff;
  padding: 14px 28px;
  border-radius: 30px;
  font-weight: 600;
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
  padding: 14px 28px;
  border-radius: 30px;
  font-weight: 600;
}

/* =========================================================
   QUICK ENQUIRY
========================================================= */

.quick-enquiry {
  background: #fff;
  max-width: 1100px;
  margin: -40px auto 70px;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,.15);
  text-align: center;
}

.quick-enquiry form {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.quick-enquiry input,
.quick-enquiry select,
.quick-enquiry textarea,
.quick-enquiry button {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.quick-enquiry button {
  background: #2f6f3e;
  color: #fff;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

/* =========================================================
   SERVICES
========================================================= */
/* =========================
   SERVICES CTA – FIXED
========================= */

.services-cta {
  padding: 80px 20px;
  background: #f6f8f6;
}

.services-cta-container {
  max-width: 1100px;
  margin: 0 auto;          /* ✅ center alignment */
  text-align: center;
}

.services-cta h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.services-cta p {
  font-size: 16px;
  color: #555;
  margin-bottom: 30px;
}

/* Mobile */
@media (max-width: 768px) {
  .services-cta h2 {
    font-size: 24px;
  }

  .services-cta p {
    font-size: 14px;
  }
}

.services-cards {
  padding: 80px 20px;
  text-align: center;
}

.service-grid {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 25px;
}

.service-card {
  background: #fff;
  padding: 30px;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,.08);
}

.service-card.highlight {
  border: 2px solid #2f6f3e;
}

/* =========================================================
   PROPERTIES
========================================================= */

.properties-section {
  padding: 70px 8%;
}

.section-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 40px;
}

.properties-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 25px;
}

.property-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,.08);
  transition: .3s;
}

.property-card:hover {
  transform: translateY(-6px);
}

.property-image {
  height: 220px;
  background: #f3f3f3;
}

.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-content {
  padding: 18px;
}

.price {
  color: #2f6f3e;
  font-weight: 700;
  margin: 10px 0;
}

.view-btn {
  display: block;
  background: #2f6f3e;
  color: #fff;
  text-align: center;
  padding: 10px;
  border-radius: 6px;
}

/* =========================================================
   ABOUT
========================================================= */
/* =========================
   ABOUT CTA – FIXED
========================= */

.about-cta {
  padding: 80px 20px;
  background: #f6f8f6;
}

.about-cta-container {
  max-width: 1100px;
  margin: 0 auto;          /* ✅ centers content */
  text-align: center;
}

.about-cta h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.about-cta p {
  font-size: 16px;
  color: #555;
  margin-bottom: 30px;
}

/* Mobile */
@media (max-width: 768px) {
  .about-cta h2 {
    font-size: 24px;
  }

  .about-cta p {
    font-size: 14px;
  }
}

.about-section {
  padding: 80px 20px;
  background: #fff;
}

.about-container {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.about-stats {
  display: grid;
  gap: 20px;
}

.stat-box {
  background: #f6f8f6;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
}

/* =========================================================
   FOOTER
========================================================= */

footer {
  background: #2f6f3e;
  color: #fff;
  text-align: center;
  padding: 30px 20px;
  margin-top: 80px;
}

/* =========================================================
   ADMIN UI
========================================================= */

.admin-header {
  background: #2f6f3e;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.admin-header-inner {
  max-width: 1200px;
  margin: auto;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-logo {
  color: #fff;
  font-weight: 700;
  font-size: 20px;
}

.admin-nav {
  display: flex;
  gap: 18px;
}

.admin-nav a {
  color: #fff;
  font-weight: 500;
}

.admin-nav .logout {
  background: rgba(255,255,255,.2);
  padding: 6px 12px;
  border-radius: 6px;
}

.admin-container {
  max-width: 1100px;
  margin: 40px auto;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0,0,0,.08);
}

.admin-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.table-wrapper {
  overflow-x: auto;
}

.admin-table {
  min-width: 900px;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 12px;
}

.admin-table thead th {
  background: #2f6f3e;
  color: #fff;
  padding: 14px;
}

.admin-table tbody tr {
  background: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,.05);
}

.admin-table tbody td {
  padding: 14px;
}

.status {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.status.active { background:#e6f4ea; color:#1e7e34; }
.status.draft  { background:#fff3cd; color:#856404; }
.status.sold   { background:#fdecea; color:#b02a37; }

.action-btn {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}

.action-btn.edit { background:#0d6efd; color:#fff; }
.action-btn.delete { background:#dc3545; color:#fff; }

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 992px) {
  .properties-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {

  /* FRONT MENU */
  .menu-toggle { display: block; }

  .nav-menu {
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    background: #2f6f3e;
    flex-direction: column;
    display: none;
  }

  .nav-menu a {
    padding: 14px 20px;
    border-top: 1px solid rgba(255,255,255,.2);
  }

  .nav-menu.active { display: flex; }

  /* HERO */
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 15px; }

  /* FORMS */
  .quick-enquiry form { grid-template-columns: 1fr; }

  /* PROPERTIES */
  .properties-grid { grid-template-columns: 1fr; }

  /* ADMIN */
  .admin-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .admin-nav {
    flex-wrap: wrap;
    gap: 10px;
  }

  .admin-container {
    margin: 16px 10px;
    padding: 20px;
  }
}
/* =========================
   WHY SECTION – FIXED ALIGNMENT
========================= */

.why {
  padding: 80px 20px;
  background: #f6f8f6;
}

.why-container {
  max-width: 1100px;
  margin: 0 auto;      /* ✅ centers the section */
  text-align: center;
}

.why h2 {
  font-size: 32px;
  margin-bottom: 30px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.why-grid div {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
/* =========================
   CONTACT PAGE
========================= */

.contact-hero {
  padding: 100px 20px;
}

.contact-section {
  padding: 80px 20px;
  background: #fff;
}

.contact-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

/* LEFT INFO */
.contact-info h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.contact-info p {
  font-size: 16px;
  color: #555;
  margin-bottom: 20px;
}

.contact-info ul {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.contact-info li {
  margin-bottom: 12px;
  font-size: 15px;
}

.contact-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* FORM */
.contact-form {
  background: #f6f8f6;
  padding: 30px;
  border-radius: 16px;
}

.contact-form h2 {
  margin-bottom: 20px;
}

.contact-form .form-group {
  margin-bottom: 15px;
}

.contact-form label {
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 15px;
}

.contact-form .full {
  grid-column: span 2;
}

/* MOBILE */
@media (max-width: 768px) {

  .contact-container {
    grid-template-columns: 1fr;
  }

  .contact-info h2,
  .contact-form h2 {
    font-size: 24px;
  }

  .contact-actions a {
    width: 100%;
    text-align: center;
  }
}
