/* ============================================
   RealtyCheck — Design System
   Clean & Minimal · Delhi-NCR Real Estate Advisory
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;600;700&display=swap');

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #0D1F3C;
  --navy-light: #1A3360;
  --slate:      #4A5568;
  --slate-light:#718096;
  --gold:       #B8934A;
  --gold-light: #D4AA6A;
  --bg:         #FFFFFF;
  --bg-alt:     #F7F8FA;
  --bg-warm:    #FDFBF7;
  --border:     #E2E8F0;
  --border-dark:#CBD5E0;
  --text-main:  #1A202C;
  --text-body:  #4A5568;
  --text-muted: #718096;
  --green:      #276749;
  --red:        #C53030;
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.05);
  --shadow-lg:  0 10px 30px rgba(0,0,0,0.10), 0 4px 8px rgba(0,0,0,0.06);
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --transition: 0.22s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-main);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
  color: var(--navy);
  line-height: 1.25;
}

h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; font-family: 'Inter', sans-serif; }
h5 { font-size: 0.9rem; font-weight: 600; font-family: 'Inter', sans-serif; letter-spacing: 0.08em; text-transform: uppercase; }

p { color: var(--text-body); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Layout ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section--alt { background: var(--bg-alt); }
.section--warm { background: var(--bg-warm); }

.section-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  font-family: 'Inter', sans-serif;
}

.section-header {
  max-width: 600px;
  margin-bottom: 52px;
}

.section-header h2 { margin-bottom: 12px; }
.section-header p { font-size: 1.05rem; color: var(--text-body); }

/* ── Navigation ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  max-width: 1200px;
  margin: 0 auto;
  height: 68px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav__logo-mark {
  width: 36px;
  height: 36px;
  background: var(--navy);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  flex-shrink: 0;
}

.nav__logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
}

.nav__logo-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav__links a {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-body);
  transition: all var(--transition);
}

.nav__links a:hover { background: var(--bg-alt); color: var(--navy); }
.nav__links a.active { color: var(--navy); background: var(--bg-alt); font-weight: 600; }

.nav__cta {
  background: var(--navy) !important;
  color: white !important;
  padding: 8px 18px !important;
}

.nav__cta:hover { background: var(--navy-light) !important; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1;
}

.btn--primary { background: var(--navy); color: white; }
.btn--primary:hover { background: var(--navy-light); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn--secondary { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn--secondary:hover { background: var(--navy); color: white; }

.btn--gold { background: var(--gold); color: white; }
.btn--gold:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn--sm { padding: 8px 16px; font-size: 0.82rem; }
.btn--lg { padding: 16px 32px; font-size: 1rem; }

/* ── Cards ── */
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
}

.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--border-dark); }

/* ── Property Cards ── */
.property-card { cursor: pointer; }

.property-card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, #E8EDF5 0%, #D4DCE8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-light);
  font-size: 0.8rem;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.property-card__image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--slate-light);
}

.property-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: white;
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

.property-card__badge--commercial { background: var(--navy); color: white; }

.property-card__content { padding: 20px; }

.property-card__price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
  font-family: 'Playfair Display', serif;
}

.property-card__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
  font-family: 'Inter', sans-serif;
}

.property-card__location {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 14px;
}

.property-card__stats {
  display: flex;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.property-card__stat {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.property-card__stat strong {
  display: block;
  font-size: 0.88rem;
  color: var(--text-main);
  font-weight: 600;
}

/* ── Grid Layouts ── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ── Stats Bar ── */
.stat-item { text-align: center; }
.stat-item__value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  font-family: 'Playfair Display', serif;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-item__label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Tag / Filter Badges ── */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tag--residential { background: #EBF4FF; color: #1A56DB; }
.tag--commercial   { background: #FFF3CD; color: #92400E; }
.tag--up   { background: #D1FAE5; color: #065F46; }
.tag--down { background: #FEE2E2; color: #991B1B; }

/* ── Filter Bar ── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
  align-items: center;
}

.filter-select {
  padding: 9px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--text-body);
  background: white;
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition);
  -webkit-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='%23718096' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 32px;
}

.filter-select:focus { border-color: var(--navy); }

.filter-btn {
  padding: 9px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--text-body);
  background: white;
  cursor: pointer;
  transition: all var(--transition);
  font-weight: 500;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}

/* ── Tab Toggle ── */
.tab-toggle {
  display: inline-flex;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  padding: 4px;
  gap: 2px;
  margin-bottom: 40px;
}

.tab-btn {
  padding: 9px 22px;
  border-radius: 6px;
  border: none;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}

.tab-btn.active {
  background: white;
  color: var(--navy);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

/* ── Micromarket Cards ── */
.market-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all var(--transition);
}

.market-card:hover { box-shadow: var(--shadow-md); border-color: var(--border-dark); }

.market-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.market-card__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  font-family: 'Inter', sans-serif;
  margin-bottom: 3px;
}

.market-card__sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.market-card__change {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
}

.market-card__change--up { background: #D1FAE5; color: #065F46; }
.market-card__change--down { background: #FEE2E2; color: #991B1B; }

.market-card__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.market-card__stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
  margin-bottom: 3px;
}

.market-card__stat-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

/* ── Hero ── */
.hero {
  background: linear-gradient(160deg, var(--bg-warm) 0%, var(--bg-alt) 100%);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -80px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(184,147,74,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(184,147,74,0.1);
  border: 1px solid rgba(184,147,74,0.25);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.hero h1 { margin-bottom: 20px; }

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-body);
  margin-bottom: 36px;
  max-width: 480px;
}

.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

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

.hero__card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
}

.hero__card-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 8px;
}

.hero__card-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  font-family: 'Playfair Display', serif;
  margin-bottom: 2px;
}

.hero__card-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero__card-trend {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

/* ── Footer ── */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 32px;
}

.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: white;
  margin-bottom: 10px;
}

.footer__brand-desc {
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  max-width: 280px;
}

.footer__col-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 18px;
}

.footer__links { list-style: none; }
.footer__links li { margin-bottom: 10px; }
.footer__links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer__links a:hover { color: white; }

.footer__divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 24px;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}

/* ── Page Header ── */
.page-header {
  background: linear-gradient(160deg, var(--bg-warm) 0%, var(--bg-alt) 100%);
  padding: 64px 0 52px;
  border-bottom: 1px solid var(--border);
}

.page-header h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 12px; }
.page-header p { font-size: 1.05rem; color: var(--text-body); max-width: 560px; }

/* ── Form ── */
.form-group { margin-bottom: 22px; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 7px;
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--text-main);
  background: white;
  transition: border-color var(--transition);
  outline: none;
}

.form-control:focus { border-color: var(--navy); }

textarea.form-control { resize: vertical; min-height: 120px; }

select.form-control {
  -webkit-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='%23718096' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ── Divider ── */
.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 40px 0;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.divider span { font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { display: none; }
  .nav__links { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 560px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}

/* ── Utility ── */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.w-full { width: 100%; }
.hidden { display: none !important; }
