/* ==========================================================================
   www.jatav.org - Master Stylesheet
   Standalone CSS3 | Bilingual (English & Devanagari) | Zero Dependencies
   ========================================================================== */

:root {
  --saffron: #e65100;
  --saffron-light: #ff833a;
  --saffron-soft: #fff3e8;
  --royal-blue: #0f2c59;
  --royal-blue-dark: #091c3a;
  --royal-blue-light: #1e4682;
  --gold: #c99700;
  --gold-light: #f4d06f;
  --white: #ffffff;
  --ivory: #fdfbf7;
  --surface: #f4f6f9;
  --text-main: #1f2937;
  --text-muted: #4b5563;
  --border: #e5e7eb;
  --success: #15803d;
  --error: #b91c1c;

  --font-sans: 'Segoe UI', 'Nirmala UI', 'Noto Sans Devanagari', 'Mangal', system-ui, -apple-system, sans-serif;
  --font-serif: Georgia, 'Noto Serif Devanagari', 'Times New Roman', serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(15, 44, 89, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 44, 89, 0.1);
  --shadow-lg: 0 16px 40px rgba(15, 44, 89, 0.14);
  --transition: 0.28s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--ivory);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--royal-blue);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--saffron);
}

img, svg {
  display: block;
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--gold);
  box-shadow: var(--shadow-sm);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--royal-blue);
  letter-spacing: -0.02em;
}

.brand-sub {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--saffron);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.25rem;
}

.nav-links a {
  padding: 0.5rem 0.75rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--saffron-soft);
  color: var(--saffron);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

/* Bilingual Toggle Button */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--royal-blue);
  color: var(--white);
  border: 2px solid var(--gold);
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition);
}

.lang-toggle:hover {
  background: var(--saffron);
  border-color: var(--saffron);
  transform: translateY(-1px);
}

.menu-btn {
  display: none;
  background: transparent;
  border: 1.5px solid var(--royal-blue);
  border-radius: var(--radius-sm);
  padding: 0.4rem;
  color: var(--royal-blue);
  cursor: pointer;
}

/* ==========================================================================
   Hero Sections & Page Banners
   ========================================================================== */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--royal-blue-dark) 0%, var(--royal-blue) 55%, #1c3d72 100%);
  color: var(--white);
  padding: 5.5rem 0 4.5rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(230, 81, 0, 0.28), transparent 45%),
    radial-gradient(circle at 15% 85%, rgba(201, 151, 0, 0.22), transparent 45%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(244, 208, 111, 0.45);
  color: var(--gold-light);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3.3rem);
  line-height: 1.2;
  margin-bottom: 1.15rem;
}

.hero p {
  font-size: clamp(1.02rem, 1.8vw, 1.18rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  max-width: 680px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.page-banner {
  background: linear-gradient(120deg, var(--royal-blue) 0%, var(--royal-blue-light) 100%);
  color: var(--white);
  padding: 3.25rem 0;
  border-bottom: 4px solid var(--saffron);
}

.page-banner h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  margin-bottom: 0.6rem;
}

.page-banner p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 720px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  margin-bottom: 0.85rem;
  color: var(--gold-light);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.82);
}

.breadcrumb a:hover {
  color: var(--gold-light);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn-primary {
  background: var(--saffron);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--saffron-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(230, 81, 0, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--gold-light);
}

.btn-outline:hover {
  background: var(--gold-light);
  color: var(--royal-blue-dark);
  transform: translateY(-2px);
}

.btn-royal {
  background: var(--royal-blue);
  color: var(--white);
}

.btn-royal:hover {
  background: var(--royal-blue-light);
  color: var(--white);
  transform: translateY(-2px);
}

/* ==========================================================================
   Sections, Cards & Grids
   ========================================================================== */
.section {
  padding: 4rem 0;
}

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

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

.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  color: var(--royal-blue);
  margin-bottom: 0.5rem;
}

.section-header .accent-line {
  width: 64px;
  height: 4px;
  background: linear-gradient(90deg, var(--saffron), var(--gold));
  border-radius: 2px;
  margin-bottom: 0.85rem;
}

.section-header p {
  color: var(--text-muted);
  max-width: 700px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}

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

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--saffron-soft);
  color: var(--saffron);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}

.card h3 {
  color: var(--royal-blue);
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.1rem;
  flex-grow: 1;
}

.card-link {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--saffron);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* AEO / GEO Quick Fact Summary Box */
.fact-box {
  background: linear-gradient(to right, var(--saffron-soft), var(--white));
  border-left: 5px solid var(--saffron);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  margin-bottom: 2.25rem;
  box-shadow: var(--shadow-sm);
}

.fact-box h2, .fact-box h3 {
  color: var(--royal-blue);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

/* Cultural Quote / Doha Block */
.quote-block {
  background: var(--royal-blue);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem;
  border-left: 6px solid var(--gold);
  margin: 2rem 0;
}

.quote-block blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  color: var(--gold-light);
  margin-bottom: 0.65rem;
}

.quote-block cite {
  font-style: normal;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.85);
}

/* ==========================================================================
   Interactive Timeline (History Page)
   ========================================================================== */
.timeline-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.filter-pill {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1.5px solid var(--royal-blue);
  background: var(--white);
  color: var(--royal-blue);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-pill.active,
.filter-pill:hover {
  background: var(--royal-blue);
  color: var(--white);
}

.timeline {
  position: relative;
  padding-left: 2rem;
  border-left: 3px solid var(--gold);
}

.timeline-item {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition);
}

.timeline-item:hover {
  transform: translateX(4px);
  border-color: var(--saffron);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -2.62rem;
  top: 1.65rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--saffron);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--gold);
}

.timeline-era {
  display: inline-block;
  background: var(--saffron-soft);
  color: var(--saffron);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   Gotra Directory Controls & Cards
   ========================================================================== */
.directory-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  background: var(--white);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.75rem;
}

.search-box {
  flex: 1 1 280px;
  position: relative;
}

.search-box input,
.directory-controls select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color var(--transition);
}

.search-box input:focus,
.directory-controls select:focus {
  outline: none;
  border-color: var(--saffron);
}

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

.gotra-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--royal-blue);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), border-color var(--transition);
}

.gotra-card:hover {
  transform: translateY(-3px);
  border-top-color: var(--saffron);
}

.gotra-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.gotra-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--royal-blue);
}

.pop-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--saffron-soft);
  color: var(--saffron);
  white-space: nowrap;
}

.gotra-synonyms {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

/* ==========================================================================
   FAQ Accordion (AEO / GEO Friendly)
   ========================================================================== */
.faq-list {
  display: grid;
  gap: 0.85rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
}

.faq-item summary {
  font-weight: 700;
  color: var(--royal-blue);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--saffron);
  font-weight: 700;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ==========================================================================
   Forms (Contact & Jatav Rishtey Notify)
   ========================================================================== */
.form-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 5px solid var(--saffron);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--royal-blue);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(230, 81, 0, 0.12);
}

.form-error {
  color: var(--error);
  font-size: 0.82rem;
  margin-top: 0.3rem;
  display: none;
}

.form-status {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  display: none;
}

.form-status.success {
  display: block;
  background: #dcfce7;
  color: var(--success);
  border: 1px solid #86efac;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--royal-blue-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 3.5rem 0 1.75rem;
  border-top: 4px solid var(--gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.site-footer h3 {
  color: var(--gold-light);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   Scroll-Reveal Animation
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive Navigation
   ========================================================================== */
@media (max-width: 992px) {
  .menu-btn {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem;
    border-bottom: 2px solid var(--gold);
    box-shadow: var(--shadow-md);
    display: none;
  }

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