/* =========================================================
   IMARA DISTRICT GYM
   HOMEPAGE ONLY
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    background: #000000;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}


/* =========================================================
   HERO
========================================================= */

.home-hero {
    position: relative;

    width: 100%;
    min-height: 100svh;

    background:
        linear-gradient(90deg,
            rgba(0, 0, 0, 0.78) 0%,
            rgba(0, 0, 0, 0.42) 34%,
            rgba(0, 0, 0, 0.08) 72%,
            rgba(0, 0, 0, 0.18) 100%),
        url("Assets/heroimage.png");

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.home-hero-inner {
    width: 100%;
    min-height: 100svh;

    padding: 0 5.4%;

    display: flex;
    flex-direction: column;
}


/* =========================================================
   NAVBAR
========================================================= */

.home-navbar {
    width: 100%;
    height: 120px;

    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;

    gap: 35px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.10);

    position: relative;
    z-index: 10;
}


.home-brand {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 3px;

    color: #ffffff;
    text-decoration: none;
}

.home-brand img {
    display: block;

    width: 88px;
    height: auto;
}

.home-brand span {
    font-size: 7px;
    font-weight: 700;

    letter-spacing: 2.6px;
}


.home-desktop-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;

    gap: clamp(26px, 3.2vw, 52px);
}

.home-desktop-nav a {
    position: relative;

    padding: 12px 0;

    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;

    font-size: 14px;
    font-weight: 500;

    white-space: nowrap;
}

.home-desktop-nav a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 2px;

    width: 0;
    height: 1px;

    background: #ed1c24;

    transition: width 0.25s ease;
}

.home-desktop-nav a:hover::after,
.home-desktop-nav a.active::after {
    width: 100%;
}

.home-desktop-nav a.active {
    color: #ed1c24;
}


.home-join-btn {
    width: 136px;
    height: 54px;

    padding: 0 20px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    background: #ed1c24;

    border-radius: 11px;

    color: #ffffff;
    text-decoration: none;

    font-size: 12px;
    font-weight: 700;

    white-space: nowrap;
}

.home-join-btn span {
    font-size: 15px;
}


/* =========================================================
   MOBILE MENU BUTTON
========================================================= */

.home-menu-btn {
    display: none;

    width: 42px;
    height: 42px;

    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 10px;

    background: rgba(0, 0, 0, 0.35);

    cursor: pointer;
}

.home-menu-btn span {
    display: block;

    width: 17px;
    height: 1px;

    margin: 4px auto;

    background: #ffffff;
}


/* =========================================================
   HERO COPY
========================================================= */

.home-hero-copy {
    width: min(660px, 52vw);

    margin-top: auto;
    margin-bottom: 11vh;
}


.home-eyebrow {
    display: flex;
    align-items: center;

    gap: 16px;

    margin-bottom: 22px;

    color: #ffffff;

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 5px;
}

.home-eyebrow-line {
    width: 38px;
    height: 1px;

    background: #ed1c24;

    flex-shrink: 0;
}


.home-hero-copy h1 {
    margin: 0;

    font-size: clamp(74px, 7.4vw, 112px);
    line-height: 0.79;

    font-weight: 300;
    letter-spacing: -5px;
}

.home-hero-copy h1 span {
    display: block;
}

.home-hero-copy h1 strong {
    color: #ed1c24;

    font-weight: 300;
}


.home-tagline {
    margin-top: 28px;

    font-size: 20px;
    line-height: 1.4;

    color: #ffffff;
}


.home-hero-actions {
    margin-top: 30px;

    display: flex;
    gap: 14px;
}


.home-primary-btn,
.home-secondary-btn {
    height: 58px;

    display: inline-flex;
    align-items: center;

    border-radius: 10px;

    text-decoration: none;

    font-size: 12px;
    font-weight: 700;
}


.home-primary-btn {
    width: 225px;

    padding: 0 30px;

    justify-content: space-between;

    background: #ed1c24;

    color: #ffffff;
}


.home-secondary-btn {
    width: 175px;

    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.45);

    background: rgba(0, 0, 0, 0.15);

    color: #ffffff;
}


/* =========================================================
   MOBILE SIDE MENU
========================================================= */

.home-menu-overlay {
    position: fixed;
    inset: 0;

    background: rgba(0, 0, 0, 0.72);

    opacity: 0;
    visibility: hidden;

    transition: 0.3s ease;

    z-index: 90;
}


.home-mobile-menu {
    position: fixed;

    top: 0;
    right: 0;

    width: min(330px, 88vw);
    height: 100svh;

    padding: 24px;

    background: #080808;

    transform: translateX(100%);

    transition: transform 0.3s ease;

    z-index: 100;

    display: flex;
    flex-direction: column;
}


.home-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

.home-mobile-menu.open {
    transform: translateX(0);
}


.home-mobile-menu-top {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding-bottom: 20px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}


.home-mobile-menu-brand {
    display: flex;
    align-items: center;

    gap: 10px;
}

.home-mobile-menu-brand img {
    width: 42px;
    height: auto;
}

.home-mobile-menu-brand span {
    font-size: 8px;
    font-weight: 700;

    letter-spacing: 1.6px;
}


.home-mobile-close {
    border: none;
    background: transparent;

    color: #ffffff;

    font-size: 32px;
    font-weight: 200;

    cursor: pointer;
}


.home-mobile-links {
    margin-top: 28px;

    display: flex;
    flex-direction: column;
}

.home-mobile-links a {
    padding: 17px 0;

    display: flex;
    justify-content: space-between;

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);

    color: #ffffff;
    text-decoration: none;

    font-size: 14px;
}

.home-mobile-links a.active {
    color: #ed1c24;
}


.home-mobile-join {
    margin-top: 28px;

    height: 52px;

    padding: 0 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: #ed1c24;

    border-radius: 9px;

    color: #ffffff;
    text-decoration: none;

    font-size: 11px;
    font-weight: 700;
}


.home-mobile-tagline {
    margin-top: auto;

    padding-top: 20px;

    border-top: 1px solid rgba(255, 255, 255, 0.08);

    color: rgba(255, 255, 255, 0.45);

    font-size: 8px;
    letter-spacing: 2px;
}


/* =========================================================
   FOOTER
========================================================= */

.home-footer {
    width: 100%;

    padding: 42px 5.4% 20px;

    background: #050505;

    border-top: 1px solid rgba(255, 255, 255, 0.08);
}


.home-footer-main {
    width: 100%;
    max-width: 1500px;

    margin: 0 auto;

    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 35px;
}


.home-footer-brand {
    display: flex;
    align-items: center;

    gap: 15px;
}

.home-footer-brand img {
    display: block;

    width: 58px;
    height: auto;
}

.home-footer-name {
    margin: 0 0 5px;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 2.4px;
}

.home-footer-location {
    margin: 0;

    color: rgba(255, 255, 255, 0.55);

    font-size: 11px;
}


.home-footer-social {
    display: flex;

    gap: 10px;

    flex-wrap: wrap;
}

.home-footer-social a {
    min-width: 94px;
    height: 42px;

    padding: 0 16px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;

    color: #ffffff;
    text-decoration: none;

    font-size: 11px;
    font-weight: 600;

    transition: 0.2s ease;
}

.home-footer-social a:hover {
    background: #ed1c24;
    border-color: #ed1c24;
}


.home-footer-bottom {
    width: 100%;
    max-width: 1500px;

    margin: 30px auto 0;

    padding-top: 16px;

    display: flex;
    justify-content: space-between;

    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.home-footer-bottom p {
    margin: 0;

    color: rgba(255, 255, 255, 0.42);

    font-size: 9px;

    letter-spacing: 1.2px;
}


/* =========================================================
   TABLET
   700px — 1100px
========================================================= */

@media (min-width: 700px) and (max-width: 1100px) {

    .home-hero-inner {
        padding: 0 4%;
    }

    .home-navbar {
        height: 92px;
        grid-template-columns: auto 1fr auto;
        gap: 20px;
    }

    .home-brand img {
        width: 58px;
    }

    .home-brand span {
        font-size: 5px;
        letter-spacing: 1.5px;
    }

    .home-desktop-nav {
        gap: 20px;
        justify-content: center;
    }

    .home-desktop-nav a {
        font-size: 13px;
        font-weight: 600;
    }

    .home-join-btn {
        width: 108px;
        height: 44px;
        padding: 0 14px;
        font-size: 9px;
    }

    /* TABLET HERO TEXT */

    .home-hero-copy {
        width: 72%;
        max-width: 720px;

        margin-left: auto;
        margin-right: auto;

        margin-top: auto;
        margin-bottom: 13vh;

        display: flex;
        flex-direction: column;

        align-items: flex-start;
        text-align: left;

        transform: none;
    }

    .home-eyebrow {
        justify-content: flex-start;
        margin-bottom: 26px;

        font-size: 11px;
        letter-spacing: 4px;

        text-align: left;
    }

    .home-eyebrow-line {
        width: 42px;
    }

    .home-hero-copy h1 {
        width: 100%;

        font-size: clamp(92px, 12vw, 140px);
        line-height: 0.82;
        letter-spacing: -6px;

        text-align: left;
    }

    .home-tagline {
        margin-top: 26px;

        font-size: 24px;

        text-align: left;
    }

    .home-hero-actions {
        margin-top: 30px;

        justify-content: flex-start;
    }

    .home-primary-btn {
        width: 220px;
        height: 60px;

        font-size: 12px;
    }

    .home-secondary-btn {
        width: 180px;
        height: 60px;

        font-size: 12px;
    }

}

/* =========================================================
   PHONE
   0 — 699px
========================================================= */

@media (max-width: 699px) {

    .home-hero {
        min-height: 100svh;

        background:
            linear-gradient(180deg,
                rgba(0, 0, 0, 0.20) 0%,
                rgba(0, 0, 0, 0.05) 38%,
                rgba(0, 0, 0, 0.38) 64%,
                rgba(0, 0, 0, 0.92) 100%),
            url("Assets/heroimagemobile.png");

        background-size: cover;
        background-position: center center;
    }


    .home-hero-inner {
        min-height: 100svh;

        padding: 0 14px;
    }


    .home-navbar {
        height: 78px;

        display: flex;
        justify-content: space-between;

        border-bottom: none;
    }


    .home-brand {
        align-items: flex-start;
    }

    .home-brand img {
        width: 53px;
    }

    .home-brand span {
        font-size: 5px;

        letter-spacing: 1.5px;
    }


    .home-desktop-nav,
    .home-join-btn {
        display: none;
    }


    .home-menu-btn {
        display: block;
    }


    .home-hero-copy {
        width: 100%;

        margin-top: auto;
        margin-bottom: 10vh;
    }


    .home-eyebrow {
        margin-bottom: 12px;

        gap: 10px;

        font-size: 7px;
        letter-spacing: 2.3px;
    }

    .home-eyebrow-line {
        width: 24px;
    }


    .home-hero-copy h1 {
        width: 100%;

        font-size: clamp(52px, 15vw, 72px);

        line-height: 0.82;

        letter-spacing: -3px;
    }


    .home-tagline {
        margin-top: 18px;

        font-size: 12px;
    }


    .home-hero-actions {
        width: 100%;

        margin-top: 18px;

        flex-direction: column;

        gap: 8px;
    }


    .home-primary-btn,
    .home-secondary-btn {
        width: 100%;
        height: 48px;

        border-radius: 7px;

        font-size: 10px;
    }


    .home-primary-btn {
        padding: 0 14px;
    }


    /* FOOTER PHONE */

    .home-footer {
        padding: 30px 16px 18px;
    }


    .home-footer-main {
        flex-direction: column;
        align-items: flex-start;

        gap: 24px;
    }


    .home-footer-social {
        width: 100%;

        display: grid;
        grid-template-columns: repeat(2, 1fr);

        gap: 8px;
    }


    .home-footer-social a {
        width: 100%;
        min-width: 0;

        height: 40px;

        font-size: 10px;
    }


    .home-footer-bottom {
        margin-top: 24px;

        flex-direction: column;

        gap: 6px;
    }

}


/* =========================================================
   EXTRA SMALL PHONE
========================================================= */

@media (max-width: 380px) {

    .home-hero-copy h1 {
        font-size: 50px;
    }

    .home-footer-social {
        grid-template-columns: 1fr 1fr;
    }

}

/* =========================================
   HOMEPAGE LOAD ANIMATIONS
========================================= */

body.home-animating .home-navbar {
    opacity: 0;
    transition: opacity 0.8s ease;
}

body.home-animating .home-eyebrow,
body.home-animating .home-hero-copy h1,
body.home-animating .home-tagline,
body.home-animating .home-hero-actions {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.8s ease,
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* FINAL POSITIONS */

body.home-animating.home-loaded .home-navbar {
    opacity: 1;
}

body.home-animating.home-loaded .home-eyebrow,
body.home-animating.home-loaded .home-hero-copy h1,
body.home-animating.home-loaded .home-tagline,
body.home-animating.home-loaded .home-hero-actions {
    opacity: 1;
    transform: translateY(0);
}

/* STAGGER */

body.home-animating .home-hero-copy h1 {
    transition-delay: 0.12s;
}

body.home-animating .home-tagline {
    transition-delay: 0.24s;
}

body.home-animating .home-hero-actions {
    transition-delay: 0.36s;
}

/* HERO IMAGE MOTION */

body.home-animating .home-hero {
    background-position: 75% center;
    transition: background-position 1.8s cubic-bezier(0.22, 1, 0.36, 1);
}

body.home-animating.home-loaded .home-hero {
    background-position: center center;
}

/* =========================================================
   HERO IMAGE ENTRANCE — OVERRIDE
   CSS ONLY
========================================================= */

@keyframes imaraHeroImageMove {
    0% {
        background-position:
            center center,
            85% center;
    }

    100% {
        background-position:
            center center,
            50% center;
    }
}

/* DESKTOP + TABLET */
@media (min-width: 700px) {

    .home-hero {
        animation: imaraHeroImageMove 1.8s cubic-bezier(0.22, 1, 0.36, 1) both;
    }

}