/* Global styles & variables */
:root {
  --color-bg: #f3f4f6;
  --color-bg-alt: #ffffff;
  --color-primary: #111827;
  --color-accent: #fbbf24;
  --color-text: #111827;
  --color-muted: #6b7280;
  --color-border: #e5e7eb;
  --radius-lg: 1.25rem;
  --radius-md: 0.75rem;
  --shadow-soft: 0 18px 35px rgba(15, 23, 42, 0.12);
  --max-width: 1120px;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

/* Utility */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background-color: var(--color-bg-alt);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.75rem auto;
}

.section-header h2 {
  margin: 0 0 0.75rem 0;
  font-size: 1.9rem;
}

.section-header p {
  margin: 0;
  color: var(--color-muted);
}

/* Header / Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(243, 244, 246, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(209, 213, 219, 0.7);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #facc15, #f97316);
  color: #111827;
  font-size: 0.9rem;
}

.logo-text {
  letter-spacing: 0.02em;
}

.main-nav {
  display: none;
  gap: 1.2rem;
  font-size: 0.95rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--color-muted);
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width 0.2s ease-out;
}

.main-nav a:hover::after {
  width: 100%;
}

.nav-cta {
  display: none;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background-color: var(--color-primary);
  color: #f9fafb;
  white-space: nowrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.8rem 1.4rem;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease,
    color 0.15s ease, border-color 0.15s ease;
}

.btn.primary-btn {
  background: linear-gradient(135deg, #111827, #1f2937);
  color: #f9fafb;
  box-shadow: var(--shadow-soft);
}

.btn.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.2);
}

.btn.ghost-btn {
  background-color: transparent;
  border-color: rgba(17, 24, 39, 0.12);
  color: var(--color-primary);
}

.btn.ghost-btn:hover {
  border-color: var(--color-primary);
}

.btn.full-width {
  width: 100%;
}

/* Hero */
.hero-section {
  padding: 4.5rem 0 4rem 0;
}

.hero-grid {
  display: grid;
  gap: 2.75rem;
}

.hero-content h1 {
  margin: 0 0 0.9rem 0;
  font-size: 2.2rem;
  line-height: 1.1;
}

.hero-subtitle {
  margin: 0 0 1.75rem 0;
  color: var(--color-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.75rem;
}

.hero-stats {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.stat {
  min-width: 7rem;
}

.stat-number {
  display: block;
  font-weight: 600;
  font-size: 1.1rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* Hero right “card” */
.hero-image-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  min-height: 260px;
  background-image: url("https://images.pexels.com/photos/313782/pexels-photo-313782.jpeg?auto=compress&cs=tinysrgb&w=1200");
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-soft);
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.84), rgba(15, 23, 42, 0.35));
}

.hero-image-copy {
  position: relative;
  color: #f9fafb;
  padding: 1.75rem 1.6rem;
}

.hero-image-copy h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.3rem;
}

.hero-image-copy p {
  margin: 0 0 0.9rem 0;
  font-size: 0.95rem;
}

.hero-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}

.hero-bullets li::before {
  content: "• ";
}

/* Card grid basics */
.card-grid {
  display: grid;
  gap: 1.75rem;
}

.card {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.35rem 1.4rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(229, 231, 235, 0.9);
}

/* Listings */
.listings-grid {
  grid-template-columns: 1fr;
}

.listing-card {
  padding: 0;
  overflow: hidden;
}

.listing-image {
  height: 190px;
  background-size: cover;
  background-position: center;
}

.listing-image-1 {
  background-image: url("https://images.pexels.com/photos/37347/office-night-view-skyscrapers-37347.jpeg?auto=compress&cs=tinysrgb&w=1200");
}

.listing-image-2 {
  background-image: url("https://images.pexels.com/photos/1396122/pexels-photo-1396122.jpeg?auto=compress&cs=tinysrgb&w=1200");
}

.listing-image-3 {
  background-image: url("https://images.pexels.com/photos/259580/pexels-photo-259580.jpeg?auto=compress&cs=tinysrgb&w=1200");
}

.listing-tag {
  position: absolute;
  margin: 0.9rem 0 0 0.9rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background-color: rgba(34, 197, 94, 0.95);
  color: #ecfdf5;
  font-size: 0.75rem;
  font-weight: 500;
}

.listing-tag-sale {
  background-color: rgba(59, 130, 246, 0.96);
}

.listing-card {
  position: relative;
}

.card-body {
  padding: 1.2rem 1.4rem 1.35rem 1.4rem;
}

.card-body h3 {
  margin: 0 0 0.35rem 0;
  font-size: 1.1rem;
}

.listing-location {
  margin: 0 0 0.4rem 0;
  font-size: 0.87rem;
  color: var(--color-muted);
}

.listing-price {
  margin: 0 0 0.55rem 0;
  font-weight: 600;
}

.listing-meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 0 0 0.6rem 0;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.listing-meta li {
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background-color: #f3f4f6;
}

.listing-description {
  margin: 0;
  font-size: 0.87rem;
  color: var(--color-muted);
}

/* Services */
.services-grid {
  grid-template-columns: 1fr;
}

.service-card h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.service-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.93rem;
}

/* Neighborhoods */
.neighborhood-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}

.neighborhood-item {
  padding: 1.1rem 1.2rem;
  border-radius: 0.9rem;
  background-color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(209, 213, 219, 0.9);
}

.neighborhood-item h3 {
  margin: 0 0 0.3rem 0;
  font-size: 1rem;
}

.neighborhood-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* About */
.about-grid {
  display: grid;
  gap: 1.75rem;
}

.about-text p {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--color-muted);
}

.about-highlight {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.about-stat-block {
  padding: 1rem 1.1rem;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, #111827, #1f2937);
  color: #f9fafb;
  width: fit-content;
}

.about-stat-number {
  display: block;
  font-weight: 600;
  font-size: 1.4rem;
}

.about-stat-label {
  font-size: 0.8rem;
}

.about-note {
  font-size: 0.9rem;
  color: var(--color-muted);
}

.about-signature {
  font-size: 0.9rem;
  font-style: italic;
}

/* Testimonials */
.testimonials-grid {
  grid-template-columns: 1fr;
}

.testimonial-text {
  margin: 0 0 0.75rem 0;
  font-size: 0.95rem;
}

.testimonial-name {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 2rem;
}

.contact-info h2 {
  margin-top: 0;
}

.contact-details p,
.contact-social ul {
  font-size: 0.9rem;
}

.contact-social ul {
  list-style: none;
  padding: 0;
  margin: 0.3rem 0 0 0;
}

.contact-social li {
  margin-bottom: 0.25rem;
}

.contact-social a {
  color: var(--color-primary);
  text-decoration: none;
}

.contact-social a:hover {
  text-decoration: underline;
}

.contact-form-card {
  background-color: #ffffff;
  padding: 1.6rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(209, 213, 219, 0.9);
}

.contact-form h3 {
  margin-top: 0;
}

.form-row {
  margin-bottom: 0.9rem;
}

.form-row label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(209, 213, 219, 0.9);
  font-family: inherit;
  font-size: 0.9rem;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

/* Footer */
.site-footer {
  padding: 1.8rem 0 2rem 0;
  background-color: #111827;
  color: #e5e7eb;
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.footer-logo .logo-mark {
  background: radial-gradient(circle at 30% 20%, #fbbf24, #f97316);
}

.footer-note {
  margin: 0.6rem 0 0 0;
  font-size: 0.8rem;
  color: #d1d5db;
}

.footer-right p {
  margin: 0;
  font-size: 0.8rem;
  color: #9ca3af;
}

/* Responsive breakpoints */
@media (min-width: 640px) {
  .hero-section {
    padding-top: 5.5rem;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }
}

@media (min-width: 768px) {
  .main-nav {
    display: flex;
  }

  .nav-cta {
    display: inline-flex;
  }

  .hero-grid {
    grid-template-columns: 1.15fr 0.95fr;
    align-items: center;
  }

  .listings-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .services-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .neighborhood-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .about-grid {
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
  }

  .testimonials-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: 1.1fr 1fr;
    align-items: flex-start;
  }

  .footer-grid {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
