/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}

body {
  background: #ffffff;
  color: #1f2933;
  line-height: 1.6;
}

/* ================= CONTAINER ================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ================= HEADER ================= */
header {
  background: #1f2933;
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
}

/* =========================
   LOGO VISIBILITY + SIZE FIX
   ========================= */

.logo a {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.9rem;        /* BIG text */
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
}

/* Strong white background behind logo image */
.logo-img {
  height: 60px;             /* 🔥 BIG LOGO */
  width: auto;
  padding: 10px 14px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  display: block;
}

/* Fusion highlight */
.logo a span {
  color: #f97316;           /* Fusion orange */
}

/* Mobile scaling */
@media (max-width: 768px) {
  .logo-img {
    height: 48px;
    padding: 8px 12px;
  }

  .logo a {
    font-size: 1.5rem;
  }
}


.nav-menu ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-menu a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: #3b82f6;
}

.header-actions {
  display: flex;
  gap: 0.5rem;
}

.header-actions a {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-outline {
  border: 1px solid #3b82f6;
  color: #3b82f6;
}

.btn-outline:hover {
  background: #3b82f6;
  color: #fff;
}

.btn-primary {
  background: #3b82f6;
  color: #ffffff;
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}

/* ================= HERO ================= */
.hero {
  background: #f3f4f6;
  padding: 4rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #3b82f6;
}

.hero p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 2rem auto;
}

/* ================= CITY CTA ================= */
.city-cta {
  background: #e0f2fe;
  padding: 3rem 1rem;
  text-align: center;
}

.city-cta h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.city-cta p {
  max-width: 700px;
  margin: 0 auto 1.5rem auto;
  font-size: 1rem;
}

/* ================= CITY-SPECIFIC COLORS ================= */
.johannesburg .city-cta { background: #fff7ed; } /* amber-ish */
.capetown .city-cta { background: #e0f2fe; } /* sky blue */
.durban .city-cta { background: #d1fae5; } /* greenish */
.pretoria .city-cta { background: #ede9fe; } /* violet-ish */

/* ================= CITY-SPECIFIC HERO BUTTON TEXT ================= */
body.johannesburg .hero .btn-primary::after {
  content: "View Johannesburg Properties";
}

body.capetown .hero .btn-primary::after {
  content: "View Cape Town Properties";
}

body.durban .hero .btn-primary::after {
  content: "View Durban Properties";
}

body.pretoria .hero .btn-primary::after {
  content: "View Pretoria Properties";
}

/* Hide default button text span if used */
.hero .btn-primary span {
  display: none;
}

/* ================= FEATURES ================= */
.features h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  padding: 1.5rem;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-card h3 {
  margin-bottom: 1rem;
  color: #1f2933;
  font-size: 1.2rem;
}

.feature-card p {
  font-size: 0.95rem;
  color: #374151;
}

/* ================= FAQ ================= */
.faq-list {
  margin: 2rem 0;
}

.faq-item {
  margin-bottom: 1rem;
  background: #f9fafb;
  border-left: 4px solid #3b82f6;
  border-radius: 5px;
  cursor: pointer;
  overflow: hidden;
}

.faq-item h3 {
  font-size: 1rem;
  padding: 0.8rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item p {
  padding: 0 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

/* ================= FINAL CTA ================= */
.final-cta {
  background: #3b82f6;
  color: #ffffff;
  text-align: center;
  padding: 3rem 1rem;
}

.final-cta h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.final-cta p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

/* ================= FOOTER ================= */
.landing-footer {
  background: #1f2933;
  color: #ffffff;
  padding: 3rem 1rem 1rem 1rem;
}

.landing-footer h4 {
  margin-bottom: 1rem;
  color: #3b82f6;
}

.landing-footer ul {
  list-style: none;
}

.landing-footer ul li {
  margin-bottom: 0.6rem;
}

.landing-footer a {
  text-decoration: none;
  color: #ffffff;
}

.landing-footer a:hover {
  color: #3b82f6;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  color: #9ca3af;
}

/* ================= BACK TO TOP BUTTON ================= */
#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  color: #fff;
  border: none;
  padding: 0.75rem 1.2rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

#backToTop.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#backToTop:hover {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  transform: translateY(-3px) scale(1.05);
}

#backToTop::before {
  content: "⬆";
  font-size: 1.2rem;
}

/* ================= RESPONSIVE ================= */
@media screen and (max-width: 768px) {
  .nav-menu ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .main-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  #backToTop {
    bottom: 15px;
    right: 15px;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
}
