/* ==============================================
   J&F Smart Logistics - Homepage (Rwanda edition)
   Loaded after styles.css on index.html only.
   ============================================== */

:root {
    --navy: #0A1A33;
    --navy-2: #0F2547;
    --accent: #F7B500;          /* Rwanda sun */
    --accent-dark: #DFA200;
    --rw-green: #20603D;
    --rw-blue: #00A1DE;
    --ink-on-accent: #0A1A33;
    --radius-lg: 22px;
}

body.home { background: var(--white); }

/* Wide layout: content spans nearly the full screen width with a small gutter */
.home .container {
    max-width: 1600px;
    width: 100%;
    padding-left: clamp(16px, 2.5vw, 40px);
    padding-right: clamp(16px, 2.5vw, 40px);
}
.home .section-description { max-width: 820px; }

.section-pad { padding: 6rem 0; }
.text-accent { color: var(--accent); }
.text-white-75 { color: rgba(255, 255, 255, 0.75) !important; }

.section-badge {
    letter-spacing: 1.5px;
    font-size: 0.78rem;
}
.section-badge.badge-light {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--accent);
}

/* === Buttons === */
.btn-accent {
    background: var(--accent);
    color: var(--ink-on-accent);
    border: none;
    font-weight: 700;
    border-radius: 12px;
    padding: 0.7rem 1.5rem;
    box-shadow: 0 10px 24px -8px rgba(247, 181, 0, 0.6);
    transition: var(--transition);
}
.btn-accent:hover,
.btn-accent:focus {
    background: var(--accent-dark);
    color: var(--ink-on-accent);
    transform: translateY(-2px);
}
.btn-accent.btn-lg { padding: 1rem 2rem; font-size: 1.02rem; }

.btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    font-weight: 700;
    border-radius: 12px;
    backdrop-filter: blur(6px);
    transition: var(--transition);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.18); color: var(--white); border-color: var(--white); }
.btn-ghost.btn-lg { padding: 1rem 2rem; font-size: 1.02rem; }

.btn-outline-brand {
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 700;
    border-radius: 12px;
    padding: 0.6rem 1.25rem;
    white-space: nowrap;
}
.btn-outline-brand:hover { background: var(--primary); color: var(--white); }

.btn-whatsapp {
    background: #25D366;
    color: #fff;
    font-weight: 700;
    border: none;
    border-radius: 12px;
}
.btn-whatsapp:hover { background: #1EBE5A; color: #fff; }

/* === Header === */
.site-header { transition: var(--transition); }
.topbar {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.82rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: margin 0.3s ease, opacity 0.3s ease;
}
.topbar-info { display: flex; align-items: center; gap: 1.5rem; }
.topbar-info a, .topbar-info span { color: inherit; display: inline-flex; align-items: center; gap: 0.45rem; }
.topbar-info a:hover { color: var(--accent); }
.topbar-info i { color: var(--accent); }
.topbar-social { gap: 0.9rem !important; }
.topbar-social i { color: rgba(255, 255, 255, 0.75); }
.topbar-social a:hover i { color: var(--accent); }

.home #mainNav {
    padding: 0.9rem 0;
    background: rgba(10, 26, 51, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: none;
}
.site-header.scrolled .topbar { margin-top: -38px; opacity: 0; }
.site-header.scrolled #mainNav {
    padding: 0.55rem 0;
    background: rgba(10, 26, 51, 0.97);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}
.home .logo-img { height: 54px; }
.home .brand-tagline { color: rgba(255, 255, 255, 0.8); max-width: 170px; line-height: 1.35; letter-spacing: 0.8px; font-size: 0.68rem; }
.home .navbar-nav .nav-link.active { color: var(--accent); background: rgba(255, 255, 255, 0.06); }

@media (max-width: 991px) {
    .home .navbar-collapse {
        background: var(--navy);
        margin: 0.75rem -0.75rem 0;
        padding: 1rem;
        border-radius: 16px;
    }
    .home .navbar-nav .btn-accent { margin-top: 0.5rem; width: 100%; }
}

/* === Hero === */
.hero-rw {
    position: relative;
    min-height: min(100vh, 940px);
    display: flex;
    align-items: center;
    color: var(--white);
    padding: 150px 0 140px;
    overflow: hidden;
    background: var(--navy);
}
.hero-rw-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 40%;
    transform: scale(1.05);
    animation: heroZoom 20s ease-out forwards;
}
.hero-rw-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(100deg, rgba(10, 26, 51, 0.95) 0%, rgba(10, 26, 51, 0.82) 40%, rgba(10, 26, 51, 0.45) 75%, rgba(10, 26, 51, 0.6) 100%),
        linear-gradient(0deg, rgba(10, 26, 51, 0.7) 0%, transparent 35%);
}
.hero-rw .container { z-index: 2; }
.hero-rw-row { min-height: min(60vh, 560px); }

.hero-rw-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 1.1rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.6px;
    margin-bottom: 1.5rem;
}
.flag-dots { display: inline-flex; gap: 3px; }
.flag-dots i { width: 8px; height: 8px; border-radius: 50%; display: block; }
.flag-dots i:nth-child(1) { background: var(--rw-blue); }
.flag-dots i:nth-child(2) { background: #FAD201; }
.flag-dots i:nth-child(3) { background: var(--rw-green); }

.hero-rw-title {
    color: var(--white);
    font-size: clamp(2.4rem, 5.4vw, 4.4rem);
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1.05;
    margin-bottom: 1.5rem;
}
.hero-rw-title .text-accent { display: block; }
.hero-rw-lead {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.82);
    max-width: 560px;
    margin-bottom: 2rem;
}
.hero-rw-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.75rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    font-size: 0.92rem;
}
.hero-rw-points i { color: var(--accent); margin-right: 0.4rem; }

/* Booking card */
.booking-card {
    background: var(--white);
    color: var(--gray-700);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.5);
    scroll-margin-top: 110px;
}
.booking-head h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.25rem; }
.booking-head p { font-size: 0.9rem; color: var(--gray-600); margin-bottom: 1rem; }
.booking-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--gray-100);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 1rem;
}
.booking-tabs button {
    border: 0;
    background: transparent;
    padding: 0.6rem 0.5rem;
    border-radius: 9px;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--gray-600);
    transition: var(--transition);
}
.booking-tabs button i { margin-right: 0.35rem; }
.booking-tabs button.active { background: var(--navy); color: var(--white); box-shadow: var(--shadow); }
.bk-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--gray-600);
    margin: 0.35rem 0 0.3rem;
}
.bk-field {
    position: relative;
    display: flex;
    align-items: center;
}
.bk-field > i {
    position: absolute;
    left: 0.85rem;
    color: var(--primary);
    pointer-events: none;
}
.bk-field input,
.bk-field select {
    width: 100%;
    border: 1.5px solid var(--gray-200);
    border-radius: 10px;
    padding: 0.7rem 0.75rem 0.7rem 2.4rem;
    font-size: 0.95rem;
    color: var(--dark);
    background: var(--white);
    transition: var(--transition);
    min-width: 0;
}
.bk-field input:focus,
.bk-field select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.12);
}
.bk-field .is-invalid { border-color: #DC3545; }
.booking-note { font-size: 0.8rem; color: var(--gray-600); text-align: center; margin: 0.75rem 0 0; }

/* === Stats strip === */
.stats-strip { position: relative; z-index: 5; margin-top: -70px; }
.stats-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -20px rgba(10, 26, 51, 0.35);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 1.75rem;
    gap: 1rem;
}
.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.25rem 1rem;
}
.stat-item + .stat-item { border-left: 1px solid var(--gray-200); }
.stat-item > i {
    font-size: 1.6rem;
    color: var(--primary);
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: #EEF4FF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.stat-num {
    display: block;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 2rem;
    color: var(--navy);
    line-height: 1;
}
.stat-cap { display: block; font-size: 0.85rem; color: var(--gray-600); font-weight: 600; margin-top: 0.3rem; }

/* === Services === */
.services-rw { background: var(--white); }
.service-switch {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    background: var(--gray-100);
    border-radius: 16px;
    padding: 6px;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 2.5rem;
}
.service-switch button {
    border: 0;
    background: transparent;
    padding: 0.85rem 1.4rem;
    border-radius: 12px;
    font-weight: 700;
    color: var(--gray-600);
    transition: var(--transition);
}
.service-switch button i { margin-right: 0.4rem; }
.service-switch button.active { background: var(--navy); color: var(--white); box-shadow: var(--shadow-md); }

.service-feature {
    position: relative;
    height: 100%;
    min-height: 460px;
    border-radius: var(--radius-lg);
    background-size: cover;
    background-position: center;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}
.service-feature::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 26, 51, 0.05) 20%, rgba(10, 26, 51, 0.92) 85%);
}
.service-feature-body { position: relative; padding: 2rem; color: var(--white); }
.service-feature-body h3 { color: var(--white); font-size: 1.75rem; font-weight: 800; margin: 0.9rem 0 0.6rem; }
.service-feature-body p { color: rgba(255, 255, 255, 0.85); margin-bottom: 1.25rem; }
.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    padding: 0.35rem 0.8rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
}

.svc-card {
    position: relative;
    height: 100%;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 18px;
    padding: 1.5rem;
    transition: var(--transition);
}
.svc-card:hover {
    border-color: transparent;
    box-shadow: 0 20px 40px -18px rgba(10, 26, 51, 0.35);
    transform: translateY(-4px);
}
.svc-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #EEF4FF;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}
.svc-card:hover .svc-icon { background: var(--primary); color: var(--white); }
.svc-card h4 { font-size: 1.12rem; font-weight: 800; margin-bottom: 0.5rem; }
.svc-card p { font-size: 0.92rem; color: var(--gray-600); margin-bottom: 0.9rem; line-height: 1.6; }
.svc-link { font-weight: 700; font-size: 0.88rem; color: var(--primary); display: inline-flex; gap: 0.35rem; align-items: center; }
.svc-link:hover { gap: 0.6rem; color: var(--primary-dark); }

.svc-card.is-featured { background: var(--navy); border-color: var(--navy); }
.svc-card.is-featured h4 { color: var(--white); }
.svc-card.is-featured p { color: rgba(255, 255, 255, 0.75); }
.svc-card.is-featured .svc-icon { background: rgba(247, 181, 0, 0.15); color: var(--accent); }
.svc-card.is-featured .svc-link { color: var(--accent); }
.svc-tag {
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
    background: var(--accent);
    color: var(--ink-on-accent);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.3rem 0.65rem;
    border-radius: 50px;
}
.svc-wide { display: flex; align-items: center; gap: 1.25rem; }
.svc-wide .svc-icon { margin-bottom: 0; flex-shrink: 0; }
.svc-wide p { margin-bottom: 0; }
.svc-wide > div:nth-child(2) { flex: 1; }

/* === Process === */
.process-rw { background: var(--light); }
.process-track {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.process-track::before {
    content: '';
    position: absolute;
    top: 62px;
    left: 12%;
    right: 12%;
    border-top: 2px dashed var(--gray-300);
}
.process-step { position: relative; text-align: center; padding: 0 0.5rem; }
.process-num {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 0.85rem;
    color: var(--primary);
    letter-spacing: 1px;
    margin-bottom: 0.6rem;
}
.process-icon {
    position: relative;
    width: 76px;
    height: 76px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--navy);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}
.process-step:hover .process-icon { background: var(--accent); border-color: var(--accent); }
.process-step h5 { font-weight: 800; font-size: 1.1rem; }
.process-step p { color: var(--gray-600); font-size: 0.92rem; margin: 0; }

/* === Destinations === */
.destinations-rw { background: var(--white); }
.dest-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    grid-template-rows: 260px 260px;
    gap: 1.25rem;
}
.dest-card {
    position: relative;
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    color: var(--white);
    isolation: isolate;
}
.dest-card.dest-lg { grid-row: span 2; }
.dest-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
    z-index: -2;
}
.dest-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(10, 26, 51, 0.88) 100%);
    z-index: -1;
}
.dest-card:hover img { transform: scale(1.07); }
.dest-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem; }
.dest-body h3 { color: var(--white); font-size: 1.35rem; font-weight: 800; margin: 0.5rem 0 0.15rem; }
.dest-lg .dest-body h3 { font-size: 1.9rem; }
.dest-body p { color: rgba(255, 255, 255, 0.82); font-size: 0.9rem; margin: 0; }
.dest-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--accent);
    color: var(--ink-on-accent);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.3rem 0.65rem;
    border-radius: 50px;
}
.dest-footnote { font-size: 0.8rem; color: var(--gray-600); margin: 1rem 0 0; }

/* === About === */
.about-rw { background: var(--light); }
.about-rw-media { position: relative; padding: 0 0 2rem 0; }
.about-rw-img {
    width: 100%;
    aspect-ratio: 4 / 3.3;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}
.about-rw .about-experience-badge { bottom: 0; left: auto; right: 1.5rem; }
.about-rw .about-feature { background: var(--white); height: 100%; }

/* === Why us === */
.why-rw { position: relative; background: var(--navy); color: var(--white); overflow: hidden; }
.why-rw-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.22;
}
.why-rw::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--navy) 0%, rgba(10, 26, 51, 0.7) 50%, var(--navy) 100%);
    z-index: 1;
}
.why-rw .container { z-index: 2; }
.why-card {
    height: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 2rem 1.6rem;
    backdrop-filter: blur(6px);
    transition: var(--transition);
}
.why-card:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--accent); transform: translateY(-6px); }
.why-card > i { font-size: 2.1rem; color: var(--accent); display: block; margin-bottom: 1rem; }
.why-card h4 { color: var(--white); font-size: 1.2rem; font-weight: 800; }
.why-card p { color: rgba(255, 255, 255, 0.75); margin: 0; font-size: 0.93rem; }

.sectors {
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.75rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    font-size: 0.95rem;
}
.sectors i { color: var(--accent); margin-right: 0.35rem; }
.sectors-title { width: 100%; text-align: center; text-transform: uppercase; letter-spacing: 2px; font-size: 0.75rem; color: rgba(255, 255, 255, 0.55); }

/* === CTA === */
.cta-rw { position: relative; padding: 5rem 0; color: var(--white); overflow: hidden; background: var(--primary-dark); }
.cta-rw-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.cta-rw::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 60, 160, 0.95) 0%, rgba(0, 82, 204, 0.85) 55%, rgba(0, 82, 204, 0.55) 100%);
    z-index: 1;
}
.cta-rw .container { z-index: 2; }
.cta-rw h2 { color: var(--white); font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 900; letter-spacing: -0.5px; }
.cta-rw h2 .text-accent { display: block; }
.cta-rw p { color: rgba(255, 255, 255, 0.85); font-size: 1.08rem; margin: 0.75rem 0 0; }

/* === Contact tweaks === */
.home .contact-item-content a { color: var(--gray-700); }
.home .contact-item-content a:hover { color: var(--primary); }

/* === Footer tweaks === */
.home .footer-bottom a { color: rgba(255, 255, 255, 0.7); }
.home .footer-bottom a:hover { color: var(--accent); }
.home .footer-links a:hover { color: var(--accent); }
.photo-credits { margin-top: 1rem; font-size: 0.78rem; color: rgba(255, 255, 255, 0.5); }
.photo-credits summary { cursor: pointer; width: fit-content; }
.photo-credits p { margin: 0.5rem 0 0; max-width: 900px; }

/* === Animations === */
@keyframes heroZoom {
    from { transform: scale(1.12); }
    to { transform: scale(1.02); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-rw-bg { animation: none; }
}

/* === Responsive === */
@media (max-width: 1199px) {
    .dest-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 320px 240px 240px; }
    .dest-card.dest-lg { grid-row: auto; grid-column: span 2; }
}

@media (max-width: 991px) {
    .section-pad { padding: 4.5rem 0; }
    .hero-rw { padding: 130px 0 120px; min-height: auto; }
    .stats-card { grid-template-columns: repeat(2, 1fr); }
    .stat-item:nth-child(3) { border-left: 0; }
    .process-track { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
    .process-track::before { display: none; }
    .service-feature { min-height: 340px; }
    .about-rw .about-experience-badge { right: 1rem; }
}

@media (max-width: 767px) {
    .service-switch { flex-direction: column; width: 100%; }
    .svc-wide { flex-direction: column; align-items: flex-start; }
    .cta-rw h2 .text-accent { display: inline; }
}

@media (max-width: 575px) {
    .hero-rw { padding: 110px 0 110px; }
    .hero-rw-title { letter-spacing: -1px; }
    .booking-card { padding: 1.25rem; }
    .stats-card { grid-template-columns: 1fr 1fr; padding: 1.1rem; gap: 0.5rem; }
    .stat-item { flex-direction: column; text-align: center; gap: 0.5rem; padding: 0.5rem; }
    .stat-item + .stat-item { border-left: 0; }
    .stat-item > i { width: 44px; height: 44px; font-size: 1.25rem; }
    .stat-num { font-size: 1.6rem; }
    .process-track { grid-template-columns: 1fr; }
    .dest-grid { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: 240px; }
    .dest-card.dest-lg { grid-column: auto; }
    .about-rw .about-experience-badge { position: absolute; padding: 1rem 1.25rem; }
    .about-rw .badge-content h3 { font-size: 1.8rem; }
    .btn-ghost.btn-lg, .btn-accent.btn-lg { width: 100%; }
}

/* === Freight: Europe to Rwanda === */
.freight-rw { background: var(--white); }
.freight-media { position: relative; padding: 0 3rem 3rem 0; }
.freight-img-main {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}
.freight-img-sub {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 46%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 18px;
    border: 6px solid var(--white);
    box-shadow: var(--shadow-xl);
}
.freight-badge {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--navy);
    color: var(--white);
    padding: 0.85rem 1.1rem;
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
}
.freight-badge > i { font-size: 1.6rem; color: var(--accent); }
.freight-badge strong { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.freight-badge span { display: block; font-size: 0.78rem; color: rgba(255, 255, 255, 0.7); }

.route-steps { list-style: none; padding: 0; margin: 0; position: relative; }
.route-steps li { position: relative; display: flex; gap: 1rem; padding-bottom: 1.25rem; }
.route-steps li:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 23px;
    top: 48px;
    bottom: 0;
    border-left: 2px dashed var(--gray-300);
}
.route-dot {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #EEF4FF;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}
.route-steps li:last-child .route-dot { background: var(--accent); color: var(--ink-on-accent); }
.route-steps h5 { font-size: 1.05rem; font-weight: 800; margin: 0.35rem 0 0.2rem; }
.route-steps p { font-size: 0.92rem; color: var(--gray-600); margin: 0; }

@media (max-width: 575px) {
    .freight-media { padding: 0 1.5rem 2rem 0; }
    .freight-badge { top: 0.75rem; left: 0.75rem; padding: 0.6rem 0.8rem; }
    .booking-tabs button { font-size: 0.8rem; padding: 0.55rem 0.25rem; }
    .booking-tabs button i { display: none; }
}

/* === Core services overview === */
.core-rw { padding: 4.5rem 0 0; background: var(--white); }
.core-card {
    position: relative;
    display: block;
    height: 100%;
    min-height: 380px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    isolation: isolate;
    color: var(--white);
    box-shadow: 0 20px 40px -22px rgba(10, 26, 51, 0.5);
}
.core-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.core-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 26, 51, 0.1) 15%, rgba(10, 26, 51, 0.93) 80%);
    z-index: -1;
}
.core-card:hover img { transform: scale(1.06); }
.core-card:hover { color: var(--white); }
.core-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.75rem; }
.core-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.core-card h3 { color: var(--white); font-size: 1.6rem; font-weight: 800; margin-bottom: 0.4rem; }
.core-card p { color: rgba(255, 255, 255, 0.82); font-size: 0.95rem; margin-bottom: 0.9rem; }
.core-more { font-weight: 700; font-size: 0.9rem; color: var(--accent); display: inline-flex; gap: 0.4rem; align-items: center; transition: gap 0.3s ease; }
.core-card:hover .core-more { gap: 0.7rem; }
.core-card.is-key { outline: 3px solid var(--accent); outline-offset: -3px; }
.core-card.is-key .core-icon { background: var(--accent); color: var(--ink-on-accent); }
.core-flag {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: var(--accent);
    color: var(--ink-on-accent);
    font-weight: 800;
    font-size: 0.75rem;
    padding: 0.35rem 0.8rem;
    border-radius: 50px;
}

.route-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.75rem; }
.route-chips span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #EEF4FF;
    color: var(--navy);
    font-weight: 700;
    font-size: 0.82rem;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
}
.route-chips i { color: var(--primary); }
.route-title { font-weight: 800; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1.2px; color: var(--gray-600); margin-bottom: 1rem; }

@media (max-width: 991px) {
    .core-card { min-height: 300px; }
}

/* === Language switcher === */
.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    padding: 0.45rem 0.75rem;
    font-weight: 700;
    font-size: 0.85rem;
    transition: var(--transition);
}
.lang-btn:hover, .lang-btn[aria-expanded="true"] { background: rgba(255, 255, 255, 0.2); border-color: var(--accent); }
.lang-switch .dropdown-menu {
    border: 0;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 0.4rem;
    min-width: 160px;
}
.lang-switch .dropdown-item { border-radius: 8px; font-weight: 600; font-size: 0.92rem; padding: 0.5rem 0.8rem; }
.lang-switch .dropdown-item.active,
.lang-switch .dropdown-item:active { background: var(--navy); color: var(--white); }

/* Keep the menu on one line on mid-size screens */
@media (min-width: 992px) and (max-width: 1399px) {
    .home .brand-info { display: none !important; }
    .home .navbar-nav .nav-link { padding: 0.5rem 0.6rem !important; margin: 0; font-size: 0.9rem; }
}

.home .navbar-nav .nav-link,
.home .navbar-nav .btn-accent { white-space: nowrap; }
@media (min-width: 992px) and (max-width: 1599px) {
    .home .brand-info { display: none !important; }
}
@media (min-width: 992px) and (max-width: 1299px) {
    .home .navbar-nav .nav-link { padding: 0.5rem 0.45rem !important; font-size: 0.85rem; }
    .home .navbar-nav .btn-accent { padding: 0.55rem 0.9rem; font-size: 0.85rem; }
}
/* French, Spanish and Chinese headlines run longer than English */
html[lang="fr"] .hero-rw-title,
html[lang="es"] .hero-rw-title,
html[lang="zh-CN"] .hero-rw-title { font-size: clamp(2.1rem, 4.2vw, 3.5rem); }

/* Chinese: use system CJK fonts and drop the tight Latin letter-spacing */
html[lang="zh-CN"] body,
html[lang="zh-CN"] h1, html[lang="zh-CN"] h2, html[lang="zh-CN"] h3,
html[lang="zh-CN"] h4, html[lang="zh-CN"] h5, html[lang="zh-CN"] h6 {
    font-family: 'Plus Jakarta Sans', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', 'Hiragino Sans GB', sans-serif;
}
html[lang="zh-CN"] .hero-rw-title,
html[lang="zh-CN"] .section-title { letter-spacing: 0; }

.booking-tabs button { white-space: nowrap; }

/* === Partners === */
.partners-rw { padding: 4rem 0; background: var(--white); border-bottom: 1px solid var(--gray-200); }
.partners-title {
    text-align: center;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}
.partner-row {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 1rem;
}
.partner-tile {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 0.75rem;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.95rem;
    line-height: 1.2;
    color: var(--gray-600);
    transition: var(--transition);
}
.partner-tile:hover { color: var(--navy); border-color: var(--accent); box-shadow: var(--shadow-md); }
@media (max-width: 1199px) { .partner-row { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 575px) { .partner-row { grid-template-columns: repeat(2, 1fr); } }
