/* ===================================
   Folksutra - Rustic Indian Aesthetic
   =================================== */

/* CSS Custom Properties */
:root {
  /* Earth & Ochre Palette */
  --color-terracotta: #b34a2c;
  --color-terracotta-dark: #8b3a22;
  --color-ochre: #cc8844;
  --color-ochre-light: #d4a574;
  --color-saffron: #e07830;
  --color-maroon: #722f37;
  --color-deep-red: #a52a2a;

  /* Neutral Earth Tones */
  --color-cream: #faf6f0;
  --color-sand: #f5efe6;
  --color-parchment: #ede4d4;
  --color-clay: #d4c4a8;
  --color-earth-brown: #5c4033;
  --color-charcoal: #3d3d3d;

  /* Accents */
  --color-gold: #c9a227;
  --color-teal: #1a5f5a;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  /* Shadows */
  --shadow-soft: 0 4px 20px rgba(92, 64, 51, 0.1);
  --shadow-medium: 0 8px 30px rgba(92, 64, 51, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-charcoal);
  background-color: var(--color-cream);
}

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

a {
  color: var(--color-terracotta);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-terracotta-dark);
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-earth-brown);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
  margin-bottom: var(--space-sm);
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Decorative Border Pattern */
.pattern-border {
  height: 8px;
  background: repeating-linear-gradient(
    90deg,
    var(--color-terracotta) 0px,
    var(--color-terracotta) 20px,
    var(--color-ochre) 20px,
    var(--color-ochre) 40px,
    var(--color-saffron) 40px,
    var(--color-saffron) 60px
  );
}

.pattern-border-thin {
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--color-terracotta) 0px,
    var(--color-terracotta) 15px,
    transparent 15px,
    transparent 20px
  );
}

/* Header & Navigation */
.header {
  background-color: var(--color-cream);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-soft);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
}

.nav-logo img {
  height: 50px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  color: var(--color-earth-brown);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--color-earth-brown);
  border-radius: 2px;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--color-parchment) 0%, var(--color-sand) 50%, var(--color-cream) 100%);
  padding: var(--space-xl) 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23b34a2c' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  margin-bottom: var(--space-sm);
  color: var(--color-maroon);
}

.hero-text .tagline {
  font-size: 1.25rem;
  color: var(--color-terracotta);
  font-style: italic;
  margin-bottom: var(--space-md);
}

.hero-text p {
  font-size: 1.1rem;
  color: var(--color-charcoal);
  margin-bottom: var(--space-md);
}

.hero-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
}

.hero-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

.btn-primary:hover {
  background-color: var(--color-terracotta-dark);
  border-color: var(--color-terracotta-dark);
  color: white;
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-terracotta);
  border-color: var(--color-terracotta);
}

.btn-secondary:hover {
  background-color: var(--color-terracotta);
  color: white;
}

.btn-group {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* Section Styles */
.section {
  padding: var(--space-xl) 0;
}

.section-alt {
  background-color: var(--color-sand);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-header h2 {
  position: relative;
  display: inline-block;
  padding-bottom: var(--space-sm);
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-ochre), var(--color-terracotta), var(--color-ochre));
  border-radius: 2px;
}

.section-header p {
  margin-top: var(--space-sm);
  font-size: 1.1rem;
  color: var(--color-charcoal);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-medium);
}

.about-image::before {
  content: '';
  position: absolute;
  top: -15px;
  left: -15px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--color-ochre);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.about-content h3 {
  color: var(--color-terracotta);
  margin-bottom: var(--space-sm);
}

/* Mission Cards */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.mission-card {
  background: white;
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-soft);
  border-top: 4px solid var(--color-ochre);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mission-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.mission-card .icon {
  width: 70px;
  height: 70px;
  margin: 0 auto var(--space-sm);
  background: linear-gradient(135deg, var(--color-parchment), var(--color-sand));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.mission-card h4 {
  margin-bottom: var(--space-xs);
  color: var(--color-terracotta);
}

/* Projects Section */
.project-showcase {
  background: linear-gradient(135deg, var(--color-parchment) 0%, var(--color-cream) 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-medium);
}

.project-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-lg);
  align-items: center;
}

.project-logo {
  text-align: center;
}

.project-logo img {
  max-width: 350px;
  margin: 0 auto;
}

.project-details h3 {
  color: var(--color-terracotta);
  margin-bottom: var(--space-xs);
}

.project-details .subtitle {
  font-size: 1.1rem;
  color: var(--color-ochre);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.project-partners {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-clay);
}

.project-partners span {
  font-size: 0.9rem;
  color: var(--color-charcoal);
}

.project-partners img {
  height: 50px;
  width: auto;
}

/* Activities Section */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.activity-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease;
}

.activity-card:hover {
  transform: scale(1.02);
}

.activity-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.activity-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-md);
  background: linear-gradient(transparent, rgba(92, 64, 51, 0.9));
  color: white;
}

.activity-overlay h4 {
  color: white;
  margin-bottom: var(--space-xs);
}

.activity-overlay p {
  font-size: 0.9rem;
  margin: 0;
  opacity: 0.9;
}

/* Contact Page Styles */
.contact-hero {
  background: linear-gradient(135deg, var(--color-parchment) 0%, var(--color-sand) 100%);
  padding: var(--space-lg) 0;
  text-align: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.contact-card {
  background: white;
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.contact-card h3 {
  color: var(--color-terracotta);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-parchment);
}

.contact-item {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  align-items: flex-start;
}

.contact-item .icon {
  width: 40px;
  height: 40px;
  background: var(--color-parchment);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-terracotta);
}

.contact-item .details h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.contact-item .details p {
  margin: 0;
  color: var(--color-charcoal);
}

/* Donation Section */
.donation-section {
  background: linear-gradient(135deg, var(--color-terracotta) 0%, var(--color-maroon) 100%);
  color: white;
  padding: var(--space-xl) 0;
}

.donation-section h2,
.donation-section h3,
.donation-section h4 {
  color: white;
}

.donation-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.donation-info h2 {
  margin-bottom: var(--space-sm);
}

.donation-info p {
  opacity: 0.95;
  margin-bottom: var(--space-md);
}

.donation-benefits {
  list-style: none;
  margin-bottom: var(--space-md);
}

.donation-benefits li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xs);
  font-size: 1.05rem;
}

.donation-benefits li::before {
  content: '✓';
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.bank-details {
  background: rgba(255, 255, 255, 0.1);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
}

.bank-details h3 {
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.bank-item {
  display: flex;
  justify-content: space-between;
  padding: var(--space-xs) 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
}

.bank-item:last-child {
  border-bottom: none;
}

.bank-item span:first-child {
  opacity: 0.8;
}

.bank-item span:last-child {
  font-weight: 600;
}

/* Donate Tabs */
.donate-tabs {
  display: flex;
  gap: 0;
  margin-bottom: var(--space-md);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.donate-tab {
  flex: 1;
  padding: 0.75rem 1rem;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.donate-tab.active {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.donate-tab:hover:not(.active) {
  background: rgba(255, 255, 255, 0.1);
}

.donate-tab-content {
  display: none;
}

.donate-tab-content.active {
  display: block;
}

/* QR Code */
.qr-code-wrapper {
  margin-top: var(--space-sm);
  text-align: center;
}

.qr-code-wrapper img {
  max-width: 200px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  border: 4px solid rgba(255, 255, 255, 0.3);
}

/* Footer */
.footer {
  background-color: var(--color-earth-brown);
  color: var(--color-sand);
  padding: var(--space-lg) 0 var(--space-md);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-md);
}

.footer-brand img {
  height: 45px;
  margin-bottom: var(--space-sm);
  filter: brightness(0) invert(0.9);
}

.footer-brand p {
  font-size: 0.95rem;
  opacity: 0.85;
  line-height: 1.6;
}

.footer-links h4,
.footer-contact h4 {
  color: var(--color-ochre-light);
  margin-bottom: var(--space-sm);
  font-size: 1.1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links a {
  color: var(--color-sand);
  opacity: 0.85;
  display: block;
  padding: 0.25rem 0;
  transition: opacity 0.3s ease;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--color-ochre-light);
}

.footer-contact p {
  font-size: 0.95rem;
  opacity: 0.85;
  margin-bottom: 0.5rem;
}

.footer-contact a {
  color: var(--color-sand);
  transition: color 0.3s ease;
}

.footer-contact a:hover {
  color: var(--color-ochre-light);
}

.footer-bottom {
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-text {
  background: rgba(0, 0, 0, 0.2);
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
}

.legal-text p {
  font-size: 0.85rem;
  opacity: 0.9;
  margin: 0;
  line-height: 1.5;
}

.copyright {
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 968px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-image {
    order: -1;
  }

  .hero-image img {
    height: 300px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-image {
    order: -1;
  }

  .mission-grid {
    grid-template-columns: 1fr;
  }

  .project-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .project-partners {
    justify-content: center;
    flex-wrap: wrap;
  }

  .activities-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .donation-content {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-cream);
    flex-direction: column;
    padding: var(--space-sm);
    box-shadow: var(--shadow-soft);
  }

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

  .nav-toggle {
    display: flex;
  }

  .section {
    padding: var(--space-lg) 0;
  }

  .btn-group {
    justify-content: center;
  }

  .mission-grid {
    gap: var(--space-sm);
  }

  .project-showcase {
    padding: var(--space-md);
  }

  .bank-item {
    flex-direction: column;
    gap: 0.25rem;
  }
}

/* Utility Classes */
.text-center { text-align: center; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.6s ease forwards;
}
