/*
 Theme Name:   Shiksha Abhiyan Child Theme
 Theme URI:    https://shiksha.inquerlabs.com
 Description:  Custom theme for Shiksha Abhiyan NGO website
 Author:       Shiksha Abhiyan
 Template:     twentytwentyfour
 Version:      1.0.0
 License:      GPL v2 or later
 License URI:  https://www.gnu.org/licenses/gpl-2.0.html
*/

/* Import parent theme styles */
@import url('../twentytwentyfour/style.css');

/* Design Tokens - Colors */
:root {
  /* Primary colors by cause */
  --cause-shiksha: #2563eb;  /* Blue - Education */
  --cause-maitri: #dc2626;   /* Red - Women empowerment */
  --cause-prakriti: #16a34a; /* Green - Environment */
  --cause-anti: #9333ea;     /* Purple - Anti-corruption */
  
  /* Neutral palette */
  --c-ink: #09090b;
  --c-bg: #ffffff;
  --c-surface: #f8f8f8;
  --c-surface-2: #f0f0f0;
  --c-line: #e5e7eb;
  --c-muted: #6b7280;
  --c-rust: #dc2626;
  
  /* Typography scale */
  --fs-0: 0.75rem;   /* 12px */
  --fs-1: 0.875rem;  /* 14px */
  --fs-2: 1rem;      /* 16px */
  --fs-3: 1.125rem;  /* 18px */
  --fs-4: 1.25rem;   /* 20px */
  --fs-5: 1.5rem;    /* 24px */
  --fs-6: 1.875rem;  /* 30px */
  --fs-7: 2.25rem;   /* 36px */
  --fs-8: 3rem;      /* 48px */
  --fs-9: 3.75rem;   /* 60px */
  --fs-10: 4.5rem;   /* 72px */
  
  /* Spacing scale */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.25rem;
  --s-6: 1.5rem;
  --s-7: 2rem;
  --s-8: 2.5rem;
  --s-9: 3rem;
  --s-10: 4rem;
  
  /* Border radius */
  --r-1: 0.125rem;
  --r-2: 0.25rem;
  --r-3: 0.5rem;
  --r-4: 1rem;
  --r-pill: 9999px;
  
  /* Fonts */
  --font-display: 'Fraunces', serif;
  --font-text: 'Inter Tight', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* Base styles */
body {
  font-family: var(--font-text);
  color: var(--c-ink);
  background: var(--c-bg);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
}

/* Cause-specific colors */
.cause-shiksha { color: var(--cause-shiksha); }
.cause-maitri { color: var(--cause-maitri); }
.cause-prakriti { color: var(--cause-prakriti); }
.cause-anti { color: var(--cause-anti); }


/* ============================================
   THEME COMPONENTS & PAGES
   ============================================ */

/* Container & Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--s-6);
}

/* Navigation */
.navbar {
    display: flex;
    align-items: center;
    padding: var(--s-4) 0;
    background: var(--c-bg);
    border-bottom: 1px solid var(--c-line);
}

.navbar-brand {
    flex: 0 0 auto;
    font-family: var(--font-display);
    font-size: var(--fs-5);
    font-weight: 600;
}

.navbar-menu {
    display: flex;
    gap: var(--s-6);
    list-style: none;
    margin: 0;
    padding: 0;
}

.language-switcher {
    margin-left: auto;
    display: flex;
    gap: var(--s-4);
}

/* Hero Section */
.hero-carousel {
    padding: var(--s-10) 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
    text-align: center;
}

.hero-carousel h1 {
    font-size: var(--fs-10);
    line-height: 1.2;
    margin-bottom: var(--s-4);
    color: var(--c-ink);
}

.hero-subtitle {
    font-size: var(--fs-4);
    color: var(--c-muted);
    margin-bottom: var(--s-6);
}

.hero-ctas {
    display: flex;
    gap: var(--s-4);
    justify-content: center;
    flex-wrap: wrap;
}

/* Cause Cards */
.causes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--s-6);
    margin-top: var(--s-6);
}

.cause-card {
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--r-4);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cause-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.cause-card-header {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    padding: var(--s-5);
    border-bottom: 1px solid var(--c-line);
}

.cause-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.cause-card-title {
    margin: 0;
    font-size: var(--fs-4);
    font-family: var(--font-display);
}

.cause-card-body {
    padding: var(--s-5);
}

.cause-card-image {
    margin: 0 calc(-1 * var(--s-5)) var(--s-4) calc(-1 * var(--s-5));
}

.cause-card-image img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.cause-card-excerpt {
    color: var(--c-muted);
    font-size: var(--fs-1);
    line-height: 1.6;
    margin: 0;
}

.cause-card-footer {
    padding: var(--s-4) var(--s-5);
    border-top: 1px solid var(--c-line);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: var(--s-3) var(--s-6);
    border-radius: var(--r-pill);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-family: var(--font-text);
    font-size: var(--fs-2);
}

.btn-primary {
    background: var(--cause-shiksha);
    color: white;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--cause-shiksha);
    border: 2px solid var(--cause-shiksha);
}

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

.btn-link {
    background: none;
    color: var(--cause-shiksha);
    padding: 0;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Forms */
.donation-form,
.volunteer-form {
    background: var(--c-surface);
    padding: var(--s-6);
    border-radius: var(--r-4);
    border: 1px solid var(--c-line);
}

.form-group {
    margin-bottom: var(--s-5);
}

.form-group label {
    display: block;
    margin-bottom: var(--s-2);
    font-weight: 600;
    font-size: var(--fs-2);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--s-3);
    border: 1px solid var(--c-line);
    border-radius: var(--r-3);
    font-family: var(--font-text);
    font-size: var(--fs-2);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-4);
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Footer */
.site-footer {
    background: var(--c-surface-2);
    padding: var(--s-8) 0;
    border-top: 1px solid var(--c-line);
    margin-top: var(--s-10);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--s-6);
}

.footer-section h3 {
    font-family: var(--font-display);
    margin: 0 0 var(--s-3) 0;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: var(--s-2);
}

.footer-menu a {
    color: var(--c-muted);
    text-decoration: none;
}

.footer-menu a:hover {
    color: var(--c-ink);
}

/* Responsive */
@media (max-width: 900px) {
    .causes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .causes-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-carousel h1 {
        font-size: var(--fs-8);
    }
    
    .navbar-menu {
        gap: var(--s-4);
        flex-wrap: wrap;
    }
}


/* ============================================
   RESPONSIVE & ACCESSIBILITY
   ============================================ */

/* Accessibility */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: 2px solid var(--cause-shiksha);
    outline-offset: 2px;
}

/* Skip link for keyboard navigation */
.skip-to-content {
    position: absolute;
    top: -9999px;
    left: -9999px;
    z-index: 999;
}

.skip-to-content:focus {
    top: 0;
    left: 0;
    z-index: 999;
    padding: var(--s-3);
    background: var(--cause-shiksha);
    color: white;
}

/* Color contrast improvements */
body {
    line-height: 1.6;
    letter-spacing: 0.3px;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    :root {
        --fs-10: 3.75rem;
        --fs-9: 3rem;
        --fs-8: 2.25rem;
        --fs-7: 1.875rem;
    }
    
    .container {
        padding: 0 var(--s-4);
    }
    
    .navbar {
        flex-direction: column;
        gap: var(--s-4);
    }
    
    .navbar-menu {
        width: 100%;
        flex-direction: column;
    }
    
    .hero-ctas {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .donation-wrapper,
    .volunteer-wrapper {
        flex-direction: column;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-carousel {
        padding: var(--s-6) 0;
    }
    
    .hero-carousel h1 {
        font-size: var(--fs-7);
    }
    
    .navbar-brand {
        font-size: var(--fs-4);
    }
    
    .causes-grid {
        grid-template-columns: 1fr;
    }
}

/* Print styles */
@media print {
    .navbar,
    .donation-form,
    .volunteer-form,
    .btn {
        display: none;
    }
    
    body {
        background: white;
    }
}

