
/* ==========================================
   COVANA ALTA - COMING SOON
========================================== */

:root {
    --color-navy: #00263e;
    --color-white: #ffffff;
    --color-accent: #72d1e8;

    --font-primary: 'Quicksand', Arial, sans-serif;
    --container-width: 1120px;
}

/* ==========================================
   RESET
========================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    width: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    width: 100%;
    min-width: 0;

    background: var(--color-navy);
    color: var(--color-white);

    font-family: var(--font-primary);
    -webkit-font-smoothing: antialiased;

    overflow-x: clip;
}

a {
    color: inherit;
}

img,
video {
    max-width: 100%;
}

.container {
    width: min(
        var(--container-width),
        calc(100% - 48px)
    );

    margin-inline: auto;
}

/* ==========================================
   TEXT HELPERS
========================================== */

.keep-together {
    display: inline-block;
    white-space: nowrap;
}

/* ==========================================
   COVANA LOGOS
========================================== */

.brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;
    text-decoration: none;
}

.brand__logo {
    display: block;
    width: 150px;
    height: auto;
    object-fit: contain;
}

.brand--hero {
    position: relative;
}

.brand--hero .brand__logo {
    width: 150px;
}

.brand--footer .brand__logo {
    width: 155px;
}

/* ==========================================
   HERO BACKGROUND
========================================== */

.hero {
    position: relative;
    display: flex;

    width: 100%;
    min-height: 760px;

    overflow: hidden;
    text-align: center;
    isolation: isolate;

    background-color: var(--color-navy);

    background-image:
        url("/alta/assets/images/2610_SpaRetailer-Pub_ComingSoon_Background.png");

    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* Desktop gradient */

.hero::before {
    content: "";

    position: absolute;
    inset: 0;

    z-index: 0;
    pointer-events: none;

    background: linear-gradient(
        180deg,
        rgba(0, 38, 62, 0.28) 0%,
        rgba(0, 38, 62, 0.41) 47%,
        #00263e 100%
    );
}

/* ==========================================
   HERO LAYOUT
========================================== */

.hero__inner {
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: 1440px;
    min-height: 760px;

    margin: 0 auto;
    padding: 48px 24px 36px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.hero__content {
    width: 100%;
    margin-top: 62px;
}

/* ==========================================
   HERO HEADING
========================================== */

.hero h1 {
    margin: 0 0 35px;

    font-size: clamp(42px, 5.1vw, 78px);
    font-weight: 500;

    line-height: 1.15;
    letter-spacing: 0.015em;
}

/* ==========================================
   COUNTDOWN
========================================== */

.countdown {
    display: flex;
    justify-content: center;
    align-items: flex-start;

    gap: clamp(4px, 0.8vw, 12px);

    font-variant-numeric: tabular-nums;
}

.countdown__item {
    display: flex;
    flex-direction: column;
    align-items: center;

    min-width: clamp(60px, 9vw, 140px);
}

.countdown__item > span {
    font-size: clamp(50px, 7.7vw, 112px);
    font-weight: 300;

    letter-spacing: -0.07em;
    line-height: 1.1;
}

.countdown__item small {
    margin-top: 3px;

    font-size: clamp(11px, 1.2vw, 17px);
    font-weight: 400;
}

.countdown__separator {
    font-size: clamp(50px, 7.7vw, 112px);
    font-weight: 300;

    line-height: 1.03;
}

/* ==========================================
   HERO BOTTOM TEXT
========================================== */

.hero__bottom {
    width: 100%;

    margin-top: auto;
    padding-top: 65px;
}

.hero__bottom h2 {
    margin: 0 0 12px;

    font-size: clamp(20px, 2.1vw, 29px);
    font-weight: 500;

    line-height: 1.3;
}

.hero__bottom p {
    margin: 0;

    font-size: clamp(13px, 1.2vw, 17px);
    line-height: 1.5;
}

/* ==========================================
   VIDEO TEASER
========================================== */

.teaser {
    background: var(--color-navy);
    padding: 35px 0 75px;
}

.teaser__video-wrapper {
    position: relative;

    width: 100%;
    max-width: 1032px;
    aspect-ratio: 16 / 9;

    margin-inline: auto;

    overflow: hidden;
    background: transparent;

    border: 0;
    border-radius: 0;
    outline: none;
    box-shadow: none;
}

.teaser__video {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    background: transparent;

    border: 0;
    border-radius: 0;
    box-shadow: none;
}

/* ==========================================
   VIDEO THUMBNAIL
========================================== */

.teaser__play-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;

    display: block;

    width: 100%;
    height: 100%;

    padding: 0;
    margin: 0;

    background: transparent;
    cursor: pointer;

    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.teaser__play-overlay.is-hidden {
    display: none;
}

.teaser__thumbnail {
    position: absolute;

    top: 50%;
    left: 50%;

    display: block;

    width: 101%;
    max-width: none;
    height: 101%;

    object-fit: cover;
    object-position: center;

    transform: translate(-50%, -50%);

    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.teaser__play-overlay:focus-visible {
    outline: 3px solid white;
    outline-offset: -4px;
}

/* ==========================================
   EVENTS
========================================== */

.events {
    padding: 55px 0 105px;
    background: var(--color-navy);
}

.events .container {
    max-width: 1250px;
}

.section-title {
    margin: 0 0 55px;

    text-align: center;

    font-size: clamp(21px, 2.1vw, 29px);
    font-weight: 500;
}

.events__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 65px;
    align-items: center;
}

.event {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 22px;
    min-width: 0;
}

.event__logo {
    flex: 0 0 210px;
    max-width: 42%;
}

.event__logo img {
    display: block;

    width: 100%;
    max-height: 125px;

    object-fit: contain;
}

.event__details {
    flex: 1;
    min-width: 0;
    min-height: 100px;

    padding-left: 22px;

    border-left: 2px solid var(--color-accent);

    display: flex;
    flex-direction: column;
    justify-content: center;

    font-size: 18px;
    line-height: 1.5;
    white-space: nowrap;
}

.event__details p {
    margin: 0 0 14px;
}

.event__details strong {
    font-size: 19px;
    font-weight: 700;
}

/* ==========================================
   WHITE FOOTER
========================================== */

.footer {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    width: 100%;

    background: #ffffff;
    color: var(--color-navy);

    padding: 58px 24px 65px;
    text-align: center;
}

/* ==========================================
   WAVES - DESKTOP ONLY
========================================== */

.footer::before {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: clamp(220px, 24vw, 360px);
    height: 100%;

    z-index: 0;
    pointer-events: none;

    background-image: url("/alta/assets/images/waves.svg");
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: contain;
}

/* ==========================================
   FOOTER CONTENT
========================================== */

.footer__inner {
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: 600px;

    margin-inline: auto;

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer__title {
    margin: 0 0 7px;

    font-size: 16px;
    font-weight: 500;
}

.footer__website {
    font-size: 15px;
    text-decoration: none;
}

.footer__website:hover {
    text-decoration: underline;
}

/* ==========================================
   FOOTER SOCIAL ICONS
========================================== */

.footer__social {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 18px;
    margin: 15px 0 14px;
}

.footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;

    text-decoration: none;
}

.footer__social a:hover {
    opacity: 0.75;
}

.footer__social a:focus-visible {
    outline: 2px solid var(--color-navy);
    outline-offset: 3px;
    border-radius: 4px;
}

.footer__social img {
    display: block;

    width: auto;
    height: 28px;
    max-width: 38px;

    object-fit: contain;
}

.footer__description {
    margin: 0 0 27px;

    font-size: 15px;
    line-height: 1.35;
}

/* ==========================================
   RESPONSIVE WAVES

   Show waves at 1458px and above.
   Hide them at 1457px and below.
========================================== */

@media (max-width: 1457px) {

    .footer::before {
        display: none;
    }

}

/* ==========================================
   TABLET
========================================== */

@media (max-width: 1100px) {

    .events__grid {
        gap: 30px;
    }

    .event {
        gap: 16px;
    }

    .event__logo {
        flex-basis: 165px;
    }

    .event__details {
        padding-left: 16px;
        font-size: 15px;
    }

    .event__details strong {
        font-size: 16px;
    }

}

@media (max-width: 900px) {

    .hero,
    .hero__inner {
        min-height: 720px;
    }

    .hero__content {
        margin-top: 70px;
    }

    .events__grid {
        gap: 25px;
    }

    .event__logo {
        flex-basis: 135px;
    }

    .event__details {
        font-size: 13px;
    }

    .event__details strong {
        font-size: 14px;
    }

}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 750px) {

    /* ======================================
       GLOBAL MOBILE CONTAINER
    ====================================== */

    .container {
        width: calc(100% - 40px);
        max-width: 500px;
        margin-inline: auto;
    }

    /* ======================================
       MOBILE HERO BACKGROUND
    ====================================== */

    .hero {
        width: 100%;
        min-height: 300px;

        background-image: none;
        background-color: var(--color-navy);
    }

    .hero::before {
        content: "";

        position: absolute;

        top: 0;
        left: 0;
        right: 0;
        bottom: auto;

        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;

        background-image:
            url("/alta/assets/images/2610_SpaRetailer-Pub_ComingSoon_Background.png");

        background-position: center top;
        background-size: cover;
        background-repeat: no-repeat;

        -webkit-mask-image: linear-gradient(
            to bottom,
            #000 0%,
            #000 55%,
            transparent 100%
        );

        mask-image: linear-gradient(
            to bottom,
            #000 0%,
            #000 55%,
            transparent 100%
        );

        z-index: 0;
        pointer-events: none;
    }

    .hero::after {
        content: "";

        position: absolute;
        inset: 0;

        z-index: 0;
        pointer-events: none;

        background: linear-gradient(
            180deg,
            rgba(0, 38, 62, 0.18) 0%,
            rgba(0, 38, 62, 0.25) 25%,
            rgba(0, 38, 62, 0.55) 48%,
            rgba(0, 38, 62, 0.88) 70%,
            #00263e 100%
        );
    }

    /* ======================================
       MOBILE HERO LAYOUT
    ====================================== */

    .hero__inner {
        position: relative;
        z-index: 1;

        width: 100%;
        max-width: none;
        min-height: 300px;

        padding: 20px 16px 14px;
        margin-inline: auto;

        display: flex;
        flex-direction: column;
        align-items: center;

        text-align: center;
    }

    /* Mobile Logo */

    .brand--hero {
        display: flex;
        align-self: center;
        justify-content: center;

        margin-inline: auto;
    }

    .brand--hero .brand__logo {
        width: 75px;
        height: auto;
    }

    /* Mobile Heading */

    .hero__content {
        width: 100%;
        max-width: 100%;
        min-width: 0;

        margin: 13px auto 0;
        padding: 0;

        text-align: center;
    }

    .hero h1 {
        width: 100%;

        margin: 0 auto 7px;

        font-size: clamp(23px, 6.5vw, 32px);
        font-weight: 500;

        line-height: 1.15;
        letter-spacing: 0;

        text-align: center;
        white-space: nowrap;
    }

    /* ======================================
       MOBILE COUNTDOWN
    ====================================== */

    .countdown {
        display: flex;

        width: max-content;
        max-width: 100%;

        margin-inline: auto;

        align-items: flex-start;
        justify-content: center;

        gap: clamp(2px, 0.8vw, 5px);

        font-variant-numeric: tabular-nums;
    }

    .countdown__item {
        display: flex;
        flex-direction: column;

        align-items: center;
        justify-content: flex-start;

        flex: 0 1 auto;

        min-width: 0;
        width: clamp(47px, 15vw, 75px);
    }

    .countdown__item > span {
        display: block;

        font-size: clamp(35px, 11.2vw, 55px);
        font-weight: 300;

        line-height: 1;
        letter-spacing: -0.065em;

        text-align: center;
        white-space: nowrap;
    }

    .countdown__separator {
        flex: 0 0 auto;

        font-size: clamp(35px, 11.2vw, 55px);
        font-weight: 300;

        line-height: 0.95;
        letter-spacing: 0;

        text-align: center;
    }

    .countdown__item small {
        margin-top: 5px;

        font-size: 8px;
        font-weight: 400;

        line-height: 1.2;
        text-align: center;
    }

    /* ======================================
       MOBILE HERO TAGLINE
    ====================================== */

    .hero__bottom {
        width: 100%;
        max-width: 320px;

        margin: auto auto 0;
        padding: 28px 0 0;

        text-align: center;
    }

    .hero__bottom h2 {
        margin: 0 auto 7px;

        font-size: clamp(17px, 4.7vw, 21px);
        font-weight: 500;

        line-height: 1.15;
        text-align: center;
    }

    .hero__bottom p {
        max-width: 300px;
        margin-inline: auto;

        font-size: 11px;
        line-height: 1.45;

        text-align: center;
    }

    /* ======================================
       MOBILE VIDEO
    ====================================== */

    .teaser {
        width: 100%;
        padding: 12px 0 35px;

        background: var(--color-navy);
    }

    .teaser .container {
        width: calc(100% - 60px);
        max-width: 500px;

        margin-inline: auto;
    }

    .teaser__video-wrapper {
        width: 100%;
        margin-inline: auto;

        aspect-ratio: 16 / 9;
    }

    /* ======================================
       MOBILE EVENTS
    ====================================== */

    .events {
        padding: 42px 0 45px;
    }

    .events .container {
        width: calc(100% - 48px);
        max-width: 480px;
        margin-inline: auto;
    }

    .section-title {
        margin: 0 auto 32px;

        font-size: clamp(17px, 4.5vw, 21px);
        font-weight: 500;

        line-height: 1.3;
        text-align: center;
    }

    .events__grid {
        display: flex;
        flex-direction: column;

        align-items: center;
        justify-content: center;

        width: 100%;
        gap: 32px;
    }

    .event {
        display: grid;

        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 1fr);

        width: 100%;
        max-width: 350px;

        margin-inline: auto;
        gap: 15px;

        align-items: center;
        justify-content: center;
    }

    .event__logo {
        width: 100%;
        max-width: none;

        display: flex;
        justify-content: center;
        align-items: center;
    }

    .event__logo img {
        display: block;

        width: 100%;
        max-width: 155px;
        max-height: 85px;

        object-fit: contain;
    }

    .event__details {
        min-width: 0;
        min-height: 65px;

        padding-left: 13px;

        border-left: 2px solid var(--color-accent);

        font-size: 10px;
        line-height: 1.55;
        white-space: normal;
    }

    .event__details p {
        margin: 0 0 7px;
    }

    .event__details strong {
        font-size: 11px;
        font-weight: 700;
    }

    /* ======================================
       MOBILE WHITE FOOTER
    ====================================== */

    .footer {
        width: 100%;
        padding: 30px 20px 35px;

        background: #ffffff;
        text-align: center;
    }

    .footer::before {
        display: none;
    }

    .footer__inner {
        width: 100%;
        max-width: 380px;

        margin-inline: auto;

        align-items: center;
        text-align: center;
    }

    .footer__title {
        font-size: 11px;
        margin-bottom: 4px;
    }

    .footer__website {
        font-size: 11px;
    }

    .footer__social {
        margin: 12px 0 10px;
        gap: 15px;
    }

    .footer__social a {
        width: 30px;
        height: 30px;
    }

    .footer__social img {
        height: 23px;
        max-width: 32px;
    }

    .footer__description {
        margin-bottom: 14px;
        font-size: 11px;
        line-height: 1.4;
    }

    .brand--footer .brand__logo {
        width: 112px;
    }

}

/* ==========================================
   SMALL MOBILE
========================================== */

@media (max-width: 390px) {

    .hero h1 {
        font-size: 23px;
    }

    .countdown__item {
        width: 15vw;
    }

    .countdown__item > span,
    .countdown__separator {
        font-size: 11.2vw;
    }

    .hero__bottom h2 {
        font-size: 17px;
    }

    .event {
        gap: 12px;
    }

    .event__details {
        padding-left: 11px;
        font-size: 9px;
    }

    .event__details strong {
        font-size: 10px;
    }

}

/* ==========================================
   ACCESSIBILITY
========================================== */

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

    html {
        scroll-behavior: auto;
    }

}
