/* Custom CSS for EagleMark Finance */

:root {
    --primary-color: #0F3D3E;
    --secondary-color: #C2410C;
    --accent-color: #6D28D9;
    --dark-color: #061826;
    --light-color: #F6F7FB;
    --text-color: #0F172A;
    --muted-color: #475569;
    --border-color: #E2E8F0;
    --surface-color: #FFFFFF;
    --surface-muted-color: #F1F5F9;
    --shadow-sm: 0 8px 20px rgba(2, 8, 23, 0.06);
    --shadow-md: 0 16px 40px rgba(2, 8, 23, 0.10);
    --shadow-lg: 0 24px 70px rgba(2, 8, 23, 0.14);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--surface-color);
}

/* Custom Bootstrap overrides */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(15, 61, 62, 0.25);
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-outline-primary {
    border-color: rgba(15, 61, 62, 0.35);
    color: var(--primary-color);
    font-weight: 500;
    border-radius: 0.75rem;
    padding: 0.7rem 1.2rem;
}

.btn-outline-primary:hover {
    background-color: rgba(15, 61, 62, 0.08);
    border-color: rgba(15, 61, 62, 0.55);
    color: var(--primary-color);
}

.bg-light {
    background-color: var(--light-color) !important;
}

.text-muted {
    color: var(--muted-color) !important;
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

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

.navbar .btn {
    border-radius: 0.75rem;
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-md);
    border-radius: 0.9rem;
    padding: 0.75rem 0;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    background:
        radial-gradient(900px 500px at 20% 15%, rgba(109, 40, 217, 0.35), rgba(109, 40, 217, 0) 60%),
        radial-gradient(900px 500px at 85% 20%, rgba(194, 65, 12, 0.35), rgba(194, 65, 12, 0) 60%),
        linear-gradient(135deg, rgba(15, 61, 62, 0.95), rgba(6, 24, 38, 0.90)),
        url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(6, 24, 38, 0.35), rgba(6, 24, 38, 0.15));
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-stats {
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-lg);
}

.stat-item h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.hero-buttons .btn {
    margin-bottom: 1rem;
}

/* Page Hero */
.page-hero {
    margin-top: 80px;
    padding: 4.5rem 0;
    color: #fff;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(850px 420px at 10% 10%, rgba(109, 40, 217, 0.35), rgba(109, 40, 217, 0) 60%),
        radial-gradient(850px 420px at 90% 5%, rgba(194, 65, 12, 0.30), rgba(194, 65, 12, 0) 60%),
        linear-gradient(135deg, rgba(15, 61, 62, 0.98), rgba(6, 24, 38, 0.94));
}

.page-hero .breadcrumb {
    margin-bottom: 0.75rem;
}

.page-hero .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.55);
}

.page-hero .breadcrumb a {
    text-decoration: none;
}

.service-icon-large {
    width: 96px;
    height: 96px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 20px 60px rgba(2, 8, 23, 0.25);
}

/* Service Cards */
.service-card {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: rgba(15, 61, 62, 0.35);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.service-card h5 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.service-card p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Why Choose Us */
.why-choose-icon {
    opacity: 0.9;
}

.why-choose-icon:hover {
    opacity: 1;
    transform: scale(1.1);
    transition: all 0.3s ease;
}

/* Feature Items */
.feature-item {
    display: flex;
    align-items: center;
    font-weight: 500;
}

.feature-item i {
    font-size: 1.2rem;
}

/* Content Surfaces */
.surface {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
}

.surface-muted {
    background: var(--surface-muted-color);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 1rem;
}

.section-header {
    margin-bottom: 2.25rem;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: rgba(15, 61, 62, 0.85);
    background: rgba(15, 61, 62, 0.08);
    border: 1px solid rgba(15, 61, 62, 0.14);
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
}

.section-title {
    letter-spacing: -0.02em;
}

.icon-chip {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(109, 40, 217, 0.10);
    border: 1px solid rgba(109, 40, 217, 0.18);
    color: var(--accent-color);
}

.feature-box {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 61, 62, 0.10);
    border: 1px solid rgba(15, 61, 62, 0.16);
    margin-bottom: 0.9rem;
}

.loan-option-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.loan-option-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(194, 65, 12, 0.10);
    border: 1px solid rgba(194, 65, 12, 0.18);
    color: var(--secondary-color);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.rate-highlight {
    margin-top: 1.25rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    color: var(--muted-color);
}

.benefit-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.benefit-item i {
    margin-top: 0.15rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll;
        padding: 2rem 0;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .service-card {
        margin-bottom: 2rem;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* Utility Classes */
.rounded-4 {
    border-radius: 1rem !important;
}

/* Search */
.navbar .search-container {
    position: relative;
    margin-left: 1rem;
}

.navbar .search-input {
    width: 240px;
    max-width: 100%;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 1050;
    display: none;
}

.search-result-item {
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.search-result-item a {
    text-decoration: none;
    color: var(--dark-color);
}

.search-result-item:hover {
    background: var(--light-color);
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

.text-light {
    color: #f8f9fa !important;
}

/* Footer */
footer {
    background-color: var(--dark-color) !important;
}

footer .social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: all 0.3s ease;
}

footer .social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

footer .contact-info p {
    margin-bottom: 0.75rem;
}

footer .contact-info i {
    width: 20px;
    color: rgba(255, 255, 255, 0.75);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
.loading {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}
