@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@600;700;800&family=IBM+Plex+Sans:wght@600;700&display=swap');

/* Shared cinematic hero for public inner pages. The homepage uses its own
   slider and is intentionally excluded by the body selector and header load. */
body:not(.page-home) .page-title {
    position: relative;
    min-height: 520px !important;
    padding: 0 !important;
    overflow: hidden;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    display: flex;
    align-items: center;
    isolation: isolate;
}

body:not(.page-home) .page-title::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    width: 100%;
    height: 100%;
    content: "";
    opacity: 1;
    background: linear-gradient(
        90deg,
        rgba(26, 26, 46, .94) 0%,
        rgba(26, 26, 46, .80) 42%,
        rgba(26, 26, 46, .24) 78%,
        rgba(26, 26, 46, .08) 100%
    );
}

body:not(.page-home) .page-title::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 4px;
    content: "";
    background: linear-gradient(90deg, #ce1a19 0 18%, rgba(206, 26, 25, 0) 54%);
}

body:not(.page-home) .page-title > .auto-container {
    position: relative;
    z-index: 1;
    width: min(1280px, calc(100% - 48px)) !important;
    max-width: 1280px !important;
    padding: 0 !important;
    margin: 0 auto !important;
}

body:not(.page-home) .page-title .title-outer {
    position: relative;
    max-width: 940px;
    padding-top: 48px;
}

body:not(.page-home) .page-title .title-outer::before {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 7px 13px;
    margin-bottom: 22px;
    background: #ce1a19;
    color: #fff;
    content: "SAS LOGISTICS";
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .13em;
    line-height: 1;
}

body:not(.page-home) .page-title .title {
    max-width: 940px;
    margin: 0 0 22px !important;
    color: #fff !important;
    font-family: "Hanken Grotesk", sans-serif !important;
    font-size: clamp(42px, 5.2vw, 68px) !important;
    font-weight: 800 !important;
    letter-spacing: -.025em;
    line-height: 1.04 !important;
    text-align: left !important;
    text-shadow: 0 3px 18px rgba(0, 0, 0, .24);
}

body:not(.page-home) .page-title .text {
    max-width: 680px;
    margin: -4px 0 24px;
    color: rgba(255,255,255,.76);
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    letter-spacing: 0;
}

body:not(.page-home) .page-title .page-breadcrumb {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px 0;
    margin: 0;
}

body:not(.page-home) .page-title .page-breadcrumb li {
    position: relative;
    margin: 0 14px 0 0;
    padding: 0 18px 0 0;
    color: rgba(255,255,255,.76);
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    line-height: 1.5;
    text-transform: uppercase;
}

body:not(.page-home) .page-title .page-breadcrumb li::after {
    top: 0;
    right: 0;
    color: rgba(255,255,255,.56);
    font-size: 11px;
}

body:not(.page-home) .page-title .page-breadcrumb li a {
    color: #ff625f;
    font-weight: 700;
}

body:not(.page-home) .page-title .page-breadcrumb li a:hover {
    color: #fff;
}

@media (max-width: 991px) {
    body:not(.page-home) .page-title {
        min-height: 450px !important;
    }

    body:not(.page-home) .page-title::before {
        background: linear-gradient(90deg, rgba(26,26,46,.92), rgba(26,26,46,.56) 72%, rgba(26,26,46,.22));
    }

    body:not(.page-home) .page-title > .auto-container {
        width: min(100% - 40px, 900px) !important;
    }
}

@media (max-width: 767px) {
    body:not(.page-home) .page-title {
        min-height: 390px !important;
        background-position: center !important;
    }

    body:not(.page-home) .page-title::before {
        background: rgba(26, 26, 46, .72);
    }

    body:not(.page-home) .page-title > .auto-container {
        width: calc(100% - 32px) !important;
    }

    body:not(.page-home) .page-title .title-outer {
        padding-top: 24px;
    }

    body:not(.page-home) .page-title .title-outer::before {
        min-height: 27px;
        padding: 6px 10px;
        margin-bottom: 17px;
        font-size: 9px;
    }

    body:not(.page-home) .page-title .title {
        margin-bottom: 18px !important;
        font-size: clamp(35px, 11vw, 48px) !important;
        line-height: 1.08 !important;
    }

    body:not(.page-home) .page-title .page-breadcrumb li {
        font-size: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body:not(.page-home) .page-title,
    body:not(.page-home) .page-title * {
        scroll-behavior: auto;
    }
}
