/* ============================================================
   OLO Classic page styles
   Desktop-first, designed at 1440px
   ============================================================ */


/* ============================================================
   Page wrapper — centres content at 1440px
   ============================================================ */
.page {
    max-width: var(--page-width);
    margin: 0 auto;
}


/* ============================================================
   Shared section type styles
   ============================================================ */
.section-heading {
    font-family: var(--font-heading);
    font-size: clamp(29px, 3.47vw, 50px);
    font-weight: 400;
    line-height: var(--leading-h2);
    color: var(--color-heading);
    text-transform: uppercase;
}

.section-body {
    font-family: var(--font-body);
    font-size: clamp(13px, 1.53vw, 22px);
    font-weight: 400;
    line-height: var(--leading-body);
    color: var(--color-body);
}


/* ============================================================
   Hero Unit
   ============================================================ */
.hero {
    position: sticky;
    top: 0;
    z-index: 0;
    width: 100%;
    height: clamp(470px, 56.32vw, 811px);
    background-color: var(--color-bg-hero);
    background-image: url('../images/olo/olo_hero.jpg');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

/* All content after hero scrolls above it */
.page > :not(.hero) {
    position: relative;
    z-index: 1;
}

.hero__logo {
    position: fixed;
    top: clamp(20px, 2.78vw, 40px);
    left: clamp(20px, 2.78vw, 40px);
    z-index: 100;
    line-height: 0;
}

.hero__logo--light {
    display: none;
}

.hero__logo--mini {
    clip-path: inset(100% 0 0 0);
}

@media (min-width: 1440px) {
    .hero__logo--light {
        display: block;
        clip-path: inset(100% 0 0 0);
    }

    .hero__logo--mini {
        display: none;
    }
}

.hero__logo img {
    width: clamp(48px, 5.83vw, 84px);
    height: clamp(42px, 5.07vw, 73px);
}

.hero__achievements--desktop {
    position: absolute;
    bottom: clamp(24px, 2.78vw, 40px);
    right: clamp(24px, 2.78vw, 40px);
    display: flex;
    gap: clamp(12px, 1.39vw, 20px);
    align-items: flex-end;
}

.hero__achievements--mobile {
    display: none;
}

.achievement img {
    width: clamp(119px, 14.38vw, 207px);
    height: clamp(115px, 13.89vw, 200px);
    object-fit: contain;
}


/* ============================================================
   Main Title section
   ============================================================ */
.title-section {
    background-color: var(--color-bg);
    padding: clamp(70px, 8.33vw, 120px) clamp(6px, 0.69vw, 10px);
}

.title-section__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(26px, 3.13vw, 45px);
}

.title-section__heading {
    font-family: var(--font-heading);
    font-size: clamp(87px, 10.42vw, 150px);
    font-weight: 400;
    line-height: var(--leading-hero);
    color: var(--color-heading);
    text-transform: uppercase;
    text-align: center;
}

.title-section__tagline {
    font-family: var(--font-heading);
    font-size: clamp(13px, 1.53vw, 22px);
    font-weight: 400;
    line-height: var(--leading-body);
    color: var(--color-heading);
    max-width: clamp(463px, 57.08vw, 822px);
    text-align: center;
    text-transform: uppercase;
}


/* ============================================================
   Video section — poster image with play button overlay
   ============================================================ */
.video-section {
    background-color: var(--color-bg);
    padding: var(--space-section-y) 0;
    display: flex;
    justify-content: center;
}

.video-section__player {
    position: relative;
    width: clamp(637px, 76.4vw, 1100px);
    aspect-ratio: 1100 / 620;
    border-radius: clamp(17px, 2.08vw, 30px);
    overflow: hidden;
}

.video-section__player img,
.video-section__player video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Video player — shared by all video sections */
.video-player__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.video-player__poster {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.video-player.is-playing .video-player__video {
    display: block;
}

.video-player.is-playing .video-player__poster,
.video-player.is-playing .play-button {
    display: none;
}

/* Play button */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    z-index: 2;
}

.play-button svg {
    width: clamp(60px, 7.5vw, 108px);
    height: clamp(60px, 7.5vw, 108px);
}


/* ============================================================
   Quote section
   ============================================================ */
.quote {
    background-color: var(--color-bg);
    padding: clamp(70px, 8.33vw, 120px) clamp(26px, 1.81vw, 26px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(10px, 2.08vw, 30px);
}

.quote__text {
    font-family: var(--font-heading);
    font-size: clamp(28px, 3.47vw, 50px);
    font-weight: 400;
    line-height: clamp(34px, 4.17vw, 60px);
    color: var(--color-blush);
    max-width: 800px;
    text-align: center;
}

.quote__cite {
    font-family: var(--font-heading);
    font-size: clamp(14px, 1.53vw, 22px);
    font-weight: 400;
    line-height: var(--leading-body);
    color: var(--color-blush);
    font-style: normal;
    text-transform: uppercase;
}


/* ============================================================
   Intro / Feature sections
   ============================================================ */
.intro {
    background-color: var(--color-bg);
    padding: var(--space-section-y) var(--space-margin-x);
    display: flex;
    align-items: center;
    gap: var(--space-col-gap);
}

.intro__image {
    flex: 0 0 var(--col-width);
    width: var(--col-width);
    height: var(--col-width);
}

.intro__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
}

.intro__text {
    flex: 0 0 var(--col-width);
    width: var(--col-width);
    display: flex;
    flex-direction: column;
    gap: var(--space-text-gap);
}


/* ============================================================
   Safari Theme
   ============================================================ */
.safari {
    background-color: var(--color-bg);
    padding: var(--space-section-y) 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-col-gap);
}

.safari__heading {
    text-align: center;
}

.safari__player {
    position: relative;
    width: clamp(687px, 81.94vw, 1180px);
    aspect-ratio: 1180 / 885;
    border-radius: 30px;
    overflow: hidden;
}

.safari__player video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ============================================================
   Also from Sennep Games
   ============================================================ */
.other-games {
    background-color: var(--color-bg);
    padding: var(--space-section-y) 0 clamp(139px, 16.67vw, 240px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-col-gap);
}

.other-games__heading {
    text-align: center;
}

.other-games__grid {
    display: flex;
    gap: clamp(17px, 2.08vw, 30px);
    justify-content: center;
    padding: 0 var(--space-margin-x);
}

/* Mini game card */
.game-card-mini {
    flex: 0 0 clamp(187px, 22.43vw, 323px);
    width: clamp(187px, 22.43vw, 323px);
    background-color: var(--card-color);
    border-radius: 30px;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.game-card-mini__image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
}

.game-card-mini__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Scalloped circle edge at bottom of image — 6 circles across the card width */
.game-card-mini__image::after {
    content: '';
    position: absolute;
    bottom: -27px;
    left: 0;
    width: 100%;
    height: 54px;
    background-image: radial-gradient(
        circle 27px at center,
        var(--card-color) 27px,
        transparent 27px
    );
    background-size: calc(100% / 6) 54px;
    background-repeat: repeat-x;
    background-position: left center;
    z-index: 1;
}

.game-card-mini__info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(17px, 2.08vw, 30px) clamp(12px, 1.39vw, 20px) clamp(35px, 4.17vw, 60px);
}

.game-card-mini__title {
    font-family: var(--font-heading);
    font-size: clamp(16px, 1.94vw, 28px);
    font-weight: 400;
    line-height: clamp(20px, 2.36vw, 34px);
    color: var(--color-bg);
    text-transform: uppercase;
}

.game-card-mini__arrow {
    width: clamp(18px, 2.22vw, 32px);
    height: clamp(18px, 2.22vw, 32px);
    border-radius: 50%;
    border: 1.5px solid var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: clamp(9px, 1.11vw, 16px);
    line-height: 1;
    color: var(--color-bg);
}


/* ============================================================
   Wide — min-width: 1441px
   ============================================================ */
@media (min-width: 1441px) {

    .page {
        max-width: none;
    }

    .page > :not(.hero) {
        padding-left: calc((100vw - 1440px) / 2);
        padding-right: calc((100vw - 1440px) / 2);
    }

    .hero {
        width: 100%;
        height: 811px;
        background-image: url('../images/olo/olo_wide.jpg');
        background-size: auto 811px;
        background-position: center center;
    }

}

@media (min-width: 2500px) {

    .hero {
        background-size: cover;
    }

}


/* ============================================================
   Mobile — max-width: 833px
   ============================================================ */
@media (max-width: 833px) {

    /* --- Hero --- */
    .hero {
        height: auto;
        background-image: url('../images/olo/olo_hero_landscape.jpg');
        background-size: 100% auto;
        background-repeat: no-repeat;
        background-position: center top;
        display: flex;
        flex-direction: column;
        overflow: visible;
    }

    .hero::before {
        content: '';
        display: block;
        padding-top: 76.45%;
        flex-shrink: 0;
    }

    .hero__logo {
        position: absolute;
        top: 20px;
        left: 20px;
        z-index: 10;
    }

    .hero__logo--light {
        display: none;
    }

    .hero__logo img {
        width: 48px;
        height: 42px;
    }

    .hero__achievements--desktop {
        display: none;
    }

    .hero__achievements--mobile {
        display: flex;
        position: relative;
        z-index: 1;
        justify-content: center;
        align-items: center;
        gap: 14px;
        padding: 30px 26px;
        background-color: var(--color-bg);
    }

    .achievement img {
        width: 154px;
        height: 148px;
    }


    /* --- Title section --- */
    .title-section {
        padding: 30px 26px;
    }

    .title-section__inner {
        gap: 30px;
    }

    .title-section__heading {
        font-size: 52px;
    }

    .title-section__tagline {
        font-size: 14px;
        line-height: 24px;
    }


    /* --- Video section --- */
    .video-section {
        padding: 20px 26px;
    }

    .video-section__player {
        width: 100%;
        border-radius: 20px;
    }

    .play-button svg {
        width: 60px;
        height: 60px;
    }


    /* --- Quote --- */
    .quote {
        padding: 30px 26px;
        gap: 10px;
    }

    .quote__text {
        font-size: 28px;
        line-height: 34px;
    }

    .quote__cite {
        font-size: 14px;
        line-height: 24px;
    }


    /* --- Intro / Feature sections --- */
    .intro {
        flex-direction: column;
        padding: 30px 26px;
        gap: 30px;
    }

    .intro--reverse .intro__image {
        order: -1;
    }

    .intro__image {
        flex: none;
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }

    .intro__image img {
        border-radius: 20px;
    }

    .intro__text {
        flex: none;
        width: 100%;
        gap: 14px;
    }

    .section-heading {
        font-size: 28px;
        line-height: 34px;
    }

    .section-body {
        font-size: 16px;
        line-height: 23px;
    }


    /* --- Safari --- */
    .safari {
        padding: 60px 26px 30px;
        gap: 30px;
    }

    .safari__heading {
        font-size: 22px;
        line-height: 28px;
    }

    .safari__player {
        width: 100%;
        border-radius: 20px;
    }


    /* --- Also from Sennep Games --- */
    .other-games {
        padding: 60px 0;
        gap: 30px;
    }

    .other-games__heading {
        font-size: 22px;
        line-height: 28px;
    }

    .other-games__grid {
        flex-direction: column;
        align-items: center;
        padding: 0 26px;
        gap: 30px;
    }

    .game-card-mini {
        flex: none;
        width: 323px;
        max-width: 100%;
    }

    .game-card-mini__title {
        font-size: 28px;
        line-height: 34px;
    }

    .game-card-mini__arrow {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .game-card-mini__info {
        padding: 30px 20px 60px;
    }

}


/* ============================================================
   Scroll-triggered entrance animations
   ============================================================ */
.animate-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 600ms ease, transform 600ms ease;
}

.animate-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-1 { transition-delay: 100ms; }
.stagger-2 { transition-delay: 200ms; }
.stagger-3 { transition-delay: 300ms; }
.stagger-4 { transition-delay: 400ms; }
.stagger-5 { transition-delay: 500ms; }

@media (prefers-reduced-motion: reduce) {
    .animate-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
