/* ===== 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 ===== */
html,
body {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100%;
}

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;
        justify-content: center;
        padding-bottom: 12px;
    }

    /* Stack register link above login button on mobile menu */
    .nav-register-link {
        font-size: 13px;
    }
}

.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;
}

/* ===== NAV AUTH ELEMENTS ===== */

/* Register text link */
.nav-register-link {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-blue);
    text-decoration: none;
    padding: 4px 2px;
    transition: opacity .2s;
    white-space: nowrap;
}
.nav-register-link:hover { opacity: .7; color: var(--primary-blue); }

/* Customer Login button (pill, same height as CTA) */
.nav-login-btn {
    padding: 0px 6px 0px 18px !important;
    height: 44px;
    font-size: 14px;
}

/* Mobile compact login button */
.nav-login-btn-sm {
    display: inline-flex; align-items: center;
    background: var(--primary-blue);
    color: #fff; text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 12px; font-weight: 600;
    padding: 6px 14px; border-radius: 50px;
    gap: 4px;
    transition: background .2s;
}
.nav-login-btn-sm:hover { background: #001270; color: #fff; }

/* Mobile avatar circle */
.nav-user-avatar-sm {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--primary-blue); color: #fff;
    font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 14px;
    text-decoration: none;
    flex-shrink: 0;
}

/* Logged-in user pill button */
.nav-user-pill {
    display: inline-flex; align-items: center; gap: 8px;
    background: #f0f2fb;
    border: 1.5px solid #d6dcf5;
    border-radius: 50px;
    padding: 5px 14px 5px 5px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 13px; font-weight: 600;
    color: var(--primary-blue);
    transition: background .2s, border-color .2s;
    white-space: nowrap;
}
.nav-user-pill:hover,
.nav-user-pill.show {
    background: #e4e9fc;
    border-color: var(--primary-blue);
}
.nav-user-pill::after { display: none; }  /* hide Bootstrap default caret */

.nav-user-pill-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), #3B5BDB);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 13px;
    flex-shrink: 0;
}

.nav-user-pill-name {
    max-width: 100px;
    overflow: hidden; text-overflow: ellipsis;
}

.nav-user-pill-chevron {
    font-size: 11px;
    opacity: .6;
    margin-left: 2px;
}

/* User dropdown menu */
.nav-user-menu {
    min-width: 220px;
    border: 1px solid #e4e7f0;
    border-radius: 14px;
    padding: 6px;
    margin-top: 8px !important;
    font-family: 'Poppins', sans-serif;
}

.nav-user-menu-header {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px 8px;
}

.nav-user-menu-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), #3B5BDB);
    color: #fff; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 16px;
}

.nav-user-menu-name {
    font-weight: 600; font-size: 13px; color: #1a1a2e;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-width: 140px;
}

.nav-user-menu-role {
    font-size: 11px; color: #6b7280;
}

.nav-user-menu-item {
    display: flex; align-items: center; gap: 9px;
    padding: 9px 12px;
    border-radius: 9px;
    font-size: 13px; font-weight: 500; color: #374151;
    transition: background .15s, color .15s;
}
.nav-user-menu-item i { font-size: 15px; color: var(--primary-blue); }
.nav-user-menu-item:hover { background: #f0f2fb; color: var(--primary-blue); }

.nav-user-menu-logout { color: #ef4444; }
.nav-user-menu-logout i { color: #ef4444; }
.nav-user-menu-logout:hover { background: #fef2f2; color: #ef4444; }

/* ===================================================== */

/* 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: 500px !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;
    padding: 60px 0;
}

/* 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: 20px !important;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 28px !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;
    }
}

/* Hero at 1200px–1350px — prevent content overflow */
@media (min-width: 1200px) and (max-width: 1350px) {
    .hero-title {
        font-size: 3rem !important;
    }

    .hero-content {
        max-width: 560px !important;
    }
}

@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: 70px 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: 16px;
}

/* 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: 10px !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: 20px;
    }
}

@media (max-width: 767.98px) {
    /* services-section padding handled by main mobile block below */

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

/* ===== WHY CHOOSE US SECTION ===== */
.why-choose-section {
    padding: 70px 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: 20px !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;
    margin-bottom: 30px;
}

.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: 60px 0;
    }
}

@media (max-width: 767.98px) {
    /* why-choose-section padding handled by main mobile block below */

    /* 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: 2px;
    }

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

    .feature-item .feature-title-group {
        order: 2;
        /* Title in middle */
        margin-bottom: 2px !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: 70px 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: 16px;
    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: 60px 0;
    }
}

@media (max-width: 767.98px) {
    /* about-section padding handled by main mobile block below */
}

/* ===== 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: 0;
    width: 320px;
    max-width: 320px;
    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: 60px !important;
    padding-left: 20px;
}

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

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

@media (min-width: 992px) {
    .footer-useful-links {
        padding-left: 80px !important; /* Shifting Useful Links to the right to clear globe */
    }
}

.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);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.4);
    /* Faint black */
    color: #ffffff;
    border: none;
    border-radius: 4px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.back-to-top:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

.back-to-top i {
    font-size: 20px;
}

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

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

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

/* Prevent Navigation Icons Layout Break at 110% Zoom */
@media (min-width: 1200px) {
    .main-navbar .navbar-collapse {
        flex-wrap: nowrap !important;
    }

    .main-navbar .nav-links-wrapper,
    .main-navbar .nav-actions {
        white-space: nowrap !important;
        flex-wrap: nowrap !important;
    }
}

/* ===== 1200px–1350px BREAKPOINT FIX ===== */
/* Navbar items are too wide at this range — scale down without design change */
@media (min-width: 1200px) and (max-width: 1350px) {

    /* Shrink logo slightly */
    .brand-logo {
        max-height: 58px !important;
    }

    /* Tighten nav link padding */
    .navbar-nav .nav-link {
        padding: 8px 10px !important;
        font-size: 12px !important;
    }

    /* Tighten nav links pill wrapper */
    .nav-links-wrapper {
        padding: 6px 16px !important;
    }

    /* Reduce search btn right margin */
    .search-btn {
        margin-right: 10px !important;
    }

    /* Tighten Connect With Us button */
    .nav-actions .btn-primary-custom {
        padding: 0px 6px 0px 14px !important;
        font-size: 13px !important;
    }

    /* Ensure navbar container doesn't overflow */
    .main-navbar .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    /* Top bar — tighten info gap */
    .top-info {
        gap: 18px !important;
    }
}

@media (min-width: 992px) {
    .top-bar .row {
        flex-wrap: nowrap !important;
    }

    .top-info,
    .social-icons {
        white-space: nowrap !important;
        flex-wrap: nowrap !important;
    }
}

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

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

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

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

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

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

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

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

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

/* 3. Reduce Large Margins on Service Section */
.services-section .row.gx-5.mb-4 {
    margin-bottom: 30px !important;
}

/* 4. Optimize Bootstrap Utility Margins Desktop View */
@media (min-width: 992px) {
    .services-intro {
        margin-bottom: 0 !important;
    }
    
    .services-intro h2 {
        margin-bottom: 18px !important;
    }
    
    .services-intro p {
        margin-bottom: 24px !important;
    }
}

.hero-content {
    padding-left: 30px !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) {

    /* ============================================================
       MOBILE SPACING SYSTEM — 2px vertical rhythm everywhere
       Systematic override of all Bootstrap utility spacing classes
       ============================================================ */

    /* 1. SECTION WRAPPERS — 2px gap between all sections */
    .services-section,
    .why-choose-section,
    .about-section,
    .footer-section {
        padding: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 2px !important;
    }

    .footer-section {
        margin-bottom: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .hero-section {
        min-height: 480px !important;
        margin-bottom: 2px !important;
        padding: 0 !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* 2. SECTION CONTAINERS — 2px inner top/bottom */
    .services-section .container,
    .why-choose-section .container,
    .about-section .container {
        padding-top: 2px !important;
        padding-bottom: 2px !important;
    }

    /* 3. GLOBAL BOOTSTRAP MARGIN OVERRIDES — mb-* inside all sections */
    .services-section .mb-1, .services-section .mb-2,
    .services-section .mb-3, .services-section .mb-4, .services-section .mb-5,
    .why-choose-section .mb-1, .why-choose-section .mb-2,
    .why-choose-section .mb-3, .why-choose-section .mb-4, .why-choose-section .mb-5,
    .about-section .mb-1, .about-section .mb-2,
    .about-section .mb-3, .about-section .mb-4, .about-section .mb-5 {
        margin-bottom: 2px !important;
    }

    /* 4. GLOBAL BOOTSTRAP TOP MARGIN OVERRIDES — mt-* inside all sections */
    .services-section .mt-1, .services-section .mt-2,
    .services-section .mt-3, .services-section .mt-4, .services-section .mt-5,
    .why-choose-section .mt-1, .why-choose-section .mt-2,
    .why-choose-section .mt-3, .why-choose-section .mt-4, .why-choose-section .mt-5,
    .about-section .mt-1, .about-section .mt-2,
    .about-section .mt-3, .about-section .mt-4, .about-section .mt-5 {
        margin-top: 2px !important;
    }

    /* 5. GLOBAL BOOTSTRAP PADDING OVERRIDES — pb-* pt-* inside sections */
    .services-section .pb-0, .services-section .pb-1, .services-section .pb-2,
    .services-section .pb-3, .services-section .pb-4,
    .why-choose-section .pb-0, .why-choose-section .pb-1, .why-choose-section .pb-2,
    .why-choose-section .pb-3, .why-choose-section .pb-4,
    .about-section .pb-0, .about-section .pb-1, .about-section .pb-2,
    .about-section .pb-3, .about-section .pb-4 {
        padding-bottom: 2px !important;
    }

    .services-section .pt-0, .services-section .pt-1, .services-section .pt-2,
    .why-choose-section .pt-0, .why-choose-section .pt-1, .why-choose-section .pt-2,
    .about-section .pt-0, .about-section .pt-1, .about-section .pt-2 {
        padding-top: 2px !important;
    }

    /* 6. ROW GAPS — g-* gy-* inside sections */
    /* CSS custom properties ignore !important — override column padding directly */
    .services-section .g-4 > *,
    .services-section .g-3 > *,
    .why-choose-section .g-4 > *,
    .why-choose-section .g-3 > * {
        padding-top: 2px !important;
        padding-bottom: 0 !important;
    }

    .services-section .g-4,
    .services-section .g-3,
    .why-choose-section .g-4,
    .why-choose-section .g-3 {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 2px;
        margin-top: 0 !important;
    }

    .about-section .g-4 {
        --bs-gutter-y: 0;
        --bs-gutter-x: 1rem;
        margin-top: 0 !important;
    }

    .about-section .g-4 > * {
        padding-top: 2px !important;
        padding-bottom: 0 !important;
    }

    .about-section .gy-3 {
        --bs-gutter-y: 0;
    }

    .about-section .gy-3 > * {
        padding-top: 0 !important;
    }

    /* 7. NAVBAR — keep functional spacing */
    .main-navbar {
        position: sticky !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 1000 !important;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
        background-color: #ffffff !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    /* 8. HIDE DECORATIVE ELEMENTS */
    .footer-bg-map,
    .why-choose-section::before,
    .about-bg-underlay,
    .about-bg-image {
        display: none !important;
    }

    /* 9. HERO — internal spacing */
    .hero-content {
        padding-top: 60px !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        max-width: 100vw;
        box-sizing: border-box;
    }

    .hero-title {
        margin-bottom: 2px !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .hero-section .btn-primary-custom {
        padding-left: 26px !important;
        padding-right: 26px !important;
    }

    /* 10. SERVICES INTRO */
    .services-intro h2 {
        font-size: 30px !important;
        line-height: 1.15 !important;
        letter-spacing: -0.5px !important;
        margin-bottom: 2px !important;
        white-space: nowrap !important;
    }

    .services-intro h2 br {
        display: none;
    }

    .services-intro h6 {
        margin-bottom: 2px !important;
    }

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

    .services-intro .btn-primary-custom {
        padding-left: 26px !important;
        padding-right: 26px !important;
        margin-left: 25px !important;
        margin-top: 2px !important;
        margin-bottom: 5px !important;
    }

    .services-intro.mb-5 {
        margin-bottom: 2px !important;
    }

    /* 11. SERVICE CARDS */
    .service-img-wrapper {
        margin-bottom: 2px !important;
    }

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

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

    /* Fix: gap between top 3-card row and bottom 8-card row on mobile */
    .services-section .row.gx-5.mb-4,
    .services-section .row.mb-4 {
        margin-bottom: 2px !important;
    }

    /* Fix: outer row stretch + inner h-100 causing space below B2B card */
    .services-section .row.gx-5 {
        align-items: flex-start !important;
    }

    .services-section .col-lg-9,
    .services-section .col-lg-9 > .row {
        height: auto !important;
    }

    .service-img-wrapper img {
        height: 200px;
    }

    /* 12. WHY CHOOSE SECTION */
    .why-choose-section .row.mb-3 {
        margin-bottom: 0 !important;
    }

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

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

    .why-choose-section .row.g-4.g-lg-5.mt-2.mb-0 {
        margin-top: 2px !important;
    }

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

    .feature-item {
        margin-bottom: 2px !important;
        height: auto !important;
        padding-bottom: 0 !important;
    }

    .feature-icon-wrapper {
        margin-bottom: 2px !important;
        margin-top: 0 !important;
    }

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

    /* 13. ABOUT SECTION */
    .about-section {
        margin-top: 0 !important;
    }

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

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

    .about-section .col-lg-6.mb-4 {
        margin-bottom: 2px !important;
    }

    /* Zero out all padding on the white card — top/bottom to 2px, keep side padding */
    .about-section .col-lg-6:last-child .p-4,
    .about-section .col-lg-6:last-child .p-lg-5 {
        padding-top: 2px !important;
        padding-bottom: 2px !important;
    }

    .about-section .list-unstyled.gap-3 {
        gap: 2px !important;
    }

    .about-section .col-sm-6 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .about-section .col-sm-6:last-child ul {
        margin-top: 2px !important;
    }

    .about-feature-item {
        margin-bottom: 0 !important;
    }

    .about-section .mt-2.pb-2 {
        padding-bottom: 2px !important;
    }

    /* 14. FOOTER MOBILE */
    .footer-section .container {
        padding-bottom: 5px !important;
        margin-bottom: 5px !important;
    }

    .footer-mobile-v2 {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 10px 14px !important;
        margin: 0 !important;
        text-align: left !important;
    }

    .footer-mobile-v2 .footer-row + .footer-row {
        margin-top: 2px;
    }

    .footer-row {
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        gap: 6px;
        white-space: nowrap;
        font-size: 11px;
        line-height: 1.3;
        font-weight: 400;
        color: #b0bbd6;
    }

    .footer-row:first-child {
        justify-content: flex-start;
        gap: 4px;
        font-size: 11px;
    }

    .footer-row:nth-child(2) {
        justify-content: flex-start;
        gap: 4px;
        font-size: 11px;
    }

    .footer-mobile-v2 a {
        font-size: 11px;
        letter-spacing: 0.1px;
    }

    .footer-row a {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        color: #b0bbd6;
        text-decoration: none;
        margin: 0 !important;
        padding: 0 !important;
    }

    .footer-row .sep { color: rgba(255, 255, 255, 0.3); }

    .footer-row i { color: #009cff; font-size: 11px; }

    .footer-row:last-child span {
        display: inline-flex;
        align-items: center;
        flex-wrap: nowrap;
        white-space: nowrap;
        font-size: 10.5px;
    }

    .footer-row span { white-space: nowrap; }

    .websoftera-text {
        color: #009cff !important;
        font-weight: 500 !important;
        white-space: nowrap;
    }

    /* 15. BACK TO TOP */
    .back-to-top {
        bottom: 0 !important;
        left: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 0 4px 0 0 !important;
        width: 45px;
        height: 45px;
        z-index: 10001;
    }
}

/* ===== DESKTOP 10px SIDE SPACING FIX (≥992px only) ===== */
/* Targets: top-bar, navbar, services, why-choose, about, footer containers */
/* Hero and footer structure/design are NOT changed */

@media (min-width: 992px) {

    /* Force all section containers to exactly 10px left/right padding */
    .top-bar .container,
    .main-navbar .container,
    .services-section .container,
    .why-choose-section .container,
    .about-section .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
        max-width: 100% !important;
    }

    /* Footer desktop container: override px-lg-4 (24px) down to 10px */
    .footer-section .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
        max-width: 100% !important;
    }

    /* Fix top-info negative margin that was compensating for old container padding */
    .top-info {
        margin-left: 0 !important;
    }

    /* Hero section spans full width — keep as-is, only ensure no side overflow */
    .hero-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Hero inner container keeps Bootstrap default so content aligns with 10px edge */
    .hero-section .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
        max-width: 100% !important;
    }
}

/* 1200px–1350px: keep navbar container at 10px (overrides the 12px set earlier) */
@media (min-width: 1200px) and (max-width: 1350px) {
    .main-navbar .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}
