@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

/* ═══════════════════════════════════════
   BIHAR GREEN TECH 2026 — GLOBAL THEME
   Light mode · DM Sans · Mobile-first
═══════════════════════════════════════ */

:root {
  --green-dark:    #1b5e20;
  --green:         #2e7d32;
  --green-mid:     #388e3c;
  --green-light:   #4caf50;
  --green-pale:    #e8f5e9;
  --green-xpale:   #f1f8f1;
  --sage:          #689f38;
  --teal:          #00796b;
  --teal-pale:     #e0f2f1;
  --white:         #ffffff;
  --bg:            #f8faf8;
  --bg-card:       #ffffff;
  --border:        #e0eae0;
  --border-mid:    #c8dcc8;
  --text:          #1a2e1a;
  --text-mid:      #3a5a3a;
  --text-muted:    #6a8a6a;
  --text-faint:    #9ab09a;
  --amber:         #e65100;
  --danger:        #c62828;
  --header-height: 64px;
  --radius-sm:     8px;
  --radius-md:     12px;
  --radius-lg:     16px;
  --radius-xl:     20px;
  --shadow-sm:     0 1px 4px rgba(26,46,26,0.08);
  --shadow-md:     0 4px 16px rgba(26,46,26,0.10);
  --shadow-lg:     0 12px 40px rgba(26,46,26,0.12);
  --font: 'DM Sans', sans-serif;
}

/* ── RESET ── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width:100%; display:block; }
a { text-decoration:none; color:inherit; }

/* ══════════════════════════════
   SHARED HEADER
══════════════════════════════ */
.site-header {
  height: var(--header-height);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 5vw;
  position: sticky;
  top: 0;
  z-index: 200;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}
.logo-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--green-dark);
  white-space: nowrap;
  letter-spacing: -0.2px;
}

/* Desktop nav */
.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2px;
}
.site-nav a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.18s;
  white-space: nowrap;
}
.site-nav a:hover  { color: var(--green); background: var(--green-xpale); }
.site-nav a.active { color: var(--green); background: var(--green-pale); font-weight: 600; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
}
/* Always push hamburger to far right on mobile */
@media (max-width: 768px) {
  .hamburger { margin-left: auto; }
  /* But if lang-toggle exists before it, lang-toggle handles the push */
  .lang-toggle + .hamburger,
  .lang-toggle ~ .hamburger { margin-left: 0; }
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 12px 5vw 16px;
  flex-direction: column;
  gap: 2px;
  z-index: 190;
  box-shadow: var(--shadow-md);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: var(--text-mid);
  font-size: 15px;
  font-weight: 500;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}
.mobile-nav a:hover  { background: var(--green-xpale); color: var(--green); }
.mobile-nav a.active { background: var(--green-pale);  color: var(--green); font-weight: 600; }

/* ══════════════════════════════
   BRAND LOGOS — header
══════════════════════════════ */
.brand-logos {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.brand-logos img {
  height: 38px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
}
.brand-logos .bl-divider {
  width: 1px;
  height: 26px;
  background: var(--border-mid);
  flex-shrink: 0;
}

/* ══════════════════════════════
   BRAND LOGOS — hero strip
══════════════════════════════ */
.hero-logos {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.2);
  flex-wrap: wrap;
  margin-bottom: -15px;
}
.hero-logos img {
  height: 60px;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255,255,255,0.95);
  padding: 4px 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  flex-shrink: 0;
}

/* ══════════════════════════════
   PAGE HERO BANNER
══════════════════════════════ */
.page-hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 60%, var(--sage) 100%);
  padding: 40px 5vw 36px;
  color: var(--white);
}
.page-hero .eyebrow {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 10px;
}
.page-hero h1 {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 10px;
}
.page-hero p {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  max-width: 520px;
  line-height: 1.7;
}

/* ══════════════════════════════
   STEP LABEL
══════════════════════════════ */
.step-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.step-label::after { content:''; flex:1; height:1px; background:var(--border); }

/* ══════════════════════════════
   CARDS
══════════════════════════════ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

/* ══════════════════════════════
   FORM ELEMENTS
══════════════════════════════ */
.label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.input {
  width: 100%;
  background: var(--bg);
  border: 1.5px solid var(--border-mid);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(46,125,50,0.1);
}
textarea.input { resize: vertical; min-height: 100px; line-height: 1.6; }

/* ══════════════════════════════
   BUTTONS
══════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 11px 22px;
  cursor: pointer;
  border: none;
  transition: all 0.18s;
  white-space: nowrap;
}
.btn-primary  { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); }
.btn-outline  { background: transparent; color: var(--green); border: 1.5px solid var(--green); }
.btn-outline:hover { background: var(--green-pale); }
.btn-ghost    { background: var(--bg); color: var(--text-mid); border: 1px solid var(--border-mid); }
.btn-ghost:hover  { background: var(--border); }
.btn-danger   { background: var(--danger); color: white; }
.btn-full     { width: 100%; }

/* ══════════════════════════════
   STAT CARDS
══════════════════════════════ */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}
.stat-label { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
.stat-value { font-size: 30px; font-weight: 700; color: var(--text); line-height: 1; }

/* ══════════════════════════════
   BADGES
══════════════════════════════ */
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.3px;
}
.badge-green { background: var(--green-pale);  color: var(--green-dark); }
.badge-teal  { background: var(--teal-pale);   color: var(--teal); }
.badge-amber { background: #fff3e0; color: var(--amber); }
.badge-red   { background: #ffebee; color: var(--danger); }
.badge-gray  { background: #f5f5f5; color: #555; }

/* ══════════════════════════════
   FOOTER — old simple (fallback)
══════════════════════════════ */
.site-footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.5);
  padding: 28px 5vw;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.site-footer a { color: rgba(255,255,255,0.6); }
.site-footer a:hover { color: white; }

/* ══════════════════════════════
   GLOBAL FOOTER (auto-injected via nav.js)
══════════════════════════════ */
.site-footer-global {
  background: var(--green-dark);
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  font-family: var(--font);
}
.sfg-top {
  display: flex;
  gap: 40px;
  padding: 40px 5vw 32px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sfg-brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 0 0 260px;
  max-width: 280px;
}
.sfg-logo {
  height: 52px;
  width: auto;
  flex-shrink: 0;
  border-radius: 8px;
  background: rgba(255,255,255,0.95);
  padding: 4px;
}
.sfg-name {
  font-size: 14px;
  font-weight: 700;
  color: white;
  line-height: 1.4;
  margin-bottom: 5px;
}
.sfg-tagline {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
}
.sfg-links {
  display: flex;
  gap: 40px;
  flex: 1;
  flex-wrap: wrap;
}
.sfg-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 140px;
}
.sfg-col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 4px;
}
.sfg-col a,
.sfg-col span {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.15s;
  line-height: 1.4;
}
.sfg-col a:hover { color: white; }
.sfg-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 18px 5vw;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

/* ══════════════════════════════
   TOAST
══════════════════════════════ */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--green-dark);
  color: white;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  z-index: 1000;
  transition: transform 0.3s;
  white-space: nowrap;
  box-shadow: var(--shadow-lg);
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 768px) {
  .site-nav    { display: none; }
  .hamburger   { display: flex; }
  .brand-logos { display: none; }

  /* Push lang-toggle + hamburger to right */
  .lang-toggle { margin-left: auto; }

  /* Logo text wraps to 2 lines */
  .logo-text {
    white-space: normal;
    font-size: 12px;
    line-height: 1.3;
    max-width: 160px;
  }

  .page-hero  { padding: 32px 5vw 28px; }
  .page-hero h1 { font-size: clamp(24px, 7vw, 36px); }

  .hero-logos { display: flex; margin-bottom: -15px; }
  .hero-logos img { height: 50px; }

  .site-footer { flex-direction: column; text-align: center; }

  /* Global footer mobile */
  .sfg-top  { gap: 28px; padding: 32px 5vw 24px; }
  .sfg-brand { flex: 0 0 100%; max-width: 100%; }
  .sfg-links { gap: 28px; }
  .sfg-bottom { flex-direction: column; text-align: center; gap: 6px; }
}

@media (max-width: 480px) {
  :root { --header-height: 56px; }
  .logo-img  { height: 30px; }
  .logo-text { font-size: 11px; max-width: 130px; }
  .btn       { padding: 10px 18px; font-size: 13px; }
  .hero-logos img { height: 50px; padding: 3px 6px; }
  .hero-logos { gap: 8px; margin-top: 18px; margin-bottom: -15px; }
  .sfg-col   { min-width: calc(50% - 14px); }
  .sfg-links { gap: 20px; }
}

/* ══════════════════════════════
   LANGUAGE TOGGLE
══════════════════════════════ */
.lang-toggle {
  display: flex;
  align-items: center;
  background: var(--green-pale);
  border: 1.5px solid var(--border-mid);
  border-radius: 20px;
  padding: 3px 4px;
  gap: 2px;
  flex-shrink: 0;
}
.lang-btn {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 16px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.lang-btn.active { background: var(--green); color: white; box-shadow: var(--shadow-sm); }
.lang-btn:hover:not(.active) { color: var(--green); background: var(--green-xpale); }