/*
Theme Name: ELFI Theme Final
Theme URI: https://example.com/elfi-theme-final
Author: Antigravity
Author URI: https://example.com
Description: A clean, custom theme for ELFI Global Legal & Finance.
Version: 4.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: elfi-theme-final
*/

:root {
    --primary: #0F3D3E;
    --gold: #C5A059;
    --light: #F4F4F4;
    --text: #333;
}

body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    color: var(--text);
    background: #fff;
    line-height: 1.6;
}

/* Header & Navigation */
.site-header {
    background: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Top Bar */
.top-bar {
    background: #0a2929;
    /* Darker shade of primary */
    color: #ccc;
    padding: 10px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.top-flex {
    display: flex;
    justify-content: space-between;
}

.main-header {
    padding: 0;
    background: var(--primary);
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

/* Logo */
.site-branding {
    display: flex;
    align-items: center;
}

.site-branding .custom-logo-link {
    display: inline-block;
}

.site-branding .custom-logo-link img {
    max-height: 50px;
    width: auto;
    display: block;
}

.logo-text {
    font-family: 'Open Sans', sans-serif;
    /* Reverted font */
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: 1px;
    line-height: 1;
}

/* Menu */
.main-navigation {
    height: 100%;
}

.main-navigation .menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    height: 100%;
}

.main-navigation .menu ul li {
    margin-left: 15px;
    height: 100%;
    display: flex;
    align-items: center;
}

.main-navigation .menu ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: 0.3s;
    padding: 0 5px;
    height: 100%;
    display: flex;
    /* Flex adjustment */
    align-items: center;
}

.main-navigation .menu ul li a:hover {
    color: var(--gold);
}

/* Hero - Reverting Image */
.hero {
    /* Original Image from V1 */
    background: linear-gradient(rgba(15, 61, 62, 0.8), rgba(15, 61, 62, 0.8)), url('https://images.unsplash.com/photo-1505664194779-8beaceb93744?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    padding: 100px 0;
    color: #fff;
    text-align: center;
}

.hero h1 {
    font-family: 'Open Sans', sans-serif;
    /* Reverted font */
    font-size: 3rem;
    margin-bottom: 20px;
    color: #fff;
}

.hero p {
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 1.2rem;
    line-height: 1.6;
}

.btn {
    background: var(--gold);
    color: #000;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 3px;
    display: inline-block;
    border: none;
}

/* Sections */
.section {
    padding: 80px 0;
}

.bg-light {
    background: var(--light);
}

.section-title {
    font-family: 'Open Sans', sans-serif;
    /* Reverted font */
    color: var(--primary);
    font-size: 2.2rem;
    border-bottom: 3px solid var(--gold);
    display: inline-block;
    margin-bottom: 40px;
    padding-bottom: 10px;
    font-weight: 700;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    background: #fff;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--primary);
}

.card h3 {
    color: var(--primary);
    margin-top: 0;
    font-family: 'Open Sans', sans-serif;
    /* Reverted */
    font-weight: 700;
}

.card a {
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
}

.about-flex {
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-img {
    flex: 1;
    height: 300px;
    background-image: url('https://images.unsplash.com/photo-1497215728101-856f4ea42174?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    background-color: #ddd;
}

/* Footer */
footer {
    background: #111;
    color: #aaa;
    padding: 60px 0;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 20px;
    font-family: 'Open Sans', sans-serif;
    /* Reverted */
}

/* Responsive */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-flex {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .nav-flex {
        flex-direction: column;
        height: auto;
        padding: 20px 0;
    }

    .main-navigation .menu ul {
        flex-direction: column;
    }

    .main-navigation .menu ul li {
        margin: 10px 0;
    }
}

/* Sidebar Revert */
.page-container {
    display: flex;
    gap: 40px;
}

.sidebar {
    flex: 0 0 250px;
    background: #f9f9f9;
    padding: 20px;
    height: fit-content;
    border-right: 1px solid #eee;
}

.content-area {
    flex: 1;
}

.sidebar-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu ul li {
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.sidebar-menu ul li a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    display: block;
    transition: 0.2s;
}

.sidebar-menu ul li a:hover {
    color: var(--gold);
    padding-left: 5px;
}

/* Responsive Sidebar */
@media (max-width: 768px) {
    .page-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        flex: none;
    }
}

/* Page Specific Content */
.entry-content h3 {
    color: var(--primary);
    margin-top: 30px;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 10px;
    display: inline-block;
    font-family: 'Open Sans', sans-serif;
}

.entry-content ul {
    padding-left: 20px;
    line-height: 1.8;
}

.entry-content li {
    margin-bottom: 10px;
}