@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 4px
}

::-webkit-scrollbar-track {
    background: #06111F
}

::-webkit-scrollbar-thumb {
    background: #39A935;
    border-radius: 2px
}

html,
body {
    max-width: 100%;
    overflow-x: hidden
}

/* ── PRELOADER ── */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #06111F;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
}

#preloader-logo {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    color: #fff;
    letter-spacing: -.04em;
}

.pl-vora {
    color: #39A935
}

#preloader-bar-track {
    width: min(240px, 60vw);
    height: 2px;
    background: rgba(255, 255, 255, .1);
    border-radius: 2px;
    overflow: hidden
}

#preloader-bar {
    height: 100%;
    width: 0;
    background: #39A935;
    border-radius: 2px
}

#preloader-pct {
    font-family: 'DM Sans', sans-serif;
    font-size: .72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .3);
    letter-spacing: .12em;
    text-transform: uppercase
}

/* ── Nav underline ── */
.nav-link {
    position: relative
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 16px;
    right: 16px;
    height: 1px;
    background: #39A935;
    transform: scaleX(0);
    transition: transform .25s
}

.nav-link:hover::after {
    transform: scaleX(1)
}

/* ── Hero lines ── */
.hero-h1 .line {
    display: block;
    overflow: hidden
}

.hero-h1 .line-inner {
    display: block
}

/* ── Chip ── */
.chip::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 2px;
    background: #39A935;
    border-radius: 2px;
    flex-shrink: 0;
    vertical-align: middle;
    margin-right: 6px
}

/* ── Highlight ── */
.hl-bg {
    position: relative;
    display: inline-block
}

.hl-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -3px;
    right: -3px;
    height: 34%;
    background: #39A935;
    opacity: .18;
    z-index: -1;
    border-radius: 3px
}

/* ── Service card hover overlay ── */
.svc-card {
    position: relative;
    overflow: hidden
}

.svc-card::before {
    content: '';
    position: absolute;
    bottom: -100%;
    left: 0;
    right: 0;
    height: 100%;
    background: #06111F;
    transition: bottom .42s cubic-bezier(.25, .46, .45, .94);
    z-index: 0
}

.svc-card:hover::before {
    bottom: 0
}

.svc-card>* {
    position: relative;
    z-index: 1
}

.svc-num,
.svc-name,
.svc-desc,
.svc-arr {
    transition: color .3s
}

.svc-card:hover .svc-num,
.svc-card:hover .svc-name,
.svc-card:hover .svc-desc,
.svc-card:hover .svc-arr {
    color: #fff !important
}

.svc-icon-wrap {
    transition: background .3s
}

.svc-card:hover .svc-icon-wrap {
    background: #39A935 !important
}

.svc-arr {
    transition: color .3s, transform .3s
}

.svc-card:hover .svc-arr {
    transform: translate(4px, -4px)
}

/* ── Steps arrows (desktop only) ── */
@media(min-width:1024px) {
    .step-card {
        position: relative
    }

    .step-card:not(:last-child)::after {
        content: '→';
        position: absolute;
        right: -14px;
        top: 46px;
        font-size: 1.1rem;
        color: #ccc;
        z-index: 2
    }
}

/* ── FAQ ── */
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s cubic-bezier(.25, .46, .45, .94)
}

.faq-a.open {
    max-height: 300px
}

.faq-q.open {
    color: #39A935
}

.faq-arrow {
    transition: transform .3s;
    color: #aaa
}

.faq-q.open .faq-arrow {
    transform: rotate(45deg);
    color: #39A935
}

/* ── Contact glows ── */
.contact-box::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(57, 169, 53, .2), transparent 65%);
    pointer-events: none
}

.contact-box::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: 40%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(57, 169, 53, .1), transparent 65%);
    pointer-events: none
}

/* ── Featured testimonial ── */
.tc.featured {
    background: linear-gradient(135deg, #2d8228, #39A935) !important;
    border-color: #39A935 !important
}

/* ── Marine port tag pills ── */
.port-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(57, 169, 53, .1);
    border: 1px solid rgba(57, 169, 53, .25);
    color: rgba(255, 255, 255, .75);
    font-size: .72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    font-family: 'DM Sans', sans-serif
}

/* ══════ RESPONSIVE ══════ */
@media(max-width:767px) {
    .section-pad {
        padding-left: 18px !important;
        padding-right: 18px !important
    }

    .section-py {
        padding-top: 60px !important;
        padding-bottom: 60px !important
    }

    #nav {
        padding-left: 18px !important;
        padding-right: 18px !important
    }

    .nav-links-wrap {
        display: none !important
    }

    .hero-grid {
        grid-template-columns: 1fr !important
    }

    .hero-right {
        display: none !important
    }

    #hero-content {
        padding-top: 100px !important
    }

    #hbtn {
        flex-direction: column;
        align-items: stretch
    }

    #hbtn a {
        width: 100%;
        text-align: center;
        justify-content: center
    }

    #hms {
        flex-wrap: wrap;
        gap: 20px !important
    }

    .svc-grid {
        grid-template-columns: 1fr !important
    }

    .svc-header-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important
    }

    .why-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important
    }

    /* .why-image {
        display: none !important
    } */

    .steps-grid {
        grid-template-columns: 1fr !important
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important
    }

    .stats-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important
    }

    .testi-grid {
        grid-template-columns: 1fr !important
    }

    .testi-brand-bar {
        flex-wrap: wrap !important;
        gap: 16px !important
    }

    .faq-grid {
        grid-template-columns: 1fr !important;
        gap: 36px !important
    }

    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important
    }

    .contact-box {
        padding: 32px 20px !important;
        border-radius: 20px !important
    }

    .form-2col {
        grid-template-columns: 1fr !important
    }

    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important
    }

    .footer-bottom {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important
    }

    .footer-links {
        flex-wrap: wrap !important;
        gap: 12px !important
    }

    .trusted-logos>div {
        border-right: none !important;
        border-bottom: 1px solid #eee !important;
        width: 100% !important
    }

    .trusted-logos>div:last-child {
        border-bottom: none !important
    }

    .industries-grid {
        grid-template-columns: repeat(2, 1fr) !important
    }

    .africa-grid {
        grid-template-columns: 1fr !important;
        gap: 32px !important
    }

    .ports-grid {
        grid-template-columns: repeat(2, 1fr) !important
    }
}

@media(min-width:768px) and (max-width:1023px) {
    .section-pad {
        padding-left: 32px !important;
        padding-right: 32px !important
    }

    .svc-grid {
        grid-template-columns: repeat(2, 1fr) !important
    }

    .svc-header-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important
    }

    .why-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important
    }

    /* .why-image {
        display: none !important
    } */

    .hero-grid {
        grid-template-columns: 1fr !important
    }

    .hero-right {
        display: none !important
    }

    #hero-content {
        padding-top: 110px !important
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr) !important
    }

    .testi-grid {
        grid-template-columns: repeat(2, 1fr) !important
    }

    .faq-grid {
        grid-template-columns: 1fr !important;
        gap: 36px !important
    }

    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important
    }

    .contact-box {
        padding: 44px 36px !important
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 40px !important
    }

    .africa-grid {
        grid-template-columns: 1fr !important
    }
}

/* Mobile menu */
#mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(6, 17, 31, .98);
    padding: 20px 20px 28px;
    gap: 4px;
    z-index: 998;
    backdrop-filter: blur(12px);
    flex-direction: column
}

#mobile-menu.open {
    display: flex
}

@media(min-width:768px) {
    #mobile-menu {
        display: none !important
    }
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}