/**
 * Pharos Financial Group - Main Styles
 * Version: 1.0.0
 */

/* =CSS Variables
-------------------------------------------------------------- */
:root {
    --primary-color: #42567B;
    --secondary-color: #5A6C85;
    --accent-color: #002855;
    --highlight-color: #8B7355;
    --success-color: #5A7D5F;
    --text-light: #f8f9fa;
    --text-muted: #4A5568;
    --text-dark: #333333;
    --charcoal: #2C3E50;
    --silver-gray: #95A5A6;
    --gradient-primary: linear-gradient(135deg, #42567B 0%, #5A6C85 100%);
    --gradient-secondary: linear-gradient(135deg, #5A6C85 0%, #6B7D91 100%);
    --shadow-light: rgba(0, 0, 0, 0.08);
    --shadow-medium: rgba(0, 0, 0, 0.12);
    --shadow-heavy: rgba(0, 0, 0, 0.18);
}

/* =Base Styles
-------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Libre+Baskerville:wght@400;700&display=swap');

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    font-weight: 400;
    scroll-behavior: smooth;
}

/* Fix for sections cutting into fixed navbar */
section {
    scroll-margin-top: 120px;
}

/* Special padding for About section to ensure it doesn't stick to header */
#about {
    padding-top: 140px !important;
}

/* =Header & Navigation
-------------------------------------------------------------- */
.navbar {
    background: var(--primary-color) !important;
    transition: box-shadow 0.3s ease;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: 40px;
    margin-right: 10px;
}

.nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    transition: color 0.3s ease;
    margin: 0 0.5rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--success-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--success-color) !important;
}

/* WordPress Menu Integration */
.navbar-nav .menu-item {
    list-style: none;
}

.navbar-nav .menu-item a {
    color: var(--text-light) !important;
    font-weight: 500;
    transition: color 0.3s ease;
    margin: 0 0.5rem;
    text-decoration: none;
}

.navbar-nav .current-menu-item a,
.navbar-nav .current_page_item a {
    color: var(--success-color) !important;
}

/* =Hero Section
-------------------------------------------------------------- */
.hero-section {
    background: var(--gradient-primary);
    color: var(--text-light);
    padding: 120px 0 80px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content h1 {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
    line-height: 1.2;
    color: var(--text-light);
}

.hero-tagline {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0.95;
    letter-spacing: 0.02em;
    color: var(--text-light);
    font-style: italic;
}

.hero-content .lead {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    font-weight: 400;
    max-width: 800px;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin: 2.5rem 0;
    flex-wrap: wrap;
}

.stat-item {
    text-align: left;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--success-color);
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.95rem;
    opacity: 0.9;
    margin-top: 0.5rem;
    font-weight: 500;
}

/* =Sections
-------------------------------------------------------------- */
.section-padding {
    padding: 180px 0 80px;
}

.section-title {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 4rem;
    text-align: center;
    color: var(--primary-color);
    letter-spacing: 0;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: var(--highlight-color);
    border-radius: 0;
}

/* =Cards
-------------------------------------------------------------- */
.card {
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px var(--shadow-light);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}

.card:hover {
    box-shadow: 0 4px 16px var(--shadow-medium);
    border-color: var(--silver-gray);
}

.card-body {
    padding: 2.5rem;
}

.card-title {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* =Tabs
-------------------------------------------------------------- */
.nav-tabs {
    border-bottom: 1px solid #d1d5db;
    margin-bottom: 2rem;
}

.nav-tabs .nav-link {
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding: 1rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-tabs .nav-link:hover {
    border-color: transparent transparent var(--silver-gray);
    color: var(--primary-color);
    background: rgba(66, 86, 123, 0.03);
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    background: transparent;
    border-color: transparent transparent var(--highlight-color);
    border-bottom: 2px solid var(--highlight-color);
    font-weight: 700;
}

.tab-content {
    padding: 2rem 0;
}

/* =Buttons
-------------------------------------------------------------- */
.btn {
    padding: 12px 28px;
    font-weight: 600;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-primary {
    background: var(--primary-color);
    border: 2px solid var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(66, 86, 123, 0.25);
}

/* =Custom Components
-------------------------------------------------------------- */
.highlight-box {
    background: #f9fafb;
    border-left: 3px solid var(--highlight-color);
    padding: 2rem;
    border-radius: 4px;
    margin: 2rem 0;
    border: 1px solid #e5e7eb;
    border-left-width: 3px;
}

.tep-box {
    background: #f8f9fa;
    color: var(--text-dark);
    padding: 2.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 2px 8px var(--shadow-light);
    border: 1px solid #e5e7eb;
}

.tep-box h3 {
    font-family: 'Libre Baskerville', Georgia, serif;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.tep-box ul {
    list-style: none;
    padding: 0;
}

.tep-box li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 2rem;
}

.tep-box li:before {
    content: "•";
    color: var(--highlight-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.5rem;
}

.fund-item {
    background: #ffffff;
    padding: 1.75rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.fund-item:hover {
    background: #f9fafb;
    border-color: var(--silver-gray);
    box-shadow: 0 2px 8px var(--shadow-light);
}

.fund-item h5 {
    font-family: 'Libre Baskerville', Georgia, serif;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.bio-section {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow-light);
    border: 1px solid #e5e7eb;
}

.bio-section h4 {
    font-family: 'Libre Baskerville', Georgia, serif;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.bio-section h5 {
    font-family: 'Libre Baskerville', Georgia, serif;
    color: var(--text-muted);
    font-weight: 400;
    font-size: 1.1rem;
}

.bio-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* =Links
-------------------------------------------------------------- */
.learn-more-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    border-bottom: 1px solid var(--primary-color);
}

.learn-more-link:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
    transform: translateX(3px);
}

.learn-more-link i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.learn-more-link:hover i {
    transform: translateX(3px);
}

/* =Footer
-------------------------------------------------------------- */
.footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 40px 0 20px;
}

.footer a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* =Animations
-------------------------------------------------------------- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =WordPress Specific
-------------------------------------------------------------- */
.widget {
    margin-bottom: 2rem;
}

.widget-title {
    color: var(--text-light);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.widget ul li:last-child {
    border-bottom: none;
}

/* =Responsive Design
-------------------------------------------------------------- */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-tagline {
        font-size: 1.5rem;
    }

    .section-padding {
        padding: 60px 0;
    }

    .hero-stats {
        justify-content: center;
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .nav-tabs .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .navbar-brand img {
        height: 30px;
    }
}