/* ===== REAL ESTATE - Prestige Properties ===== */
/* Professional palette: navy blue, slate gray, white, gold accents */

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

:root {
  --primary: #1b2a4a;
  --primary-dark: #0f1a32;
  --accent: #c8a45c;
  --accent-light: #e8d4a0;
  --bg: #f4f6f9;
  --bg-alt: #e8ecf2;
  --text: #2c3e50;
  --text-muted: #7f8c9b;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(27, 42, 74, 0.1);
  --shadow-lg: 0 8px 40px rgba(27, 42, 74, 0.15);
  --radius: 12px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

h1, h2, h3, h4, .logo {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(27, 42, 74, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(200, 164, 92, 0.2);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  font-size: 1.3rem;
  color: var(--white);
  letter-spacing: 1px;
  font-weight: 700;
}

.logo span {
  color: var(--accent);
}

.nav ul {
  display: flex;
  list-style: none;
  gap: 28px;
}

.nav a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-light);
  letter-spacing: 0.5px;
  transition: color 0.3s;
}

.nav a:hover {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--white);
  cursor: pointer;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?w=1920&q=80') center/cover fixed;
  position: relative;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(27, 42, 74, 0.85), rgba(15, 26, 50, 0.7));
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 18px;
  color: var(--white);
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--accent-light);
  margin-bottom: 32px;
  max-width: 500px;
}

.btn {
  display: inline-block;
  padding: 15px 38px;
  background: var(--accent);
  color: var(--primary-dark);
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  margin-right: 14px;
}

.btn:hover {
  background: #b89544;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200, 164, 92, 0.3);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--primary-dark);
}

.btn-small {
  padding: 10px 24px;
  font-size: 0.85rem;
  margin-right: 0;
}

/* Stats */
.stats {
  padding: 60px 0;
  background: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-card h3 {
  font-size: 2.5rem;
  color: var(--primary);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
}

.stat-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 6px;
}

/* Sections */
.section {
  padding: 90px 0;
}

.section-title {
  text-align: center;
  font-size: 2.3rem;
  margin-bottom: 12px;
  color: var(--primary);
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 50px;
  font-size: 1.05rem;
}

/* Properties Grid */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.property-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.property-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.property-img {
  height: 240px;
  position: relative;
}

.prop-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--accent);
  color: var(--primary-dark);
  padding: 4px 14px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.property-info {
  padding: 24px;
}

.property-info h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.prop-location {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.prop-details {
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 8px;
}

.prop-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

/* Categories */
.categories {
  background: var(--white);
}

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

.cat-card {
  text-align: center;
  padding: 40px 20px;
  border: 2px solid var(--bg-alt);
  border-radius: var(--radius);
  transition: all 0.3s;
}

.cat-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(200, 164, 92, 0.15);
}

.cat-icon {
  color: var(--accent);
  margin-bottom: 16px;
}

.cat-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  font-family: 'Inter', sans-serif;
}

.cat-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Agents */
.agents {
  background: var(--bg);
}

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

.agent-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.agent-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.agent-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 16px;
  border: 4px solid var(--accent-light);
}

.agent-card h3 {
  font-size: 1.1rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.agent-title {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.agent-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.agent-phone {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--primary);
}

/* Testimonials */
.testimonials {
  background: var(--primary);
  color: var(--white);
}

.testimonials .section-title {
  color: var(--white);
}

.testimonials .section-subtitle {
  color: var(--accent-light);
}

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

.testimonial-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(200, 164, 92, 0.2);
  padding: 30px;
  border-radius: var(--radius);
}

.testimonial-card p {
  font-style: italic;
  margin-bottom: 16px;
  color: var(--accent-light);
}

.testimonial-card cite {
  font-style: normal;
  font-weight: 500;
  color: var(--accent);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
  align-items: start;
}

.contact-info p {
  margin-bottom: 14px;
  font-size: 1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 14px 18px;
  border: 2px solid var(--bg-alt);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s;
  background: var(--white);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
}

/* Footer */
.footer {
  background: var(--primary-dark);
  padding: 60px 0 30px;
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer h4 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: var(--accent);
}

.footer p {
  font-size: 0.9rem;
  color: var(--accent-light);
}

.footer ul {
  list-style: none;
}

.footer li {
  margin-bottom: 10px;
}

.footer li a {
  font-size: 0.9rem;
  color: var(--accent-light);
  transition: color 0.3s;
}

.footer li a:hover {
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(200, 164, 92, 0.15);
  font-size: 0.85rem;
  color: var(--accent-light);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .agents-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    width: 100%;
    background: var(--primary);
    border-bottom: 1px solid rgba(200, 164, 92, 0.2);
  }

  .nav.open {
    display: block;
  }

  .nav ul {
    flex-direction: column;
    padding: 20px;
    gap: 16px;
  }

  .menu-toggle {
    display: block;
  }

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

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .agents-grid,
  .testimonials-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .stats-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr; }

  .property-img {
    height: 200px;
  }

  .btn {
    display: block;
    margin: 0 auto 12px;
    text-align: center;
  }
}
