/* ============================================
   CHENNAI PROPERTY INDEX 2026
   Palette: Copper & Slate — Luxury Real Estate
   Fonts: Cormorant Garamond + Manrope
   ============================================ */

:root {
  --copper:     #B87333;
  --copper-lt:  #D4A574;
  --slate-dark: #2F3640;
  --slate-mid:  #4A5568;
  --slate-lt:   #718096;
  --cream:      #F5F0EB;
  --cream-dark: #EDE5D8;
  --white:      #FAFAF8;
  --luxury-clr: #8B6914;
  --premium-clr:#2F3640;
  --mid-clr:    #5B7A6E;
  --aff-clr:    #6B5B45;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Manrope', system-ui, sans-serif;

  --radius: 2px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--slate-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(47, 54, 64, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(184, 115, 51, 0.3);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--cream);
  text-decoration: none;
}
.nav-logo {
  color: var(--copper);
  font-size: 1.3rem;
}
.nav-title {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cream);
}
.nav-title em {
  font-style: normal;
  color: var(--copper-lt);
}
.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 240, 235, 0.7);
  text-decoration: none;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--copper-lt); }

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--slate-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 2rem 0;
  overflow: hidden;
}
.hero-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(8rem, 20vw, 22rem);
  font-weight: 700;
  color: rgba(184, 115, 51, 0.06);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: -0.02em;
  user-select: none;
}
.hero-content {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  padding-bottom: 3rem;
  animation: fadeUp 0.9s ease both;
}
.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 1.2rem;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--cream);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}
.hero-title em {
  font-style: italic;
  color: var(--copper-lt);
}
.hero-sub {
  max-width: 560px;
  font-size: 1rem;
  font-weight: 300;
  color: rgba(245, 240, 235, 0.65);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
.hero-cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  background: var(--copper);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--copper);
  transition: all var(--transition);
}
.btn-primary:hover {
  background: var(--copper-lt);
  border-color: var(--copper-lt);
  transform: translateY(-2px);
}
.btn-ghost {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  background: transparent;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(245, 240, 235, 0.3);
  transition: all var(--transition);
}
.btn-ghost:hover {
  border-color: var(--copper-lt);
  color: var(--copper-lt);
}
.hero-stats {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0;
  border-top: 1px solid rgba(184, 115, 51, 0.25);
  padding: 2rem 0;
  flex-wrap: wrap;
  animation: fadeUp 1.1s ease both;
}
.stat-item {
  flex: 1;
  min-width: 140px;
  padding: 1rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--copper-lt);
  line-height: 1;
}
.stat-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 240, 235, 0.5);
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(184, 115, 51, 0.25);
  flex-shrink: 0;
}

/* ---- LEGEND ---- */
.legend-section {
  background: var(--cream-dark);
  padding: 5rem 0;
  border-bottom: 1px solid rgba(47, 54, 64, 0.1);
}
.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 2rem;
}
.legend-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5px;
  background: rgba(47, 54, 64, 0.12);
}
.legend-card {
  background: var(--cream);
  padding: 2rem 1.5rem;
  border-top: 3px solid transparent;
  transition: transform var(--transition);
}
.legend-card:hover { transform: translateY(-4px); }
.legend-card.luxury  { border-top-color: var(--luxury-clr); }
.legend-card.premium { border-top-color: var(--premium-clr); }
.legend-card.midrange{ border-top-color: var(--mid-clr); }
.legend-card.affordable{ border-top-color: var(--aff-clr); }
.legend-tier {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.legend-card.luxury   .legend-tier { color: var(--luxury-clr); }
.legend-card.premium  .legend-tier { color: var(--premium-clr); }
.legend-card.midrange .legend-tier { color: var(--mid-clr); }
.legend-card.affordable .legend-tier { color: var(--aff-clr); }
.legend-range {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--slate-dark);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
.legend-desc {
  font-size: 0.82rem;
  color: var(--slate-lt);
  line-height: 1.6;
}

/* ---- AREAS SECTION ---- */
.areas-section {
  padding: 6rem 0;
  background: var(--cream);
}
.areas-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--slate-dark);
  line-height: 1.1;
}
.filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 0.5rem 1.2rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: transparent;
  color: var(--slate-mid);
  border: 1px solid rgba(47, 54, 64, 0.2);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--slate-dark);
  color: var(--cream);
  border-color: var(--slate-dark);
}
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5px;
  background: rgba(47, 54, 64, 0.1);
}
.area-card {
  background: var(--white);
  padding: 2rem;
  position: relative;
  transition: all var(--transition);
  border-top: 2px solid transparent;
  animation: fadeUp 0.5s ease both;
}
.area-card:hover {
  background: var(--cream);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(47, 54, 64, 0.12);
  z-index: 2;
}
.area-card[data-class="Luxury"]:hover    { border-top-color: var(--luxury-clr); }
.area-card[data-class="Premium"]:hover   { border-top-color: var(--premium-clr); }
.area-card[data-class="Mid-Range"]:hover { border-top-color: var(--mid-clr); }
.area-card[data-class="Affordable"]:hover{ border-top-color: var(--aff-clr); }

.area-card.hidden {
  display: none;
}
.card-rank {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 300;
  color: rgba(47, 54, 64, 0.08);
  line-height: 1;
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  letter-spacing: -0.02em;
}
.card-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  margin-bottom: 0.8rem;
}
.card-badge.luxury    { background: rgba(139, 105, 20, 0.1);  color: var(--luxury-clr); }
.card-badge.premium   { background: rgba(47, 54, 64, 0.08);   color: var(--premium-clr); }
.card-badge.midrange  { background: rgba(91, 122, 110, 0.1);  color: var(--mid-clr); }
.card-badge.affordable{ background: rgba(107, 91, 69, 0.1);   color: var(--aff-clr); }

.card-name {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--slate-dark);
  line-height: 1.1;
  margin-bottom: 0.2rem;
}
.card-zone {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-lt);
  margin-bottom: 1.2rem;
}
.card-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.card-avg {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--copper);
  line-height: 1;
}
.card-avg span {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--slate-lt);
  margin-left: 0.2rem;
}
.card-range {
  font-size: 0.75rem;
  color: var(--slate-lt);
  font-weight: 400;
}
.card-bar-wrap {
  height: 3px;
  background: rgba(47, 54, 64, 0.08);
  margin-bottom: 0.8rem;
  overflow: hidden;
}
.card-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--copper), var(--copper-lt));
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-growth {
  font-size: 0.72rem;
  color: var(--slate-lt);
  margin-bottom: 0.8rem;
}
.card-growth strong {
  color: #2D7A4F;
  font-weight: 600;
}
.card-desc {
  font-size: 0.82rem;
  color: var(--slate-mid);
  line-height: 1.65;
  margin-bottom: 1rem;
}
.card-best {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--copper);
  padding-top: 0.8rem;
  border-top: 1px solid rgba(47, 54, 64, 0.08);
}

/* ---- INSIGHTS ---- */
.insights-section {
  background: var(--slate-dark);
  padding: 7rem 0;
}
.section-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 1rem;
}
.section-title-light {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--cream);
  line-height: 1.1;
  margin-bottom: 4rem;
}
.section-title-light em {
  font-style: italic;
  color: var(--copper-lt);
}
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: rgba(184, 115, 51, 0.15);
}
.insight-card {
  background: rgba(47, 54, 64, 0.6);
  padding: 2.5rem 2rem;
  border-top: 2px solid rgba(184, 115, 51, 0.3);
  transition: background var(--transition);
}
.insight-card:hover {
  background: rgba(184, 115, 51, 0.08);
}
.insight-icon {
  font-size: 1.5rem;
  color: var(--copper);
  margin-bottom: 1.2rem;
}
.insight-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 0.8rem;
}
.insight-card p {
  font-size: 0.85rem;
  color: rgba(245, 240, 235, 0.6);
  line-height: 1.75;
}

/* ---- PRICE BAR SECTION ---- */
.pricebar-section {
  background: var(--cream-dark);
  padding: 6rem 0;
}
.pricebar-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 2rem;
}
.pricebar-row {
  display: grid;
  grid-template-columns: 180px 1fr 100px;
  align-items: center;
  gap: 1rem;
  animation: fadeUp 0.4s ease both;
}
.pricebar-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--slate-dark);
  text-align: right;
}
.pricebar-track {
  height: 8px;
  background: rgba(47, 54, 64, 0.08);
  position: relative;
  overflow: hidden;
}
.pricebar-fill {
  height: 100%;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}
.pricebar-fill.luxury     { background: linear-gradient(90deg, #8B6914, #C9A84C); }
.pricebar-fill.premium    { background: linear-gradient(90deg, #2F3640, #718096); }
.pricebar-fill.midrange   { background: linear-gradient(90deg, #5B7A6E, #8FB5A8); }
.pricebar-fill.affordable { background: linear-gradient(90deg, #6B5B45, #A08060); }
.pricebar-val {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--copper);
}

/* ---- FOOTER ---- */
.footer {
  background: #1A1F26;
  padding: 3rem 0;
  border-top: 1px solid rgba(184, 115, 51, 0.2);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--cream);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.footer-note {
  font-size: 0.72rem;
  color: rgba(245, 240, 235, 0.35);
  line-height: 1.7;
  max-width: 700px;
}

/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .legend-grid { grid-template-columns: repeat(2, 1fr); }
  .insights-grid { grid-template-columns: repeat(2, 1fr); }
  .pricebar-row { grid-template-columns: 140px 1fr 90px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero { padding: 100px 1.5rem 0; }
  .hero-stats { flex-direction: column; gap: 0; }
  .stat-divider { width: 40px; height: 1px; }
  .stat-item { padding: 0.8rem 1rem; }
  .legend-grid { grid-template-columns: 1fr; }
  .insights-grid { grid-template-columns: 1fr; }
  .areas-header { flex-direction: column; align-items: flex-start; }
  .pricebar-row { grid-template-columns: 110px 1fr 80px; }
  .pricebar-name { font-size: 0.72rem; }
  .container { padding: 0 1.2rem; }
}
@media (max-width: 480px) {
  .areas-grid { grid-template-columns: 1fr; }
  .pricebar-row { grid-template-columns: 90px 1fr 70px; }
}