/* === CAPITAL RESOURCING LIMITED - Custom Styles === */

:root {
    --primary-dark: #0a1f44;
    --primary-mid: #1e3a5f;
    --primary-light: #2c5282;
    --gold: #c9a227;
    --gold-light: #e8d5a3;
    --text-dark: #1a202c;
    --text-gray: #4a5568;
    --text-light-gray: #a0aec0;
    --bg-light: #f7fafc;
    --white: #ffffff;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

/* === Top Bar === */
.top-bar {
    background-color: #07152e !important;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* === Navigation === */
.navbar {
    background-color: var(--primary-dark);
    padding: 0.75rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.navbar-logo {
    height: 45px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.navbar-brand:hover .navbar-logo {
    opacity: 0.85;
}

.nav-link {
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 1px;
    padding: 0.5rem 1rem !important;
    color: rgba(255,255,255,0.85) !important;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--gold) !important;
}

.btn-gold {
    background-color: var(--gold);
    color: var(--primary-dark) !important;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 1px;
    padding: 0.5rem 1.25rem;
    border: none;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background-color: var(--gold-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(201, 162, 39, 0.3);
}

.btn-outline-gold {
    border: 2px solid var(--gold);
    color: var(--gold);
    font-weight: 600;
    padding: 0.75rem 2rem;
    transition: all 0.3s ease;
}

.btn-outline-gold:hover {
    background-color: var(--gold);
    color: var(--primary-dark);
}

.btn-dark-blue {
    background-color: var(--primary-dark);
    color: var(--white);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border: none;
    transition: all 0.3s ease;
}

.btn-dark-blue:hover {
    background-color: var(--primary-mid);
}

/* === Hero Section === */
.hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-mid) 100%);
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 31, 68, 0.95) 0%, rgba(30, 58, 95, 0.85) 100%);
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-title .gold-text {
    color: var(--gold);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.85);
    font-weight: 300;
    margin-bottom: 2rem;
    max-width: 600px;
}

/* === Section Styles === */
.section-padding {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--gold);
    margin-top: 1rem;
}

.section-title.centered::after {
    margin-left: auto;
    margin-right: auto;
}

.section-title-white {
    color: var(--white);
}

.section-title-white::after {
    background-color: var(--gold);
}

.section-subtitle {
    color: var(--text-gray);
    font-size: 1.1rem;
    max-width: 700px;
}

/* === Dark Section === */
.bg-dark-blue {
    background-color: var(--primary-dark);
}

.bg-mid-blue {
    background-color: var(--primary-mid);
}

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

/* === Cards === */
.service-card {
    background: var(--white);
    border-radius: 8px;
    padding: 2.5rem;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 6px rgba(0,0,0,0.03);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-color: var(--gold);
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-dark);
    color: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.service-card h4 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.service-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* === Value Cards === */
.value-card {
    text-align: center;
    padding: 2rem;
}

.value-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(201, 162, 39, 0.15);
    color: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 1.5rem;
}

.value-card h4 {
    color: var(--primary-dark);
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.value-card p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* === Process Steps === */
.process-step {
    position: relative;
    padding: 2rem;
    text-align: center;
}

.step-number {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.process-step h4 {
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.process-step p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* === Team Cards === */
.team-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    height: 100%;
    transition: all 0.3s ease;
}

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

.team-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.team-card .team-body {
    padding: 2rem;
}

.team-card h4 {
    color: var(--primary-dark);
    margin-bottom: 0.25rem;
    font-size: 1.25rem;
}

.team-card .team-role {
    color: var(--gold);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.team-card p {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* === Stats Section === */
.stat-item {
    text-align: center;
    padding: 2rem;
}

.stat-value {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.stat-label {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === CTA Section === */
.cta-section {
    background: linear-gradient(135deg, var(--primary-mid) 0%, var(--primary-dark) 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: rgba(201, 162, 39, 0.05);
    border-radius: 50%;
}

/* === Footer === */
.footer h5 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-logo {
    height: 55px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
}

.footer-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--white);
    font-size: 1.4rem;
}

.footer ul li a {
    color: var(--text-light-gray);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    line-height: 2.2;
}

.footer ul li a:hover {
    color: var(--gold);
}

.text-light-gray {
    color: var(--text-light-gray) !important;
    font-size: 0.9rem;
}

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

.social-links a {
    color: var(--text-light-gray);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--gold);
}

/* === Page Hero === */
.page-hero {
    position: relative;
    padding: 8rem 0 5rem;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-mid) 100%);
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
}

.page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 31, 68, 0.9);
}

.page-hero h1 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.page-hero p {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
}

/* === Investment Sectors === */
.sector-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.sector-item i {
    color: var(--gold);
    font-size: 1.1rem;
    margin-top: 0.3rem;
    margin-right: 1rem;
}

.sector-item span {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* === Portfolio Table === */
.portfolio-table {
    width: 100%;
    border-collapse: collapse;
}

.portfolio-table th {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 1rem 1.5rem;
    font-weight: 600;
    text-align: left;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.portfolio-table td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    color: var(--text-gray);
}

.portfolio-table tr:hover td {
    background-color: rgba(201, 162, 39, 0.03);
}

.portfolio-table .sector-name {
    font-weight: 600;
    color: var(--primary-dark);
}

.portfolio-table .sector-value {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--gold);
    font-size: 1.1rem;
}

/* === Legal Page === */
.legal-content h2 {
    color: var(--primary-dark);
    font-size: 1.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.legal-content h3 {
    color: var(--primary-mid);
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-content p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* === Contact Page === */
.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-info-item i {
    width: 45px;
    height: 45px;
    background-color: rgba(201, 162, 39, 0.15);
    color: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-info-item h5 {
    color: var(--primary-dark);
    font-size: 1rem;
    margin-bottom: 0.25rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.contact-info-item p {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 0.2rem rgba(201, 162, 39, 0.15);
}

/* === Responsive === */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .page-hero h1 {
        font-size: 2.25rem;
    }
    .stat-value {
        font-size: 2.25rem;
    }
    .navbar-logo {
        height: 38px;
        max-width: 180px;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1.05rem;
    }
    .section-padding {
        padding: 3rem 0;
    }
    .section-title {
        font-size: 1.75rem;
    }
    .cta-section {
        padding: 3rem 0;
    }
    .team-card img {
        height: 250px;
    }
    .page-hero {
        padding: 6rem 0 3rem;
    }
    .page-hero h1 {
        font-size: 1.75rem;
    }
    .stat-value {
        font-size: 2rem;
    }
    .navbar-logo {
        height: 34px;
        max-width: 160px;
    }
    .footer-logo {
        height: 42px;
        max-width: 180px;
    }
}

/* === Animations === */
.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

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

/* === Cookie Banner === */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(10, 31, 68, 0.97);
    color: rgba(255,255,255,0.9);
    padding: 1.25rem 0;
    z-index: 9999;
    border-top: 3px solid var(--gold);
    backdrop-filter: blur(8px);
    font-size: 0.9rem;
}

.cookie-banner p {
    margin-bottom: 0;
    color: rgba(255,255,255,0.9);
}

.cookie-banner a {
    color: var(--gold);
    text-decoration: underline;
    font-weight: 500;
}

.cookie-banner a:hover {
    color: var(--gold-light);
}

.cookie-banner .btn-gold {
    padding: 0.5rem 1.5rem;
    font-size: 0.85rem;
}

.cookie-banner .btn-gold:hover {
    background-color: var(--gold-light);
}

.fade-out {
    animation: fadeOut 0.5s ease forwards;
}

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

@media (max-width: 991.98px) {
    .cookie-banner {
        padding: 1rem 0;
        font-size: 0.85rem;
    }
    .cookie-banner .btn-gold {
        width: 100%;
    }
}

/* === Login Page Styles === */
.login-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-mid) 100%);
    color: var(--gold);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(10, 31, 68, 0.2);
}

.login-card .card {
    border-radius: 12px;
    border: none;
}

.login-card .input-group-text {
    border-radius: 0.375rem 0 0 0.375rem;
    padding-left: 1rem;
}

.login-card .form-control {
    border-radius: 0 0.375rem 0.375rem 0;
}

.login-card .form-control:focus {
    box-shadow: none;
    border-color: #dee2e6;
}

.login-card .input-group:focus-within .input-group-text,
.login-card .input-group:focus-within .form-control {
    border-color: var(--gold);
}

.login-card .btn-dark-blue {
    padding: 0.75rem;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.login-card .form-check-input:checked {
    background-color: var(--gold);
    border-color: var(--gold);
}

@media (max-width: 767.98px) {
    .login-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* === Login Error Alert === */
.alert-danger {
    background-color: #fff5f5;
    border-color: #fc8181;
    color: #c53030;
    border-radius: 0.5rem;
    padding: 0.875rem 1rem;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.alert-danger i {
    color: #e53e3e;
    font-size: 1.1rem;
}

/* === Forgot Password Modal === */
.modal-content {
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.modal-header {
    border-radius: 12px 12px 0 0;
    padding: 1.25rem 1.5rem;
}

.modal-header .btn-close {
    filter: none;
}

.modal-body h5 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}
