/* ==========================================================
   COSTA PLATFORM â€” HERO DIAMOND v2.0
   Costa do Sol Tour
   ========================================================== */

.cst-hero-premium,
.cst-hero-premium * {
    box-sizing: border-box;
}

.cst-hero-premium {
    width: 100vw;
    max-width: 100vw;
    min-height: 900px;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    color: #ffffff;
    background: #041E3D;
    isolation: isolate;
}

.cst-hero-premium__figure {
    position: absolute;
    inset: 0;
    z-index: 1;
    margin: 0;
}

.cst-hero-premium__image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 44%;
    transform: scale(1.015);
}

.cst-hero-premium__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        radial-gradient(circle at 16% 46%, rgba(212, 175, 55, 0.12), transparent 27%),
        linear-gradient(
            90deg,
            rgba(2, 18, 38, 0.96) 0%,
            rgba(6, 43, 87, 0.72) 23%,
            rgba(6, 43, 87, 0.36) 43%,
            rgba(6, 43, 87, 0.10) 65%,
            rgba(6, 43, 87, 0) 100%
        ),
        linear-gradient(
            180deg,
            rgba(2, 18, 38, 0.08) 0%,
            rgba(2, 18, 38, 0.18) 48%,
            rgba(2, 18, 38, 0.30) 100%
        );
}

.cst-hero-premium__inner {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: none;
    min-height: 900px;
    margin: 0;
    padding-left: clamp(56px, 4.6vw, 88px);
    padding-right: 48px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.cst-hero-premium__content {
    width: min(760px, 100%);
    max-width: 760px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cst-hero-premium__content::before {
    content: "";
    position: absolute;
    left: -130px;
    top: -105px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(212, 175, 55, 0.16) 0%,
        rgba(212, 175, 55, 0.08) 28%,
        transparent 72%
    );
    filter: blur(60px);
    z-index: -1;
    pointer-events: none;
}

.cst-hero-premium__title {
    margin: 0;
    font-size: clamp(78px, 7.4vw, 118px);
    line-height: 0.86;
    font-weight: 900;
    letter-spacing: -0.065em;
    text-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.cst-hero-premium__title span,
.cst-hero-premium__title strong {
    display: block;
}

.cst-hero-premium__title span {
    color: #ffffff;
}

.cst-hero-premium__title strong {
    color: #D4AF37;
    font-weight: inherit;
}

.cst-hero-premium__subtitle {
    max-width: 720px;
    margin: 36px 0 52px;
    color: rgba(255, 255, 255, 0.94);
    font-size: 23px;
    line-height: 1.6;
    text-shadow: 0 10px 28px rgba(0, 0, 0, 0.30);
}

.cst-hero-premium__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
}

.cst-hero-premium__cta {
    min-height: 66px;
    min-width: 230px;
    padding: 20px 34px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 850;
    line-height: 1;
    text-decoration: none;
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        background-color 0.22s ease,
        color 0.22s ease,
        border-color 0.22s ease;
}

.cst-hero-premium__cta:hover,
.cst-hero-premium__cta:focus-visible {
    transform: translateY(-2px);
    outline: none;
}

.cst-hero-premium__cta--primary {
    color: #062B57;
    background: linear-gradient(180deg, #F0C94D 0%, #D4AF37 100%);
    box-shadow:
        0 18px 42px rgba(212, 175, 55, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.cst-hero-premium__cta--primary:hover,
.cst-hero-premium__cta--primary:focus-visible {
    color: #062B57;
    background: linear-gradient(180deg, #FFD966 0%, #D4AF37 100%);
    box-shadow:
        0 24px 54px rgba(212, 175, 55, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.cst-hero-premium__cta--secondary {
    color: #ffffff;
    border: 2px solid rgba(212, 175, 55, 0.92);
    background: rgba(2, 18, 38, 0.28);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 14px 34px rgba(0, 0, 0, 0.18);
}

.cst-hero-premium__cta--secondary:hover,
.cst-hero-premium__cta--secondary:focus-visible {
    color: #ffffff;
    border-color: #D4AF37;
    background: rgba(212, 175, 55, 0.22);
    box-shadow:
        0 20px 44px rgba(212, 175, 55, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.cst-hero-premium__title,
.cst-hero-premium__subtitle,
.cst-hero-premium__actions {
    animation: cstHeroFadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.cst-hero-premium__subtitle {
    animation-delay: 0.08s;
}

.cst-hero-premium__actions {
    animation-delay: 0.16s;
}

@keyframes cstHeroFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 1440px) {
    .cst-hero-premium,
    .cst-hero-premium__inner {
        min-height: 940px;
    }

    .cst-hero-premium__title {
        font-size: clamp(88px, 7.3vw, 124px);
    }
}

@media (max-width: 1199px) and (min-width: 768px) {
    .cst-hero-premium,
    .cst-hero-premium__inner {
        min-height: 800px;
    }

    .cst-hero-premium__inner {
        padding-left: 48px;
        padding-right: 42px;
    }

    .cst-hero-premium__content {
        width: 650px;
        max-width: 650px;
    }

    .cst-hero-premium__title {
        font-size: 82px;
    }

    .cst-hero-premium__subtitle {
        max-width: 600px;
        font-size: 23px;
    }
}

@media (max-width: 390px) {
    .cst-hero-premium__figure {
        height: 300px;
    }

    .cst-hero-premium__title {
        font-size: 50px;
    }

    .cst-hero-premium__subtitle {
        font-size: 19px;
    }
}

@media (max-width: 390px) {
    .cst-hero-premium__figure {
        height: 300px;
    }

    .cst-hero-premium__overlay {
        top: 300px;
    }

    .cst-hero-premium__title {
        font-size: 50px;
    }

    .cst-hero-premium__subtitle {
        font-size: 19px;
    }
}

/* ==========================================================
   HERO SCROLL INDICATOR — DESKTOP
   ========================================================== */

.cst-hero-premium__scroll {
    position: absolute;
    left: 50%;
    bottom: 46px;
    transform: translateX(-50%);

    z-index: 4;

    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;

    color: rgba(255,255,255,.92);
    text-decoration: none;
}

.cst-hero-premium__scroll-line {
    width: 82px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        #D4AF37 50%,
        transparent 100%
    );
}

.cst-hero-premium__scroll-text {
    color: rgba(255,255,255,.88);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .20em;
    text-transform: uppercase;
}

.cst-hero-premium__scroll-arrow {
    color: #D4AF37;
    font-size: 24px;
    line-height: 1;
    animation: cstHeroScrollArrow 1.45s ease-in-out infinite;
}
/* ==========================================================
   HERO MOBILE â€” DIAMOND FINAL v2.2
   ========================================================== */

@media only screen and (max-width: 767px) {

    .cst-hero-premium {
        width: 100vw !important;
        max-width: 100vw !important;
        min-height: 700px !important;

        position: relative !important;
        left: 50% !important;
        right: 50% !important;
        margin-left: -50vw !important;
        margin-right: -50vw !important;

        overflow: hidden !important;
        background: #041E3D !important;
        color: #ffffff !important;
    }

    .cst-hero-premium__figure {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        z-index: 1 !important;
    }

    .cst-hero-premium__image {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;

        /* Devolve a imagem no mobile */
        object-position: 64% 50% !important;

        transform: scale(1.02) !important;
    }

    .cst-hero-premium__overlay {
        display: block !important;
        position: absolute !important;
        inset: 0 !important;
        z-index: 2 !important;

        background:
            linear-gradient(
                180deg,
                rgba(2,18,38,.10) 0%,
                rgba(6,43,87,.20) 28%,
                rgba(6,43,87,.44) 58%,
                rgba(2,18,38,.86) 100%
            ),
            linear-gradient(
                90deg,
                rgba(2,18,38,.58) 0%,
                rgba(6,43,87,.28) 52%,
                rgba(6,43,87,.08) 100%
            ) !important;
    }

    .cst-hero-premium__inner {
        position: relative !important;
        z-index: 3 !important;

        width: 100% !important;
        max-width: 100% !important;
        min-height: 700px !important;

        margin: 0 !important;
        padding: 205px 22px 105px !important;

        display: flex !important;
        align-items: flex-end !important;

        background: transparent !important;
    }

    .cst-hero-premium__content {
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
    }

    .cst-hero-premium__content::before {
        display: none !important;
    }

    .cst-hero-premium__title {
        margin: 0 0 20px !important;

        font-size: clamp(42px, 11vw, 54px) !important;
        line-height: .90 !important;
        letter-spacing: -.06em !important;

        text-shadow: 0 16px 38px rgba(0,0,0,.48) !important;
    }

    .cst-hero-premium__subtitle {
        margin: 0 0 24px !important;
        max-width: 100% !important;

        font-size: 17px !important;
        line-height: 1.55 !important;

        text-shadow: 0 12px 28px rgba(0,0,0,.52) !important;
    }

.cst-hero-premium__scroll {
    width: fit-content !important;
    margin: 34px auto 0 !important;

    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;

    color: rgba(255,255,255,.92) !important;
    text-decoration: none !important;
}

.cst-hero-premium__scroll-line {
    width: 72px !important;
    height: 2px !important;
    border-radius: 999px !important;
    background: linear-gradient(90deg, transparent 0%, #D4AF37 50%, transparent 100%) !important;
}

.cst-hero-premium__scroll-text {
    color: rgba(255,255,255,.88) !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    letter-spacing: .18em !important;
    text-transform: uppercase !important;
}

.cst-hero-premium__scroll-arrow {
    color: #D4AF37 !important;
    font-size: 24px !important;
    line-height: 1 !important;
    animation: cstHeroScrollArrow 1.45s ease-in-out infinite !important;
}
    .cst-hero-premium__actions {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        width: 100% !important;
    }

    .cst-hero-premium__cta {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 52px !important;

        border-radius: 16px !important;

        font-size: 17px !important;
        font-weight: 850 !important;
    }
}

@media only screen and (max-width: 390px) {

    .cst-hero-premium {
        min-height: 700px !important;
    }

    .cst-hero-premium__inner {
        min-height: 700px !important;
        padding: 215px 20px 110px !important;
    }

    .cst-hero-premium__title {
        font-size: 40px !important;
    }

    .cst-hero-premium__subtitle {
        font-size: 16px !important;
    }

}

@keyframes cstHeroScrollArrow {
    0%, 100% {
        transform: translateY(0);
        opacity: .72;
    }

    50% {
        transform: translateY(7px);
        opacity: 1;
    }
}

html {
    scroll-behavior: smooth;
}