/* Nar Seva Foundation – Theme (from PDF) */
:root {
  --blue: #0A3D91;
  --green: #2DBE4E;
  --orange: #FF7A18;
  --red: #FF3B3B;
  --white: #FFFFFF;
  --grey: #F5F7FA;
  --dark: #1a1a1a;
  --gradient-hero: linear-gradient(135deg, var(--green) 0%, var(--orange) 50%, var(--red) 100%);
  --shadow-soft: 0 4px 20px rgba(10, 61, 145, 0.08);
  --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.06);
  --radius: 12px;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --font-accent: 'Playfair Display', serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--orange);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

/* Fixed Donate CTA */
.cta-fixed {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(255, 122, 24, 0.5);
  white-space: nowrap;
}

.cta-fixed:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 122, 24, 0.6);
}

@media (max-width: 768px) {
  body {
    padding-bottom: 72px;
  }
  .cta-fixed {
    bottom: 16px;
    right: 10px;
    left: 10px;
    text-align: center;
  }
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--blue);
  margin-bottom: 1rem;
  text-align: center;
}

.section-subtitle {
  font-family: var(--font-accent);
  font-style: italic;
  color: #555;
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--blue), #0d52b8);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.btn-secondary {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
}

.btn-secondary:hover {
  background: var(--green);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-donate {
  background: var(--orange);
  color: var(--white);
}

.btn-donate:hover {
  background: var(--red);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 122, 24, 0.4);
}

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

/* Fade-in on scroll */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 24px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .header-inner {
    padding: 0.75rem 10px;
  }
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-link img {
  height: 52px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-menu a {
  padding: 8px 16px;
  color: var(--dark);
  font-weight: 500;
  border-radius: 8px;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--blue);
  background: var(--grey);
}

.nav-menu .menu-close-item {
  display: none;
}

.header-cta .btn {
  margin-left: 8px;
  width: 95%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--blue);
}

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }
  .nav-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: min(280px, 85vw);
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    padding-bottom: 24px;
    box-shadow: 4px 0 20px rgba(0,0,0,0.15);
    transition: left 0.3s ease;
    z-index: 1001;
  }
  .nav-menu.open {
    left: 0;
  }
  .nav-menu .menu-close-item {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--grey);
    list-style: none;
  }
  .nav-menu .menu-close-item .menu-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--blue);
    padding: 4px 8px;
    line-height: 1;
  }
  .nav-menu .menu-close-item .menu-close:hover {
    color: var(--orange);
  }
  .nav-menu a {
    padding: 14px 20px;
    width: 100%;
    display: block;
    border-bottom: 1px solid rgba(0,0,0,0.06);
  }
}

/* Footer */
.site-footer {
  background: var(--blue);
  color: var(--white);
  padding: 60px 0 24px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo img {
  height: 56px;
  width: auto;
  margin-bottom: 12px;
}

.footer-tagline {
  font-family: var(--font-accent);
  font-style: italic;
  opacity: 0.95;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.footer-logo .footer-social {
  margin-top: 0.5rem;
}

.site-footer h4 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.site-footer ul {
  list-style: none;
}

.site-footer ul li {
  margin-bottom: 8px;
}

.site-footer a,
.footer-link a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.site-footer a:hover,
.footer-link a:hover {
  opacity: 0.9;
  text-decoration: underline;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius);
  color: var(--white);
  font-weight: 600;
}

.footer-social a:hover {
  background: rgba(255,255,255,0.25);
  text-decoration: none;
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.25);
  font-size: 0.9rem;
  color: var(--white);
}

.footer-bottom a {
  color: var(--white);
}

.footer-bottom a:hover {
  opacity: 0.9;
  text-decoration: underline;
}

/* Mobile: full responsive, max padding 60px top/bottom, 10px sides */
@media (max-width: 768px) {
  .container {
    padding: 0 10px;
  }

  .section {
    padding: 60px 0;
  }

  .section-subtitle {
    margin-bottom: 2rem;
  }

  .footer-inner {
    padding: 0 10px;
  }

  .site-footer {
    padding: 60px 0 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .logo-link img {
    height: 44px;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.5rem;
  }

  .btn {
    padding: 12px 20px;
    font-size: 0.95rem;
  }
}
