/* Adivasi Swaraj Foundation - Global Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Earthy Color Palette */
  --color-primary: #1b4332;       /* Forest Pine Green */
  --color-primary-light: #2d5a27; /* Mighter Green */
  --color-secondary: #bc4749;     /* Terracotta Rust */
  --color-secondary-hover: #a53c3e;
  --color-accent-mustard: #ee9b00;/* Ochre Mustard */
  --color-accent-teal: #0a9396;   /* Teal Blue */
  --color-bg-cream: #fdfbf7;      /* Soft Light Cream */
  --color-bg-card: #ffffff;
  --color-text-dark: #212529;     /* Charcoal */
  --color-text-muted: #5c677d;
  --color-bg-footer: #112a1f;     /* Deep forest green for footer */
  --color-border: #e9ecef;
  
  /* Fonts */
  --font-headings: 'Lora', serif;
  --font-body: 'Outfit', sans-serif;
  
  /* Layout */
  --max-width: 1280px;
  --header-height: 80px;
  --transition-speed: 0.3s;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(27, 67, 50, 0.05);
  --shadow-md: 0 8px 24px rgba(27, 67, 50, 0.08);
  --shadow-lg: 0 16px 48px rgba(27, 67, 50, 0.12);
  
  /* Borders */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-cream);
  color: var(--color-text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.25;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

a {
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-speed) ease;
}

ul, ol {
  list-style: none;
}

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

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: none;
}

/* Accessibility Focus States */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-accent-mustard);
  outline-offset: 3px;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-cream);
}
::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-secondary);
}

/* Global Layout Containers */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section-padding {
  padding: 6rem 0;
}

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

.section-tagline {
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--color-secondary);
  font-size: 0.875rem;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 0.75rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--color-text-muted);
  font-size: 1.125rem;
}

/* Earthy geometric & tribal-style pattern background */
.pattern-bg {
  background-color: var(--color-bg-cream);
  background-image: radial-gradient(var(--color-primary) 0.5px, transparent 0.5px), radial-gradient(var(--color-primary) 0.5px, var(--color-bg-cream) 0.5px);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
  opacity: 0.95;
}

/* Main Navigation Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: all var(--transition-speed) ease;
}

header.scrolled {
  background-color: rgba(253, 251, 247, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  height: 70px;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 45px;
  height: 45px;
  fill: var(--color-primary);
  transition: transform var(--transition-speed) ease;
}

.logo-wrapper:hover .logo-icon {
  transform: rotate(15deg);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--color-primary);
  line-height: 1.1;
}

.logo-sub {
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-secondary);
  font-weight: 600;
}

/* Desktop Navigation Link List */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-primary);
  padding: 0.5rem 0.25rem;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-secondary);
  transition: width var(--transition-speed) ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-secondary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-speed) ease;
  cursor: pointer;
  gap: 0.5rem;
  font-family: var(--font-body);
  text-align: center;
}

.btn-primary {
  background-color: var(--color-secondary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--color-secondary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(188, 71, 73, 0.25);
}

.btn-secondary {
  background-color: var(--color-primary);
  color: #ffffff;
}

.btn-secondary:hover {
  background-color: #122c21;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(27, 67, 50, 0.25);
}

.btn-accent {
  background-color: var(--color-accent-mustard);
  color: var(--color-primary);
}

.btn-accent:hover {
  background-color: #d68a00;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(238, 155, 0, 0.25);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Nav Actions CTA (Donate) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Burger Mobile Menu Button */
.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
  z-index: 1001;
}

.burger-bar {
  height: 3px;
  width: 100%;
  background-color: var(--color-primary);
  border-radius: var(--radius-full);
  transition: all var(--transition-speed) ease;
}

/* Mobile Navigation Menu */
.nav-mobile {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background-color: var(--color-bg-cream);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transition: right var(--transition-speed) ease-in-out;
  padding: 2rem;
}

.nav-mobile.open {
  right: 0;
}

.nav-mobile .nav-link {
  font-size: 1.5rem;
}

/* Burger Active State */
.burger-menu.open .burger-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger-menu.open .burger-bar:nth-child(2) {
  opacity: 0;
}

.burger-menu.open .burger-bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Footer Styles */
footer {
  background-color: var(--color-bg-footer);
  color: rgba(255, 255, 255, 0.85);
  padding: 5rem 0 2rem 0;
  position: relative;
  overflow: hidden;
}

/* Footer Background Motif - Gond/Warli geometric style SVG graphic */
.footer-motif {
  position: absolute;
  bottom: 0;
  right: -50px;
  width: 300px;
  height: 300px;
  opacity: 0.05;
  fill: #ffffff;
  pointer-events: none;
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-logo .logo-main {
  color: #ffffff;
}

.footer-logo .logo-icon {
  fill: #ffffff;
}

.footer-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: all var(--transition-speed) ease;
}

.social-icon:hover {
  background-color: var(--color-accent-mustard);
  color: var(--color-primary);
  transform: translateY(-3px);
}

.footer-title {
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--color-accent-mustard);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

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

.footer-links a:hover {
  color: var(--color-accent-mustard);
  padding-left: 5px;
}

.footer-newsletter {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.newsletter-form {
  display: flex;
  border-radius: var(--radius-full);
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.newsletter-form input {
  background: transparent;
  color: #ffffff;
  padding: 0.75rem 1rem;
  flex-grow: 1;
  font-size: 0.9rem;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.newsletter-form .btn-newsletter {
  padding: 0.75rem 1.25rem;
  background-color: var(--color-accent-mustard);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}

.newsletter-form .btn-newsletter:hover {
  background-color: #ffffff;
  color: var(--color-primary);
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.footer-contact-item svg {
  width: 20px;
  height: 20px;
  fill: var(--color-accent-mustard);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a:hover {
  color: #ffffff;
}

/* Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Media Queries */
@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  
  header {
    height: 70px;
  }
  
  .nav-menu {
    display: none;
  }
  
  .nav-actions .btn {
    display: none; /* Hide desktop button, mobile menu has items */
  }
  
  .burger-menu {
    display: flex;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
