/* ==============================================
   Yalla Kenya Public Frontend Custom Styles
   Built on Pico.css v2
   ============================================== */

/* Reset & Base */
* {
    box-sizing: border-box;
}

body {
    background: #0f0f1a;
    color: #e2e8f0;
    font-family: system-ui, -apple-system, BlinkMacOSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    margin: 0;
}

/* Header / Nav overrides */
header nav {
    background: rgba(15, 15, 26, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header nav a {
    color: #cbd5e1;
    transition: color 0.2s ease;
}

header nav a:hover,
header nav a[aria-current="page"] {
    color: #60a5fa;
}

/* Hero section */
.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
}

.hero h1 {
    font-size: clamp(2.8rem, 8vw, 5rem);
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 0 4px 12px rgba(0,0,0,0.7);
}

.hero p {
    font-size: 1.4rem;
    max-width: 720px;
    margin: 0 auto 2.5rem;
    opacity: 0.9;
}

/* Cards / Articles */
article {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 12px;
    overflow: hidden;
}

article:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

article img {
    transition: transform 0.4s ease;
}

article:hover img {
    transform: scale(1.04);
}

/* Buttons */
button, a[role="button"] {
    transition: all 0.2s ease;
}

button:hover, a[role="button"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

.contrast {
    background: #3b82f6;
    border-color: #3b82f6;
}

.contrast:hover {
    background: #2563eb;
    border-color: #2563eb;
}

/* Grid improvements */
.grid {
    display: grid;
    gap: 1.8rem;
}

/* Typography tweaks */
h1, h2, h3, h4 {
    color: #f1f5f9;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

h2:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #60a5fa;
    border-radius: 2px;
}

/* Sections */
section {
    padding: 5rem 0;
}

section:nth-child(even) {
    background: rgba(15, 23, 42, 0.4);
}

/* Footer */
footer {
    background: #0a0a14;
    border-top: 1px solid #1e293b;
    color: #94a3b8;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 5rem 1rem;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    h2 {
        font-size: 1.9rem;
    }
}

/* Utility classes */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.opacity-80 { opacity: 0.8; }