/* ==========================================================
   Mahadev Estates — Design Tokens
   Palette: Deep Navy + Brass Gold + Ivory + Ink
   Display: 'Montserrat' | Body: 'Manrope'
   ========================================================== */
:root {
  --navy-950: #0a1626;
  --navy-900: #0e2038;
  --navy-800: #16304f;
  --gold-500: #b78a3f;
  --gold-400: #cba25c;
  --gold-100: #f3e6c9;
  --blue-500: #2563eb;
  --ivory: #f8f6f1;
  --ivory-dim: #efece3;
  --ink: #171b1f;
  --slate: #5b6470;
  --line: rgba(23, 27, 31, 0.1);
  --line-dark: rgba(248, 246, 241, 0.14);
  --radius: 4px;
  --shadow: 0 12px 32px rgba(10, 22, 38, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Manrope', 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display {
  font-family: 'Montserrat', 'DM Sans', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.3px;
}
h1 { font-size: clamp(2.3rem, 4.6vw, 3.3rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; color: var(--slate); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1360px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 640px) { .container { padding: 0 20px; } }
.eyebrow {
  display: inline-block;
  font-family: 'Manrope', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-500);
  font-weight: 700;
  margin-bottom: 14px;
}
.section { padding: 88px 0; }
.section-alt { background: var(--ivory-dim); }
.section-dark {
  background: linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-800) 100%);
  color: var(--ivory);
}
.section-dark p { color: rgba(248,246,241,0.72); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--ivory); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 3px;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold-500); color: var(--navy-950); }
.btn-gold:hover { background: var(--gold-400); box-shadow: 0 8px 20px rgba(183,138,63,0.3); }
.btn-outline { background: transparent; border-color: var(--line-dark); color: inherit; }
.btn-outline:hover { border-color: var(--gold-400); color: var(--gold-400); }
.btn-outline.on-light { border-color: var(--line); }
.btn-outline.on-light:hover { border-color: var(--gold-500); color: var(--gold-500); }
.btn-whatsapp { background: #1f8a56; color: #fff; }
.btn-whatsapp:hover { background: #23a065; }
.btn-nav-call { background: #1f8a56; color: #fff; border-radius: 999px; padding: 11px 24px; }
.btn-nav-call:hover { background: #23a065; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line-dark);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 10px 40px; max-width: 1360px; margin: 0 auto; }
@media (max-width: 640px) { .nav-wrap { padding: 10px 20px; } }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 100px; width: auto; max-width: 150px; object-fit: contain; display: block; }
.nav-links { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: #14161a; font-size: 1rem; font-weight: 600; letter-spacing: 0.2px; transition: color 0.15s; }
.nav-links a:hover, .nav-links a.active { color: var(--blue-500); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: none; color: var(--ivory); font-size: 1.6rem; cursor: pointer; }

@media (max-width: 900px) {
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; background: var(--navy-950); flex-direction: column; padding: 20px 24px; gap: 16px; display: none; border-bottom: 1px solid var(--line-dark); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-cta .btn span.txt { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 120px 0 100px;
  overflow: hidden;
  background: url('../img/real_estate.png') center/cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(10,22,38,0.96) 0%, rgba(10,22,38,0.9) 40%, rgba(10,22,38,0.55) 100%),
    repeating-linear-gradient(115deg, rgba(203,162,92,0.05) 0 2px, transparent 2px 90px);
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; max-width: 780px; }
.hero-stats { display: flex; gap: 40px; margin-top: 48px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-family: 'Montserrat', sans-serif; font-size: 2rem; color: var(--gold-400); }
.hero-stats div span { font-size: 0.8rem; letter-spacing: 1px; text-transform: uppercase; color: rgba(248,246,241,0.65); }

/* ---------- Category / Property cards ---------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-img { height: 210px; background-size: cover; background-position: center; position: relative; }
.card-body { padding: 24px; }
.card-tag { font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-500); font-weight: 700; }
.card-body h3 { margin: 8px 0 10px; }
.card-list { list-style: none; padding: 0; margin: 14px 0 0; font-size: 0.88rem; color: var(--slate); }
.card-list li { padding-left: 20px; position: relative; margin-bottom: 6px; }
.card-list li::before { content: "—"; position: absolute; left: 0; color: var(--gold-500); }

/* ---------- Stats band ---------- */
.stats-band { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); padding: 40px 0; margin-top: 40px; }
.stats-band div { text-align: center; flex: 1; min-width: 140px; }
.stats-band strong { font-family: 'Montserrat', sans-serif; font-size: 2.4rem; color: var(--gold-400); display: block; }
.stats-band span { font-size: 0.78rem; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(248,246,241,0.6); }

/* ---------- Testimonials ---------- */
.quote-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.quote-card .stars { color: var(--gold-500); letter-spacing: 3px; margin-bottom: 10px; }
.quote-person { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.quote-person .avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--navy-800); color: var(--gold-400); display: flex; align-items: center; justify-content: center; font-family: 'Montserrat', sans-serif; font-weight: 700; }
.quote-person strong { display: block; font-size: 0.92rem; }
.quote-person span { font-size: 0.78rem; color: var(--slate); }

/* ---------- Contact "sales desk" block ---------- */
.sales-desk {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 36px;
  box-shadow: var(--shadow);
}
.sales-desk .agent { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; }
.sales-desk .agent .avatar {
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(160deg, var(--navy-900), var(--navy-800));
  color: var(--gold-400); display: flex; align-items: center; justify-content: center;
  font-family: 'Montserrat', sans-serif; font-size: 1.4rem; font-weight: 700;
}
.sales-desk .agent small { color: var(--slate); }
.contact-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.contact-row:first-of-type { border-top: none; }
.contact-row .ic { width: 36px; height: 36px; border-radius: 50%; background: var(--ivory-dim); display: flex; align-items: center; justify-content: center; color: var(--gold-500); flex-shrink: 0; }
.contact-row .ic svg { width: 17px; height: 17px; }

form.enquiry { display: grid; gap: 14px; }
form.enquiry input, form.enquiry textarea, form.enquiry select {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: inherit; font-size: 0.94rem; background: var(--ivory-dim);
}
form.enquiry label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; color: var(--slate); margin-bottom: 4px; display: block; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .row2 { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(248,246,241,0.75); padding: 64px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 40px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { color: var(--ivory); font-family: 'Manrope', sans-serif; font-size: 0.85rem; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 0.9rem; }
.footer-grid a:hover { color: var(--gold-400); }
.footer-bottom { border-top: 1px solid var(--line-dark); margin-top: 48px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.82rem; }

/* ---------- Floating CTA (Call + WhatsApp) ---------- */
.floating-cta { position: fixed; right: 24px; bottom: 26px; z-index: 200; display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.fab {
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(10,22,38,0.28);
  color: #fff; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.fab svg { width: 18px; height: 18px; }
.fab:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(10,22,38,0.34); }
.fab-whatsapp { background: #1f8a56; }
.fab-call { background: var(--navy-950); border: 1px solid var(--gold-500); color: var(--gold-400); }

/* Sticky mobile bottom bar */
.mobile-bar { display: none; }
@media (max-width: 640px) {
  .mobile-bar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 199;
    background: var(--navy-950); border-top: 1px solid var(--line-dark);
  }
  .mobile-bar a {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 0; font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.6px;
  }
  .mobile-bar a svg { width: 14px; height: 14px; }
  .mobile-bar a.call { color: var(--gold-400); border-right: 1px solid var(--line-dark); }
  .mobile-bar a.wa { color: #3fb37f; }
  .floating-cta { bottom: 70px; }
  body { padding-bottom: 54px; }
}

/* ---------- Misc ---------- */
.page-hero { padding: 70px 0 60px; }
.divider-gold { width: 60px; height: 2px; background: var(--gold-500); margin: 18px 0 26px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
