/* ============================================
   RERAGuide.in — Editorial / Warm Authority
   ============================================ */

:root {
  --navy: #1a1a2e;
  --navy-deep: #0f0f1e;
  --navy-mid: #16213e;
  --red: #e94560;
  --red-dark: #c73a52;
  --saffron: #d4a853;
  --saffron-light: #f0d48a;
  --terracotta: #c0755a;
  --cream: #faf7f2;
  --warm-white: #fefcf9;
  --warm-gray: #f3efe9;
  --text: #1a1a2e;
  --text-mid: #4a4a5e;
  --text-light: #8a8a9e;
  --border: #e8e4de;
  --radius: 10px;
  --radius-lg: 16px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-w: 1180px;
}

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

html { scroll-behavior: smooth; }

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

a { color: var(--navy-mid); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--red); }

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-deep);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(15,15,30,0.98);
}

.site-header nav {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #fff;
}

.logo-icon { color: rgba(255,255,255,0.7); display: flex; }
.logo-text { font-family: var(--font-body); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.5px; color: #fff; }
.logo-text em { font-style: normal; color: var(--red); }
.logo-text small { font-weight: 400; color: rgba(255,255,255,0.5); font-size: 0.85em; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  padding: 0.4rem;
}

.nav-links { display: flex; gap: 1.5rem; }
.nav-links a { color: rgba(255,255,255,0.55); font-size: 0.88rem; font-weight: 500; letter-spacing: 0.2px; transition: color 0.2s; }
.nav-links a:hover { color: #fff; }
.nav-links .lang-switch {
  color: var(--saffron);
  border: 1px solid rgba(212,168,83,0.3);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-size: 0.82rem;
}
.nav-links .lang-switch:hover { background: rgba(212,168,83,0.1); color: var(--saffron-light); }

/* ============ HERO ============ */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-deep);
  padding: 5rem 2rem 4rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(255,255,255,0.5) 39px, rgba(255,255,255,0.5) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(255,255,255,0.5) 39px, rgba(255,255,255,0.5) 40px);
}

.hero-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(233,69,96,0.15) 0%, transparent 65%);
  filter: blur(60px);
  animation: glowPulse 8s ease-in-out infinite alternate;
}

@keyframes glowPulse {
  0% { opacity: 0.6; transform: scale(1) translate(0, 0); }
  100% { opacity: 1; transform: scale(1.15) translate(-30px, 20px); }
}

.hero-content {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: rgba(212,168,83,0.12);
  border: 1px solid rgba(212,168,83,0.25);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: 1.5rem;
  animation: fadeSlideUp 0.6s ease-out both;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 1.2rem;
  letter-spacing: -0.5px;
  animation: fadeSlideUp 0.6s 0.1s ease-out both;
}

.hero-accent {
  background: linear-gradient(135deg, var(--saffron-light) 0%, var(--saffron) 50%, var(--terracotta) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.55);
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.7;
  animation: fadeSlideUp 0.6s 0.2s ease-out both;
}

/* Hero search */
.hero-search {
  position: relative;
  max-width: 580px;
  margin: 0 auto 2.5rem;
  display: flex;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
  animation: fadeSlideUp 0.6s 0.3s ease-out both;
}

.hero-search:focus-within {
  border-color: rgba(233,69,96,0.5);
  box-shadow: 0 0 0 4px rgba(233,69,96,0.1), 0 8px 32px rgba(0,0,0,0.3);
}

.search-icon {
  display: flex;
  align-items: center;
  padding: 0 0 0 1.1rem;
  color: rgba(255,255,255,0.35);
}

.hero-search input {
  flex: 1;
  background: none;
  border: none;
  padding: 1rem 0.8rem;
  font-size: 0.95rem;
  color: #fff;
  outline: none;
  font-family: var(--font-body);
}

.hero-search input::placeholder { color: rgba(255,255,255,0.3); }

.hero-search button {
  padding: 0.75rem 1.6rem;
  margin: 0.4rem;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.hero-search button:hover { background: var(--red-dark); transform: scale(1.03); }

/* Hero stats */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  animation: fadeSlideUp 0.6s 0.45s ease-out both;
}

.hero-stat { text-align: center; }

.hero-stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.hero-stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.1);
}

/* ============ SECTIONS ============ */
.home main { max-width: none; padding: 0; }

.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem 2rem;
}

.section-header { margin-bottom: 2rem; }

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.5rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.3px;
}

/* ============ STATE CARDS ============ */
.state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.state-card {
  position: relative;
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  opacity: 0;
  transform: translateY(16px);
}

.state-card.in-view {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out, box-shadow 0.25s, border-color 0.25s;
}

.state-card:nth-child(1).in-view { transition-delay: 0s; }
.state-card:nth-child(2).in-view { transition-delay: 0.07s; }
.state-card:nth-child(3).in-view { transition-delay: 0.14s; }
.state-card:nth-child(4).in-view { transition-delay: 0.21s; }

.state-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(26,26,46,0.1);
  border-color: var(--accent);
}

.state-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.state-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.state-arrow {
  color: var(--text-light);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity 0.25s, transform 0.25s;
}

.state-card:hover .state-arrow {
  opacity: 1;
  transform: translate(0, 0);
  color: var(--accent);
}

.state-card h3 {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.3rem;
}

.state-card-meta {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.state-project-count {
  font-weight: 700;
  color: var(--text-mid);
}

.state-bar {
  height: 3px;
  border-radius: 3px;
  background: var(--warm-gray);
  overflow: hidden;
}

.state-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--accent);
  transition: width 1s ease-out 0.3s;
}

/* ============ DISTRICT CARDS ============ */
.districts-section {
  background: var(--navy-deep);
  max-width: none;
  padding: 4rem 2rem;
}

.districts-section .section-header { max-width: var(--max-w); margin: 0 auto 2rem; }
.districts-section .section-tag { color: var(--saffron); }
.districts-section .section-header h2 { color: #fff; }

.district-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 0.6rem;
}

.district-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  opacity: 0;
  transform: translateY(10px);
}

.district-card.in-view {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out, background 0.2s, border-color 0.2s;
}

.district-card:nth-child(1).in-view { transition-delay: 0s; }
.district-card:nth-child(2).in-view { transition-delay: 0.04s; }
.district-card:nth-child(3).in-view { transition-delay: 0.08s; }
.district-card:nth-child(4).in-view { transition-delay: 0.12s; }
.district-card:nth-child(5).in-view { transition-delay: 0.16s; }
.district-card:nth-child(6).in-view { transition-delay: 0.2s; }
.district-card:nth-child(7).in-view { transition-delay: 0.24s; }
.district-card:nth-child(8).in-view { transition-delay: 0.28s; }
.district-card:nth-child(9).in-view { transition-delay: 0.32s; }
.district-card:nth-child(10).in-view { transition-delay: 0.36s; }
.district-card:nth-child(11).in-view { transition-delay: 0.4s; }
.district-card:nth-child(12).in-view { transition-delay: 0.44s; }

.district-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(233,69,96,0.3);
  transform: translateX(4px);
}

.district-rank {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(212,168,83,0.12);
  color: var(--saffron);
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.district-info { flex: 1; min-width: 0; }
.district-info h3 { font-size: 0.95rem; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.district-state { font-size: 0.78rem; color: rgba(255,255,255,0.4); }

.district-count {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

/* ============ ABOUT / FEATURES ============ */
.about-section { padding-top: 5rem; padding-bottom: 5rem; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text {
  opacity: 0;
  transform: translateY(16px);
}

.about-text.in-view {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.about-text h2 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.2rem;
  letter-spacing: -0.3px;
  line-height: 1.3;
}

.about-text p {
  color: var(--text-mid);
  margin-bottom: 1rem;
  font-size: 1.02rem;
  line-height: 1.75;
}

.about-text strong { color: var(--navy); }

.about-features { display: flex; flex-direction: column; gap: 1.5rem; }

.feature {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  padding: 1.3rem;
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 0.25s, box-shadow 0.25s;
  opacity: 0;
  transform: translateY(12px);
}

.feature.in-view {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out, box-shadow 0.25s;
}

.feature:nth-child(1).in-view { transition-delay: 0.1s; }
.feature:nth-child(2).in-view { transition-delay: 0.2s; }
.feature:nth-child(3).in-view { transition-delay: 0.3s; }

.feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,26,46,0.08);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(233,69,96,0.08), rgba(212,168,83,0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--red);
}

.feature h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.2rem;
}

.feature p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* ============ CTA ============ */
.cta-section { padding-bottom: 5rem; }

.cta-card {
  background: var(--navy);
  border-radius: 20px;
  padding: 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 140%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 20%, rgba(212,168,83,0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 80%, rgba(233,69,96,0.06) 0%, transparent 50%);
  pointer-events: none;
}

.cta-card h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.6rem;
  position: relative;
}

.cta-card p {
  color: rgba(255,255,255,0.5);
  margin-bottom: 2rem;
  font-size: 1rem;
  position: relative;
}

.cta-search {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.cta-search:focus-within {
  border-color: rgba(233,69,96,0.4);
  box-shadow: 0 0 0 3px rgba(233,69,96,0.1);
}

.cta-search input {
  flex: 1;
  padding: 0.9rem 1.2rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 0.95rem;
  font-family: var(--font-body);
  outline: none;
}

.cta-search input::placeholder { color: rgba(255,255,255,0.3); }

.cta-search button {
  padding: 0.7rem 1.5rem;
  margin: 0.35rem;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 9px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.cta-search button:hover { background: var(--red-dark); }

/* ============ FOOTER ============ */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.5);
  font-size: 0.88rem;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3.5rem 2rem 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand .logo-text { font-size: 1.1rem; display: inline-block; margin-bottom: 0.75rem; }
.footer-brand p { max-width: 320px; line-height: 1.6; color: rgba(255,255,255,0.35); }

.footer-links h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.3);
  margin-bottom: 0.8rem;
}

.footer-links a {
  display: block;
  color: rgba(255,255,255,0.5);
  font-size: 0.88rem;
  padding: 0.2rem 0;
  transition: color 0.2s;
}

.footer-links a:hover { color: #fff; }

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.5rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.25);
}

/* ============ ANIMATIONS ============ */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ INNER PAGES (non-home) ============ */
body:not(:has(.home)) main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem;
}

/* Breadcrumb */
.breadcrumb { font-size: 0.88rem; margin-bottom: 1.5rem; color: var(--text-light); }
.breadcrumb a { color: var(--navy-mid); }
.breadcrumb a:hover { color: var(--red); text-decoration: underline; }

/* Table wrapper for responsive */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-lg); }

/* Status badge */
.status-badge { display: inline-block; padding: 0.15rem 0.5rem; background: rgba(212,168,83,0.12); color: var(--saffron); border-radius: 4px; font-size: 0.88rem; font-weight: 600; }

/* Data table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--warm-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.data-table th {
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.data-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

.data-table tr:hover td { background: rgba(233,69,96,0.02); }
.data-table a { color: var(--navy-mid); font-weight: 500; }
.data-table a:hover { color: var(--red); text-decoration: underline; }

.data-table code {
  background: var(--warm-gray);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 0.83rem;
  color: var(--text-mid);
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
  font-size: 0.92rem;
}

.pagination a {
  color: var(--red);
  font-weight: 600;
}

/* Project detail */
.rera-badge { margin-bottom: 1.5rem; }
.rera-badge code {
  background: var(--red);
  color: #fff;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
}

.project-details {
  background: var(--warm-white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.project-details h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 1.5rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--navy);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.detail-item label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.detail-item span { font-size: 0.95rem; color: var(--text); }

/* Related projects */
.related-projects { margin-top: 2rem; }
.related-projects h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem;
}
.related-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.related-card:hover {
  border-color: var(--red);
  box-shadow: 0 4px 12px rgba(26,26,46,0.06);
}
.related-name { font-size: 0.92rem; font-weight: 500; color: var(--navy-mid); }
.related-card code {
  background: var(--warm-gray);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.78rem;
  color: var(--text-light);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Inner page h1 */
body:not(:has(.home)) h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
  letter-spacing: -0.3px;
}

body:not(:has(.home)) main > p {
  color: var(--text-mid);
  margin-bottom: 1.5rem;
}

/* Search page */
.search-form {
  display: flex;
  max-width: 600px;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.search-form input {
  flex: 1;
  padding: 0.8rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s;
  background: var(--warm-white);
}

.search-form input:focus { border-color: var(--red); }

.search-form button {
  padding: 0.8rem 1.5rem;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.2s;
}

.search-form button:hover { background: var(--red-dark); }

.results-count { margin: 1rem 0; color: var(--text-mid); }

/* Card grid for inner pages */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--warm-white);
  padding: 1.25rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: 0 6px 20px rgba(26,26,46,0.08);
  border-color: var(--red);
  transform: translateY(-2px);
}

.card h3 { font-size: 1rem; color: var(--navy); margin-bottom: 0.25rem; font-weight: 600; }
.card .count { font-size: 0.85rem; color: var(--text-light); }

/* Error page */
.error-page { text-align: center; padding: 5rem 1rem; }
.error-page h1 { font-family: var(--font-display); font-size: 2rem; margin-bottom: 1rem; }
.error-page a { color: var(--red); font-weight: 600; }

/* ============ LEGAL / TRUST PAGES ============ */
.legal-page { max-width: 780px; }

.legal-page h1 { margin-bottom: 0.75rem; }

.legal-updated {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.2px;
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content p {
  color: var(--text-mid);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.legal-content ul {
  margin: 0.5rem 0 1rem 1.5rem;
  color: var(--text-mid);
  font-size: 0.95rem;
  line-height: 1.75;
}

.legal-content ul li { margin-bottom: 0.25rem; }

.legal-content a { color: var(--red); font-weight: 500; }
.legal-content a:hover { text-decoration: underline; }

.legal-content strong { color: var(--navy); }

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .hero { padding: 3.5rem 1.5rem 3rem; }
  .hero h1 { font-size: 1.8rem; }
  .hero-stats { gap: 1.2rem; }
  .hero-stat-num { font-size: 1.5rem; }
  .hero-stat-label { font-size: 0.7rem; }

  .menu-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--navy-deep);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    flex-direction: column;
    padding: 1rem 2rem;
    gap: 0.75rem;
  }

  .nav-links.open { display: flex; }

  .nav-links a { padding: 0.5rem 0; font-size: 0.95rem; }
  .nav-links .lang-switch { text-align: center; margin-top: 0.25rem; }

  .hide-mobile { display: none; }

  .state-grid { grid-template-columns: 1fr 1fr; }
  .district-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }

  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }

  .section { padding: 3rem 1.5rem; }
  .districts-section { padding: 3rem 1.5rem; }

  .cta-card { padding: 2.5rem 1.5rem; }
  .cta-search { flex-direction: column; background: none; border: none; gap: 0.5rem; }
  .cta-search:focus-within { box-shadow: none; }
  .cta-search input { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; }
  .cta-search button { margin: 0; border-radius: 10px; padding: 0.9rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.5rem; }
  .hero-search { flex-direction: column; background: none; border: none; gap: 0.5rem; }
  .hero-search:focus-within { box-shadow: none; }
  .hero-search .search-icon { display: none; }
  .hero-search input { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; padding: 0.9rem 1rem; }
  .hero-search button { margin: 0; border-radius: 10px; padding: 0.85rem; }

  .state-grid { grid-template-columns: 1fr; }

  .section-header h2 { font-size: 1.5rem; }
  .about-text h2 { font-size: 1.5rem; }
}
