/*
Theme Name: LEA - Lebanese Economic Association
Theme URI: https://lebecon.org
Author: Lebanese Economic Association
Author URI: https://lebecon.org
Description: Custom WordPress theme for the Lebanese Economic Association (LEA). Features custom post types for Publications, Members, and Events. Bilingual support (English/Arabic/French).
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lea-theme
Tags: custom-logo, custom-menu, featured-images, translation-ready, blog, news

Lebanese Economic Association - Promoting Evidence in Economic Research, Public Advocacy, and Policymaking since 2007.
*/

/* ============================================
   LEA Website Styles
   Lebanese Economic Association
   ============================================ */

:root {
    /* Brand Colors */
    --teal: #155078;
    --teal-dark: #0e3a57;
    --teal-light: #1a6090;
    --green: #8CC814;
    --green-dark: #6fa30f;
    --green-light: #a5e01a;
    
    /* Neutrals */
    --cream: #f8f7f4;
    --white: #ffffff;
    --text-dark: #1a1a1a;
    --text-muted: #5a5a5a;
    --border-light: #e8e8e8;
    
    /* Typography */
    --font-display: 'Oswald', sans-serif;
    --font-body: 'Source Sans 3', sans-serif;
    
    /* Spacing */
    --section-padding: 100px;
    --container-max: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 16px;
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* ============================================
   Navigation
   ============================================ */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    padding: 0 5%;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-icon {
    height: 56px;
    width: auto;
}

.logo-trilingual {
    height: 40px;
    width: auto;
}

/* WordPress Menu Styles */
.nav-links,
.nav-links ul {
    display: flex;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--green);
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links .current-menu-item a,
.nav-links .current_page_item a {
    color: var(--teal);
}

.nav-links a:hover::after,
.nav-links .current-menu-item a::after,
.nav-links .current_page_item a::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--teal);
    transition: 0.3s;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-body);
    border-radius: 4px;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    border: none;
    cursor: pointer;
}

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

.btn-primary:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(140, 200, 20, 0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.4);
}

.btn-secondary:hover {
    border-color: var(--white);
    background: rgba(255,255,255,0.1);
}

.btn-outline {
    background: transparent;
    color: var(--teal);
    border: 2px solid var(--teal);
}

.btn-outline:hover {
    background: var(--teal);
    color: var(--white);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 5% 80px;
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 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='%23ffffff' fill-opacity='0.03'%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 {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.hero-text h1 span {
    color: var(--green);
}

.hero-cta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
}

.hero-logo {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    display: block;
    filter: drop-shadow(0 20px 60px rgba(0,0,0,0.3));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ============================================
   Section Styles
   ============================================ */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--teal);
    margin-bottom: 16px;
    font-weight: 600;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ============================================
   Features Section
   ============================================ */
.features {
    padding: var(--section-padding) 5%;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: var(--container-max);
    margin: 0 auto;
}

.feature-card {
    padding: 40px;
    background: var(--cream);
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--green);
    transition: height 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(21, 80, 120, 0.1);
}

.feature-card:hover::before {
    height: 100%;
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--teal);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--white);
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--teal);
    margin-bottom: 12px;
    font-weight: 500;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============================================
   Membership Preview
   ============================================ */
.membership-preview {
    padding: var(--section-padding) 5%;
    background: var(--teal);
    color: var(--white);
}

.membership-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.membership-content h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 16px;
    font-weight: 600;
}

.membership-content > p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 40px;
}

/* ============================================
   Page Header (for inner pages)
   ============================================ */
.page-header {
    padding: 160px 5% 80px;
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
    text-align: center;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 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='%23ffffff' fill-opacity='0.03'%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;
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.page-header p {
    color: rgba(255,255,255,0.85);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ============================================
   Footer
   ============================================ */
footer {
    background: var(--teal-dark);
    color: var(--white);
    padding: 60px 5% 30px;
}

.footer-content {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 16px;
    font-weight: 600;
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 350px;
}

.footer-links h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    margin-bottom: 20px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

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

.footer-links li {
    margin-bottom: 12px;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--green);
}

.footer-bottom {
    max-width: var(--container-max);
    margin: 0 auto;
    padding-top: 30px;
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
}

/* ============================================
   WordPress Specific Styles
   ============================================ */
.entry-content p {
    margin-bottom: 1.5em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    font-family: var(--font-display);
    color: var(--teal);
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

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

    .hero-cta {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .hero-logo {
        max-width: 300px;
    }

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

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .section-header h2,
    .membership-content h2 {
        font-size: 2rem;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    .logo-trilingual {
        display: none;
    }

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