/*
/* ============================================================================= */
/* WMMC COOPERATIVE WEBSITE - MAIN STYLESHEET (COMPACT MOBILE OPTIMIZED)        */
/* ============================================================================= */
/* 
   FILE: assets/css/style.css
   AUTHOR: WMMC Development Team
   LAST UPDATED: April 2026
   
   TABLE OF CONTENTS:
   1.  CSS VARIABLES (Design System)
   2.  GLOBAL STYLES & RESETS
   3.  CONTAINER & LAYOUT SYSTEM
   4.  TYPOGRAPHY (Core Resets)
   5.  HEADER & NAVIGATION
   6.  FOOTER
   7.  UTILITY CLASSES
*/

/* ============================================================================= */
/* 1. CSS VARIABLES - DESIGN SYSTEM                                           */
/* ============================================================================= */
:root {
    /* BRAND COLORS */
    --primary-blue: #2E338C;
    --primary-purple: #2E338C;
    --primary-pink: #F21D2F;
    
    /* SEMANTIC COLORS */
    --success-green: #10b981;
    --warning-amber: #f59e0b;
    --danger-red: #ef4444;
    --info-cyan: #06b6d4;
    
    /* NEUTRAL GRAYS */
    --dark-gray: #1f2937;
    --medium-gray: #4b5563;
    --light-gray: #9ca3af;
    --extra-light-gray: #f3f4f6;
    --white: #ffffff;
    
    /* SHADOWS */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* BORDER RADIUS */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* TRANSITIONS */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* SPACING SCALE */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
}

/* ============================================================================= */
/* 2. GLOBAL STYLES & RESETS                                                  */
/* ============================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background: var(--extra-light-gray);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* ============================================================================= */
/* 3. CONTAINER & LAYOUT SYSTEM                                                */
/* ============================================================================= */
.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem; /* Tighter mobile padding */
}

@media (min-width: 640px) {
    .container { padding: 0 1.5rem; max-width: 640px; }
}
@media (min-width: 768px) {
    .container { padding: 0 2rem; max-width: 768px; }
}
@media (min-width: 1024px) {
    .container { padding: 0 2.5rem; max-width: 1024px; }
}
@media (min-width: 1280px) {
    .container { padding: 0 3rem; max-width: 1280px; }
}
@media (min-width: 1536px) {
    .container { max-width: 1400px; }
}

/* ============================================================================= */
/* 4. TYPOGRAPHY & HEADINGS (Core Resets)                                      */
/* ============================================================================= */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; }

/* ============================================================================= */
/* 5. HEADER & NAVIGATION                                                      */
/* ============================================================================= */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(37, 99, 235, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all var(--transition-base);
}

.navbar { padding: 0.75rem 0; }
.navbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.nav-brand { display: flex; align-items: center; gap: 0.75rem; }
.logo { display: flex; align-items: center; gap: 0.5rem; }
.logo img { width: 40px; height: 40px; border-radius: var(--radius-md); box-shadow: 0 4px 10px rgba(37, 99, 235, 0.15); }
@media (max-width: 480px) { .logo img { width: 36px; height: 36px; } }
.logo-text h1 { font-size: 1.25rem; font-weight: 800; color: var(--primary-blue); margin: 0; line-height: 1; }
@media (max-width: 480px) { .logo-text h1 { font-size: 1.1rem; } }
.logo-text span { font-size: 0.8rem; color: var(--medium-gray); font-weight: 500; display: none; } /* Hide tagline on very small screens */
@media (min-width: 480px) { .logo-text span { display: block; } }

.nav-menu { display: flex; align-items: center; gap: 1.5rem; }
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: var(--shadow-xl);
        border-radius: 0 0 var(--radius-xl) var(--radius-xl);
        padding: 1.5rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
        z-index: 999;
        flex-direction: column;
    }
    .nav-menu.active { transform: translateY(0); opacity: 1; visibility: visible; }
}

.nav-links { display: flex; align-items: center; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
@media (max-width: 768px) { .nav-links { flex-direction: column; gap: 1rem; text-align: center; width: 100%; } }

.nav-link {
    color: var(--dark-gray);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-base);
    position: relative;
}
.nav-link::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-purple));
    transition: width var(--transition-base);
}
.nav-link:hover::before, .nav-link.active::before { width: 100%; }
.nav-link:hover, .nav-link.active { color: var(--primary-blue); }

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--primary-blue);
    cursor: pointer;
    padding: 0.4rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}
@media (max-width: 768px) { .mobile-menu-toggle { display: block; } }
.mobile-menu-toggle:hover { background: rgba(37, 99, 235, 0.1); }

/* ============================================================================= */
/* 6. FOOTER                                                                   */
/* ============================================================================= */
.footer {
    background: linear-gradient(135deg, var(--dark-gray), var(--medium-gray));
    color: white;
    padding: 2rem 0 1rem; /* Compact mobile footer */
    position: relative;
    overflow: hidden;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
@media (min-width: 768px) { .footer { padding: 3rem 0 1.5rem; margin-top: 4rem; } }
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-purple), var(--primary-pink));
}
.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}
@media (min-width: 640px) { .footer-content { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-content { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }

.footer-section h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.75rem; color: white; }
.footer-section p, .footer-section ul { color: rgba(255, 255, 255, 0.8); line-height: 1.6; font-size: 0.9rem; }
.footer-section ul { list-style: none; padding: 0; }
.footer-section ul li { margin-bottom: 0.35rem; }
.footer-section ul li a { color: rgba(255, 255, 255, 0.8); text-decoration: none; transition: color var(--transition-base); }
.footer-section ul li a:hover { color: white; }
.footer-bottom { text-align: center; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.6); font-size: 0.8rem; }

/* ============================================================================= */
/* 7. UTILITY CLASSES                                                          */
/* ============================================================================= */
.hide-on-mobile { display: block; }
@media (max-width: 768px) { .hide-on-mobile { display: none; } }
.show-on-mobile { display: none; }
@media (max-width: 768px) { .show-on-mobile { display: block; } }
.text-center { text-align: center; }