/* TrueFiHub - Professional Finance Design System */
/* Navy Blue + White + Orange Theme */

:root {
    /* Primary - Navy Blue */
    --primary: #1E3A5F;
    --primary-dark: #152C4A;
    --primary-light: #2A4D7A;

    /* Accent - Orange/Gold */
    --accent-orange: #F7931A;
    --accent-orange-light: #FFB347;
    --accent-orange-dark: #E8820D;

    /* Success - Green */
    --success: #22C55E;
    --success-dark: #16A34A;

    /* Neutral */
    --white: #FFFFFF;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;

    /* Text */
    --text-dark: #1E293B;
    --text-muted: #64748B;
    --text-light: #94A3B8;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--gray-50);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent-orange);
}

/* Navigation - White with Navy */
.navbar {
    background: var(--white);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--gray-200);
}

.navbar-brand img {
    height: 38px;
}

.navbar .nav-link {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.2s;
}

.navbar .nav-link:hover {
    color: var(--primary);
}

.dropdown-menu {
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    padding: 0.5rem;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 500;
    color: var(--text-dark);
}

.dropdown-item:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.dropdown-header {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    padding: 0.5rem 1rem;
}

/* Buttons */
.btn {
    font-weight: 600;
    padding: 0.6rem 1.25rem;
    border-radius: 6px;
    border: none;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-primary-custom,
.btn-primary {
    background: var(--accent-orange);
    color: var(--white);
}

.btn-primary-custom:hover,
.btn-primary:hover {
    background: var(--accent-orange-dark);
    color: var(--white);
    transform: translateY(-1px);
}

.btn-success {
    background: var(--success);
    color: var(--white);
}

.btn-success:hover {
    background: var(--success-dark);
    color: var(--white);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-outline-light {
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary);
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.4rem 0.875rem;
    font-size: 0.875rem;
}

/* Hero Section - Sky/Mountain Theme */
.hero {
    background: linear-gradient(135deg, #4A90D9 0%, #2E5B94 50%, var(--primary) 100%);
    color: var(--white);
    padding: 4rem 0;
    position: relative;
}

.hero h1 {
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.hero .lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

/* Cards - Clean White */
.card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 1.25rem;
    font-weight: 600;
}

.card-body {
    padding: 1.25rem;
}

/* Tool Cards */
.tool-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.2s ease;
    height: 100%;
}

.tool-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.tool-card .icon {
    width: 60px;
    height: 60px;
    background: var(--gray-100);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--primary);
}

.tool-card:hover .icon {
    background: var(--primary);
    color: var(--white);
}

.tool-card h5 {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.tool-card p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin: 0;
}

/* Calculate Now Button - Green */
.btn-calculate {
    background: var(--success);
    color: var(--white);
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-weight: 600;
}

.btn-calculate:hover {
    background: var(--success-dark);
    color: var(--white);
}

/* Forms */
.form-control,
.form-select {
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    padding: 0.625rem 0.875rem;
    transition: border-color 0.2s;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
    outline: none;
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
}

/* Footer - Navy Blue */
.footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 3rem 0 1.5rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
}

.footer a:hover {
    color: var(--accent-orange);
}

.footer-heading {
    color: var(--white);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

/* Utility Classes */
.text-primary {
    color: var(--primary) !important;
}

.text-orange {
    color: var(--accent-orange) !important;
}

.text-navy {
    color: var(--primary) !important;
}

.text-success {
    color: var(--success) !important;
}

.bg-primary {
    background: var(--primary) !important;
}

.bg-off-white {
    background: var(--gray-50) !important;
}

.bg-white {
    background: var(--white) !important;
}

/* Stats Section */
.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-item .value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-item .label {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Ad Slot */
.ad-slot {
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 4px;
    padding: 0.25rem;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero {
        padding: 2.5rem 0;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .navbar-brand img {
        height: 32px;
    }

    .tool-card {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    body {
        font-size: 15px;
    }

    .hero .lead {
        font-size: 1rem;
    }

    .btn-lg {
        padding: 0.75rem 1.25rem;
    }
}

/* Print */
@media print {

    .navbar,
    .footer,
    .btn,
    .ad-slot {
        display: none;
    }
}