@import url("https://use.typekit.net/gaj3xuk.css");
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');

/* ==========================================================================
   GLS Brasil - Global Custom Styles & Overrides
   ========================================================================== */

/* ==========================================================================
   1. DESKTOP & GLOBAL STYLES
   ========================================================================== */

/* Global html and body overflow-x reset to prevent horizontal scrollbars on all pages */
html, body {
    overflow-x: hidden !important;
}

/* Header Desktop & General Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100% !important;
    height: 176px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    column-gap: 35px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    box-sizing: border-box !important;
    z-index: 200;
}

.menu-mobile {
    display: none;
}

.hamburguer-button {
    display: none;
}

header nav {
    max-width: 800px !important;
    width: 100%;
}

header nav ul {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

header nav a {
    font-weight: 900;
    font-size: 35px;
    color: #fff;
    text-decoration: none;
}

header nav a::after {
    content: '';
    width: 0px;
    height: 2px;
    display: block;
    background-color: #fff;
    transition: all .5s ease-in-out;
}

header nav a:hover::after {
    width: 100%;
}

header img.menu-button {
    position: absolute;
    width: 50px;
    top: 58.5px;
    right: 48.5px;
    z-index: 300;
    filter: grayscale(100%) brightness(100);
}

header img.menu-button.active {
    filter: initial;
}

header img.menu-button:hover {
    filter: brightness(130%);
    cursor: pointer;
}

header .lang-menu {
    position: absolute;
    right: -300px;
    top: 0;
    z-index: 250;
    height: 450px;
    width: 300px;
    background-color: #fff;
    border-radius: 0 0 0 50px;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    padding: 0 0 53px 36px;
    box-sizing: border-box;
    box-shadow: -4px -4px 10px rgba(0, 0, 0, .2);
    transition: all .7s cubic-bezier(0.3, 0.73, 0.29, 0.99);
}

header .lang-menu.active {
    right: 0px;
}

header .lang-menu ul {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    row-gap: 50px;
}

header .lang-menu ul li a {
    color: #303030;
    font-size: 32px;
    font-weight: 900;
    text-decoration: none;
}

header .lang-menu ul li a.active {
    color: #336EC6;
}

header .lang-menu ul li a.active:hover {
    cursor: default;
}

header .lang-menu ul li a.active::after {
    width: 100%;
    background-color: #336EC6;
}

header .lang-menu ul li a::after {
    content: '';
    width: 0px;
    height: 2px;
    display: block;
    background-color: #303030;
    transition: all .5s ease-in-out;
}

header .lang-menu ul li a:hover::after {
    width: 100%;
}

/* Commitments section background adjustments */
section.our-commitments {
    background-position: center top !important;
    background-size: cover !important;
}

/* Tracking access page help hint icons */
section.track-trace .content-alignment .form-container form div.container-track .hint-icon,
section.track-trace .content-alignment .form-container form div.container-key .hint-icon {
    content: '';
    display: block;
    background: url(../images/hint.svg) no-repeat center !important;
    background-size: cover !important;
    width: 30px;
    height: 30px;
    position: absolute !important;
    top: calc(50% - 15px) !important;
    right: 15px;
    cursor: pointer !important;
    transition: all .3s ease-in-out !important;
}

section.track-trace .content-alignment .form-container form div.container-track .hint-icon:hover,
section.track-trace .content-alignment .form-container form div.container-key .hint-icon:hover {
    filter: brightness(130%) !important;
}

/* Define icons scale */
.icon-sca {
    height: 300px;
}

.logo-sca {
    height: 150px;
    width: auto;
}

/* Footer Desktop Styles */
footer {
    width: 100% !important;
    height: 200px;
    position: relative;
    background-color: #fff;
    display: flex;
    align-items: center;
}

footer img {
    position: absolute;
    left: calc(50% - 130.5px);
    top: 67px;
}

footer p {
    font-size: 20px;
    font-weight: 600;
    color: #303030;
}

/* Status Badge Pill styles */
.status-badge-pill {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid #cbd5e1;
    background: #f1f5f9;
    color: #475569;
}

.status-badge-pill.status-delivered {
    background: #dcfce7 !important;
    color: #15803d !important;
    border-color: #bbf7d0 !important;
}

.status-badge-pill.status-received {
    background: #fef9c3 !important;
    color: #854d0e !important;
    border-color: #fef08a !important;
}

.status-badge-pill.status-dispatched {
    background: #dbeafe !important;
    color: #1d4ed8 !important;
    border-color: #bfdbfe !important;
}

/* ==========================================================================
   2. INTERMEDIATE TABLET & LAPTOP STYLES (max-width: 1090px)
   ========================================================================== */
@media (max-width: 1090px) {
    label {
        font-size: 20px;
    }

    section.track-trace .content-alignment .form-container form div.container-track .hint-icon,
    section.track-trace .content-alignment .form-container form div.container-key .hint-icon {
        width: 20px;
        height: 20px;
        margin: 5px 0px 5px 0px;
        right: 10px;
        top: calc(50% - 10px);
    }

    section.track-trace .content-alignment .form-container form div.container-track, 
    section.track-trace .content-alignment .form-container form div.container-key {
        height: 35px;
        padding: 5px 40px 5px 40px;
    }

    section.track-trace .content-alignment .form-container form div.container-track::before,
    section.track-trace .content-alignment .form-container form div.container-key::before,
    section.schedule .content-alignment .form-container form div.container-from::before,
    section.schedule .content-alignment .form-container form div.container-to::before {
        width: 20px;
        height: 20px;
        top: calc(50% - 10px);
        left: 10px;
    }

    section.schedule .content-alignment .form-container form input[type="text"], 
    section.schedule .content-alignment .form-container form input[type="date"] {
        font-size: 20px;
    }

    section.schedule .content-alignment .form-container form div.container-from, 
    section.schedule .content-alignment .form-container form div.container-to {
        height: 35px;
        padding: 5px 0px 5px 40px;
    }

    section.schedule .content-alignment .form-container form img {
        top: 30px;
        width: 35px;
        left: calc(50% - 15px);
    }

    section.schedule .content-alignment .form-container form {
        row-gap: 25px;
    }

    section.schedule .content-alignment .form-container form input[type="submit"] {
        font-size: 20px;
        height: 30px;
    }

    .form-container form div.container-vessel {
        height: 35px;
        padding: 5px 40px 5px 40px;
    }

    .form-container form div.container-vessel::before {
        width: 20px;
        left: 10px;
    }

    section.schedule .content-alignment .form-container form .container-submit::before {
        height: 60px;
    }

    .textprinc {
        font-size: 25px;
    }

    .vessel-title {
        text-align: center;
        font-size: 15px;
    }

    .infomap {
        font-size: 25px;
    }

    .mapinf {
        font-size: 15px;
    }

    header .header-logo img {
        width: 100%;
        max-width: 30vw;
    }

    section.main .textbox h1 {
        text-align: center;
        font-size: 50px;
    }

    section.main .textbox h4 {
        text-align: center;
    }

    section.main {
        background-position: right;
    }

    section.different {
        padding: 75px 10px 75px 10px;
        height: auto;
    }

    section.different .icon-alignment .icon p {
        font-size: 12px;
    }

    section.different .icon-alignment .icon > a > img {
        width: 50vw;
    }

    .logo-sca {
        height: auto;
        width: 80vw;
    }

    header {
        height: 70px !important;
        justify-content: space-between;
    }

    header nav {
        display: flex;
        margin-right: 20px;
        flex-direction: row-reverse;
    }

    header nav a {
        font-size: 24px;
    }

    header nav ul {
        gap: 20px;
    }

    header .header-logo img {
        width: 100%;
        max-width: 190px;
    }

    header img.menu-button {
        width: 24px !important;
        top: 23px !important;
        right: 20px !important;
    }

    header .lang-menu {
        width: 200px;
        height: 300px;
        right: -200px;
    }

    header .lang-menu.active {
        right: 0px;
    }

    header .lang-menu ul {
        row-gap: 30px;
    }

    header .lang-menu ul li a {
        font-size: 24px;
    }

    footer {
        flex-direction: column-reverse !important;
        align-items: center !important;
        justify-content: center !important;
        row-gap: 15px !important;
        height: auto !important;
        padding: 30px 20px !important;
    }

    footer img {
        position: static !important;
        transform: none !important;
        height: 32px !important;
        margin-bottom: 5px !important;
    }

    footer p {
        text-align: center !important;
        font-size: 12px !important;
    }
}

/* ==========================================================================
   3. MOBILE STYLES (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
    header {
        height: 70px !important;
        justify-content: center !important;
    }

    header nav {
        display: none !important;
    }

    header .header-logo img {
        max-width: 120px !important;
    }

    header img.menu-button {
        width: 24px !important;
        top: 23px !important;
        right: 20px !important;
    }

    .hamburguer-button {
        display: block !important;
        position: fixed !important;
        z-index: 1001 !important;
        width: 24px !important;
        height: 16px !important;
        top: 27px !important;
        left: 20px !important;
        cursor: pointer !important;
    }

    .hamburguer-button.active .line,
    .hamburguer-button.active .line::after,
    .hamburguer-button.active .line::before {
        background-color: #336EC6 !important;
    }

    .hamburguer-button .line,
    .hamburguer-button .line::before,
    .hamburguer-button .line::after {
        position: absolute !important;
        content: '' !important;
        display: block !important;
        width: 100% !important;
        height: 2px !important;
        border-radius: 5px !important;
        background-color: #fff !important;
        transition: all .3s ease-in-out !important;
    }

    .hamburguer-button .line {
        top: 8px !important;
    }

    .hamburguer-button .line::before {
        top: -6px !important;
    }

    .hamburguer-button .line::after {
        top: 6px !important;
    }

    .menu-mobile {
        position: fixed !important;
        display: block !important;
        left: -100% !important;
        top: 0 !important;
        backdrop-filter: blur(4px) !important;
        background-color: rgba(255, 255, 255, 0.8) !important;
        height: 100vh !important;
        width: 100% !important;
        max-width: initial !important;
        z-index: 1000 !important;
        transition: all .7s cubic-bezier(0.3, 0.73, 0.29, 0.99) !important;
    }

    .menu-mobile.active {
        left: 0% !important;
    }

    .menu-mobile ul {
        display: flex !important;
        align-items: center !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: flex-start !important;
        row-gap: 20px !important;
        padding-left: 25px !important;
        padding-top: 90px !important;
    }

    .menu-mobile a {
        font-weight: 500 !important;
        font-size: 18px !important;
        color: #336EC6 !important;
        text-decoration: none !important;
    }

    .menu-mobile a::after {
        content: '' !important;
        width: 0px !important;
        height: 2px !important;
        display: block !important;
        background-color: #336EC6 !important;
        transition: all .5s ease-in-out !important;
    }

    .menu-mobile a:hover::after {
        width: 100% !important;
    }
}

/* ==========================================================================
   4. SMALLEST MOBILE STYLES (max-width: 480px)
   ========================================================================== */
@media (max-width: 480px) {
    h1, 
    section.main .textbox h1,
    .panel-header h1,
    .wellcome h1 {
        font-size: clamp(20px, 7vw, 30px) !important;
        line-height: 1.2 !important;
    }

    .map-container h1 {
        font-size: 20px !important;
    }

    .map-container,
    .infomap {
        margin: 5px !important;
    }

    .map-container {
        min-height: 200px !important;
    }

    #track-map,
    #map {
        height: 200px !important;
    }

    .map-container h3 {
        font-size: 10px !important;
    }

    .map-container span {
        margin-bottom: 0px !important;
    }

    table.route-table h1 {
        font-size: 20px !important;
    }

    table.route-table span.country-name {
        font-size: 12px !important;
        margin-bottom: 4px !important;
    }

    table.route-table h3 {
        font-size: 11px !important;
        margin-bottom: 10px !important;
    }
}