/* =========================================================
   Sharad Krushi & Paryavaran Vikas Pratishthan — Site Styles
   ========================================================= */
* { box-sizing: border-box; margin: 0; padding: 0;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}
:root {
  --green-900:#0a3d1f;
  --green-800:#14532d;
  --green-700:#15803d;
  --green-500:#22c55e;
  --green-100:#dcfce7;
  --green-50:#f0fdf4;
  --gold:#d4af37;
  --gold-bright:#f5d15e;
  --amber-600:#d97706;
  --amber-500:#f59e0b;
  --amber-100:#fef3c7;
  --slate-900:#0f172a;
  --slate-700:#334155;
  --slate-500:#64748b;
  --slate-300:#cbd5e1;
  --slate-200:#e2e8f0;
  --slate-100:#f1f5f9;
  --cream:#fffaf0;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Mukta', 'Inter', 'Segoe UI', sans-serif;
  background: var(--cream);
  color: var(--slate-900);
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ============ NAV ============ */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--slate-200);
  padding: 12px 0;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.brand-link {
  display: flex; align-items: center; gap: 12px;
}
.brand-link img {
  width: 50px; height: 50px;
  object-fit: contain;
}
.brand-text .name {
  font-size: 14px; font-weight: 800;
  color: var(--green-900); line-height: 1.1;
}
.brand-text .sub {
  font-size: 11px; color: var(--slate-500); margin-top: 2px;
}
.nav-links {
  display: flex; gap: 26px; align-items: center;
}
.nav-links a {
  color: var(--slate-700);
  font-size: 14px; font-weight: 600;
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover { color: var(--green-700); }
.nav-links a.active { color: var(--green-700); }
.nav-links a.active::after {
  content: ''; position: absolute;
  bottom: -8px; left: 0; right: 0; height: 2px;
  background: var(--green-700); border-radius: 2px;
}
.nav-cta {
  background: var(--green-700); color: white !important;
  padding: 9px 18px; border-radius: 24px;
  font-size: 13px; font-weight: 700;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--green-900); }
.lang-toggle {
  background: linear-gradient(135deg, var(--amber-500), var(--amber-600)) !important;
  color: white !important;
  padding: 7px 16px !important; border-radius: 20px;
  font-size: 13px; font-weight: 800;
  letter-spacing: 0.5px;
  box-shadow: 0 3px 12px rgba(245,158,11,0.35);
  transition: all 0.25s ease;
  display: inline-flex; align-items: center; gap: 5px;
}
.lang-toggle:hover {
  background: linear-gradient(135deg, var(--amber-600), var(--green-700)) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245,158,11,0.45);
}
.menu-toggle {
  display: none; font-size: 24px; cursor: pointer;
  background: none; border: none; color: var(--green-900);
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 30px;
  font-size: 15px; font-weight: 700;
  cursor: pointer; border: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--amber-500); color: white;
  box-shadow: 0 6px 20px rgba(245,158,11,0.45);
}
.btn-primary:hover { background: var(--amber-600); }
.btn-outline {
  background: rgba(255,255,255,0.1); color: white;
  border: 1.5px solid rgba(255,255,255,0.5);
}
.btn-outline:hover { background: rgba(255,255,255,0.2); }
.btn-dark {
  background: var(--green-700); color: white;
}
.btn-dark:hover { background: var(--green-900); }

/* ============ SECTIONS ============ */
section.content {
  max-width: 1200px; margin: 0 auto;
  padding: 80px 24px;
}
.section-tag {
  display: inline-block; color: var(--amber-600);
  font-size: 13px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 12px;
}
h1.section-title, h2.section-title {
  font-size: 36px; color: var(--green-900);
  line-height: 1.2; margin-bottom: 16px; font-weight: 800;
}
.section-lede {
  font-size: 17px; color: var(--slate-700);
  max-width: 720px; line-height: 1.7;
}
.section-head { text-align: center; margin-bottom: 50px; }
.section-head .section-lede { margin: 0 auto; }

/* ============ PAGE HEADER (subpage hero) ============ */
.page-header {
  background: linear-gradient(135deg, var(--green-900), var(--green-700));
  color: white;
  padding: 60px 24px;
  text-align: center;
}
.page-header h1 {
  font-size: 42px; font-weight: 800;
  margin-bottom: 12px;
}
.page-header p {
  font-size: 17px; opacity: 0.92;
  max-width: 700px; margin: 0 auto;
}
.page-header .breadcrumb {
  font-size: 12px; opacity: 0.8;
  letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 14px;
}

/* ============ FOOTER ============ */
footer.site-footer {
  background: #0f172a; color: rgba(255,255,255,0.75);
  padding: 56px 24px 24px;
  margin-top: 60px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-brand .top {
  display: flex; align-items: center; gap: 12px;
}
.footer-brand img {
  width: 54px; height: 54px;
  object-fit: contain;
}
.footer-brand .name {
  color: white; font-size: 15px; font-weight: 700; line-height: 1.2;
}
.footer-brand .sub {
  font-size: 11px; color: var(--gold); margin-top: 2px;
}
.footer-brand p {
  font-size: 13px; line-height: 1.7;
}
footer h4 {
  color: white; font-size: 13px; font-weight: 700;
  margin-bottom: 14px;
  text-transform: uppercase; letter-spacing: 1.5px;
}
footer ul { list-style: none; }
footer ul li { margin-bottom: 8px; }
footer ul a {
  color: rgba(255,255,255,0.7);
  font-size: 13px; transition: color 0.2s;
}
footer ul a:hover { color: var(--gold); }
.footer-bottom {
  max-width: 1200px; margin: 32px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 12px; opacity: 0.7;
}

/* ============ CARDS ============ */
.card {
  background: white;
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  border: 1px solid var(--slate-100);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--green-500), var(--green-700));
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(20,83,45,0.08);
  border-color: var(--green-100);
}
.card:hover::before { transform: scaleX(1); }
.card .icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--green-50), var(--green-100));
  color: var(--green-700);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(34,197,94,0.1);
}
.card h3 {
  font-size: 18px; color: var(--green-900);
  margin-bottom: 10px; font-weight: 800; line-height: 1.3;
}
.card p {
  font-size: 14px; color: var(--slate-600);
  line-height: 1.6;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: white; padding: 18px 24px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    flex-direction: column; align-items: flex-start;
  }
  .nav-links.open { display: flex; }
  .menu-toggle { display: block; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  h1.section-title, h2.section-title { font-size: 28px; }
  .page-header h1 { font-size: 32px; }
  section.content { padding: 60px 24px; }
  
  /* Make all 2-col layout grids 1-col */
  .hero-inner, .expo-grid, .lucky-draw-inner, .venue-grid, .sponsor-strip-inner, .org-info-grid, .leader-hero {
    grid-template-columns: 1fr !important;
  }
  /* Scale down complex multi-col grids to 2-col */
  .expo-meta-cards, .stats-strip-inner, .countdown, .tier-pricing, .pillars, .activities-grid, .reach-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .expo-image-stack {
    margin-top: 20px;
    grid-template-rows: 150px 150px;
  }
  /* Fix inline styled 3-col grids (e.g. Recent Work, Prize Grid) */
  section.content > div[style*="grid-template-columns: repeat(3"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  /* Fix inline styled 2-col grids (e.g. Grand Prize Banner, How to Participate) */
  section > div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  /* Fix 6-item thumbnail grid */
  .lucky-draw-section div[style*="grid-template-columns: repeat(6"] {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  .lucky-draw-features {
    grid-template-columns: 1fr !important;
  }
  .ld-feat {
    grid-column: span 1 !important;
  }
}
@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; }
  /* Further collapse to 1 col for mobile */
  .expo-meta-cards, .stats-strip-inner, .tier-pricing, .pillars, .activities-grid, .reach-grid {
    grid-template-columns: 1fr !important;
  }
  section.content > div[style*="grid-template-columns: repeat(3"] {
    grid-template-columns: 1fr !important;
  }
  .hero h1 { font-size: 38px; }
  .lucky-draw-content h2 { font-size: 30px; }
  .expo-image-stack {
    grid-template-rows: 120px 120px;
  }
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
