
/* ==========================================
   COVANA EVO — COMPLETE STYLESHEET
   STATIC EVO LOGO + SHARPER MOBILE THUMBNAIL
   IMAGES: https://covana.com/evo/assets/images/
========================================== */

:root {
    --color-navy: #00263e;
    --color-white: #ffffff;
    --color-accent: #72d1e8;
    --color-button: #0099ca;
    --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;
}

.mobile-break {
    display: none;
}

/* ==========================================
   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--footer .brand__logo {
    width: 155px;
}

/* ==========================================
   DESKTOP HERO
========================================== */

.hero {
    position: relative;
    isolation: isolate;
    width: 100%;
    height: 100svh;
    min-height: 760px;
    max-height: 1000px;
    overflow: hidden;
    background: var(--color-navy);
    text-align: center;
}

.hero__visual,
.hero__visual img,
.hero__shade {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.hero__visual {
    z-index: -2;
}

.hero__visual img {
    object-fit: cover;
    object-position: center 70%;
}

/* ==========================================
   DESKTOP GRADIENT
========================================== */

.hero__shade {
    z-index: -1;
    pointer-events: none;

    background: linear-gradient(
        180deg,
        rgba(0,38,62,.02) 0%,
        rgba(0,38,62,.03) 40%,
        rgba(0,38,62,.05) 62%,
        rgba(0,38,62,.14) 73%,
        rgba(0,38,62,.35) 84%,
        rgba(0,38,62,.85) 95%,
        #00263e 100%
    );
}

/* ==========================================
   HERO CONTENT
========================================== */

.hero__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1440px;
    height: 100%;
    min-height: inherit;
    margin: 0 auto;
    padding: 75px 24px 46px;
}

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

/* ==========================================
   EVO LOGO — STATIC DESKTOP POSITION
   NO PARALLAX
========================================== */

.hero__evo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(390px, 36vw);
    margin: auto 0;
    flex-shrink: 0;
    transform: translateY(180px);
}

.hero__evo img {
    display: block;
    width: 100%;
    height: auto;
}

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

.hero__bottom {
    width: 100%;
    margin-top: auto;
}

.hero__bottom h2 {
    margin: 0 0 12px;
    font-size: clamp(23px, 2.25vw, 32px);
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: .005em;
}

.hero__bottom p {
    margin: 0;
    font-size: clamp(13px, 1.25vw, 17px);
    font-weight: 400;
    line-height: 1.5;
}

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

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

.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;
    box-shadow: none;
}

.teaser__video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: transparent;
    border: 0;
}

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

    display: block;
    width: 100%;
    height: 100%;

    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.teaser__play-overlay picture {
    display: block;
    width: 100%;
    height: 100%;
}

.teaser__thumbnail {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

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

.teaser__play-overlay:focus-visible,
.flyer-button:focus-visible,
.footer a:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
}

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

.events {
    padding: 55px 0 80px;
    background: var(--color-navy);
    text-align: center;
}

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

.section-title {
    margin: 0 0 55px;
    font-size: clamp(21px, 2.1vw, 29px);
    font-weight: 400;
    line-height: 1.3;
    text-align: center;
}

.events__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 65px;
}

.event {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    min-width: 0;
    text-align: left;
    text-decoration: none;
}

.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;
    display: flex;
    flex-direction: column;
    justify-content: center;

    min-width: 0;
    min-height: 100px;

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

    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;
}

/* ==========================================
   DOWNLOAD FLYER
========================================== */

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

    min-height: 48px;
    margin: 84px auto 0;
    padding: 13px 33px;

    border-radius: 28px;
    background: var(--color-button);
    color: #ffffff;

    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .02em;

    transition:
        background-color .2s ease,
        transform .2s ease;
}

.flyer-button:hover {
    background: #0086b1;
    transform: translateY(-2px);
}

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

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

    width: 100%;
    padding: 58px 24px 65px;

    background: #ffffff;
    color: var(--color-navy);
    text-align: center;
}

/* ==========================================
   FOOTER WAVES
========================================== */

.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("https://covana.com/evo/assets/images/waves.svg");

    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: contain;
}

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

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

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

    width: 100%;
    max-width: 600px;
    margin-inline: auto;
}

.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 {
    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: .75;
}

.footer__social img {
    display: block;
    width: auto;
    max-width: 38px;
    height: 28px;
    object-fit: contain;
}

.footer__description {
    margin: 0 0 27px;
    font-size: 15px;
    line-height: 1.35;
}

/* ==========================================
   FOOTER WAVES BREAKPOINT
========================================== */

@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 {
        min-height: 700px;
    }

    .hero__evo {
        width: 320px;
    }

    .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) {

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

    /* MOBILE HERO */

    .hero {
        width: 100%;
        height: clamp(285px, 80vw, 355px);
        min-height: 0;
        max-height: none;
        overflow: hidden;
        background: var(--color-navy);
    }

    /* MOBILE BACKGROUND */

    .hero__visual {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        background-color: var(--color-navy);

        background-image:
            url("https://covana.com/evo/assets/images/Header_Evo_Mobile.png");

        background-position: center top;
        background-size: 100% auto;
        background-repeat: no-repeat;
    }

    .hero__visual img {
        display: block;
        position: absolute;
        top: 0;
        right: 0;
        bottom: auto;
        left: 0;

        width: 100%;
        height: auto;
        max-width: none;

        object-fit: contain;
        object-position: center top;
    }

    /* MOBILE GRADIENT */

    .hero__shade {
        background: linear-gradient(
            180deg,
            rgba(0,38,62,.02) 0%,
            rgba(0,38,62,.07) 30%,
            rgba(0,38,62,.20) 48%,
            rgba(0,38,62,.62) 62%,
            rgba(0,38,62,.94) 76%,
            #00263e 88%,
            #00263e 100%
        );
    }

    /* MOBILE HERO CONTENT */

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

        width: 100%;
        height: 100%;
        min-height: 0;

        padding: 20px 14px 18px;
    }

    /* TOP COVANA LOGO */

    .brand--hero {
        align-self: center;
        margin-inline: auto;
    }

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

    /* MOBILE EVO LOGO — POSITION PRESERVED */

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

        width: min(110px, 32vw);
        margin: auto 0;
        transform: translateY(34px);
        flex-shrink: 0;
    }

    .hero__evo img {
        display: block;
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    /* MOBILE BOTTOM TEXT */

    .hero__bottom {
        width: 100%;
        max-width: 345px;
        margin-top: auto;
        text-align: center;
    }

    .hero__bottom h2 {
        margin: 0 auto 7px;
        font-size: clamp(14px, 4.1vw, 17px);
        font-weight: 300;
        line-height: 1.25;
        letter-spacing: 0;
        text-align: center;
    }

    .hero__bottom p {
        max-width: 340px;
        margin: 0 auto;
        font-size: clamp(10px, 2.75vw, 12px);
        font-weight: 300;
        line-height: 1.5;
        letter-spacing: 0;
        text-align: center;
    }

    .mobile-break {
        display: initial;
    }

    /* ======================================
       MOBILE VIDEO — SHARPER PREVIEW

       Uses the larger desktop thumbnail
       instead of upscaling the small mobile
       thumbnail on high-density displays.
       Video size and play behavior unchanged.
    ====================================== */

    .teaser {
        width: 100%;
        padding: 0;
        margin: 0;
        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;
    }

    .teaser__play-overlay {
        background-image:
            url("https://covana.com/evo/assets/images/Thumbnail_Evo_Web.png");

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

    .teaser__play-overlay picture {
        display: none;
    }

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

    .events {
        padding: 44px 0 35px;
        background: var(--color-navy);
        text-align: center;
    }

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

    .section-title {
        margin: 0 auto 30px;
        font-size: clamp(15px, 4vw, 18px);
        font-weight: 400;
        line-height: 1.3;
        letter-spacing: 0;
        text-align: center;
    }

    .events__grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        width: 100%;
        gap: 30px;
    }

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

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

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

        gap: 16px;
        margin-inline: auto;
        text-align: left;
    }

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

        width: 100%;
        max-width: none;
    }

    .event__logo img {
        display: block;
        width: 100%;
        max-width: 135px;
        max-height: 70px;
        object-fit: contain;
    }

    .event__details {
        min-width: 0;
        min-height: 62px;
        padding-left: 12px;
        border-left: 2px solid var(--color-accent);

        font-size: 9px;
        font-weight: 400;
        line-height: 1.5;
        white-space: normal;
    }

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

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

    /* MOBILE FLYER BUTTON */

    .flyer-button {
        min-height: 41px;
        margin: 42px auto 0;
        padding: 11px 30px;
        border-radius: 25px;
        font-size: 11px;
        font-weight: 500;
        letter-spacing: .01em;
    }

    /* MOBILE FOOTER */

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

    .footer::before {
        display: none;
    }

    .footer__inner {
        max-width: 380px;
    }

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

    .footer__website {
        font-size: 11px;
    }

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

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

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

    .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__inner {
        padding-inline: 12px;
    }

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

    .hero__bottom p {
        font-size: 10px;
    }

    .event {
        gap: 12px;
    }

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

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

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

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

    html {
        scroll-behavior: auto;
    }

    .flyer-button {
        transition: none;
    }
}
