/* BlueHarbor Capital - Main Stylesheet */
/* Primary: #1a3451 (Navy) | Accent: #c9973a (Gold) | Fonts: Poppins + Inter */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

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

body {
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    color: #1a3451;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.navbar-brand,
.btn,
.badge,
.hero-badge,
.stat-label {
    font-family: 'Poppins', sans-serif;
}

/* Dark Mode */
body.dark-mode {
    background: #0a111c;
    color: #e2e8f0;
}

body.dark-mode .bg-light {
    background: #0f1724 !important;
}

body.dark-mode .card {
    background: #1a1f2e;
    border-color: #2d3748;
}

body.dark-mode .navbar {
    background: #0d1b2a !important;
}

body.dark-mode .footer {
    background: #0a111c;
    border-top-color: #1e293b;
}

body.dark-mode .hero {
    background: linear-gradient(135deg, #0d1b2a 0%, #0f1724 100%);
}

body.dark-mode .card-title {
    color: #ffffff;
}

body.dark-mode .card-text,
body.dark-mode .text-muted {
    color: #94a3b8 !important;
}

body.dark-mode .form-control {
    background: #1a1f2e;
    border-color: #2d3748;
    color: #e2e8f0;
}

body.dark-mode .form-control:focus {
    background: #1a1f2e;
    border-color: #c9973a;
    color: #e2e8f0;
}

body.dark-mode .feature-icon {
    background: rgba(201, 151, 58, 0.12);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

.display-1 {
    font-size: 3rem;
    font-weight: 800;
}

.display-4 {
    font-size: 2.5rem;
}

@media (min-width: 768px) {
    .display-1 {
        font-size: 4rem;
    }
    .display-4 {
        font-size: 3rem;
    }
}

/* Navigation */
.navbar {
    background: #1a3451;
    padding: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar {
    padding: 0.5rem 1rem; /* controls overall height */
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-brand img {
    height: 90px;   /* 👈 controlled height */
    width: auto;
    object-fit: contain;
}

.navbar-brand span {
    color: #c9973a;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    transition: color 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.nav-link:hover {
    color: #c9973a !important;
}

/* Buttons */
.btn {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 40px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-primary {
    background: #1a3451;
    border: none;
    color: #ffffff;
}

.btn-primary:hover {
    background: #244566;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(26, 52, 81, 0.3);
}

.btn-outline-primary {
    border: 2px solid #1a3451;
    color: #1a3451;
    background: transparent;
}

.btn-outline-primary:hover {
    background: #1a3451;
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-gold {
    background: transparent;
    border: 2px solid #c9973a;
    color: #c9973a;
}

.btn-gold:hover {
    background: #c9973a;
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-light {
    background: #ffffff;
    color: #1a3451;
    border: none;
}

.btn-light:hover {
    background: #f5f7fa;
    transform: translateY(-2px);
}

/* Cards */
.card {
    border: none;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card-body {
    padding: 2rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a3451;
    font-family: 'Poppins', sans-serif;
}

/* Hero Slider */
.hero {
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
}

.hero-slider {
    position: relative;
    min-height: 500px;
}

.hero-slide {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.hero-slide.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.hero-badge {
    display: inline-block;
    background: rgba(201, 151, 58, 0.12);
    color: #c9973a;
    padding: 0.5rem 1rem;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-family: 'Poppins', sans-serif;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #1a3451;
    font-family: 'Poppins', sans-serif;
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 3.5rem;
    }
}

.hero h1 span {
    color: #c9973a;
}

.hero p {
    font-size: 1.1rem;
    color: #5a6e82;
    margin-bottom: 2rem;
    font-family: 'Inter', sans-serif;
}

.slider-controls {
    position: absolute;
    bottom: -40px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 2rem;
}

.slider-dot {
    width: 10px;
    height: 10px;
    background: #d1d5db;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    width: 30px;
    background: #c9973a;
    border-radius: 10px;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(26, 52, 81, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    z-index: 10;
}

.slider-nav:hover {
    background: #c9973a;
}

.slider-nav.prev {
    left: 20px;
}

.slider-nav.next {
    right: 20px;
}

/* Feature Icons */
.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(26, 52, 81, 0.08);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon svg,
.feature-icon i {
    color: #c9973a;
}

/* Stats Section */
.stats-section {
    background: #1a3451;
    color: #ffffff;
    padding: 60px 0;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    font-family: 'Poppins', sans-serif;
}

.stat-label {
    color: #c9973a;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Poppins', sans-serif;
}

/* About Section Two Columns */
.about-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-content {
    padding-right: 2rem;
}

@media (max-width: 992px) {
    .about-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }
}

/* Footer */
.footer {
    background: #1a3451;
    color: #ffffff;
    padding: 60px 0 30px;
}

.footer h5 {
    color: #c9973a;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-family: 'Poppins', sans-serif;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.footer-links a:hover {
    color: #c9973a;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
    color: white;
    text-decoration: none;
}

.social-links a:hover {
    background: #c9973a;
    transform: translateY(-2px);
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 40px;
    padding: 0.5rem 1rem;
    color: #ffffff;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.dark-mode-toggle:hover {
    background: rgba(201, 151, 58, 0.2);
    color: #c9973a;
}

/* Forms */
.form-control {
    border-radius: 12px;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    font-family: 'Inter', sans-serif;
}

.form-control:focus {
    border-color: #c9973a;
    box-shadow: 0 0 0 3px rgba(201, 151, 58, 0.1);
}

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

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

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 100px 0 60px;
        text-align: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .card-body {
        padding: 1.5rem;
    }

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

    .slider-nav {
        width: 30px;
        height: 30px;
    }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    background: #ffffff;
    border-left: 4px solid #c9973a;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Scroll to Top */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: #1a3451;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: #c9973a;
    transform: translateY(-3px);
}

/* Badges */
.badge {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.badge-gold {
    background: rgba(201, 151, 58, 0.12);
    color: #c9973a;
    padding: 0.5rem 1rem;
    border-radius: 40px;
}
/* Financial Dashboard Card */
.dashboard-logo-dot {
    width: 32px; height: 32px;
    background: #1a3451;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
body.dark-mode .dashboard-logo-dot { background: #2d4f72; }

.dashboard-metric {
    background: #f5f7fa;
    border-radius: 10px;
    padding: 0.65rem 0.75rem;
}
body.dark-mode .dashboard-metric { background: #111827; }

.dashboard-metric-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #5a6e82;
    margin-bottom: 3px;
}
body.dark-mode .dashboard-metric-label { color: #94a3b8; }

.dashboard-metric-value {
    font-size: 1rem;
    font-weight: 600;
    color: #1a3451;
    font-family: 'Poppins', sans-serif;
}
body.dark-mode .dashboard-metric-value { color: #e2e8f0; }

.dashboard-metric-delta { font-size: 0.7rem; font-weight: 600; margin-top: 2px; }
.delta-up { color: #2a7d4f; }
.delta-down { color: #b33a3a; }
body.dark-mode .delta-up { color: #5cc98a; }
body.dark-mode .delta-down { color: #e07070; }

.dashboard-section-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #5a6e82;
    margin-bottom: 0.5rem;
}
body.dark-mode .dashboard-section-label { color: #94a3b8; }

.dashboard-chart-area { width: 100%; }

.dashboard-divider { border-color: #e2e8f0; margin: 0.875rem 0; }
body.dark-mode .dashboard-divider { border-color: #2d3748; }

.dashboard-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.dashboard-bar-label {
    font-size: 0.75rem;
    color: #1a3451;
    width: 76px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}
body.dark-mode .dashboard-bar-label { color: #e2e8f0; }

.dashboard-dot {
    display: inline-block;
    width: 7px; height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}
.dot-navy { background: #1a3451; }
.dot-gold { background: #c9973a; }
.dot-teal { background: #1d9e75; }

.dashboard-bar-track {
    flex: 1;
    height: 7px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}
body.dark-mode .dashboard-bar-track { background: #2d3748; }

.dashboard-bar-fill { height: 100%; border-radius: 4px; }
.fill-navy { background: #1a3451; }
.fill-gold { background: #c9973a; }
.fill-teal { background: #1d9e75; }

.dashboard-bar-pct {
    font-size: 0.7rem;
    color: #5a6e82;
    width: 30px;
    text-align: right;
    flex-shrink: 0;
}
body.dark-mode .dashboard-bar-pct { color: #94a3b8; }

.dashboard-state-chip {
    background: #f5f7fa;
    border-radius: 10px;
    padding: 0.6rem 0.75rem;
}
body.dark-mode .dashboard-state-chip { background: #111827; }

.dashboard-state-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #5a6e82;
    margin-bottom: 2px;
}
body.dark-mode .dashboard-state-label { color: #94a3b8; }

.dashboard-state-val {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a3451;
    font-family: 'Poppins', sans-serif;
}
body.dark-mode .dashboard-state-val { color: #e2e8f0; }
/* Fix navbar on mobile – reduce logo height */
@media (max-width: 991px) {
    .navbar-brand img {
        height: 45px !important;
    }
    .navbar-toggler {
        padding: 0.25rem 0.5rem;
        font-size: 1rem;
    }
}
/* Force hero images to display on mobile (override Bootstrap d-none d-lg-block) */
@media (max-width: 991px) {
    .hero-slide .col-lg-6.d-none.d-lg-block {
        display: block !important;
        margin-top: 2rem;
    }
    .hero-slide .col-lg-6.d-none.d-lg-block .text-center img {
        max-width: 80%;
        height: auto;
        margin: 0 auto;
        display: block;
    }
}
