/* ===== COLORS ===== */
:root {
    --primary-blue: #001A93;
    --light-gray: #E5E7EA;
}

/* ===== FONTS ===== */
@font-face {
    font-family: 'Montserrat';
    src: url('../assets/fonts/Montserrat-Regular.ttf') format('truetype');
    font-weight: 400;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../assets/fonts/Montserrat-Bold.ttf') format('truetype');
    font-weight: 700;
}

@font-face {
    font-family: 'Poppins';
    src: url('../assets/fonts/Poppins-Regular.otf') format('opentype');
    font-weight: 400;
}

/* ===== GLOBAL ===== */
body {
    font-family: 'Poppins', sans-serif;
    color: #333333;
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-blue);
    font-weight: 700;
}

a {
    text-decoration: none;
}

ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

/* ===== UTILITIES ===== */
.text-primary-custom {
    color: var(--primary-blue) !important;
}

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

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

/* ===== TOP BAR ===== */
.top-bar {
    border-bottom: 1px solid var(--light-gray);
    font-size: 13px;
    font-weight: 500;
}

.top-info {
    gap: 32px !important;
    margin-left: -12px;
}

.top-info a,
.top-info span {
    color: #4A4A4A;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.top-info a:hover {
    color: var(--primary-blue);
}

.top-info i {
    color: var(--primary-blue);
    font-size: 16px;
}

.social-icons a {
    color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid #9CA3AF;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 13px;
}

.social-icons a:hover {
    background-color: var(--primary-blue);
    color: #ffffff;
    border-color: var(--primary-blue);
}

/* ===== NAVBAR ===== */
.main-navbar {
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

/* Brand/Logo */
.brand-logo {
    max-height: 72px;
    object-fit: contain;
}

/* Navigation Links Wrapper */
.nav-links-wrapper {
    background-color: #E2E6EA;
    padding: 6px 36px !important;
}

@media (min-width: 1200px) {
    .nav-links-wrapper {
        border-radius: 50rem;
    }
}

@media (max-width: 1199.98px) {
    .nav-links-wrapper {
        border-radius: 12px;
        background-color: transparent;
        padding: 5px 15px !important;
    }

    .nav-actions {
        margin-top: 15px;
    }
}

.navbar-nav .nav-link {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #333333 !important;
    padding: 8px 18px !important;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

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

/* Search Button */
.search-btn {
    width: 44px;
    height: 44px;
    background-color: #E2E6EA;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4A4A4A;
    transition: all 0.3s ease;
    position: relative;
    margin-right: 18px;
}

.search-btn::after {
    content: '';
    position: absolute;
    right: -13px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 24px;
    background-color: #D1D5DB;
}

.search-btn:hover {
    background-color: #d8dadd;
    color: var(--primary-blue);
}

.search-btn i {
    font-size: 16px;
}

/* Connect With Us Button */
.btn-primary-custom {
    background-color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
}

.nav-actions .btn-primary-custom {
    padding: 0px 6px 0px 20px !important;
    height: 44px;
    display: inline-flex;
    align-items: center;
    border-radius: 50px;
}

.btn-primary-custom:hover {
    background-color: #ffffff;
    color: var(--primary-blue) !important;
}

.btn-primary-custom:hover .icon-circle {
    background-color: var(--primary-blue) !important;
    color: #ffffff !important;
}

.icon-circle {
    width: 24px;
    height: 24px;
    color: var(--primary-blue);
    transition: all 0.3s ease;
}

.nav-actions .icon-circle {
    width: 32px !important;
    height: 32px !important;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-arrow {
    font-size: 14px;
    font-weight: 800;
}

/* ===== HERO SECTION ===== */
.hero-section {
    min-height: 520px !important;
    background-image: url('../assets/images/Main-banner-1.jpg');
    background-size: cover;
    background-position: right center;
    /* Adjusting crop heavily to right towards plane engine */
    background-repeat: no-repeat;
    margin: 0 !important;
    max-width: 100% !important;
    border-radius: 0 !important;
}

/* Dark overlay so text is clearly visible */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(31, 23, 18, 0.85) 0%, rgba(20, 35, 60, 0.4) 55%, rgba(0, 0, 0, 0) 100%);
    z-index: 0;
}

.hero-content {
    padding: 0 !important;
    padding-left: 15px !important;
    max-width: 650px;
    margin-top: -20px;
}

.hero-label {
    background-color: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    font-size: 18px;
    font-weight: 500;
    color: #ffffff;
    padding: 10px 32px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 25px !important;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 35px !important;
}

.hero-btn-container {
    margin-top: 0;
}

/* Enhancing the button specifically for the hero section */
.hero-section .btn-primary-custom {
    padding: 10px 28px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 50px;
    background-color: #001A93;
    border-color: #001A93;
    color: white;
}

.hero-section .btn-primary-custom:hover {
    background-color: transparent;
    color: #ffffff !important;
    border-color: #ffffff;
}

/* Responsive adjustments */
@media (max-width: 1199.98px) {
    .hero-content {
        padding-left: 40px;
    }

    .hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 991.98px) {
    .hero-section {
        min-height: 500px;
        margin: 15px auto;
        border-radius: 12px;
        max-width: 98%;
    }

    .hero-content {
        padding-left: 20px;
    }

    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        min-height: 450px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-content {
        padding: 40px 20px;
        text-align: center;
        margin: 0 auto;
    }

    .hero-section::before {
        background: linear-gradient(180deg, rgba(82, 60, 48, 0.8) 0%, rgba(26, 47, 76, 0.6) 50%, rgba(0, 0, 0, 0.4) 100%);
    }

    .hero-label {
        margin-left: auto;
        margin-right: auto;
    }
}

/* ===== SERVICES SECTION ===== */
.services-section {
    padding: 80px 0 10px 0;
    background-color: #ffffff;
}

.services-intro {
    padding-right: 30px;
}

.service-card {
    background: transparent;
    border-radius: 0;
    padding: 0 16px;
    border: none;
    box-shadow: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.service-card:hover .service-title {
    color: var(--primary-custom) !important;
}

@media (min-width: 992px) {
    .services-section .row>div:not(:last-child) .service-card::after {
        content: '';
        position: absolute;
        top: 0;
        right: -12px;
        width: 1px;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.18);
    }

    /* Hide dividers implicitly trailing 3-col and 4-col rows natively */
    .services-section .col-lg-4:nth-child(3n) .service-card::after,
    .services-section .col-lg-3:nth-child(4n) .service-card::after {
        display: none;
    }

    .services-intro {
        position: relative;
    }

    .services-intro::after {
        content: '';
        position: absolute;
        top: 40px;
        right: -15px;
        width: 1px;
        height: calc(100% - 80px);
        background-color: rgba(0, 0, 0, 0.18);
    }
}

.service-img-wrapper {
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
}

/* Fixed height & object-fit ensures all images align perfectly uniformly regardless of source aspect ratio */
.service-img-wrapper img {
    border-radius: 20px !important;
    width: 90%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-card:hover .service-img-wrapper img {
    transform: scale(1.05);
}

.service-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700 !important;
    letter-spacing: -0.2px;
    margin-bottom: 12px !important;
    color: var(--primary-blue) !important;
}

.service-desc {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    line-height: 1.6;
    font-weight: 400;
    color: #6C757D;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    /* Truncates long text cleanly */
    line-clamp: 5;
    /* Standard property for compatibility */
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding: 0 10px;
}

@media (max-width: 991.98px) {
    .services-intro {
        padding-right: 15px;
        text-align: center;
    }

    .services-intro .btn-primary-custom {
        margin-bottom: 30px;
    }
}

@media (max-width: 767.98px) {
    .services-section {
        padding: 40px 0;
    }

    .service-img-wrapper img {
        height: 200px;
        /* Slightly taller images natively on mobile */
    }
}

/* ===== WHY CHOOSE US SECTION ===== */
.why-choose-section {
    padding: 10px 0 5px 0;
    background-color: #f2f5f9;
    /* Clean light slate-blue background matching the reference flow perfectly */
    position: relative;
    overflow: hidden;
}

.why-choose-section::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 60%;
    background-image: url('../assets/images/why-choose-bg-image.png');
    background-size: contain;
    background-position: right 15%;
    /* Shifted map slightly upwards */
    background-repeat: no-repeat;
    opacity: 0.65;
    z-index: 0;
    pointer-events: none;
    mix-blend-mode: multiply;
}

.trademark-sup {
    font-size: 0.4em;
    vertical-align: super;
    margin-left: 2px;
}

.section-heading {
    letter-spacing: -0.5px;
    margin-bottom: 24px !important;
}

.why-choose-subtitle {
    max-width: 580px;
    font-size: 15px;
    line-height: 1.6;
}

/* Feature Item mapping strictly to a flat text block layout */
.feature-item {
    text-align: left;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
}

.feature-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.2px;
    margin-bottom: 2px;
    color: #001A93;
}

.feature-desc {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.6;
    color: #6C757D;
}

/* Icon layout: Rounded square with purely white background natively left aligned */
.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    background-color: #e1e9f1;
    border-radius: 20px !important;
    /* Soft rounded square */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    margin: 0;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-item:hover .feature-icon-wrapper {
    transform: scale(1.05);
}

.feature-icon {
    max-width: 48px;
    max-height: 48px;
    object-fit: contain;
}

@media (max-width: 991.98px) {
    .why-choose-section {
        padding: 80px 0;
    }
}

@media (max-width: 767.98px) {
    .why-choose-section {
        padding: 60px 0;
    }

    /* Center text for ABOUT CAREYGO and VALUE PROPOSITION headings */
    .why-choose-section .col-lg-8 h6,
    .why-choose-section .col-lg-8 h2,
    .why-choose-section .why-choose-subtitle,
    .about-section .position-relative h6,
    .about-section .position-relative h2 {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    /* Vertical stacking order strictly for Mobile Feature Items */
    .feature-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 10px;
    }

    .feature-item .feature-icon-wrapper {
        order: 1;
        /* Icon first */
        margin: 0 auto 20px auto !important;
    }

    .feature-item .feature-title-group {
        order: 2;
        /* Title in middle */
        margin-bottom: 20px !important;
    }

    .feature-item .feature-desc {
        order: 3;
        /* Description last */
        margin-bottom: 0 !important;
    }
}

/* Mobile Toggle Cross Icon when opened */
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background-image: none;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before,
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--primary-blue);
    transition: all 0.3s ease;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
    transform: rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
    transform: rotate(-45deg);
}

/* ===== ABOUT / DELIVERY SECTION ===== */
.about-section {
    padding: 15px 0 120px 0;
    background-color: #f2f5f9;
    position: relative;
    overflow: hidden;
}

/* Offset gray backplate specific to Image 2 */
.about-bg-underlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 65%;
    height: 100%;
    background-color: var(--light-gray);
    z-index: 0;
    border-top-left-radius: 300px;
    border-bottom-left-radius: 30px;
    opacity: 0.6;
}

/* Mobile responsive plate hidden or shrunk */
@media (max-width: 991px) {
    .about-bg-underlay {
        width: 100%;
        border-radius: 0;
        height: 60%;
        bottom: 0;
        top: auto;
    }
}

.about-heading {
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.about-desc {
    font-size: 15px;
    line-height: 1.6;
}

.about-feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    /* Extra bold */
    color: #000000;
    /* True black */
}

.about-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1.5px solid var(--primary-blue);
    color: var(--primary-blue);
    margin-right: 12px;
    font-size: 15px;
    flex-shrink: 0;
}

.about-bg-image {
    position: absolute;
    bottom: -30px;
    right: 10px;
    max-width: 60%;
    opacity: 0.15;
    z-index: 0;
}

@media (max-width: 991.98px) {
    .about-section {
        padding: 80px 0;
    }
}

@media (max-width: 767.98px) {
    .about-section {
        padding: 60px 0;
    }
}

/* ===== FOOTER SECTION ===== */
.footer-section {
    background-color: #0B1F5B;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
    width: 100%;
}

.footer-col-divider {
    position: relative;
}

@media (min-width: 992px) {
    .footer-col-divider::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        height: 100%;
        width: 1px;
        background-color: rgba(255, 255, 255, 0.15);
    }
}

.footer-bg-map {
    position: absolute;
    top: 90px;
    left: 2%;
    width: 390px;
    height: 250px;
    background-image: url('../assets/images/gloabe-bg.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center left;
    filter: brightness(0) invert(1);
    opacity: 0.40;
    pointer-events: none;
    z-index: 1;
}

.footer-logo {
    height: 90px;
    object-fit: contain;
    margin-bottom: 150px !important;
}

.footer-socials {
    position: absolute;
    top: 135px;
    left: 0.5%;
}

.footer-heading {
    font-size: 16px;
    letter-spacing: 0.5px;
    margin-bottom: 25px !important;
}

.footer-heading i {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a,
.footer-contact a,
.footer-links li {
    text-decoration: none;
    color: #b0bbd6;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: #ffffff;
}

.footer-contact span.d-inline-block {
    font-size: 14px;
    color: #b0bbd6;
    line-height: 1.6;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #ffffff;
    color: #ffffff !important;
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link i {
    color: #ffffff !important;
}

.social-link:hover {
    background-color: #ffffff;
    color: var(--primary-blue) !important;
}

.social-link:hover i {
    color: var(--primary-blue) !important;
}

.footer-bottom-bar {
    background-color: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.text-light-gray {
    color: #b0bbd6 !important;
    font-weight: 600;
}

@media (max-width: 991px) {
    .footer-col {
        margin-bottom: 40px !important;
    }
}

/* ===== REFINED SPACING FIXES ===== */

/* 1. Global Section Vertical Spacing */
.top-bar {
    padding: 5px 0 !important;
}

.main-navbar {
    padding: 10px 0 !important;
}

.services-section {
    padding: 100px 0 !important;
}

.why-choose-section {
    padding: 100px 0 !important;
}

.about-section {
    padding: 100px 0 !important;
}

.about-section>.container {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.footer-section {
    padding-top: 30px !important;
}

.footer-bottom-bar {
    padding: 10px 0 !important;
}

/* 2. Hero Section Height & Alignment */
.hero-section {
    min-height: 600px !important;
}

.hero-content {
    padding-left: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.hero-label {
    margin-bottom: 25px !important;
}

.hero-title {
    margin-bottom: 40px !important;
}

/* 3. Heading to Content Spacing */
.services-intro h2 {
    margin-bottom: 30px !important;
}

.services-intro p {
    margin-bottom: 40px !important;
}

.why-choose-section .section-heading {
    margin-bottom: 20px !important;
}

.why-choose-subtitle {
    margin-top: 20px !important;
    margin-bottom: 0 !important;
}

.why-choose-section .row.mb-5.pb-xl-4 {
    margin-bottom: 60px !important;
    padding-bottom: 0 !important;
}

.about-heading {
    margin-bottom: 25px !important;
}

.about-desc {
    margin-bottom: 40px !important;
}

/* 4. Card Internal Spacing */
.service-img-wrapper {
    margin-bottom: 20px !important;
}

.service-title {
    margin-bottom: 12px !important;
}

.service-card {
    padding: 0 15px !important;
}

.feature-title-group {
    margin-bottom: 15px !important;
}

.feature-desc {
    margin-bottom: 30px !important;
}

/* 5. Gaps */
.services-section .row.mb-4 {
    margin-bottom: 30px !important;
}

/* 6. Footer Corrections */
.footer-logo {
    margin-bottom: 30px !important;
    height: 60px !important;
}

.footer-heading {
    margin-bottom: 25px !important;
}

.footer-socials {
    margin-top: 0 !important;
}

/* 7. Tablet / Mobile proportional scaling */
@media (max-width: 991.98px) {

    .services-section,
    .why-choose-section,
    .about-section {
        padding: 80px 0 !important;
    }

    .hero-section {
        min-height: 500px !important;
    }
}

@media (max-width: 767.98px) {

    .services-section,
    .why-choose-section,
    .about-section {
        padding: 60px 0 !important;
    }

    .hero-section {
        min-height: 450px !important;
    }

    .why-choose-section .row.mb-5.pb-xl-4 {
        margin-bottom: 40px !important;
    }

    .hero-title {
        margin-bottom: 25px !important;
    }

    .services-intro p {
        margin-bottom: 30px !important;
    }

    /* Resolving Footer Social Icons Overlap on Mobile */
    .footer-socials {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        margin-top: 150px !important;
        margin-bottom: 30px !important;
        margin-left: 3.5% !important;
    }

    /* Adding small left gap to all bottom footer content */
    .footer-col {
        padding-left: 3.5% !important;
    }
}