@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('../fonts/montserrat-latin-variable.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --institutional-blue: #071C93;
    --deep-navy: #092C51;
    --anchor-gold: #D5A51D;
    --luminous-gold: #F4CE52;
    --wood-brown: #733915;
    --deep-background: #040E2E;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

body {
    font-family: 'Montserrat', sans-serif;
}

.brand-logo {
    width: 3.25rem;
    height: 3.25rem;
    flex: 0 0 auto;
    object-fit: contain;
}

.gold-gradient {
    background: linear-gradient(135deg, var(--luminous-gold), var(--anchor-gold));
}

.hero-bg {
    isolation: isolate;
    background: linear-gradient(180deg, rgba(4, 14, 46, .38) 0%, rgba(4, 14, 46, .62) 58%, rgba(4, 14, 46, .96) 100%);
}

.hero-bg::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: -2% 0;
    background-image: linear-gradient(180deg, rgba(4, 14, 46, .48) 0%, rgba(4, 14, 46, .34) 42%, rgba(4, 14, 46, .78) 100%), url('../images/optimized/air-cargo-960.webp');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transform: translate3d(0, var(--parallax-y, 0px), 0) scale(1.02);
    will-change: transform;
    pointer-events: none;
}

.svg-library {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: middle;
}

.glass-card {
    background: rgba(255, 255, 255, .055);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(213, 165, 29, .28);
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.glass-card:hover {
    transform: translateY(-6px);
    border-color: rgba(244, 206, 82, .7);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .24), 0 0 22px rgba(213, 165, 29, .10);
}

.gold-gradient,
.instagram-float {
    transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}

.gold-gradient:hover {
    transform: scale(1.045);
    box-shadow: 0 0 28px rgba(244, 206, 82, .42);
    filter: brightness(1.04);
}

.slider-image {
    opacity: 0;
    transition: opacity 1.15s cubic-bezier(.22, .68, 0, 1);
    position: absolute;
    inset: 0;
}

.slider-image img {
    transform: scale(1.055);
    transition: transform 6.4s cubic-bezier(.16, 1, .3, 1);
}

.slider-image.active {
    opacity: 1;
}

.slider-image.active img {
    transform: scale(1);
}

.floating-badge {
    animation: float 4s ease-in-out infinite;
}

.route-overlay {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .7rem .9rem;
    border: 1px solid rgba(244, 206, 82, .52);
    border-radius: 999px;
    background: rgba(4, 14, 46, .68);
    backdrop-filter: blur(12px);
    color: #fff;
    box-shadow: 0 0 25px rgba(213, 165, 29, .17);
    animation: float 3.8s ease-in-out infinite;
}

.route-point {
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
}

.route-dash {
    width: clamp(1rem, 2.4vw, 2.4rem);
    border-top: 1px dashed var(--luminous-gold);
}

.route-plane {
    color: var(--luminous-gold);
    transform: rotate(90deg);
}

.hero-plane {
    display: inline-block;
    color: var(--luminous-gold);
    font-size: .68em;
    font-weight: 700;
    line-height: 1;
    transform: translateY(-.04em);
}

.legacy-section {
    min-height: 31rem;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.legacy-section::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: -2% 0;
    background-image: linear-gradient(90deg, rgba(4, 14, 46, .70) 0%, rgba(4, 14, 46, .48) 48%, rgba(4, 14, 46, .18) 100%), url('../images/optimized/sea-cargo-960.webp');
    background-position: center;
    background-size: cover;
    transform: translate3d(0, var(--parallax-y, 0px), 0) scale(1.02);
    will-change: transform;
    pointer-events: none;
}

.legacy-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: end;
    gap: 3rem;
    width: 100%;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.legacy-copy {
    max-width: 35rem;
}

.legacy-kicker {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .55rem .9rem;
    border: 1px solid rgba(244, 206, 82, .45);
    border-radius: 999px;
    background: rgba(4, 14, 46, .38);
    color: var(--luminous-gold);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.legacy-copy h2 {
    margin: 1.25rem 0;
    color: #fff;
    font-size: clamp(2.9rem, 6vw, 5.6rem);
    font-weight: 800;
    line-height: .94;
}

.legacy-copy h2 span {
    color: var(--luminous-gold);
    text-shadow: 0 5px 28px rgba(213, 165, 29, .32);
}

.legacy-copy p {
    max-width: 31rem;
    color: rgba(255, 255, 255, .82);
    font-size: 1rem;
    line-height: 1.75;
}

.legacy-link {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    margin-top: 1.5rem;
    color: var(--luminous-gold);
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none;
}

.legacy-link:hover {
    color: #fff;
}

.legacy-services {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-self: end;
    padding: 1.2rem 0;
    border-top: 1px solid rgba(244, 206, 82, .7);
    border-bottom: 1px solid rgba(244, 206, 82, .7);
    background: rgba(4, 14, 46, .35);
    backdrop-filter: blur(8px);
}

.legacy-services>div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
    padding: .35rem .6rem;
    color: #fff;
    text-align: center;
    font-size: .7rem;
    font-weight: 700;
    line-height: 1.35;
}

.legacy-services>div+div {
    border-left: 1px solid rgba(244, 206, 82, .62);
}

.legacy-services .icon {
    color: var(--luminous-gold);
    font-size: 1.5rem;
}

.alliance-section {
    background: var(--deep-background);
}

.alliance-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, .8fr);
    gap: 2rem;
    align-items: center;
    padding: clamp(1.5rem, 4vw, 3rem);
    border-radius: 1rem;
}

.alliance-marks {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.15rem;
}

.alliance-mark {
    display: flex;
    align-items: center;
    gap: .65rem;
    color: var(--luminous-gold);
    font-size: .8rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: .04em;
}

.alliance-logo {
    display: block;
    flex: 0 0 auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
    object-fit: contain;
}

.alliance-brand {
    flex-direction: column;
    justify-content: center;
    gap: .7rem;
    text-align: center;
}

.transcar-link {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: .7rem;
    color: inherit;
    text-align: center;
    text-decoration: none;
}

.transcar-link:focus-visible {
    outline: 2px solid var(--luminous-gold);
    outline-offset: .35rem;
    border-radius: .25rem;
}

.sotavento-alliance-logo {
    max-width: 6.25rem;
    max-height: 6.25rem;
}

.transcar-alliance-logo {
    max-width: 8rem;
    max-height: 5.8rem;
}

.alliance-company-name {
    max-width: 13rem;
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1.45;
}

.alliance-mark small {
    color: rgba(255, 255, 255, .7);
    font-size: .53rem;
    letter-spacing: .12em;
}

.transcar-mark {
    color: #fff;
}

.footer-link {
    color: var(--luminous-gold);
    text-decoration: none;
}

.footer-link:hover {
    text-decoration: underline;
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: .75rem;
    left: .75rem;
    padding: .75rem 1rem;
    transform: translateY(-160%);
    border-radius: .35rem;
    background: var(--luminous-gold);
    color: var(--deep-background);
    font-weight: 700;
}

.skip-link:focus {
    transform: translateY(0);
}

.faq-section {
    background: #061333;
}

.faq-list {
    border-top: 1px solid rgba(244, 206, 82, .4);
}

.faq-list details {
    border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.faq-list summary {
    position: relative;
    padding: 1.2rem 2.5rem 1.2rem .2rem;
    color: #fff;
    font-size: .98rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    content: "+";
    position: absolute;
    right: .45rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--luminous-gold);
    font-size: 1.4rem;
}

.faq-list details[open] summary::after {
    content: "−";
}

.faq-list details p {
    max-width: 54rem;
    padding: 0 2.5rem 1.2rem .2rem;
    color: rgba(255, 255, 255, .76);
    font-size: .9rem;
    line-height: 1.7;
}

.instagram-float {
    position: fixed;
    z-index: 60;
    right: max(1.2rem, env(safe-area-inset-right));
    bottom: max(1.2rem, env(safe-area-inset-bottom));
    display: grid;
    place-items: center;
    width: 3.75rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background: linear-gradient(145deg, #f9ce34 0%, #ee2a7b 48%, #6228d7 100%);
    color: #fff;
    font-size: 1.8rem;
    box-shadow: 0 8px 26px rgba(0, 0, 0, .32);
    animation: float 3.8s ease-in-out infinite;
}

.instagram-float .icon {
    width: 1.75rem;
    height: 1.75rem;
    stroke-width: 1.9;
}

.instagram-float:hover {
    transform: scale(1.08);
    box-shadow: 0 0 26px rgba(238, 42, 123, .48);
}

.reveal {
    opacity: 1;
    translate: 0 0;
}

.js-enabled .reveal {
    opacity: 0;
    translate: 0 14px;
    scale: .995;
    filter: blur(2px);
    transition:
        opacity .65s cubic-bezier(.2, .7, .2, 1) var(--reveal-delay, 0ms),
        translate .65s cubic-bezier(.2, .7, .2, 1) var(--reveal-delay, 0ms),
        scale .65s cubic-bezier(.2, .7, .2, 1) var(--reveal-delay, 0ms),
        filter .65s ease var(--reveal-delay, 0ms);
}

.js-enabled .reveal.is-visible {
    opacity: 1;
    translate: 0 0;
    scale: 1;
    filter: blur(0);
}

@keyframes float {

    0%,
    100% {
        translate: 0 0;
    }

    50% {
        translate: 0 -7px;
    }
}

@media (max-width: 767px) {

    .hero-bg,
    .parallax-section {
        background-attachment: scroll;
    }

    .alliance-panel {
        grid-template-columns: 1fr;
    }

    .alliance-marks {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        justify-content: stretch;
        gap: .65rem;
        width: 100%;
    }

    .sotavento-alliance-logo {
        max-width: 5.25rem;
        max-height: 5.25rem;
    }

    .transcar-alliance-logo {
        max-width: 6.75rem;
        max-height: 4.9rem;
    }

    .alliance-brand {
        width: 100%;
        flex: none;
    }

    .alliance-plus {
        display: grid;
        place-items: center;
        width: 2rem;
        height: 2rem;
        border: 1px solid rgba(213, 165, 29, .45);
        border-radius: 50%;
        background: rgba(213, 165, 29, .12);
        line-height: 1;
    }

    .legacy-section {
        min-height: auto;
    }

    .legacy-section::before {
        background-image: linear-gradient(180deg, rgba(4, 14, 46, .34), rgba(4, 14, 46, .72)), url('../images/optimized/sea-cargo-960.webp');
    }

    .legacy-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .legacy-copy h2 {
        font-size: clamp(3.1rem, 15vw, 4.5rem);
    }

    .legacy-services {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .3rem 0;
    }

    .legacy-services>div:nth-child(3) {
        border-left: 0;
    }

    .route-overlay {
        top: .75rem;
        right: .75rem;
        gap: .35rem;
        padding: .55rem .7rem;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .js-enabled .reveal {
        opacity: 1;
        translate: none;
        scale: 1;
        filter: none;
    }

    .slider-image,
    .slider-image img {
        transition: none;
        transform: none;
    }

    .hero-bg::before,
    .legacy-section::before {
        transform: none;
        will-change: auto;
    }
}