/* ===== Ground Realtor — Design System ===== */
:root {
  --navy: #0f2340;
  --navy-dark: #091730;
  --gold: #c8a24d;
  --gold-light: #e6c878;
  --bg: #f7f7f5;
  --bg-alt: #ffffff;
  --text: #1c1f26;
  --text-muted: #5a6270;
  --border: #e4e4e0;
  --success: #2e7d4f;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(15, 35, 64, 0.08);
  --shadow-hover: 0 10px 28px rgba(15, 35, 64, 0.14);
  --max-width: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ===== Header / Nav ===== */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--navy); box-shadow: 0 2px 10px rgba(0,0,0,0.15); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; max-width: var(--max-width); margin: 0 auto; }
.logo { font-size: 22px; font-weight: 700; color: #fff; letter-spacing: 0.5px; }
.logo span { color: var(--gold-light); }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { color: #dfe4ec; font-size: 15px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--gold-light); }
.nav-cta { background: var(--gold); color: var(--navy-dark) !important; padding: 9px 18px; border-radius: 6px; font-weight: 700; }
.nav-cta:hover { background: var(--gold-light); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); flex-direction: column; gap: 0; max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
  .nav-links.open { max-height: 400px; }
  .nav-links a { padding: 14px 24px; width: 100%; border-top: 1px solid rgba(255,255,255,0.08); display: block; }
  .nav-cta { margin: 14px 24px; text-align: center; }
}

/* ===== Hero ===== */
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%); color: #fff; padding: 90px 24px 100px; text-align: center; }
.hero h1 { font-size: clamp(30px, 5vw, 48px); font-weight: 800; max-width: 780px; margin: 0 auto 18px; line-height: 1.25; }
.hero h1 span { color: var(--gold-light); }
.hero p { color: #c9d2e0; font-size: 18px; max-width: 600px; margin: 0 auto 34px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn { display: inline-block; padding: 13px 28px; border-radius: 6px; font-weight: 700; font-size: 15px; cursor: pointer; border: 2px solid transparent; transition: all 0.2s; }
.btn-primary { background: var(--gold); color: var(--navy-dark); }
.btn-primary:hover { background: var(--gold-light); }
.btn-outline { border-color: rgba(255,255,255,0.5); color: #fff; }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

/* ===== Sections ===== */
.section { padding: 72px 24px; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 46px; }
.section-head .eyebrow { color: var(--gold); font-weight: 700; letter-spacing: 1.5px; font-size: 13px; text-transform: uppercase; }
.section-head h2 { font-size: clamp(26px, 3.5vw, 34px); margin: 10px 0 12px; color: var(--navy); }
.section-head p { color: var(--text-muted); font-size: 16px; }

/* ===== Cities ===== */
.city-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; max-width: var(--max-width); margin: 0 auto; }
.city-card { background: var(--bg-alt); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.25s, box-shadow 0.25s; }
.city-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.city-banner { height: 160px; display: flex; align-items: flex-end; padding: 20px; color: #fff; font-size: 24px; font-weight: 800; }
.city-banner.gurgaon { background: linear-gradient(135deg, #1f3a63, #0f2340); }
.city-banner.bangalore { background: linear-gradient(135deg, #2c5240, #123324); }
.city-body { padding: 20px; }
.city-body p { color: var(--text-muted); font-size: 14px; margin-bottom: 14px; }
.city-body a { color: var(--navy); font-weight: 700; font-size: 14px; }
.city-body a:hover { color: var(--gold); }

/* ===== Projects Grid ===== */
.filter-bar { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.filter-btn { padding: 9px 20px; border-radius: 30px; border: 1.5px solid var(--border); background: var(--bg-alt); font-weight: 600; font-size: 14px; cursor: pointer; color: var(--text-muted); transition: all 0.2s; }
.filter-btn:hover { border-color: var(--gold); color: var(--navy); }
.filter-btn.active { background: var(--navy); border-color: var(--navy); color: #fff; }

.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; max-width: var(--max-width); margin: 0 auto; }
.project-card { background: var(--bg-alt); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.25s, box-shadow 0.25s; }
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.project-banner { height: 150px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 15px; text-align: center; padding: 16px; }
.project-body { padding: 20px; }
.project-tag { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 3px 10px; border-radius: 20px; margin-bottom: 10px; }
.tag-ready { background: #e4f3e9; color: var(--success); }
.tag-progress { background: #fdf1de; color: #b5711b; }
.project-body h3 { font-size: 18px; color: var(--navy); margin-bottom: 6px; }
.project-loc { color: var(--text-muted); font-size: 13px; margin-bottom: 12px; }
.project-meta { display: flex; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 12px; font-size: 13px; }
.project-meta strong { color: var(--navy); display: block; font-size: 15px; }
.project-meta span { color: var(--text-muted); }
.project-body .btn { width: 100%; text-align: center; margin-top: 14px; }

/* Project detail page */
.project-detail { max-width: 860px; margin: 0 auto; padding: 60px 24px 90px; }
.project-detail .breadcrumb { font-size: 13px; color: var(--text-muted); margin-bottom: 18px; }
.project-detail .breadcrumb a { color: var(--navy); font-weight: 600; }
.project-detail h1 { font-size: clamp(26px, 4vw, 36px); color: var(--navy); margin-bottom: 12px; }
.project-detail .banner { height: 220px; border-radius: var(--radius); margin: 24px 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; font-weight: 700; }
.project-detail .specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; margin: 30px 0; }
.project-detail .spec { background: var(--bg-alt); border-radius: 8px; padding: 18px; box-shadow: var(--shadow); }
.project-detail .spec .label { font-size: 12px; text-transform: uppercase; color: var(--text-muted); font-weight: 700; margin-bottom: 6px; }
.project-detail .spec .val { font-size: 17px; color: var(--navy); font-weight: 700; }
.project-detail p.desc { font-size: 16px; margin: 20px 0; }

/* ===== Articles ===== */
.article-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; max-width: var(--max-width); margin: 0 auto; }
.article-card { background: var(--bg-alt); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.25s, box-shadow 0.25s; }
.article-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.article-banner { height: 120px; background: linear-gradient(135deg, var(--navy), #24406c); }
.article-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.article-cat { color: var(--gold); font-size: 12px; font-weight: 700; text-transform: uppercase; margin-bottom: 8px; }
.article-body h3 { font-size: 18px; color: var(--navy); margin-bottom: 10px; }
.article-body p { color: var(--text-muted); font-size: 14px; margin-bottom: 16px; flex: 1; }
.article-body .read-more { font-weight: 700; font-size: 14px; color: var(--navy); }
.article-card:hover .read-more { color: var(--gold); }

/* Article detail page */
.article-detail { max-width: 760px; margin: 0 auto; padding: 60px 24px 90px; }
.article-detail .breadcrumb { font-size: 13px; color: var(--text-muted); margin-bottom: 18px; }
.article-detail .breadcrumb a { color: var(--navy); font-weight: 600; }
.article-detail h1 { font-size: clamp(26px, 4vw, 36px); color: var(--navy); margin-bottom: 12px; }
.article-detail .meta { color: var(--text-muted); font-size: 14px; margin-bottom: 34px; }
.article-detail h2 { color: var(--navy); font-size: 21px; margin: 34px 0 12px; }
.article-detail p { color: var(--text); font-size: 16px; margin-bottom: 16px; }
.article-detail ul { margin: 0 0 16px 20px; list-style: disc; }
.article-detail li { margin-bottom: 8px; }
.article-detail a { color: var(--navy); font-weight: 700; text-decoration: underline; }
.article-detail .callout { background: #f4ede1; border-left: 4px solid var(--gold); padding: 16px 20px; border-radius: 6px; margin: 24px 0; font-size: 15px; }
.related-articles { margin-top: 50px; border-top: 1px solid var(--border); padding-top: 30px; }
.related-articles h3 { color: var(--navy); margin-bottom: 18px; }
.related-articles ul { list-style: none; margin: 0; }
.related-articles li { margin-bottom: 10px; }
.related-articles a { font-weight: 600; color: var(--navy); }
.related-articles a:hover { color: var(--gold); }

/* ===== EMI Calculator ===== */
.calc-wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; max-width: var(--max-width); margin: 0 auto; align-items: start; }
@media (max-width: 860px) { .calc-wrap { grid-template-columns: 1fr; } }

.calc-card { background: var(--bg-alt); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; }
.field { margin-bottom: 26px; }
.field-label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-weight: 600; font-size: 14px; color: var(--navy); }
.field-label .value { background: var(--navy); color: #fff; padding: 4px 12px; border-radius: 6px; font-weight: 700; font-size: 13px; }
input[type="range"] { width: 100%; accent-color: var(--gold); height: 6px; }
.range-minmax { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); margin-top: 6px; }

.calc-result { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 32px; position: sticky; top: 90px; }
.calc-result .emi-figure { font-size: 38px; font-weight: 800; color: var(--gold-light); margin: 6px 0 24px; }
.calc-result .emi-label { color: #c9d2e0; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }
.breakup-row { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid rgba(255,255,255,0.12); font-size: 14px; }
.breakup-row strong { color: #fff; }
.breakup-row span:last-child { font-weight: 700; }

.bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; margin: 20px 0; background: rgba(255,255,255,0.1); }
.bar-principal { background: var(--gold); }
.bar-interest { background: #5b7aa8; }
.bar-legend { display: flex; gap: 20px; font-size: 12px; color: #c9d2e0; }
.bar-legend span { display: flex; align-items: center; gap: 6px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot-principal { background: var(--gold); }
.dot-interest { background: #5b7aa8; }

/* ===== CTA Band ===== */
.cta-band { background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: var(--navy-dark); text-align: center; padding: 60px 24px; }
.cta-band h2 { font-size: 28px; margin-bottom: 12px; }
.cta-band p { margin-bottom: 26px; font-size: 16px; }
.cta-band .btn-primary { background: var(--navy); color: #fff; }
.cta-band .btn-primary:hover { background: var(--navy-dark); }

/* ===== Footer ===== */
.site-footer { background: var(--navy-dark); color: #b9c2d1; padding: 56px 24px 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 32px; max-width: var(--max-width); margin: 0 auto 36px; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-grid ul li { margin-bottom: 10px; font-size: 14px; }
.footer-grid ul li a:hover { color: var(--gold-light); }
.footer-about p { font-size: 14px; line-height: 1.7; margin-bottom: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; font-size: 13px; max-width: var(--max-width); margin: 0 auto; }

/* Page hero (secondary pages) */
.page-hero { background: linear-gradient(135deg, var(--navy), var(--navy-dark)); color: #fff; padding: 56px 24px; text-align: center; }
.page-hero h1 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 10px; }
.page-hero p { color: #c9d2e0; }

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