/*
Theme Name: NASLB
Theme URI: https://naslb.org
Author: Chris Talavera - TWT, Inc.
Author URI: https://twt-inc.com
Description: Custom WordPress theme for the National Association of SBA Loan Brokers (NASLB). Built with Elementor compatibility for easy page building and customization.
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: naslb
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* CSS Variables */
:root {
    --primary-color: #0066cc;
    --secondary-color: #00a651;
    --dark-bg: #1a1a2e;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border-light: #e8e8e8;
}

/* Reset */
* {
    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(--text-dark);
    overflow-x: hidden;
}

/* Top Bar */
.top-bar {
    background: var(--dark-bg);
    color: #fff;
    padding: 10px 0;
    font-size: 14px;
}

.top-bar-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    gap: 30px;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.8);
}

.top-bar-item i {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
}

.top-bar-item a {
    color: rgba(255,255,255,0.8);
    text-decoration: none !important;
    transition: color 0.3s;
}

.top-bar-item a:hover {
    color: white;
    text-decoration: none !important;
}

.top-bar-right {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
}

a.social-icon {
    display: inline-flex;
}

.social-icon:hover {
    background: var(--secondary-color);
}

.social-icon i {
    font-size: 16px;
    color: rgba(255,255,255,0.8);
}

.social-icon:hover i {
    color: white;
}

/* Header */
header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 35px;
    align-items: center;
}

nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
    cursor: pointer;
    position: relative;
}

nav a:hover {
    color: var(--primary-color);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

.header-btn {
    background: var(--secondary-color);
    color: white !important;
    padding: 12px 30px;
    border-radius: 30px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.header-btn:hover {
    background: #00863f;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,166,81,0.3);
}

.header-btn::after {
    display: none;
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: white;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-radius: 8px;
    z-index: 1000;
    padding: 10px 0;
    margin-top: 5px;
}

.dropdown::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 15px;
    background: transparent;
    z-index: 999;
}

.dropdown-content a {
    color: var(--text-dark) !important;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    transition: all 0.3s;
    border-radius: 0;
}

.dropdown-content a:hover {
    background: var(--bg-light);
    color: var(--primary-color) !important;
    transform: translateX(5px);
}

.dropdown-content a::after {
    display: none;
}

.dropdown:hover .dropdown-content,
.dropdown.active .dropdown-content {
    display: block;
}

.dropdown:hover::before {
    display: block;
}

.dropdown > a {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: 0.3s;
}

/* Footer */
footer {
    background: var(--dark-bg);
    color: rgba(255,255,255,0.8);
    padding: 60px 20px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about h3 {
    color: white;
    font-size: 28px;
    margin-bottom: 20px;
}

.footer-section h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: all 0.3s;
}

.footer-section a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        background: var(--bg-light);
        margin: 10px 0;
        padding: 10px;
        border-radius: 5px;
        display: none;
    }

    .dropdown:hover .dropdown-content {
        display: none;
    }

    .dropdown > a {
        display: flex;
        align-items: center;
        width: 100%;
    }

    nav ul.active {
        display: flex;
    }

    .top-bar-content {
        flex-direction: column;
        gap: 10px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}