/********** Template CSS **********/
:root {
    --primary: #1B3A6B;
    --secondary: #2A5CAA;
    --light: #E8EDF5;
    --dark: #0A1628;
    
    /* Define font sizes for scalability */
    --font-size-base: 16px;
    --font-size-small: 14px;
    --font-size-large: 18px;

    /* Bootstrap 5 overrides */
    --bs-primary: #1B3A6B;
    --bs-primary-rgb: 27, 58, 107;
    --bs-secondary: #2A5CAA;
    --bs-secondary-rgb: 42, 92, 170;
    --bs-dark: #0A1628;
    --bs-dark-rgb: 10, 22, 40;
    --bs-light: #E8EDF5;
    --bs-light-rgb: 232, 237, 245;
}

/* Bootstrap component color overrides */
.bg-primary {
    background-color: var(--primary) !important;
}
.text-primary {
    color: var(--primary) !important;
}
.btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}
.btn-primary:hover {
    background-color: #142C52 !important;
    border-color: #142C52 !important;
}
.btn-secondary {
    background-color: var(--secondary) !important;
    border-color: var(--secondary) !important;
}
.btn-secondary:hover {
    background-color: #1F4A8A !important;
    border-color: #1F4A8A !important;
}
.bg-secondary {
    background-color: var(--secondary) !important;
}
.text-secondary {
    color: var(--secondary) !important;
}
.bg-dark {
    background-color: var(--dark) !important;
}
.bg-light {
    background-color: var(--light) !important;
}
.border-primary {
    border-color: var(--primary) !important;
}
.btn-outline-primary {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}
.btn-outline-primary:hover {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #FFFFFF !important;
}

/*** Import Google Fonts ***/
/* Nunito & Rubik are imported in HTML head */

/*** Global Styles ***/
/* Apply Rubik to the entire document */
body {
    font-family: 'Rubik', sans-serif;
    font-weight: 400; /* Medium-regular weight for optimal legibility */
    font-size: var(--font-size-base); /* Base font size */
    line-height: 1.6; /* Improved readability */
    color: #333; /* Optional: Adjust text color for better readability */
}

/*** Topbar ***/
.container-fluid.bg-dark.d-none.d-lg-block .d-inline-flex small {
    font-weight: 300;
}

.container-fluid.bg-dark.d-none.d-lg-block .d-inline-flex a {
    font-weight: 300;
}

.container-fluid.bg-dark.d-none.d-lg-block .d-inline-flex a.btn {
    font-weight: 400;
}


/*** Spinner ***/
.spinner {
    width: 40px;
    height: 40px;
    background: var(--primary);
    margin: 100px auto;
    -webkit-animation: sk-rotateplane 1.2s infinite ease-in-out;
    animation: sk-rotateplane 1.2s infinite ease-in-out;
}

@-webkit-keyframes sk-rotateplane {
    0% {
        -webkit-transform: perspective(120px)
    }
    50% {
        -webkit-transform: perspective(120px) rotateY(180deg)
    }
    100% {
        -webkit-transform: perspective(120px) rotateY(180deg) rotateX(180deg)
    }
}

@keyframes sk-rotateplane {
    0% {
        transform: perspective(120px) rotateX(0deg) rotateY(0deg);
        -webkit-transform: perspective(120px) rotateX(0deg) rotateY(0deg)
    }
    50% {
        transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
        -webkit-transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg)
    }
    100% {
        transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
        -webkit-transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
    }
}

#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Heading ***/
/* Set Nunito for all headings with corporate premium weights */
h1,
h2,
h3,
h4,
h5,
h6,
.fw-bold,
.fw-semi-bold,
.fw-medium {
    font-family: 'Nunito', sans-serif;
}

h1,
h2,
.fw-bold {
    font-weight: 700 !important; /* Bold headings */
}

h3,
h4,
.fw-semi-bold {
    font-weight: 600 !important;
}

h5,
h6,
.fw-medium {
    font-weight: 600 !important;
}

/* Adjust font sizes for headings */
h1 {
    font-size: 2.5rem; /* 40px */
    line-height: 1.2;
    margin-bottom: 0.5em;
}

h2 {
    font-size: 2rem; /* 32px */
    line-height: 1.3;
    margin-bottom: 0.5em;
}

h3 {
    font-size: 1.75rem; /* 28px */
    line-height: 1.4;
    margin-bottom: 0.5em;
}

h4 {
    font-size: 1.5rem; /* 24px */
    line-height: 1.5;
    margin-bottom: 0.5em;
}

h5 {
    font-size: 1.25rem; /* 20px */
    line-height: 1.6;
    margin-bottom: 0.5em;
}

h6 {
    font-size: 1rem; /* 16px */
    line-height: 1.6;
    margin-bottom: 0.5em;
}


/*** Button ***/
.btn {
    font-family: 'Nunito', sans-serif;
    font-weight: 600; /* Semibold buttons for premium UI styling */
    transition: .5s;
}

.btn-primary,
.btn-secondary {
    color: #FFFFFF;
    box-shadow: inset 0 0 0 50px transparent;
}

.btn-primary:hover {
    box-shadow: inset 0 0 0 0 var(--primary);
}

.btn-secondary:hover {
    box-shadow: inset 0 0 0 0 var(--secondary);
}

.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 30px;
    height: 30px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

/*** Navbar ***/
.navbar-dark .navbar-nav .nav-link {
    font-family: 'Nunito', sans-serif;
    position: relative;
    margin-left: 25px;
    padding: 35px 0;
    color: #FFFFFF;
    font-size: 1.125rem; /* 18px */
    font-weight: 600; /* Clean semibold links */
    outline: none;
    transition: .5s;
}

.sticky-top.navbar-dark .navbar-nav .nav-link {
    padding: 20px 0;
    color: var(--primary) !important;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: #FFFFFF !important;
}

.navbar-dark .navbar-nav .nav-link::before {
    background: #38BDF8 !important;
}

/* When navbar is scrolled (white background), use medium blue for hover/active */
.sticky-top.navbar-dark .navbar-nav .nav-link:hover,
.sticky-top.navbar-dark .navbar-nav .nav-link.active {
    color: var(--secondary) !important;
}

.sticky-top.navbar-dark .navbar-nav .nav-link::before {
    background: var(--primary) !important;
}

.navbar-dark .navbar-brand h1 {
    color: #FFFFFF;
    font-weight: 500; /* Ensure consistency with h1 font-weight */
    font-size: 2.5rem; /* 40px */
}

.navbar-dark .navbar-toggler {
    color: #7EB8E0 !important;
    border-color: #7EB8E0 !important;
}

@media (max-width: 991.98px) {
    .sticky-top.navbar-dark {
        position: relative;
        background: #FFFFFF;
    }

    .navbar-dark .navbar-nav .nav-link,
    .navbar-dark .navbar-nav .nav-link.show,
    .sticky-top.navbar-dark .navbar-nav .nav-link {
        padding: 10px 0;
        color: var(--dark);
        font-size: 1rem; /* 16px */
    }

    .navbar-dark .navbar-brand h1 {
        color: var(--primary);
        font-size: 2rem; /* 32px */
    }

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

@media (min-width: 992px) {
    .navbar-dark {
        position: absolute;
        width: 100%;
        top: 0;
        left: 0;
        border-bottom: 1px solid rgba(256, 256, 256, .1);
        z-index: 999;
    }
    
    .sticky-top.navbar-dark {
        position: fixed;
        background: #FFFFFF;
    }

    .navbar-dark .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 2px;
        bottom: -1px;
        left: 50%;
        background: #7EB8E0;
        transition: .5s;
    }

    .navbar-dark .navbar-nav .nav-link:hover::before,
    .navbar-dark .navbar-nav .nav-link.active::before {
        width: 100%;
        left: 0;
    }

    .navbar-dark .navbar-nav .nav-link.nav-contact::before {
        display: none;
    }

    .sticky-top.navbar-dark .navbar-brand h1 {
        color: var(--primary);
        font-size: 2.5rem; /* 40px */
    }
}


/*** Carousel ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 22, 40, .7);
    z-index: 1;
}

@media (max-width: 576px) {
    .carousel-caption h5 {
        font-size: 0.875rem; /* 14px */
        font-weight: 500 !important;
    }

    .carousel-caption h1 {
        font-size: 1.875rem; /* 30px */
        font-weight: 600 !important;
    }
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}


/*** Section Title ***/
.section-title::before {
    position: absolute;
    content: "";
    width: 150px;
    height: 5px;
    left: 0;
    bottom: 0;
    background: var(--primary);
    border-radius: 2px;
}

.section-title.text-center::before {
    left: 50%;
    margin-left: -75px;
}

.section-title.section-title-sm::before {
    width: 90px;
    height: 3px;
}

.section-title::after {
    position: absolute;
    content: "";
    width: 6px;
    height: 5px;
    bottom: 0px;
    background: #FFFFFF;
    -webkit-animation: section-title-run 5s infinite linear;
    animation: section-title-run 5s infinite linear;
}

.section-title.section-title-sm::after {
    width: 4px;
    height: 3px;
}

.section-title.text-center::after {
    -webkit-animation: section-title-run-center 5s infinite linear;
    animation: section-title-run-center 5s infinite linear;
}

.section-title.section-title-sm::after {
    -webkit-animation: section-title-run-sm 5s infinite linear;
    animation: section-title-run-sm 5s infinite linear;
}

@-webkit-keyframes section-title-run {
    0% {left: 0; } 50% { left : 145px; } 100% { left: 0; }
}

@-webkit-keyframes section-title-run-center {
    0% { left: 50%; margin-left: -75px; } 50% { left : 50%; margin-left: 45px; } 100% { left: 50%; margin-left: -75px; }
}

@-webkit-keyframes section-title-run-sm {
    0% {left: 0; } 50% { left : 85px; } 100% { left: 0; }
}


/*** Service ***/
.service-item {
    position: relative;
    height: 300px;
    padding: 0 30px;
    transition: .5s;
}

.service-item .service-icon {
    margin-bottom: 30px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 2px;
    transform: rotate(-45deg);
}

.service-item .service-icon i {
    transform: rotate(45deg);
}

.service-item a.btn {
    position: absolute;
    width: 60px;
    bottom: -48px;
    left: 50%;
    margin-left: -30px;
    opacity: 0;
}

.service-item:hover a.btn {
    bottom: -24px;
    opacity: 1;
}

/* Search Bar */
.form-control {
    background-color: rgba(27, 58, 107, 0.5); /* Transparent navy blue */
    color: white; /* Text color */
    font-family: 'Rubik', sans-serif;
    font-weight: 400;
    font-size: 1rem; /* 16px */
}

.form-control::placeholder {
    color: white; /* Placeholder text color */
    opacity: 1; /* Make placeholder text fully visible */
    font-weight: 300; /* Light weight */
}

/*** Testimonial ***/
.testimonial-carousel .owl-dots {
    margin-top: 15px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: #DDDDDD;
    border-radius: 2px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 30px;
    background: var(--primary);
}

.testimonial-carousel .owl-item.center {
    position: relative;
    z-index: 1;
}

.testimonial-carousel .owl-item .testimonial-item {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    background: #FFFFFF !important;
    box-shadow: 0 0 30px #DDDDDD;
}


/*** Team ***/
.team-item {
    transition: .5s;
}

.team-social {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .5s;
}

.team-social a.btn {
    position: relative;
    margin: 0 3px;
    margin-top: 100px;
    opacity: 0;
}

.team-item:hover {
    box-shadow: 0 0 30px #DDDDDD;
}

.team-item:hover .team-social {
    background: rgba(10, 22, 40, .7);
}

.team-item:hover .team-social a.btn:first-child {
    opacity: 1;
    margin-top: 0;
    transition: .3s 0s;
}

.team-item:hover .team-social a.btn:nth-child(2) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .05s;
}

.team-item:hover .team-social a.btn:nth-child(3) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .1s;
}

.team-item:hover .team-social a.btn:nth-child(4) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .15s;
}

.team-item .team-img img,
.blog-item .blog-img img  {
    transition: .5s;
}

.team-item:hover .team-img img,
.blog-item:hover .blog-img img {
    transform: scale(1.15);
}


/*** Fleet Cards & Professional Team Styles ***/
.fleet-category {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fleet-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.team-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.testimonial-card {
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-2px);
}

.opacity-25 {
    opacity: 0.25;
}

/*** Miscellaneous ***/
@media (min-width: 991.98px) {
    .facts {
        position: relative;
        margin-top: -75px;
        z-index: 1;
    }
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

.bg-header {
    background: linear-gradient(rgba(10, 22, 40, .7), rgba(10, 22, 40, .7)), url(../img/hero/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.link-animated a {
    transition: .5s;
}

.link-animated a:hover {
    padding-left: 10px;
}

@media (min-width: 767.98px) {
    .footer-about {
        margin-bottom: 0;
    }
}

/*** Responsive Font Sizes ***/
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    h1 {
        font-size: 2.2rem; /* 35.2px */
    }

    h2 {
        font-size: 1.75rem; /* 28px */
    }

    h3 {
        font-size: 1.5rem; /* 24px */
    }

    .navbar-dark .navbar-nav .nav-link {
        font-size: 1rem; /* 16px */
    }

    .navbar-dark .navbar-brand h1 {
        font-size: 2rem; /* 32px */
    }
}

/* Enhanced Form Inputs */
.form-input {
    background-color: rgba(27, 58, 107, 0.7); /* Navy blue background */
    color: white; /* White text color */
    font-family: 'Rubik', sans-serif;
    font-weight: 400;
    font-size: 1rem; /* 16px */
    border-radius: 5px; /* Rounded corners */
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
    padding-left: 15px; /* Consistent padding */
    padding-right: 15px;
}

/* Form Inputs on Focus */
.form-input:focus {
    background-color: rgba(27, 58, 107, 0.85); /* Slightly more opaque on focus */
    box-shadow: 0 0 10px rgba(27, 58, 107, 0.5); /* Subtle shadow */
    outline: none; /* Remove default outline */
    transform: scale(1.02); /* Slight scale on focus */
}

/* Enhanced Select Dropdown */
.form-select.form-input {
    background-color: rgba(27, 58, 107, 0.7); /* Navy blue background */
    color: white; /* White text color */
    border-radius: 5px; /* Rounded corners */
    padding-left: 15px; /* Consistent padding */
    padding-right: 15px;
}

/* Select Dropdown on Focus */
.form-select.form-input:focus {
    background-color: rgba(27, 58, 107, 0.85); /* Slightly more opaque on focus */
    box-shadow: 0 0 10px rgba(27, 58, 107, 0.5); /* Subtle shadow */
    outline: none; /* Remove default outline */
    transform: scale(1.02); /* Slight scale on focus */
}

/* Enhanced Textarea */
textarea.form-input {
    background-color: rgba(27, 58, 107, 0.7); /* Navy blue background */
    color: white; /* White text color */
    font-family: 'Rubik', sans-serif;
    font-weight: 400;
    font-size: 1rem; /* 16px */
    border-radius: 5px; /* Rounded corners */
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
    padding: 15px; /* Consistent padding */
}

/* Textarea on Focus */
textarea.form-input:focus {
    background-color: rgba(27, 58, 107, 0.85); /* Slightly more opaque on focus */
    box-shadow: 0 0 10px rgba(27, 58, 107, 0.5); /* Subtle shadow */
    outline: none; /* Remove default outline */
    transform: scale(1.02); /* Slight scale on focus */
}

/* Enhanced Submit Button */
.btn-dark {
    background-color: var(--dark);
    border: none;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.btn-dark:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-dark:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Responsive Adjustments for Form */
@media (max-width: 768px) {
    .btn-dark {
        font-size: 1rem; /* 16px */
    }
}

/* Optional: Adding Floating Placeholder Enhancements */
.form-input::placeholder {
    color: rgba(255, 255, 255, 0.7); /* Slightly transparent white */
    transition: opacity 0.3s ease;
}

.form-input:focus::placeholder {
    opacity: 0; /* Hide placeholder on focus */
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    h1 {
        font-size: 2rem; /* 32px */
    }

    h2 {
        font-size: 1.5rem; /* 24px */
    }

    h3 {
        font-size: 1.25rem; /* 20px */
    }

    .navbar-dark .navbar-nav .nav-link {
        font-size: 0.875rem; /* 14px */
    }

    .navbar-dark .navbar-brand h1 {
        font-size: 1.75rem; /* 28px */
    }
}

/*** Fleet Showcase Styles ***/
.bg-gradient-dark {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
}
/*** Fleet Pages ***/
.fleet-intro__badge {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(27, 58, 107, 0.2);
    border-radius: 999px;
}

.fleet-intro__stats {
    border-radius: 1rem;
}

.fleet-intro__stat-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.35rem 0;
    color: #4a4a4a;
    line-height: 1.4;
}

.fleet-highlights .fleet-highlight {
    border-radius: 1rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.fleet-highlights .fleet-highlight:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(10, 22, 40, 0.12);
}

.fleet-highlights .icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(27, 58, 107, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
}

.fleet-card {
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.fleet-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(10, 22, 40, 0.12);
}

.fleet-card__image {
    position: relative;
    overflow: hidden;
}

.fleet-card__image img {
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.fleet-card__tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(27, 58, 107, 0.9);
    color: #fff;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
}

.fleet-card__body {
    padding: 1.75rem 1.75rem 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.fleet-card__title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.fleet-card__summary {
    color: #5c5c5c;
}

.fleet-card__specs li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.35rem 0;
    color: #4a4a4a;
}

.fleet-card__specs i {
    font-size: 1rem;
}

.fleet-cta .card {
    border-radius: 1.5rem;
}

@media (max-width: 991.98px) {
    .fleet-card__image img {
        height: 200px;
    }
}

@media (max-width: 575.98px) {
    .fleet-intro__badge {
        font-size: 0.75rem;
    }
}

/* --- Custom Slight Rounded Corners (8px) for Buttons and Rectangles across the whole site --- */
.btn,
.btn-primary,
.btn-secondary,
.btn-dark,
.btn-outline-primary,
.btn-outline-light,
.btn-lg,
.btn-sm,
.btn-square,
.btn-sm-square,
.btn-lg-square,
.form-control,
.form-input,
.form-select,
textarea,
.card,
.service-item,
.team-item,
.testimonial-item,
.testimonial-card,
.fleet-category,
.fleet-card,
.fleet-intro__stats,
.fleet-highlights .fleet-highlight,
.dropdown-menu,
.modal-content,
#searchSuggestions,
.bg-primary.shadow,
.bg-light.shadow,
.service-item .service-icon,
.testimonial-carousel .owl-dot,
.bg-primary.d-flex.align-items-center.justify-content-center.rounded,
.bg-white.d-flex.align-items-center.justify-content-center.rounded,
.accordion-item,
.accordion-button,
.rounded,
.rounded-sm,
.rounded-lg,
.rounded-3 {
    border-radius: 8px !important;
}

/* Ensure images/carousels inside cards match the slight rounded corners */
.fleet-category img,
.fleet-card img,
.fleet-card__image,
.team-card img,
.team-img img,
.blog-img img,
.about-img img,
.team-image-section img,
.team-image-section .bg-light {
    border-radius: 8px !important;
}

/*** Footer Color Contrast Fixes ***/
/* Make text-primary icons visible inside the dark footer */
.container-fluid.bg-dark.text-light .text-primary,
.container-fluid.bg-dark.text-light .bi.text-primary,
.container-fluid.bg-dark.text-light i.text-primary {
    color: #7EB8E0 !important;
}

/*** Modern Footer Layout ***/
/* Even breathing room for the whole footer block */
.container-fluid.bg-dark.text-light {
    padding: 60px 0 30px;
}

/* Flatten the brand block: no clashing blue box, left-aligned to match link columns */
.container-fluid.bg-dark.text-light .footer-about .bg-primary {
    background: transparent !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    text-align: left !important;
    padding: 0 !important;
}

/* Brand blurb: readable measure */
.container-fluid.bg-dark.text-light .footer-about p {
    max-width: 360px;
}

/* Normalize column top spacing so brand + link columns align */
.container-fluid.bg-dark.text-light .footer-about,
.container-fluid.bg-dark.text-light .row.gx-5 > [class*="col-"] [class*="col-"] {
    padding-top: 0 !important;
}
.container-fluid.bg-dark.text-light .footer-about > div {
    padding-top: 0 !important;
}

/* Hairline divider between footer body and the copyright bar */
.container-fluid.bg-dark.text-light + .container-fluid {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Make section-title underline bars visible in footer */
.container-fluid.bg-dark .section-title::before {
    background: #7EB8E0;
}

/* Footer social media buttons — use lighter shade for visibility */
.container-fluid.bg-dark .btn.btn-primary.btn-square {
    background-color: #2A5CAA !important;
    border-color: #2A5CAA !important;
    transition: all 0.3s ease !important;
}
.container-fluid.bg-dark .btn.btn-primary.btn-square:hover {
    background-color: #7EB8E0 !important;
    border-color: #7EB8E0 !important;
    color: var(--dark) !important;
    transform: translateY(-3px);
}
.container-fluid.bg-dark .btn.btn-primary.btn-square:hover i {
    color: var(--dark) !important;
}

/* Footer link arrows — ensure visible on dark background */
.container-fluid.bg-dark .link-animated .text-primary {
    color: #7EB8E0 !important;
}

/* Ensure all footer links turn to a beautiful, highly-visible light blue on hover */
.container-fluid.bg-dark a:hover {
    color: #7EB8E0 !important;
}
.container-fluid.bg-dark .link-animated a:hover {
    color: #7EB8E0 !important;
    padding-left: 10px;
}
.container-fluid.bg-dark .link-animated a:hover i {
    color: #7EB8E0 !important;
}

/* Footer brand name — needs explicit white since there is no navbar-dark wrapper */
.container-fluid.bg-dark.text-light .footer-about .navbar-brand h1 {
    color: #FFFFFF;
}

/* Prevent footer Sign Up button color clashing on hover */
.footer-about .btn-dark {
    background-color: var(--dark) !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding: 0.75rem 1.25rem !important;
    transition: all 0.3s ease !important;
}
.footer-about .btn-dark:hover {
    background-color: #FFFFFF !important;
    color: var(--primary) !important;
    border-color: #FFFFFF !important;
    transform: translateY(-3px);
}

/*** Infinite Marquee (partners + featured fleet) ***/
.marquee {
    position: relative;
    overflow: hidden;
    width: 100%;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    animation: marquee-scroll 40s linear infinite;
}

.marquee:hover .marquee__track {
    animation-play-state: paused;
}

.marquee__item {
    flex: 0 0 auto;
    margin-right: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Partner logo cards — uniform regardless of source logo size */
.marquee--logos .marquee__item {
    width: 180px;
    height: 110px;
    background: var(--light);
    border-radius: 8px;
    padding: 18px;
}

.marquee--logos .marquee__item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Featured vehicle cards — scroll the opposite way for contrast */
.marquee--vehicles .marquee__track {
    animation-duration: 55s;
    animation-direction: reverse;
}

.marquee--vehicles .marquee__item {
    width: 320px;
    height: 210px;
    border-radius: 12px;
    overflow: hidden;
}

.marquee--vehicles .marquee__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@media (max-width: 576px) {
    .marquee--logos .marquee__item {
        width: 140px;
        height: 90px;
        padding: 14px;
    }
    .marquee--vehicles .marquee__item {
        width: 240px;
        height: 160px;
    }
    .marquee__item {
        margin-right: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .marquee__track {
        animation: none;
    }
    .marquee {
        overflow-x: auto;
    }
}

/* High-contrast and premium hover states for dropdown items */
.dropdown-item {
    transition: background-color 0.3s ease, color 0.3s ease;
}
.dropdown-item:hover, .dropdown-item:focus {
    background-color: var(--primary) !important;
    color: #FFFFFF !important;
}
.dropdown-item.active, .dropdown-item:active {
    background-color: var(--secondary) !important;
    color: #FFFFFF !important;
}

/* --- Brand Logo Lockup & Scroll Contrast Refinements --- */

/* Brand title and subtext transitions */
.navbar-brand .brand-title {
    color: #FFFFFF;
    transition: color 0.4s ease;
}

.navbar-brand .brand-subtext {
    color: #E8EDF5;
    opacity: 0.85;
    transition: color 0.4s ease, opacity 0.4s ease;
}

/* Sticky/Scrolled Navbar - Background is white, text turns back to premium dark/medium blue */
.sticky-top.navbar-dark .navbar-brand .brand-title {
    color: var(--primary) !important;
}

.sticky-top.navbar-dark .navbar-brand .brand-subtext {
    color: var(--secondary) !important;
    opacity: 1;
}

/* Sticky/Scrolled Navbar - Menu toggler, search, and phone actions */
.sticky-top.navbar-dark .navbar-toggler {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.sticky-top.navbar-dark .navbar-collapse .btn.text-primary {
    color: var(--primary) !important;
}

/* Mobile responsive default states (when navbar is relative/scrolled or toggle expands) */
@media (max-width: 991.98px) {
    .navbar-brand .brand-title {
        color: var(--primary) !important;
    }
    .navbar-brand .brand-subtext {
        color: var(--secondary) !important;
        opacity: 1;
    }
    .navbar-dark .navbar-toggler {
        color: var(--primary) !important;
        border-color: var(--primary) !important;
    }
    .navbar-collapse {
        background: #FFFFFF;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        border-radius: 10px;
        padding: 1.5rem;
        margin-top: 15px;
    }
    .navbar-dark .navbar-nav .nav-link,
    .navbar-dark .navbar-nav .nav-link.show,
    .sticky-top.navbar-dark .navbar-nav .nav-link {
        color: var(--dark) !important;
    }
    .navbar-dark .navbar-nav .nav-link:hover,
    .navbar-dark .navbar-nav .nav-link.active {
        color: var(--primary) !important;
    }
    .navbar-dark .navbar-collapse .btn.text-primary {
        color: var(--primary) !important;
        padding-left: 0;
        margin-top: 10px;
    }
}

