/* =====================================================
   Real Estate Website - Frontend Stylesheet
   ===================================================== */
:root {
  --navy: #0f2138;
  --navy-light: #16304f;
  --gold: #b8925a;
  --gold-light: #d8b688;
  --cream: #f7f4ef;
  --white: #ffffff;
  --text-dark: #1c2733;
  --text-muted: #667385;
  --border: #e6e2d9;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(15, 33, 56, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 33, 56, 0.15);
  --font-body: 'Poppins', sans-serif;
  --font-display: 'Playfair Display', serif;
}

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

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

h1, h2, h3, .font-display { font-family: var(--font-display); }

.section { padding: 90px 0; }
.section-alt { background: var(--cream); }

.section-tag {
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 13px;
  display: block;
  margin-bottom: 12px;
  
}
.contact-tag {
  color: #1e5fd9; /* or any dark blue you prefer */
}
.section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 640px;
}

.section-header { margin-bottom: 50px; }
.section-header.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-header.center .section-desc { margin-left: auto; margin-right: auto; }

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: all .25s ease;
  text-align: center;
}
.btn-primary { background: var(--gold); color: var(--white); }
.btn-primary:hover { background: var(--navy); }
.btn-outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.6); }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--gold); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 18px; font-size: 13px; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 500;
  background: rgba(15,33,56,0.97);
  backdrop-filter: blur(6px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 84px;
}
.brand-logo { height: 46px; }
.brand-text { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--white); }
.brand-text.light { color: var(--white); font-size: 22px; display:block; margin-bottom: 14px; }

.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a { color: #dfe4ea; font-weight: 500; font-size: 15px; transition: color .2s; }
.main-nav a:hover { color: var(--gold-light); }
.main-nav .nav-cta {
  background: var(--gold); color: var(--white) !important; padding: 10px 22px; border-radius: 6px;
}
.main-nav .nav-cta:hover { background: var(--gold-light); }

.header-phone { color: var(--white); font-weight: 600; font-size: 15px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.nav-toggle span { width: 26px; height: 2px; background: var(--white); }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  min-height: 620px;
  display: flex; align-items: center;
  background: linear-gradient(180deg, rgba(15,33,56,.75), rgba(15,33,56,.55)), var(--navy);
  background-size: cover; background-position: center;
  color: var(--white);
}
.hero-content { max-width: 640px; }
.hero .section-tag { color: var(--gold-light); }
.hero h1 {
  font-size: 52px; font-weight: 700; line-height: 1.15; margin-bottom: 20px;
}
.hero p { font-size: 18px; color: #dfe4ea; margin-bottom: 34px; max-width: 520px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------------- Partners strip ---------------- */
.partners-strip { padding: 60px 0; background: var(--cream); overflow: hidden; }
.partners-track {
  display: flex; gap: 60px; align-items: center;
  animation: scrollLeft 30s linear infinite;
  width: max-content;
}
.partners-track img { height: 42px; opacity: .65; filter: grayscale(100%); }
@keyframes scrollLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------------- Property cards ---------------- */
.property-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
}
.property-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease;
  border: 1px solid var(--border);
}
.property-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.property-media { position: relative; height: 230px; overflow: hidden; }
.property-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.property-card:hover .property-media img { transform: scale(1.08); }
.property-badge {
  position: absolute; top: 16px; left: 16px;
  background: var(--gold); color: var(--white); font-size: 12px; font-weight: 600;
  padding: 5px 12px; border-radius: 4px; text-transform: uppercase; letter-spacing: .5px;
}
.property-type-badge {
  position: absolute; top: 16px; right: 16px;
  background: rgba(15,33,56,.85); color: var(--white); font-size: 12px; font-weight: 600;
  padding: 5px 12px; border-radius: 4px; text-transform: capitalize;
}
.property-body { padding: 22px; }
.property-price { color: var(--gold); font-weight: 700; font-size: 20px; margin-bottom: 8px; }
.property-title { font-size: 18px; font-weight: 600; color: var(--navy); margin-bottom: 6px; line-height: 1.35; }
.property-location { color: var(--text-muted); font-size: 14px; margin-bottom: 16px; }
.property-stats {
  display: flex; gap: 18px; font-size: 13px; color: var(--text-muted);
  border-top: 1px solid var(--border); padding-top: 14px; margin-bottom: 16px;
}
.property-stats span { display: flex; align-items: center; gap: 5px; }

/* ---------------- Featured project ---------------- */
.featured-project {
  background: var(--navy); color: var(--white); border-radius: 16px; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr;
}
.fp-content { padding: 60px; }
.fp-content h3 { font-size: 30px; margin-bottom: 18px; }
.fp-content p { color: #cdd5e0; margin-bottom: 28px; }
.fp-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 32px; }
.fp-facts .fact-label { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--gold-light); margin-bottom: 4px; }
.fp-facts .fact-value { font-weight: 600; }
.fp-media { position: relative; }
.fp-media img { width: 100%; height: 100%; object-fit: cover; min-height: 340px; }

/* ---------------- About / leadership ---------------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.about-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-media img { width: 100%; height: 480px; object-fit: cover; }
.about-text p { color: var(--text-muted); margin-bottom: 18px; white-space: pre-line; }
.founder-name { font-weight: 700; color: var(--navy); margin-top: 20px; }
.founder-title { color: var(--gold); font-size: 14px; }

/* ---------------- Services ---------------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px 28px; transition: all .25s ease;
}
.service-card:hover { border-color: var(--gold); box-shadow: var(--shadow); transform: translateY(-4px); }
.service-icon {
  width: 58px; height: 58px; border-radius: 12px; background: var(--cream);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.service-icon img { width: 30px; height: 30px; object-fit: contain; }
.service-card h3 { font-size: 19px; color: var(--navy); margin-bottom: 10px; }
.service-card p { color: var(--text-muted); font-size: 14.5px; }

/* ---------------- Team ---------------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.team-card { text-align: center; }
.team-photo {
  width: 100%; aspect-ratio: 1/1; border-radius: var(--radius); overflow: hidden; margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-size: 17px; color: var(--navy); margin-bottom: 4px; }
.team-card .role { color: var(--gold); font-size: 13px; font-weight: 600; margin-bottom: 10px; text-transform: uppercase; letter-spacing: .5px; }
.team-card p.bio { color: var(--text-muted); font-size: 13.5px; }

/* ---------------- Testimonials ---------------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.testimonial-card {
  background: var(--white); border-radius: var(--radius); padding: 32px;
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.testimonial-quote { color: var(--text-muted); font-style: italic; margin-bottom: 22px; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-author img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.testimonial-author .name { font-weight: 600; color: var(--navy); font-size: 14.5px; }
.testimonial-author .role { font-size: 12.5px; color: var(--text-muted); }

/* ---------------- Why choose us ---------------- */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; }
.why-item { display: flex; gap: 16px; }
.why-num {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--navy);
  color: var(--gold-light); display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.why-item h3 { font-size: 17px; color: var(--navy); margin-bottom: 6px; }
.why-item p { color: var(--text-muted); font-size: 14px; }

/* ---------------- Stats + Contact ---------------- */
.contact-section {
  background: var(--navy); color: var(--white);
}
.stats-row { display: flex; justify-content: center; gap: 70px; margin-bottom: 60px; flex-wrap: wrap; text-align: center; }
.stat-value { font-size: 42px; font-weight: 700; color: var(--gold-light); font-family: var(--font-display); }
.stat-label { color: #b6c0cd; font-size: 14px; margin-top: 6px; }

.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; align-items: start; }
.contact-info h2 { font-size: 30px; margin-bottom: 16px; }
.contact-info p { color: #cdd5e0; margin-bottom: 28px; }
.contact-info-item { margin-bottom: 18px; }
.contact-info-item .label { font-size: 12px; text-transform: uppercase; color: var(--gold-light); letter-spacing: 1px; }
.contact-info-item .value { font-size: 15px; margin-top: 3px; }

.contact-form-box {
  background: var(--white); color: var(--text-dark); border-radius: 14px; padding: 36px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--navy); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 6px;
  font-family: var(--font-body); font-size: 14.5px; transition: border-color .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--gold);
}
.form-note { font-size: 12.5px; color: var(--text-muted); margin-top: 10px; text-align: center; }

/* ---------------- Gallery ---------------- */
.gallery-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.gallery-grid img { width: 100%; height: 140px; object-fit: cover; border-radius: 8px; }

/* ---------------- Footer ---------------- */
.site-footer { background: #0a1727; color: #b6c0cd; padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; }
.footer-col h4 { color: var(--white); margin-bottom: 18px; font-size: 15px; }
.footer-col p { font-size: 14px; margin-bottom: 10px; line-height: 1.7; }
.footer-col a { display: block; font-size: 14px; margin-bottom: 12px; color: #b6c0cd; }
.footer-col a:hover { color: var(--gold-light); }
.footer-social { display: flex; gap: 14px; margin-top: 16px; }
.footer-social a { color: var(--gold-light); font-size: 13px; margin: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; text-align: center; font-size: 13px;
}

.whatsapp-float {
  position: fixed; bottom: 26px; right: 26px; width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: var(--white); display: flex; align-items: center; justify-content: center;
  font-size: 26px; box-shadow: 0 8px 20px rgba(0,0,0,.25); z-index: 400;
}

.flash-message { padding: 14px 0; text-align: center; font-weight: 600; }
.flash-success { background: #e5f6ec; color: #16794b; }
.flash-error { background: #fdeaea; color: #b3261e; }

/* ---------------- Page hero (for properties.php etc) ---------------- */
.page-hero {
  background: var(--navy); color: var(--white); padding: 70px 0 60px; text-align: center;
}
.page-hero h1 { font-size: 38px; margin-bottom: 10px; }
.page-hero p { color: #cdd5e0; }

.filter-bar {
  background: var(--white); box-shadow: var(--shadow); border-radius: 12px; padding: 22px;
  display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 14px; margin-top: -40px; position: relative; z-index: 20;
}
.filter-bar select, .filter-bar input { padding: 12px; border-radius: 6px; border: 1.5px solid var(--border); font-family: var(--font-body); }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 50px; }
.pagination a, .pagination span {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border-radius: 6px; border: 1px solid var(--border); color: var(--navy); font-weight: 600; font-size: 14px;
}
.pagination a:hover { background: var(--navy); color: var(--white); }
.pagination .active { background: var(--gold); color: var(--white); border-color: var(--gold); }

.empty-state { text-align: center; padding: 80px 0; color: var(--text-muted); }

/* ---------------- Property detail page ---------------- */
.detail-gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; border-radius: 14px; overflow: hidden; margin-bottom: 40px; }
.detail-gallery-main img { width: 100%; height: 480px; object-fit: cover; }
.detail-gallery-side { display: grid; grid-template-rows: 1fr 1fr; gap: 12px; }
.detail-gallery-side img { width: 100%; height: 234px; object-fit: cover; }
.detail-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 50px; }
.detail-main h1 { font-size: 30px; color: var(--navy); margin-bottom: 8px; }
.detail-location { color: var(--text-muted); margin-bottom: 24px; }
.detail-price { font-size: 28px; color: var(--gold); font-weight: 700; margin-bottom: 30px; }
.detail-facts { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 34px; }
.fact-box { background: var(--cream); border-radius: 10px; padding: 18px; text-align: center; }
.fact-box .n { font-size: 20px; font-weight: 700; color: var(--navy); }
.fact-box .l { font-size: 12.5px; color: var(--text-muted); margin-top: 4px; text-transform: uppercase; letter-spacing: .5px; }
.detail-desc { color: var(--text-muted); line-height: 1.85; white-space: pre-line; }
.sidebar-card {
  background: var(--cream); border-radius: 14px; padding: 30px; position: sticky; top: 110px;
}
.sidebar-card h3 { color: var(--navy); margin-bottom: 18px; }

/* ---------------- Responsive ---------------- */
@media (max-width: 991px) {
  .property-grid, .services-grid, .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid, .detail-layout, .why-grid { grid-template-columns: 1fr; }
  .featured-project { grid-template-columns: 1fr; }
  .filter-bar { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
  .main-nav {
    position: fixed; top: 84px; left: 0; right: 0; background: var(--navy);
    flex-direction: column; padding: 20px; gap: 4px; transform: translateY(-150%);
    transition: transform .3s ease; z-index: 400;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { width: 100%; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-toggle { display: flex; }
  .header-phone { display: none; }
  .hero h1 { font-size: 34px; }
  .property-grid, .services-grid, .testimonial-grid, .team-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .section-title { font-size: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .filter-bar { grid-template-columns: 1fr; margin-top: 20px; }
  .fp-content { padding: 34px 24px; }
  .detail-gallery { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { gap: 30px; }
}
