/*
Theme Name: Compassionate Alliance
Description: A beautiful Islamic NGO theme for funeral support organizations. Features elegant green design with gold accents, mosque imagery, and community-focused layout.
Author: Lovable
Version: 1.0
Tags: ngo, islamic, funeral-support, community, green, responsive, charity
*/

/* CSS Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* CSS Custom Properties - Islamic Design System */
:root {
  /* Colors - HSL Format */
  --background: hsl(0, 0%, 100%);
  --foreground: hsl(210, 30%, 8%);
  
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(210, 30%, 8%);
  
  /* Islamic Green Theme */
  --primary: hsl(155, 85%, 25%);
  --primary-foreground: hsl(0, 0%, 98%);
  --primary-glow: hsl(155, 85%, 35%);
  
  /* Gold Accents */
  --secondary: hsl(45, 95%, 50%);
  --secondary-foreground: hsl(45, 95%, 10%);
  
  --muted: hsl(155, 25%, 95%);
  --muted-foreground: hsl(155, 15%, 45%);
  
  --accent: hsl(155, 30%, 90%);
  --accent-foreground: hsl(155, 85%, 25%);
  
  --destructive: hsl(0, 75%, 55%);
  --destructive-foreground: hsl(0, 0%, 98%);
  
  --border: hsl(155, 20%, 88%);
  --input: hsl(155, 20%, 88%);
  --ring: hsl(155, 85%, 25%);
  
  /* Design Elements */
  --gradient-hero: linear-gradient(135deg, hsla(155, 85%, 15%, 0.95), hsla(155, 85%, 25%, 0.9));
  --gradient-gold: linear-gradient(45deg, hsl(45, 95%, 50%), hsl(45, 95%, 60%));
  --shadow-compassion: 0 20px 40px -12px hsla(155, 85%, 25%, 0.25);
  --shadow-elegant: 0 10px 30px -10px hsla(155, 85%, 25%, 0.15);
  
  --radius: 0.75rem;
}

/* Base Typography */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--foreground);
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navigation Styles */
.main-navigation {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: hsla(0, 0%, 100%, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid hsla(155, 20%, 88%, 0.5);
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--foreground);
}

.logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-foreground);
}

.site-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0;
}

.site-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin: 0;
}

.main-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
}

.main-menu a {
  text-decoration: none;
  color: var(--foreground);
  font-weight: 500;
  transition: color 0.3s ease;
}

.main-menu a:hover {
  color: var(--primary);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 1;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: white;
  max-width: 64rem;
  padding: 0 1.5rem;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-title-highlight {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.hero-subtitle {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  margin-bottom: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 3rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 200px;
  font-size: 1.125rem;
}

.btn-hero {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-compassion);
}

.btn-hero:hover {
  background: var(--primary-glow);
  transform: scale(1.02);
  box-shadow: var(--shadow-elegant);
}

.btn-support {
  background: var(--destructive);
  color: var(--destructive-foreground);
  box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.1);
}

.btn-support:hover {
  background: hsla(0, 75%, 45%, 1);
  transform: scale(1.02);
}

.btn-donation {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-compassion);
}

.btn-donation:hover {
  background: var(--primary-glow);
  transform: scale(1.02);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-indicator-inner {
  width: 2rem;
  height: 3rem;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 1.5rem;
  display: flex;
  justify-content: center;
  padding-top: 0.5rem;
}

.scroll-indicator-dot {
  width: 0.25rem;
  height: 0.75rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 0.125rem;
}

@keyframes bounce {
  0%, 20%, 53%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40%, 43% {
    transform: translateX(-50%) translateY(-30px);
  }
  70% {
    transform: translateX(-50%) translateY(-15px);
  }
  90% {
    transform: translateX(-50%) translateY(-4px);
  }
}

/* Manifesto Section */
.manifesto-section {
  padding: 5rem 0;
  background: hsla(155, 25%, 95%, 0.3);
}

.manifesto-title {
  font-size: clamp(2.5rem, 5vw, 3rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--foreground);
}

.manifesto-content {
  max-width: 64rem;
  margin: 0 auto;
  text-align: center;
}

.manifesto-text {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.manifesto-highlight {
  background: hsla(155, 30%, 90%, 0.5);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2rem 0;
}

.manifesto-highlight p {
  font-size: 1.125rem;
  color: var(--accent-foreground);
  font-weight: 600;
  margin: 0;
}

.manifesto-conclusion {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  font-style: italic;
  margin-top: 2rem;
}

/* Statistics Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 64rem;
  margin: 4rem auto 0;
}

.stat-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.stat-card:hover {
  box-shadow: var(--shadow-compassion);
  transform: scale(1.05);
}

.stat-icon {
  width: 4rem;
  height: 4rem;
  background: hsla(155, 85%, 25%, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  transition: background-color 0.3s ease;
}

.stat-card:hover .stat-icon {
  background: hsla(155, 85%, 25%, 0.2);
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.stat-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-description {
  color: var(--muted-foreground);
}

/* Services Section */
.services-section {
  padding: 5rem 0;
  background: var(--background);
}

.services-title {
  font-size: clamp(2.5rem, 5vw, 3rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--foreground);
}

.services-description {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 4rem;
  line-height: 1.7;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.service-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  border: 1px solid hsla(155, 20%, 88%, 0.5);
  transition: all 0.3s ease;
}

.service-card:hover {
  box-shadow: var(--shadow-compassion);
  transform: scale(1.05);
  border-color: hsla(155, 85%, 25%, 0.3);
}

.service-icon {
  width: 4rem;
  height: 4rem;
  background: hsla(155, 85%, 25%, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  transition: background-color 0.3s ease;
}

.service-card:hover .service-icon {
  background: hsla(155, 85%, 25%, 0.2);
}

.service-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.service-card:hover .service-title {
  color: var(--primary);
}

.service-description {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-feature {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Emergency Contact */
.emergency-contact {
  background: hsla(155, 85%, 25%, 0.05);
  border-radius: 1rem;
  padding: 2rem;
  max-width: 32rem;
  margin: 0 auto;
  text-align: center;
  border: 1px solid hsla(155, 85%, 25%, 0.2);
}

.emergency-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.emergency-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin-left: 0.75rem;
}

.emergency-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.emergency-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

/* WordPress Specific */
.wp-post {
  margin-bottom: 2rem;
}

.wp-post-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.wp-post-meta {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.wp-post-content {
  line-height: 1.7;
  color: var(--foreground);
}

.wp-post-content p {
  margin-bottom: 1rem;
}

.wp-post-content h2,
.wp-post-content h3,
.wp-post-content h4 {
  color: var(--primary);
  margin: 2rem 0 1rem;
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 3rem 0 1rem;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-description {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1rem;
  margin-top: 2rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-menu {
    display: none;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn {
    width: 100%;
  }
  
  .stats-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .container {
    padding: 0 1rem;
  }
}

/* Utility Classes */
.text-center { text-align: center; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.hidden { display: none; }

@media (min-width: 768px) {
  .md-block { display: block; }
}