/********** KD's Global Logistics — Modern Theme **********/
:root {
    --primary: #1d4ed8;
    --primary-dark: #1e3a8a;
    --navy: #0b1f4e;
    --accent: #38bdf8;
    --secondary: #5b6b8c;
    --light: #eef3ff;
    --muted: #64748b;
    --body: #475569;
    --dark: #0b1f4e;
    --grad: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 60%, #0b1f4e 100%);
    --shadow-sm: 0 4px 20px rgba(15, 31, 78, .06);
    --shadow: 0 18px 50px rgba(15, 31, 78, .10);
    --shadow-lg: 0 30px 70px rgba(15, 31, 78, .16);
    --radius: 18px;
}

* { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--body);
    background: #ffffff;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--navy);
    letter-spacing: -.02em;
}

h1, .h1, h2, .h2, .fw-bold { font-weight: 800 !important; }
h3, .h3, h4, .h4, .fw-medium { font-weight: 700 !important; }
h5, .h5, h6, .h6, .fw-semi-bold { font-weight: 600 !important; }

a { text-decoration: none; }

.text-primary { color: var(--primary) !important; }
.bg-primary { background: var(--primary) !important; }
.bg-grad { background: var(--grad) !important; }
.text-accent { color: var(--accent) !important; }

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: 13px;
    color: var(--primary);
    background: var(--light);
    padding: 8px 16px;
    border-radius: 50rem;
    margin-bottom: 1rem;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
    box-shadow: var(--shadow);
}


/*** Spinner ***/
#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;
}


/*** Buttons ***/
.btn {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    transition: .35s cubic-bezier(.4,0,.2,1);
    border-radius: 50rem;
}
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 12px 28px rgba(29, 78, 216, .28);
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(29, 78, 216, .38);
}
.btn-light {
    background: #fff;
    color: var(--primary);
    border-color: #fff;
}
.btn-light:hover { transform: translateY(-3px); color: var(--primary-dark); }
.btn-outline-light:hover { color: var(--primary); }

.btn-square { width: 40px; height: 40px; }
.btn-sm-square { width: 34px; height: 34px; }
.btn-lg-square { width: 50px; height: 50px; }
.btn-square, .btn-sm-square, .btn-lg-square {
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 50rem;
}


/*** Topbar ***/
.topbar {
    background: var(--navy);
    font-size: 14px;
}
.topbar a { color: rgba(255,255,255,.85); transition: .3s; }
.topbar a:hover { color: var(--accent); }


/*** Navbar ***/
.navbar.sticky-top {
    top: 0;
    transition: .4s;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(12px);
}
.navbar.scrolled { box-shadow: var(--shadow-sm); }

.navbar .navbar-brand img {
    height: 84px;
    border-radius: 12px;
}
.navbar .navbar-nav .nav-link {
    margin-right: 28px;
    padding: 28px 0;
    color: var(--navy);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    position: relative;
    outline: none;
}
.navbar .navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 20px;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: .35s;
}
.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active { color: var(--primary); }
.navbar .navbar-nav .nav-link:hover::after,
.navbar .navbar-nav .nav-link.active::after { width: 100%; }

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link { margin-right: 0; padding: 10px 0; }
    .navbar .navbar-nav .nav-link::after { display: none; }
    .navbar .navbar-nav { border-top: 1px solid #eef2f7; }
    .navbar .navbar-brand img { height: 64px; }
}


/*** Hero ***/
.hero {
    position: relative;
    background: var(--grad);
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url(../img/carousel-1.jpg) center center / cover no-repeat;
    opacity: .18;
    mix-blend-mode: luminosity;
}
.hero::after {
    content: "";
    position: absolute;
    top: -120px;
    right: -120px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(56,189,248,.35), transparent 70%);
    border-radius: 50%;
}
.hero-content { position: relative; z-index: 2; }
.hero h1 {
    color: #fff;
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.08;
}
.hero p { color: rgba(255,255,255,.85); font-size: 1.15rem; }
.hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    color: #fff;
    padding: 8px 18px;
    border-radius: 50rem;
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(6px);
}
.hero-visual {
    position: relative;
    z-index: 2;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    border: 6px solid rgba(255,255,255,.12);
}


/*** Feature cards ***/
.feature-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    height: 100%;
    transition: .4s cubic-bezier(.4,0,.2,1);
    border: 1px solid #eef2f7;
}
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--light);
    color: var(--primary);
    font-size: 26px;
    margin-bottom: 1.25rem;
    transition: .4s;
}
.feature-card:hover .feature-icon { background: var(--grad); color: #fff; transform: rotate(-6deg); }

@media (min-width: 992px) {
    .feature-strip { margin-top: -70px; position: relative; z-index: 3; }
}


/*** Section helpers ***/
.section { padding: 6rem 0; }
.img-stack { position: relative; }
.img-stack img { border-radius: var(--radius); box-shadow: var(--shadow); }
.img-stack .img-badge {
    position: absolute;
    bottom: -24px;
    left: -24px;
    background: var(--grad);
    color: #fff;
    padding: 1.5rem 1.75rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}
.img-stack .img-badge h2 { color: #fff; margin: 0; }


/*** Check list ***/
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    margin-bottom: 1rem;
    font-weight: 500;
    color: var(--navy);
}
.check-list li i {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50rem;
    background: var(--light);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    margin-top: 2px;
}


/*** Services ***/
.service-card {
    position: relative;
    background: #fff;
    border-radius: var(--radius);
    padding: 2.25rem;
    height: 100%;
    border: 1px solid #eef2f7;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: .4s cubic-bezier(.4,0,.2,1);
    z-index: 1;
}
.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--grad);
    opacity: 0;
    transition: .4s;
    z-index: -1;
}
.service-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.service-card:hover::before { opacity: 1; }
.service-card .service-icon {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    background: var(--light);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 1.5rem;
    transition: .4s;
}
.service-card:hover .service-icon { background: rgba(255,255,255,.15); color: #fff; }
.service-card h4, .service-card p { transition: .4s; }
.service-card:hover h4 { color: #fff; }
.service-card:hover p { color: rgba(255,255,255,.88); }
.service-card .service-link {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    transition: .4s;
}
.service-card:hover .service-link { color: #fff; }


/*** Stats ***/
.stats {
    background: var(--grad);
    position: relative;
    overflow: hidden;
}
.stats::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url(../img/carousel-2.jpg) center / cover no-repeat;
    opacity: .12;
    mix-blend-mode: luminosity;
}
.stat-item { position: relative; z-index: 2; }
.stat-item h2 { color: #fff; font-size: 3rem; }
.stat-item p { color: rgba(255,255,255,.8); margin: 0; font-weight: 500; }


/*** Steps ***/
.step-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 2rem;
    height: 100%;
    box-shadow: var(--shadow-sm);
    border: 1px solid #eef2f7;
    position: relative;
    transition: .4s;
}
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.step-num {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 2.5rem;
    line-height: 1;
    color: var(--light);
    -webkit-text-stroke: 1px var(--primary);
}


/*** CTA ***/
.cta {
    background: var(--grad);
    border-radius: 28px;
    position: relative;
    overflow: hidden;
}
.cta::after {
    content: "";
    position: absolute;
    bottom: -100px;
    left: -80px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(56,189,248,.3), transparent 70%);
    border-radius: 50%;
}
.cta h1, .cta p { position: relative; z-index: 2; }


/*** Page header ***/
.page-header {
    background: var(--grad);
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url(../img/carousel-1.jpg) center / cover no-repeat;
    opacity: .16;
    mix-blend-mode: luminosity;
}
.page-header > .container { position: relative; z-index: 2; }
.page-header h1 { color: #fff; }
.page-header .breadcrumb-item,
.page-header .breadcrumb-item a { color: rgba(255,255,255,.85); font-weight: 500; }
.page-header .breadcrumb-item.active { color: #fff; }
.page-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.6); }


/*** Contact ***/
.contact-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid #eef2f7;
    display: flex;
    align-items: center;
    gap: 1.1rem;
    transition: .4s;
}
.contact-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.contact-card .c-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--light);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}
.contact-card span { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.contact-card h6 { margin: 2px 0 0; }
.form-control, .form-select {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: .85rem 1rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 .25rem rgba(29,78,216,.12);
}
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }


/*** Rates ***/
.rates-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid #eef2f7;
    overflow: hidden;
}
.rates-table {
    width: 100%;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}
.rates-table thead th {
    background: var(--grad);
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 1rem 1.5rem;
    text-align: left;
}
.rates-table thead th:last-child { text-align: right; }
.rates-table tbody td {
    padding: .85rem 1.5rem;
    border-bottom: 1px solid #eef2f7;
    color: var(--navy);
    font-weight: 600;
}
.rates-table tbody td:first-child { color: var(--muted); }
.rates-table tbody td:last-child { text-align: right; color: var(--primary); font-weight: 700; }
.rates-table tbody tr { transition: background .25s; }
.rates-table tbody tr:hover { background: var(--light); }
.rates-table tbody tr:last-child td { border-bottom: none; }

@media (min-width: 768px) {
    .rates-card .col-md-6:first-child .rates-table { border-right: 1px solid #eef2f7; }
}

.rates-locked-row td { color: var(--muted) !important; font-style: italic; background: #f8fafc; }
.rates-locked-row td:last-child { color: var(--muted) !important; font-weight: 600; }

.rates-locked {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    padding: 1.75rem 2rem;
    background: var(--light);
    border-top: 1px solid #e3ebff;
}
.rates-lock-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--grad);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}
.rates-locked h5 { color: var(--navy); }
.rates-locked p { color: var(--muted); }


/*** Footer ***/
.footer {
    background: var(--navy);
    color: rgba(255,255,255,.7);
}
.footer h5 { color: #fff; margin-bottom: 1.5rem; }
.footer .brand-logo { height: 64px; border-radius: 12px; margin-bottom: 1.25rem; }
.footer a.footer-link {
    display: block;
    margin-bottom: .65rem;
    color: rgba(255,255,255,.7);
    transition: .3s;
}
.footer a.footer-link:hover { color: var(--accent); padding-left: 6px; }
.footer .contact-line { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: .85rem; }
.footer .contact-line i { color: var(--accent); margin-top: 4px; }
.footer .social-btn {
    width: 42px;
    height: 42px;
    border-radius: 50rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.08);
    color: #fff;
    transition: .35s;
}
.footer .social-btn:hover { background: var(--primary); transform: translateY(-4px); }

.copyright {
    background: #07173a;
    color: rgba(255,255,255,.6);
}
.copyright a { color: var(--accent); }
