/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; color: #333; background: #fff; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===== VARIABLES ===== */
:root {
  --navy: #1a3c5e;
  --navy-dark: #122a44;
  --gold: #c8a951;
  --gold-light: #e0c97f;
  --white: #ffffff;
  --light-bg: #f5f7fa;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.15);
  --radius: 12px;
  --transition: all 0.3s ease;
}

/* ===== UTILITIES ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-dark); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-accent { background: var(--gold); color: var(--navy); }
.btn-accent:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-outline-white { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline-white:hover { background: var(--white); color: var(--navy); }

/* ===== SECTION HEADER ===== */
.section-header { text-align: center; margin-bottom: 50px; }
.section-tag { color: var(--gold); font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 8px; }
.section-header h2 { font-size: 2.2rem; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.section-header h2 span { color: var(--gold); }
.section-sub { color: var(--text-muted); max-width: 550px; margin: 0 auto; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(26, 60, 94, 0.95);
  backdrop-filter: blur(10px);
  padding: 16px 0;
  transition: var(--transition);
}
.navbar.scrolled { padding: 10px 0; box-shadow: 0 2px 20px rgba(0,0,0,0.2); }
.nav-container { display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 1.4rem; font-weight: 700; color: var(--white); display: flex; align-items: center; gap: 8px; }
.logo span { color: var(--gold); }
.logo i { color: var(--gold); }
.nav-links { display: flex; gap: 32px; }
.nav-links a { color: rgba(255,255,255,0.85); font-weight: 500; font-size: 0.95rem; transition: var(--transition); position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--gold); transition: var(--transition); }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { padding: 10px 22px; font-size: 0.9rem; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); transition: var(--transition); border-radius: 2px; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #0d2137 0%, #1a3c5e 40%, #2a5f8f 70%, #1a3c5e 100%);
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding-top: 80px;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url('https://placehold.co/1920x1080/0d2137/1a3c5e?text=') center/cover no-repeat;
  opacity: 0.1;
}
.hero-overlay { position: absolute; inset: 0; background: radial-gradient(ellipse at 70% 50%, rgba(200,169,81,0.1) 0%, transparent 60%); }
.hero-content { position: relative; z-index: 1; max-width: 800px; }
.hero-tag { color: var(--gold); font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 3px; margin-bottom: 16px; }
.hero-content h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; color: var(--white); line-height: 1.2; margin-bottom: 20px; }
.hero-content h1 span { color: var(--gold); }
.hero-sub { color: rgba(255,255,255,0.8); font-size: 1.1rem; margin-bottom: 40px; max-width: 550px; }

/* Search Box */
.search-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  display: flex; gap: 16px; align-items: flex-end;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  flex-wrap: wrap;
}
.search-field { flex: 1; min-width: 160px; }
.search-field label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 1px; }
.search-field select {
  width: 100%; padding: 12px 16px;
  border: 2px solid var(--border); border-radius: 8px;
  font-family: 'Poppins', sans-serif; font-size: 0.9rem; color: #333;
  background: #fff; cursor: pointer; transition: var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231a3c5e' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.search-field select:focus { outline: none; border-color: var(--navy); }
.search-btn { padding: 14px 28px; white-space: nowrap; }

/* ===== STATS ===== */
.stats { background: var(--navy); padding: 40px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-item h3 { font-size: 2.2rem; font-weight: 800; color: var(--gold); }
.stat-item p { color: rgba(255,255,255,0.8); font-size: 0.9rem; margin-top: 4px; }

/* ===== PROPERTY CARDS ===== */
.featured-properties { background: var(--light-bg); }
.properties-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.property-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: var(--transition);
}
.property-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.card-img-wrap { position: relative; overflow: hidden; height: 220px; }
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.property-card:hover .card-img-wrap img { transform: scale(1.05); }
.badge {
  position: absolute; top: 14px; padding: 4px 12px;
  border-radius: 20px; font-size: 0.75rem; font-weight: 600;
}
.badge-sale { left: 14px; background: var(--navy); color: var(--white); }
.badge-rent { left: 14px; background: #16a34a; color: var(--white); }
.badge-featured { right: 14px; background: var(--gold); color: var(--navy); }
.card-body { padding: 20px; }
.card-body h3 { font-size: 1.1rem; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.card-location { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 14px; }
.card-location i { color: var(--gold); margin-right: 4px; }
.card-meta { display: flex; gap: 16px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.card-meta span { font-size: 0.82rem; color: var(--text-muted); }
.card-meta i { color: var(--navy); margin-right: 4px; }
.card-footer { display: flex; align-items: center; justify-content: space-between; }
.price { font-size: 1.25rem; font-weight: 700; color: var(--gold); }

/* ===== WHY US ===== */
.why-us { background: var(--white); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature-card {
  background: var(--light-bg); border-radius: var(--radius);
  padding: 32px 24px; text-align: center;
  transition: var(--transition); border: 2px solid transparent;
}
.feature-card:hover { border-color: var(--gold); background: var(--white); box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.feature-icon {
  width: 70px; height: 70px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), #2a5f8f);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.feature-icon i { font-size: 1.6rem; color: var(--gold); }
.feature-card h3 { font-size: 1.05rem; font-weight: 600; color: var(--navy); margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }

/* ===== TESTIMONIALS ===== */
.testimonials { background: var(--light-bg); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.testimonial-card {
  background: var(--white); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
  transition: var(--transition);
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.stars { color: var(--gold); margin-bottom: 14px; font-size: 0.9rem; }
.testimonial-card > p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.8; margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-author img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.testimonial-author h4 { font-size: 0.95rem; font-weight: 600; color: var(--navy); }
.testimonial-author span { font-size: 0.8rem; color: var(--text-muted); }

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #2a5f8f 100%);
  padding: 80px 0; text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; top: -50%; right: -10%;
  width: 400px; height: 400px; border-radius: 50%;
  background: rgba(200,169,81,0.1);
}
.cta-content { position: relative; z-index: 1; }
.cta-banner h2 { font-size: 2.2rem; font-weight: 700; color: var(--white); margin-bottom: 14px; }
.cta-banner p { color: rgba(255,255,255,0.8); font-size: 1.05rem; margin-bottom: 32px; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== FOOTER ===== */
.footer { background: #0d2137; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; padding-bottom: 40px; }
.footer-brand .logo-light { color: var(--white); font-size: 1.3rem; margin-bottom: 16px; display: inline-flex; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.9rem; line-height: 1.8; margin-top: 12px; margin-bottom: 20px; }
.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.1); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; transition: var(--transition);
}
.social-links a:hover { background: var(--gold); color: var(--navy); }
.footer-links h4, .footer-contact h4 { color: var(--white); font-size: 1rem; font-weight: 600; margin-bottom: 20px; position: relative; padding-bottom: 10px; }
.footer-links h4::after, .footer-contact h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 30px; height: 2px; background: var(--gold); }
.footer-links ul li { margin-bottom: 10px; }
.footer-links ul li a { color: rgba(255,255,255,0.6); font-size: 0.9rem; transition: var(--transition); }
.footer-links ul li a:hover { color: var(--gold); padding-left: 6px; }
.footer-contact ul li { display: flex; gap: 10px; color: rgba(255,255,255,0.6); font-size: 0.88rem; margin-bottom: 12px; line-height: 1.6; }
.footer-contact ul li i { color: var(--gold); margin-top: 3px; flex-shrink: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; text-align: center; }
.footer-bottom p { color: rgba(255,255,255,0.5); font-size: 0.85rem; }
.footer-bottom i { color: #e74c3c; }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  padding: 140px 0 60px; text-align: center;
}
.page-hero h1 { font-size: 2.5rem; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,0.7); font-size: 1rem; }
.breadcrumb { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.breadcrumb a { color: var(--gold); font-size: 0.9rem; }
.breadcrumb span { color: rgba(255,255,255,0.5); font-size: 0.9rem; }

/* ===== PROPERTIES PAGE ===== */
.properties-page { background: var(--light-bg); padding: 60px 0; }
.properties-layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; }
.filter-sidebar { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); height: fit-content; }
.filter-sidebar h3 { font-size: 1.1rem; font-weight: 600; color: var(--navy); margin-bottom: 24px; padding-bottom: 12px; border-bottom: 2px solid var(--border); }
.filter-group { margin-bottom: 24px; }
.filter-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--navy); margin-bottom: 10px; }
.filter-group select, .filter-group input {
  width: 100%; padding: 10px 14px;
  border: 2px solid var(--border); border-radius: 8px;
  font-family: 'Poppins', sans-serif; font-size: 0.9rem;
  transition: var(--transition);
}
.filter-group select:focus, .filter-group input:focus { outline: none; border-color: var(--navy); }
.filter-group .checkbox-group { display: flex; flex-direction: column; gap: 8px; }
.filter-group .checkbox-group label { font-weight: 400; color: var(--text-muted); display: flex; align-items: center; gap: 8px; cursor: pointer; }
.filter-group .checkbox-group input[type=checkbox] { width: auto; }
.filter-btn { width: 100%; margin-top: 8px; }
.properties-results h3 { font-size: 1rem; color: var(--text-muted); margin-bottom: 24px; }
.properties-results h3 span { color: var(--navy); font-weight: 600; }
.results-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* ===== ABOUT PAGE ===== */
.about-intro { padding: 80px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-hover); }
.about-img img { width: 100%; height: 400px; object-fit: cover; }
.about-text .section-tag { text-align: left; }
.about-text h2 { font-size: 2rem; font-weight: 700; color: var(--navy); margin-bottom: 16px; }
.about-text h2 span { color: var(--gold); }
.about-text p { color: var(--text-muted); line-height: 1.8; margin-bottom: 16px; }
.about-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 28px; }
.about-stat { background: var(--light-bg); border-radius: 10px; padding: 20px; text-align: center; }
.about-stat h3 { font-size: 1.8rem; font-weight: 800; color: var(--gold); }
.about-stat p { font-size: 0.85rem; color: var(--text-muted); }
.team-section { background: var(--light-bg); padding: 80px 0; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-align: center; transition: var(--transition); }
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.team-card img { width: 100%; height: 220px; object-fit: cover; }
.team-card-body { padding: 20px; }
.team-card h3 { font-size: 1rem; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.team-card p { font-size: 0.85rem; color: var(--gold); font-weight: 500; margin-bottom: 12px; }
.team-social { display: flex; justify-content: center; gap: 10px; }
.team-social a { width: 32px; height: 32px; border-radius: 50%; background: var(--light-bg); color: var(--navy); display: flex; align-items: center; justify-content: center; font-size: 0.8rem; transition: var(--transition); }
.team-social a:hover { background: var(--navy); color: var(--white); }

/* ===== CONTACT PAGE ===== */
.contact-section { padding: 80px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; }
.contact-info h2 { font-size: 1.8rem; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.contact-info > p { color: var(--text-muted); margin-bottom: 32px; line-height: 1.8; }
.contact-detail { display: flex; gap: 16px; margin-bottom: 24px; }
.contact-icon { width: 50px; height: 50px; border-radius: 50%; background: linear-gradient(135deg, var(--navy), #2a5f8f); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-icon i { color: var(--gold); font-size: 1.1rem; }
.contact-detail h4 { font-size: 0.95rem; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.contact-detail p { font-size: 0.9rem; color: var(--text-muted); }
.contact-form { background: var(--white); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }
.contact-form h3 { font-size: 1.4rem; font-weight: 600; color: var(--navy); margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px;
  border: 2px solid var(--border); border-radius: 8px;
  font-family: 'Poppins', sans-serif; font-size: 0.9rem;
  transition: var(--transition); resize: vertical;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--navy); }
.map-section { background: var(--light-bg); padding: 0 0 80px; }
.map-placeholder { background: var(--navy); border-radius: var(--radius); height: 350px; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 1.1rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .properties-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .properties-layout { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy-dark); padding: 20px; gap: 16px; }
  .nav-links.open { display: flex; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .properties-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .results-grid { grid-template-columns: 1fr; }
  .search-box { flex-direction: column; }
  .search-field { min-width: 100%; }
  .cta-buttons { flex-direction: column; align-items: center; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: 1fr; }
  .section-header h2 { font-size: 1.7rem; }
}
