:root {
        --bg: #f8f9fb; /* light background */
        --card: #ffffff; /* white cards */
        --muted: #4b5563; /* neutral dark gray */
        --accent: #00bcd4; /* cyan */
        --accent-2: #7c3aed; /* soft purple */
        --border: rgba(0,0,0,0.08);
        font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
        }
* { box-sizing: border-box; }

html, body { height: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: #111;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 48px auto;
    padding: 24px;
}


header {
    display: flex; 
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    background: white;
    border-radius: 12px;
    padding: 16px 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}



.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex-shrink: 0;
    flex-wrap: wrap;
}
.logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.brand-info {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#brand-tagline {
  white-space: normal; /* ✅ allows wrapping */
  line-height: 1.4;
  word-break: break-word; /* ✅ ensures long words break nicely */
}
.nav {
    display: flex;
    gap: 14px;
    align-items: center;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 4px;
    scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
    color: var(--muted);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    flex: 0 0 auto;
}
.nav a.primary {
    border: 1px solid var(--border);
}
.cta {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    color: white;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
}

/* Hero */

.hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.hero-left {
  flex: 1 1 55%;
  min-width: 280px;
}
.hero-right {
  flex: 1 1 35%;
  max-width: 380px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.hero-left h1 {
    font-size: 36px;
    color: #111;
    margin: 0 0 12px;
}
.sub {
    color: var(--muted);
    margin-bottom: 18px;
}
.badges {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.badge {
    background: var(--accent-light);
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    border: 1px solid var(--border); /* 👈 adds subtle outline */
}
.cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap; }
.hero-right {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    overflow-x: hidden;
}
.agent-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    text-align: center;
    padding-top: 10px;
    padding-bottom: 18px;
}
.agent-photo {
    max-width: 100%;
    width: 86px;
    height: auto;
    border-radius: 12px;
    overflow: hidden;
    flex: 0 0 86px;
}
.agent-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.agent-meta h3 { margin: 0; color: #111; word-wrap: break-word; text-align: left;}
.agent-meta p { margin: 6px 0 0; color: var(--muted); font-size: 14px; word-wrap: break-word; text-align: left; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 20px;
  width: 100%;
}
  .stat {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  transition: transform 0.2s ease;
}

.stat:hover {
  transform: translateY(-3px);
}
.stat strong {
  display: block;
  color: #111;
  font-size: 1.8rem;
  font-weight: 700;
}

.stat span {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 4px;
}

/* Listings */
.section { margin-top: 42px; }

.section h2 {
    color: #111;
    margin-bottom: 14px;
}
.listings {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.2s ease;
}
.card:hover { transform: translateY(-4px); }
.card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}
.card-body { padding: 12px; }
.card-body h3 {
    margin: 0 0 6px;
    color: #111;
    font-size: 16px;
}
.price {
    font-weight: 700;
    color: var(--accent);
}
.card-meta {
    font-size: 13px;
    color: var(--muted);
    margin-top: 6px;
}

/* Testimonials */
.testimonials {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.testimonial {
  flex: 0 0 100%;
  padding: 24px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.testimonial-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

.testimonial-track {
  display: flex;
  transition: transform 0.4s ease;
}



.quote {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text);
}

.client {
  margin-top: 12px;
  font-weight: 500;
  color: var(--muted);
}

.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--surface);
  border: none;
  font-size: 2rem;
  padding: 8px 12px;
  cursor: pointer;
  color: var(--muted);
  transition: 0.3s;
  z-index: 2;
}

.slide-btn:hover {
  color: var(--accent);
}

.slide-btn.prev { left: 0; }
.slide-btn.next { right: 0; }

.t-author {
    margin-top: 10px;
    font-weight: 700;
    color: #111;
}


/* Contact Section */



form {
    background: white;
    border: 1px solid var(--border);
    padding: 18px;
    border-radius: 12px;
    margin-top: 20px;
}
label {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
    color: var(--muted);
}
input, textarea, select {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #f9fafb;
    color: #111;
    resize: vertical;
}
button.send {
    margin-top: 10px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    color: white;
    padding: 10px 14px;
    border-radius: 10px;
    border: 0;
    font-weight: 700;
}

footer {
  margin-top: 36px;
  padding: 18px;
  border-radius: 10px;
  background: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  border: 1px solid var(--border);
}

.socials a {
  margin-left: 10px;
  color: var(--accent-2);
  text-decoration: none;
}




/* RESPONSIVE FIXES */
@media (max-width: 980px) {
  .hero {
    flex-direction: column-reverse; /* ✅ Move card above left content */
  }
.hero-right {
    width: 100%;
    max-width: 100%;
  }

  .hero-left,
  .hero-right {
    width: 100%;
    max-width: 100%;
  }

  .container {
    padding: 18px;
    margin: 0;
  }

  .listings {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }


  .stats {
    grid-template-columns: repeat(2, 1fr); /* ✅ 2x2 layout */
  }
}

@media (max-width: 560px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .hero {
    flex-direction: column; /* 👈 ensures hero-left is above hero-right */
    align-items: center;
    text-align: center;
  }

  .hero-right {
  max-width: 100%;
  margin-top: 20px; /* optional spacing between left & right */
  }

  .hero-left {
    width: 100%;
  }

  .hero-left h1 {
    font-size: 26px;
    line-height: 1.3;
  }

  .listings {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: #ffffff;
    border: 1px solid var(--border);
    padding: 14px;
    border-radius: 10px;
    transition: transform 0.2s ease;
  }
  .stat strong {
    font-size: 1.5rem;
  }

  .stat span {
    font-size: 0.8rem;
  }

  .brand {
    flex-direction: column;        /* stack logo + text */
    align-items: center;           /* ✅ centers both horizontally */
    justify-content: center;
    text-align: center;            /* ✅ centers brand-name + tagline text */
    gap: 4px;                      /* optional: tighten spacing */
  }

  .logo {
    margin: 0 auto;                /* ✅ ensure logo itself is centered */
  }
}
