/* ==========================================================================
   MarathaVadhuVar.in — High-Performance, Mobile-First Design System
   Color Palette: Royal Saffron (#C2410C / #EA580C), Deep Mahogany (#7C2D12),
   Golden Ochre (#D97706), Deep Charcoal Slate (#0F172A), Warm Cream (#FFFDF7)
   ========================================================================== */

:root {
  --primary: #c2410c;
  --primary-hover: #9a3412;
  --primary-light: #ffedd5;
  --accent-gold: #d97706;
  --accent-gold-light: #fef3c7;
  --whatsapp-green: #25d366;
  --whatsapp-hover: #1ebd5a;
  --whatsapp-dark: #075e54;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --bg-main: #fffdf7;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-subtle: #f8fafc;
  --border-color: #e2e8f0;
  --border-subtle: #f1f5f9;
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.03);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  --container-max: 1180px;
}

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

html {
  font-family: 'Noto Sans Devanagari', 'Google Sans', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 74px; /* Space for mobile sticky CTA */
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg {
  vertical-align: middle;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* ==========================================================================
   Header & Navigation (Sleek Mobile Architecture)
   ========================================================================== */
.top-notice-bar {
  background: linear-gradient(90deg, #7c2d12 0%, #c2410c 100%);
  color: #ffffff;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 640px) {
  .top-notice-bar {
    font-size: 0.8125rem;
    padding: 0.45rem 1rem;
  }
}

.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .header-inner {
    height: 70px;
    gap: 1.5rem;
  }
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  flex: 1 1 auto;
}

.brand-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  background: linear-gradient(135deg, #c2410c 0%, #ea580c 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 900;
  font-size: 1.25rem;
  box-shadow: 0 3px 8px rgba(194, 65, 12, 0.25);
  border: 1.5px solid #fef08a;
}

@media (min-width: 768px) {
  .brand-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    font-size: 1.35rem;
  }
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-title {
  font-size: 1.05rem;
  font-weight: 900;
  color: #7c2d12;
  letter-spacing: -0.02em;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 768px) {
  .brand-title {
    font-size: 1.25rem;
  }
}

.brand-tagline {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #c2410c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 768px) {
  .brand-tagline {
    font-size: 0.75rem;
  }
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.25rem;
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  transition: color 0.15s ease;
  padding: 0.5rem 0.25rem;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
}

/* Header CTA Button - Compact on mobile, expansive on desktop */
.header-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: var(--whatsapp-green);
  color: #ffffff;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.78125rem;
  font-weight: 800;
  transition: all 0.15s ease;
  box-shadow: 0 3px 8px rgba(37, 211, 102, 0.3);
  white-space: nowrap;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .header-cta-btn {
    padding: 0.55rem 1rem;
    font-size: 0.84rem;
    gap: 0.5rem;
  }
}

.header-cta-btn:hover {
  background-color: var(--whatsapp-hover);
  transform: translateY(-1px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-whatsapp {
  background-color: var(--whatsapp-green);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  background-color: var(--whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
}

.btn-primary {
  background: linear-gradient(135deg, #c2410c 0%, #ea580c 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(194, 65, 12, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #9a3412 0%, #c2410c 100%);
  transform: translateY(-2px);
}

.btn-view-profiles {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-view-profiles:hover {
  background: linear-gradient(135deg, #172554 0%, #1d4ed8 100%);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: #ffffff;
  color: var(--text-main);
  border: 1.5px solid var(--border-color);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background-color: var(--primary-light);
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.8125rem;
  border-radius: var(--radius-sm);
}

/* Badges */
.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  font-size: 0.78125rem;
  font-weight: 800;
  border-radius: var(--radius-full);
  background-color: var(--primary-light);
  color: var(--primary);
  letter-spacing: 0.02em;
}

.badge-gold {
  background-color: var(--accent-gold-light);
  color: #92400e;
}

.badge-green {
  background-color: #dcfce7;
  color: #166534;
}

/* Hero Section */
.hero-section {
  padding: 2.25rem 0 2rem;
  background: radial-gradient(circle at 50% 0%, #fff7ed 0%, #fffdf7 70%);
  border-bottom: 1px solid var(--border-color);
}

.hero-content {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.hero-headline {
  font-size: 1.85rem;
  font-weight: 900;
  color: #7c2d12;
  line-height: 1.25;
  margin-top: 0.85rem;
  margin-bottom: 0.85rem;
  letter-spacing: -0.03em;
}

@media (min-width: 768px) {
  .hero-headline {
    font-size: 2.75rem;
  }
}

.hero-subhead {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .hero-subhead {
    font-size: 1.125rem;
  }
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.75rem;
}

@media (min-width: 580px) {
  .hero-actions {
    flex-direction: row;
    gap: 1rem;
    flex-wrap: wrap;
  }
}

/* Sections */
.section {
  padding: 3rem 0;
}

.section-alt {
  background-color: #f8fafc;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem;
}

.section-tag {
  color: var(--primary);
  font-weight: 800;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 900;
  color: #7c2d12;
  line-height: 1.3;
  margin-bottom: 0.65rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.2rem;
  }
}

.section-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Grids & Cards */
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.card-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Tables */
.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: #ffffff;
  margin: 1.25rem 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.data-table th {
  background-color: #f8fafc;
  padding: 0.75rem 1rem;
  font-weight: 800;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-color);
}

.data-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-muted);
}

.data-table tr:last-child td {
  border-bottom: none;
}

/* Callout Box */
.callout-box {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border: 1.5px solid #fed7aa;
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .callout-box {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
  }
}

.callout-text h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #7c2d12;
  margin-bottom: 0.25rem;
}

.callout-text p {
  color: #9a3412;
  font-size: 0.9rem;
  font-weight: 600;
}

/* District Hub Pills */
.district-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.district-pill {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
  transition: all 0.15s ease;
}

.district-pill:hover {
  border-color: var(--primary);
  background-color: var(--primary-light);
  color: var(--primary);
  transform: translateY(-2px);
}

/* FAQs */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-item {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.35rem;
}

.faq-question {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.faq-answer {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Footer */
.site-footer {
  background-color: #0f172a;
  color: #cbd5e1;
  padding: 3rem 0 1.5rem;
  margin-top: auto;
  border-top: 3px solid var(--primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  }
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
  position: relative;
  padding-bottom: 0.4rem;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 24px;
  height: 2px;
  background-color: var(--primary);
}

.footer-col p {
  font-size: 0.84rem;
  line-height: 1.6;
  color: #94a3b8;
  margin-bottom: 0.5rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-link {
  font-size: 0.84rem;
  color: #94a3b8;
  transition: color 0.15s ease, transform 0.15s ease;
  display: inline-block;
}

.footer-link:hover {
  color: #ffffff;
  transform: translateX(3px);
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.78125rem;
  color: #64748b;
}

/* Mobile Sticky Action Bar */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #ffffff;
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -3px 10px rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  gap: 0.5rem;
  z-index: 999;
}

@media (min-width: 768px) {
  .mobile-sticky-bar {
    display: none;
  }
}

.mobile-sticky-bar .btn {
  flex: 1;
  padding: 0.65rem 0.4rem;
  font-size: 0.8125rem;
}

.mobile-call-btn {
  background-color: #f1f5f9;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}
