/* ==========================================================================
   The National Finance Services (TNFS) Custom Stylesheet
   ========================================================================== */

/* 1. Design Tokens (Variables) */
:root {
    --primary-navy: #0B1F4D;
    --dark-blue: #102A5C;
    --premium-gold: #D4A33A;
    --light-gold: #F2D17A;
    --white: #FFFFFF;
    --light-gray: #F8F9FA;
    --dark-gray: #333333;
    --text-muted: #6C757D;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --gold-glow: 0 0 15px rgba(212, 163, 58, 0.4);
    --navy-glow: 0 0 15px rgba(11, 31, 77, 0.2);
}

/* 2. Global Styles */
body {
    font-family: var(--font-body);
    color: var(--dark-gray);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-navy);
    font-weight: 700;
}

/* 3. Typography & Badges */
/*.text-gold {*/
/*    color: var(--premium-gold) !important;*/
/*}*/

.text-gold {
    color: #ffffff !important;
}

.icon-gold {
    color: var(--premium-gold) !important;
    background-color: transparent !important;
}

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

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

.btn-premium {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--dark-blue) 100%);
    border: 1px solid var(--primary-navy);
    padding: 0.75rem 2rem;
    border-radius: 4px;
    transition: var(--transition-smooth);
    box-shadow: var(--navy-glow);
}

.btn-premium:hover {
    color: var(--primary-navy);
    background: var(--white);
    border-color: var(--primary-navy);
    transform: translateY(-2px);
}

.btn-gold {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--primary-navy);
    background: linear-gradient(135deg, var(--light-gold) 0%, var(--premium-gold) 100%);
    border: 1px solid var(--premium-gold);
    padding: 0.75rem 2rem;
    border-radius: 4px;
    transition: var(--transition-smooth);
    box-shadow: var(--gold-glow);
}

.btn-gold:hover {
    color: var(--white);
    background: var(--primary-navy);
    border-color: var(--primary-navy);
    transform: translateY(-2px);
    box-shadow: var(--navy-glow);
}

/* 4. Navigation & Header */
.top-bar {
    background-color: var(--primary-navy);
    color: var(--white);
    font-size: 0.85rem;
    padding: 0.5rem 0;
    border-bottom: 2px solid var(--premium-gold);
}

.top-bar a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.top-bar a:hover {
    color: var(--light-gold);
}

.navbar {
    background-color: var(--white);
    transition: var(--transition-smooth);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.navbar.sticky-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.navbar-brand img {
    height: 60px;
    transition: var(--transition-smooth);
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--primary-navy) !important;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: var(--transition-smooth);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 10px;
    background-color: var(--premium-gold);
    transition: var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: calc(100% - 20px);
}

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

/* 5. Hero & Banner Sections */
/*.hero-section {*/
/*    background: linear-gradient(rgba(11, 31, 77, 0.85), rgba(16, 42, 92, 0.9)), url('../images/hero-bg.jpg') no-repeat center center/cover;*/
/*    color: var(--white);*/
/*    padding: 100px 0;*/
/*    position: relative;*/
/*    overflow: hidden;*/
/*}*/

.hero-section {
    background: linear-gradient(rgb(11 31 77 / 0%), rgb(16 42 92 / 52%)), url(../images/hero-bg.jpg) no-repeat center center / cover;
    color: var(--white);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--premium-gold), var(--light-gold));
}

.inner-banner {
    background: linear-gradient(rgba(11, 31, 77, 0.9), rgba(16, 42, 92, 0.95)), url('../images/banner-bg.jpg') no-repeat center center/cover;
    color: var(--white);
    padding: 60px 0;
    border-bottom: 4px solid var(--premium-gold);
}

/* 6. Card Designs */
.service-card {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    padding: 2.5rem 2rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-navy), var(--premium-gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(11, 31, 77, 0.1);
}

.service-card:hover::after {
    transform: scaleX(1);
}

.service-card .icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--light-gray);
    color: var(--primary-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

.service-card:hover .icon-wrapper {
    background-color: var(--premium-gold);
    color: var(--white);
    box-shadow: var(--gold-glow);
}

.why-card {
    border: none;
    background: var(--light-gray);
    border-radius: 8px;
    padding: 2rem;
    transition: var(--transition-smooth);
    height: 100%;
}

.why-card:hover {
    background: var(--white);
    box-shadow: var(--card-shadow);
    transform: translateY(-5px);
}

.why-card i {
    font-size: 2.5rem;
    color: var(--premium-gold);
    margin-bottom: 1.25rem;
}

/* 7. Gallery Grid & Lightbox */
.gallery-filter-btn {
    border: 1px solid var(--primary-navy);
    background: transparent;
    color: var(--primary-navy);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 500;
    margin: 0.25rem;
    transition: var(--transition-smooth);
}

.gallery-filter-btn.active,
.gallery-filter-btn:hover {
    background: var(--primary-navy);
    color: var(--white);
}

.gallery-grid .gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: var(--card-shadow);
    cursor: pointer;
}

.gallery-grid .gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery-grid .gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 31, 77, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition-smooth);
    color: var(--white);
    padding: 1.5rem;
    text-align: center;
}

.gallery-grid .gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Lightbox Modal */
.custom-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
}

.custom-lightbox.active {
    display: flex;
}

.lightbox-content-wrapper {
    position: relative;
    max-width: 85%;
    max-height: 85%;
    text-align: center;
}

.custom-lightbox img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 4px;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.15);
    border: 3px solid var(--premium-gold);
}

.lightbox-caption {
    color: var(--white);
    margin-top: 15px;
    font-family: var(--font-heading);
    font-size: 1.25rem;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--white);
    font-size: 2.5rem;
    cursor: pointer;
    background: none;
    border: none;
    transition: var(--transition-smooth);
}

.lightbox-close:hover {
    color: var(--premium-gold);
}

/* 8. Documentation Timeline */
.timeline-wrapper {
    position: relative;
    padding-left: 2rem;
    border-left: 3px solid var(--premium-gold);
    margin-left: 1rem;
}

.timeline-step {
    position: relative;
    margin-bottom: 2.5rem;
}

.timeline-step::before {
    content: '';
    position: absolute;
    left: calc(-2rem - 9px);
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--primary-navy);
    border: 3px solid var(--light-gold);
    transition: var(--transition-smooth);
}

.timeline-step:hover::before {
    background-color: var(--premium-gold);
    transform: scale(1.3);
}

.timeline-card {
    background-color: var(--light-gray);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
}

.timeline-card:hover {
    background-color: var(--white);
    box-shadow: 0 10px 25px rgba(16, 42, 92, 0.1);
}

/* 9. Floating Triggers */
.float-whatsapp {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 90px;
    right: 25px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.float-whatsapp:hover {
    background-color: #20ba59;
    color: #FFF;
    transform: scale(1.1);
}

.float-call {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 25px;
    background-color: var(--primary-navy);
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 24px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition-smooth);
    border: 2px solid var(--premium-gold);
}

.float-call:hover {
    background-color: var(--premium-gold);
    color: var(--primary-navy);
    transform: scale(1.1);
}

/* 10. Footer Section */
.footer-section {
    background-color: var(--primary-navy);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    border-top: 5px solid var(--premium-gold);
}

.footer-section h4 {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--premium-gold);
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--light-gold);
    padding-left: 5px;
}

.footer-bottom {
    background-color: var(--dark-blue);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* 11. Responsive Overrides */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: var(--white);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        padding: 1rem;
        border-radius: 8px;
        margin-top: 0.5rem;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .hero-section {
        padding: 60px 0;
        text-align: center;
    }
}

/* ============================
   Our Services Dropdown Styles
   ============================ */

/* Dropdown Menu Container */
.navbar .dropdown-menu {
    border-radius: 8px;
    padding: 8px 0;
    min-width: 200px;
    animation: fadeInDown 0.2s ease-in-out;
}

/* Fade-in animation */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Each Dropdown Item */
.navbar .dropdown-menu .dropdown-item {
    padding: 10px 18px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #0B1F4D;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

/* Hover State */
.navbar .dropdown-menu .dropdown-item:hover {
    background-color: #f4f7ff;
    color: #D4A33A;
    border-left: 3px solid #D4A33A;
    padding-left: 22px;
}

/* Active Page State */
.navbar .dropdown-menu .dropdown-item.active,
.navbar .dropdown-menu .dropdown-item:active {
    background-color: #0B1F4D;
    color: #D4A33A !important;
    border-left: 3px solid #D4A33A;
}

/* Dropdown Toggle Arrow — active state */
.navbar .nav-link.dropdown-toggle.active {
    color: #D4A33A !important;
    font-weight: 600;
}

/* Dropdown Toggle hover */
.navbar .nav-link.dropdown-toggle:hover {
    color: #D4A33A;
}

/* Icon alignment fix */
.navbar .dropdown-menu .dropdown-item i {
    width: 18px;
    text-align: center;
}

/* Mobile — dropdown inside collapsed menu */
@media (max-width: 991.98px) {
    .navbar .dropdown-menu {
        border: none;
        box-shadow: none !important;
        background-color: #f8f9ff;
        border-radius: 6px;
        margin: 4px 0 8px 0;
        padding: 4px 0;
    }

    .navbar .dropdown-menu .dropdown-item {
        padding: 9px 24px;
        font-size: 0.85rem;
    }
}


.text-white-50 {
    --bs-text-opacity
1
: 1;
    color: rgb(255 255 255) !important;
}
