* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  color: #111827;
  background: #f5f6f8;
  line-height: 1.6;
}

a {
  text-decoration: none;
}

.hero {
  min-height: 90vh;
  background:
    linear-gradient(rgba(5, 17, 34, 0.72), rgba(5, 17, 34, 0.72)),
    url("../images/brownstone-hero.png");
  background-size: cover;
  background-position: center;
  color: white;
  padding: 30px 7%;

}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 120px;
}

.logo {
  font-size: 26px;
  font-weight: bold;
  letter-spacing: 1px;
}

.logo span {
  color: #d4af37;
}

.nav-links a {
  color: white;
  margin-left: 25px;
  font-size: 14px;
  font-weight: bold;
}

.nav-button {
  background: #d4af37;
  padding: 12px 20px;
  border-radius: 4px;
  color: #07172a !important;
}

.hero-content {
  max-width: 650px;
}

.hero h1 {
  font-size: 58px;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero h1 span {
  color: #d4af37;
}

.hero p {
  font-size: 20px;
  margin-bottom: 30px;
  color: #e5e7eb;
}

.buttons a {
  display: inline-block;
  margin-right: 15px;
  margin-bottom: 15px;
  padding: 14px 24px;
  border-radius: 4px;
  font-weight: bold;
}

.primary {
  background: #d4af37;
  color: #07172a;
}

.secondary {
  border: 1px solid white;
  color: white;
}

.services {
  background: white;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 45px 7%;
  gap: 25px;
  text-align: center;
}

.service-card {
  border-right: 1px solid #ddd;
  padding: 20px;
}

.service-card:last-child {
  border-right: none;
}

.icon {
  font-size: 38px;
  color: #d4af37;
  margin-bottom: 15px;
}

.service-card h3 {
  font-size: 17px;
  margin-bottom: 10px;
}

.about {
  background:
    linear-gradient(rgba(5, 17, 34, 0.88), rgba(5, 17, 34, 0.88)),
    url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
  color: white;
  padding: 80px 7%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about h2 {
  font-size: 38px;
  margin-bottom: 20px;
}

.about small {
  color: #d4af37;
  font-weight: bold;
  letter-spacing: 1px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.stat-box {
  border: 1px solid rgba(255,255,255,0.3);
  padding: 30px 20px;
  text-align: center;
  border-radius: 6px;
}

.stat-box h3 {
  font-size: 34px;
  color: #d4af37;
}

.portfolio {
  padding: 70px 7%;
  background: #f8fafc;
}

.portfolio h2 {
  font-size: 36px;
  margin-bottom: 25px;
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.property-grid img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 5px 18px rgba(0,0,0,0.15);
}

.contact {
  background: #07172a;
  color: white;
  padding: 60px 7%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.contact h2 {
  font-size: 32px;
}

.contact a {
  background: #d4af37;
  color: #07172a;
  padding: 15px 28px;
  border-radius: 4px;
  font-weight: bold;
}

footer {
  background: #050f1d;
  color: #9ca3af;
  padding: 25px 7%;
  text-align: center;
  font-size: 14px;
}

@media (max-width: 900px) {
  .nav {
    display: block;
    margin-bottom: 80px;
  }

  .nav-links {
    margin-top: 20px;
  }

  .nav-links a {
    display: inline-block;
    margin: 8px 12px 8px 0;
  }

  .hero h1 {
    font-size: 42px;
  }

  .services,
  .about,
  .property-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .service-card {
    border-right: none;
    border-bottom: 1px solid #ddd;
  }

  .contact {
    display: block;
  }

  .contact a {
    display: inline-block;
    margin-top: 25px;
  }
}