/* ═══════════════════════════════════════════════════════════
   SLC FIX v3.1.0 — Floating Pill Header + Lang Switcher
                   + Maritime Navy Colors
                   + WWD Section + Contact Form
   ═══════════════════════════════════════════════════════════ */

/* ── Outer nav: fixed transparent shell, floats above page ── */
.site-nav,
.site-nav.scrolled {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: none !important;
    height: auto !important;
    padding: 14px 24px !important;
    box-sizing: border-box !important;
    transition: none !important;
}

/* ── Nav: always visible ── */
.site-nav {
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

/* ── The floating pill ── */
.nav-inner {
    background: rgba(5, 13, 28, 0.78) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border-radius: 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.45) !important;
    max-width: 900px !important;
    margin: 0 auto !important;
    padding: 10px 20px !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
}

/* ── Nav links ── */
.nav-links {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    flex-wrap: nowrap !important;
}
.nav-links li {
    position: relative !important;
    list-style: none !important;
}
.nav-links a {
    font-size: 13px !important;
    font-weight: 500 !important;
    letter-spacing: 0.04em !important;
    color: rgba(255, 255, 255, 0.70) !important;
    padding: 6px 11px !important;
    border-radius: 6px !important;
    transition: color 0.2s, background 0.2s !important;
    white-space: nowrap !important;
    display: block !important;
}
.nav-links a:hover,
.nav-links .current-menu-item > a {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.07) !important;
}
/* remove theme underline decoration */
.nav-links a::after { display: none !important; }

/* ── Language switcher ── */
#lang-toggle {
    position: relative !important;
    cursor: pointer !important;
}
#lang-toggle > a {
    cursor: pointer !important;
    user-select: none !important;
    text-transform: uppercase !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.08em !important;
    color: rgba(255, 255, 255, 0.60) !important;
    padding: 6px 10px !important;
    display: flex !important;
    align-items: center !important;
    gap: 3px !important;
    border-radius: 6px !important;
}
/* Chevron via pseudo-element */
#lang-toggle > a::after {
    content: '▾' !important;
    font-size: 10px !important;
    margin-left: 2px !important;
    display: inline-block !important;
    transition: transform 0.2s !important;
}
#lang-toggle.lang-open > a::after {
    transform: rotate(180deg) !important;
}
#lang-toggle > a:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.07) !important;
}

/* Dropdown hidden by default */
#lang-toggle .sub-menu {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    top: calc(100% + 6px) !important;
    right: 0 !important;
    background: rgba(5, 13, 28, 0.97) !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    border-radius: 8px !important;
    padding: 4px !important;
    min-width: 72px !important;
    z-index: 10000 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55) !important;
    list-style: none !important;
    margin: 0 !important;
}
/* Show dropdown when lang-open */
#lang-toggle.lang-open .sub-menu {
    display: block !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}
#lang-toggle .sub-menu li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
#lang-toggle .sub-menu li a {
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    padding: 7px 14px !important;
    color: rgba(255, 255, 255, 0.72) !important;
    border-radius: 5px !important;
    display: block !important;
    background: transparent !important;
    white-space: nowrap !important;
}
#lang-toggle .sub-menu li a:hover,
#lang-toggle .sub-menu li.current-menu-item a {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.09) !important;
}

/* ── CTA button ── */
.nav-cta {
    background: #fff !important;
    color: #0a0a0a !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    padding: 9px 18px !important;
    border-radius: 8px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}
.nav-cta:hover {
    background: rgba(255, 255, 255, 0.88) !important;
    transform: none !important;
}

/* ═══════════════════════════════════════════════════════════
   SCROLL SCRUB — Hero + Train  (v3.1.0)
   ═══════════════════════════════════════════════════════════ */

/* ── Hero: tall scroll container ── */
.hero {
    height: 400vh !important;
    position: relative !important;
    overflow: visible !important;
}

/* ── Hero: sticky viewport wrapper ── */
.hero-video-wrap {
    position: sticky !important;
    top: 0 !important;
    height: 100vh !important;
    overflow: hidden !important;
    width: 100% !important;
    background: #050d1c !important;
}

/* ── Hero: video fills wrapper ── */
.hero-video-wrap video,
.hero-video-wrap .hero-video {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* ── Hero: content overlay ── */
.hero-content {
    position: absolute !important;
    bottom: 12% !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 10 !important;
    text-align: center !important;
    pointer-events: none !important;
    padding: 0 24px !important;
    visibility: hidden;
    opacity: 0;
}

/* ── Train: tall scroll container ── */
.train-video-section {
    height: 300vh !important;
    position: relative !important;
}

/* ── Train: sticky viewport wrapper ── */
.train-video-sticky {
    position: sticky !important;
    top: 0 !important;
    height: 100vh !important;
    overflow: hidden !important;
    width: 100% !important;
}

/* ── Train: video fills wrapper ── */
.train-video-sticky video,
.train-video-sticky #trainVideo {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* ── Train: dark overlay ── */
.train-video-overlay {
    position: absolute !important;
    inset: 0 !important;
    background: rgba(0, 0, 0, 0.35) !important;
    z-index: 1 !important;
    pointer-events: none !important;
}

/* ═══════════════════════════════════════════════════════════
   WHAT WE DO — Scroll-stepped split panel  (v3.1.0)
   ═══════════════════════════════════════════════════════════ */

/* Tall section drives scroll progress */
.wwd-section {
    height: 400vh;
    position: relative;
}

/* Sticky split-screen wrapper */
.wwd-sticky-wrap {
    position: sticky;
    top: 90px;
    height: calc(100vh - 90px);
    display: flex;
    overflow: hidden;
}

/* ── LEFT: white text panel ── */
.wwd-left {
    width: 50%;
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 64px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.wwd-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(5, 13, 28, 0.45);
    margin: 0 0 48px 0;
}

/* Each service item — hidden by default */
.wwd-item {
    display: none;
    flex-direction: column;
    gap: 20px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 64px;
    right: 64px;
}
.wwd-item.wwd-active {
    display: flex;
}

.wwd-num {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: rgba(5, 13, 28, 0.35);
}

.wwd-title {
    font-size: clamp(32px, 3.8vw, 52px);
    font-weight: 700;
    line-height: 1.1;
    color: #050d1c;
    margin: 0;
    letter-spacing: -0.02em;
}

.wwd-desc {
    font-size: 16px;
    line-height: 1.65;
    color: rgba(5, 13, 28, 0.60);
    margin: 0;
    max-width: 420px;
}

.wwd-link {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #050d1c;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    border-bottom: 1px solid rgba(5, 13, 28, 0.25);
    padding-bottom: 2px;
    width: fit-content;
}
.wwd-link:hover {
    border-bottom-color: #050d1c;
}

/* Step indicator dots */
.wwd-left::after {
    content: '';
    position: absolute;
    bottom: 48px;
    left: 64px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(5, 13, 28, 0.2);
    box-shadow: 10px 0 0 rgba(5, 13, 28, 0.2),
                20px 0 0 rgba(5, 13, 28, 0.2),
                30px 0 0 rgba(5, 13, 28, 0.2);
}

/* ── RIGHT: dark image panel ── */
.wwd-right {
    width: 50%;
    background: #050d1c;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Each image — hidden by default */
.wwd-image {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.55s ease;
    background-size: cover;
    background-position: center;
}
.wwd-image.wwd-active {
    opacity: 1;
}

/* Image placeholders */
.wwd-image[data-index="0"] {
    background: linear-gradient(135deg, #050d1c 0%, #0a1f3d 50%, #0e2952 100%);
}
.wwd-image[data-index="1"] {
    background: linear-gradient(135deg, #06111f 0%, #0b2035 50%, #103050 100%);
}
.wwd-image[data-index="2"] {
    background: linear-gradient(135deg, #040e1a 0%, #091c33 50%, #0d2845 100%);
}
.wwd-image[data-index="3"] {
    background: linear-gradient(135deg, #050d1c 0%, #091828 50%, #0f2540 100%);
}

/* Decorative large number on right panel */
.wwd-image::after {
    content: attr(data-label);
    position: absolute;
    bottom: 48px;
    right: 48px;
    font-size: 120px;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: rgba(255, 255, 255, 0.04);
    line-height: 1;
    pointer-events: none;
}

/* ── Mobile: stack vertically ── */
@media (max-width: 768px) {
    .wwd-section { height: auto; }
    .wwd-sticky-wrap { position: relative; height: auto; flex-direction: column; }
    .wwd-left, .wwd-right { width: 100%; height: auto; }
    .wwd-left { padding: 64px 32px; min-height: 50vh; }
    .wwd-right { min-height: 40vh; }
    .wwd-item { position: relative; top: auto; transform: none; left: auto; right: auto; display: flex; }
    .wwd-item:not(.wwd-active) { display: none; }
    .wwd-image { opacity: 0; height: 40vh; }
    .wwd-image.wwd-active { opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════
   CONTACT FORM  (v3.1.0)
   ═══════════════════════════════════════════════════════════ */

.contact-section {
    background: #050d1c;
    color: #fff;
    padding: 120px 0 140px;
    position: relative;
}

.contact-inner {
    max-width: 1160px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    padding: 0 40px;
    box-sizing: border-box;
    align-items: start;
}

.contact-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.40);
    margin: 0 0 28px 0;
}

.contact-heading {
    font-size: clamp(36px, 4vw, 56px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.025em;
    color: #fff;
    margin: 0 0 48px 0;
}

.contact-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-steps li {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 0;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    letter-spacing: 0.01em;
}

.step-num {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.10em;
    color: rgba(255, 255, 255, 0.28);
    flex-shrink: 0;
    width: 24px;
}

.form-heading {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
    margin: 0 0 36px 0;
    letter-spacing: 0.01em;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.form-field {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    transition: border-color 0.2s;
}
.form-field:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.form-field:focus-within {
    border-bottom-color: rgba(255, 255, 255, 0.55);
}

.form-field input,
.form-field textarea {
    width: 100%;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: #fff !important;
    font-size: 15px;
    font-weight: 400;
    padding: 18px 0 !important;
    box-sizing: border-box;
    font-family: inherit;
    resize: none;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.35) !important;
}

.form-field textarea { min-height: 100px; }

.form-submit {
    margin-top: 32px;
    align-self: flex-start;
    background: #fff;
    color: #050d1c;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s, transform 0.15s;
}
.form-submit:hover {
    background: rgba(255, 255, 255, 0.88);
    transform: translateY(-1px);
}
.form-submit span { font-size: 16px; }

@media (max-width: 768px) {
    .contact-inner { grid-template-columns: 1fr; gap: 48px; padding: 0 24px; }
    .contact-section { padding: 80px 0 100px; }
}


/* ═══════════════════════════════════════════════════
   CONTACT SECTION — full-page Terminal Industries style
   ═══════════════════════════════════════════════════ */
.contact-section {
    min-height: 100vh;
    background: #050d1c;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 40px 80px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,255,255,0.04) 0%, transparent 70%);
    pointer-events: none;
}

.contact-inner {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.contact-header {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
}

.contact-heading {
    font-size: clamp(48px, 7vw, 96px);
    font-weight: 700;
    line-height: 1.0;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.03em;
}

.contact-sub {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255,255,255,0.55);
    max-width: 520px;
    margin: 0;
}

/* Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group--full {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
}

.contact-form input,
.contact-form textarea {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 4px;
    padding: 14px 18px;
    font-size: 15px;
    color: #ffffff;
    font-family: inherit;
    transition: border-color 0.2s ease, background 0.2s ease;
    outline: none;
    box-sizing: border-box;
    width: 100%;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255,255,255,0.25);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.08);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    display: flex;
    justify-content: flex-start;
    margin-top: 8px;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    color: #050d1c;
    border: none;
    border-radius: 4px;
    padding: 16px 32px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s ease, transform 0.2s ease;
}

.btn-submit:hover {
    background: rgba(255,255,255,0.88);
    transform: translateX(4px);
}

.btn-submit svg {
    transition: transform 0.2s ease;
}

.btn-submit:hover svg {
    transform: translateX(4px);
}

/* Responsive */
@media (max-width: 640px) {
    .contact-section {
        padding: 100px 24px 60px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .contact-heading {
        font-size: 42px;
    }
}

/* ── WWD Section: background images per panel ─────────────────────── */
/* 1 - International Sourcing: cargo port */
.wwd-image[data-index="0"] {
    background-image: url('https://images.unsplash.com/photo-1494412651409-8963ce7935a7?w=1400&q=85') !important;
    background-size: cover !important;
    background-position: center !important;
}
/* 2 - Supplier Qualification: industrial inspection */
.wwd-image[data-index="1"] {
    background-image: url('https://images.unsplash.com/photo-1565793298595-6a879b1d9492?w=1400&q=85') !important;
    background-size: cover !important;
    background-position: center !important;
}
/* 3 - Quality Control */
.wwd-image[data-index="2"] {
    background-image: url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?w=1400&q=85') !important;
    background-size: cover !important;
    background-position: center !important;
}
/* 4 - Logistics Coordination: warehouse */
.wwd-image[data-index="3"] {
    background-image: url('https://images.unsplash.com/photo-1587293852726-70cdb56c2866?w=1400&q=85') !important;
    background-size: cover !important;
    background-position: center !important;
}

/* ── Contact section full-width fix ───────────────────────────────── */
.contact-section {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
}

/* ── WWD : transitions fluides + fix overlap ─────────────────── */

.wwd-left {
    position: relative !important;
}
.wwd-right {
    position: relative !important;
    overflow: hidden;
}

/* Images : fade */
.wwd-image {
    position: absolute !important;
    top: 0 !important; left: 0 !important;
    right: 0 !important; bottom: 0 !important;
    display: block !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.75s ease, visibility 0.75s ease !important;
}
.wwd-image.wwd-active {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Texte : fix overlap + slide */
.wwd-item {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    position: absolute !important;
    top: 0 !important; left: 0 !important;
    right: 0 !important; bottom: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(24px) !important;
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s ease !important;
}
.wwd-item.wwd-active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0px) !important;
    pointer-events: auto;
}