/*=============== GOOGLE FONTS ================*/
@import url('https://fonts.googleapis.com/css2?family=Kaushan+Script&family=Red+Hat+Display:ital,wght@0,300..900;1,300..900&display=swap');

/*========================= VARIABLE CSS ==============*/
:root{
    --header-height: 3.5rem;

    /*============ COLORS =============*/
    /*COLOR MODE HSL(HUE,SATURATION,LIGHTNESS)*/
    --first-color:hsl(79, 72%, 55%);
    --first-color-light:hsl(79, 97% , 77%);
    --first-color-alt:hsl(79, 67%, 52%);
    --first-color-dark:hsl(79, 63%, 50%);
    --first-color-gray:hsl(79, 6%, 64%);
    --title-color:hsl(180, 4%, 98%);
    --title-color-black:hsl(180, 4%, 12%);
    --text-color:hsl(180, 4%, 72%);
    --text-color-light:hsl(180, 4%, 65%);
    --body-color:hsl(180, 12%, 8%);

    /*============= FONT AND TYPOGRAPHY==========*/
    /*.5rem = 8px | 1rem = 16px ...*/
    --body-font:"Red Hat Display", sans-serif;
    --second-font:"Kaushan Script", cursive;
    --biggest-font-size: 2rem;
    --bigger-font-size: 1.5rem;
    --big-font-size: 1.5rem;
    --h1-font-size: 1.5rem;
    --h2-font-size: 1.25rem;
    --h3-font-size: 1rem;
    --normal-font-size: .938rem;
    --small-font-size: .813rem;
    --smaller-font-size: .75rem;


    /*============== Font Weight ==========*/
    --font-bold: 700;
    --font-black: 900;

    /*============ z index =========*/
    --z-tooltip: 10;
    --z-fixed: 100;
}

/* Responsive typography */
@media screen and (min-width: 1024px) {
    :root{
        --biggest-font-size: 6rem;
        --bigger-font-size: 3.5rem;
        --big-font-size: 2.75rem;
        --h1-font-size: 2.25rem;
        --h2-font-size: 1.5rem;
        --h3-font-size: 1.25rem;
        --normal-font-size: 1rem;
        --small-font-size: .875rem;
        --smaller-font-size: .813rem;
        --biggest-font-size: 6rem;
    }
}

/*===================== BASE ====================*/
*{
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html{
    scroll-behavior: smooth;
}



body,
button,
input{
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
}

body{
    background-color: var(--body-color);
    color: var(--text-color);
}

h1,h2,h3{
    color: var(--title-color);
    font-weight: var(--font-bold);
}
ul{
    list-style: none;
}
a{
    text-decoration: none;
}
img{
    max-width: 100%;
    height: auto;
}
/*================= REUSABLE CSS CLASSES=================*/
.container{
    /* Centered, responsive page container used across the site. */
    max-width: 1200px;
    width: 100%;
    margin: 0 auto; /* centers on all screens */
    padding-left: 1.5rem; /* consistent horizontal gutter */
    padding-right: 1.5rem;
}
.section{
    padding: 4.5rem 0.2rem;
}
.section__data{
    display: flex;
    flex-direction: column;
    row-gap: .75rem;
    text-align: center;
    margin-bottom: 3rem;
}
.section__title,
.section__title-border{
    font-size: var(--big-font-size);
    letter-spacing: 1.5px;
}

.section__subtitle{
font-size: var(--h2-font-size);
font-family: var(--body-font);
font-weight: 600;
letter-spacing: 0.8px;
color: var(--first-color);
margin-bottom: 0.5rem;
}

.section__titles{
    display: flex;
    column-gap: .75rem;
    justify-content: center;
}

/* Utility spacers to replace inline spacer divs */
.spacer{ display:block; width:100%; }
.spacer-sm{ height:1rem; }
.spacer-md{ height:1.25rem; }

/* Pricing period small text */
.pricing__period{ font-size:.6rem; color:var(--text-color); }

.section__title-border{
    -webkit-text-stroke: 1px var(--text-color);
    color: transparent;
}
.grid{
    display: grid;
    gap: 1.5rem;
}

.main{
    overflow: hidden; /*FOR ANIMATION SCROLLREVEAL*/
    padding-bottom: 4rem; /* give space between main content and footer */
}

.reveal{
    opacity: 0;
    transform: translateY(1.5rem);
    transition: opacity .7s ease, transform .7s ease;
}

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

.reveal-stagger{
    opacity: 0;
    transform: translateY(1rem) scale(.96);
    transition: opacity .55s ease, transform .55s cubic-bezier(.22, 1, .36, 1);
    transition-delay: var(--reveal-delay, 0s);
}

.reveal-stagger.is-visible{
    opacity: 1;
    transform: translateY(0) scale(1);
}

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

    .reveal-stagger,
    .about-reveal-visual,
    .about-reveal-content{
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.color-red{
    color: hsl(0, 80%, 64%);
}

.color-green{
    color: var(--first-color);
}
/*================= HEADER AND NAV =====================*/
.header{
    width: 100%;
    background-color: transparent;
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-fixed);
    transition: background .3s;
}
.nav{
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo,
.nav__toggle{
    color: var(--title-color);
    display: flex;
}

.nav__logo{
    align-items: center;
    column-gap: .5rem;
    font-weight: var(--font-bold);
    
}

.nav__logo img{
    width:3rem;
}

.nav__toggle{
    font-size:1.25rem;
    cursor: pointer;
    
}

@media screen and (max-width: 1023px){
    .nav__menu{
        position: fixed;
        background-color: hsla(180, 12%, 8%, .8);
        backdrop-filter: blur(32px);
        --webkit-backdrop-filter: blur(32px);
        top: 0;
        right:-100%;
        width: 80%;
        height: 100%;
        border-left: 2px solid var(--first-color-gray);
        transition: right .3s;
    }
    
}

.nav__list{
    padding: 5rem 0 0 3rem;
    display: flex;
    flex-direction: column;
    row-gap: 2.5rem;
}

.nav__link{
    color: var(--title-color);
    transition: color .3s;
}
.nav__link:hover{
    color: var(--first-color);
}
.nav__close{
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    color: var(--title-color);
    cursor: pointer;
}
.nav .nav__button{
    background-color: var(--title-color);
    border: none;
}
/*SHOW MENU*/

.show-menu{
    right:0;
}
/*CHANGE BACKGROUND HEADER*/

.bg-header{
    background-color: var(--body-color);
    box-shadow: 0 4px 8px hsla(180, 12%, 4%, .3);
}
/*ACTIVE LINK*/
.active-link{
    color: var(--first-color);
}

/*==================HOME=====================*/
.home{
    position: relative;
    padding-bottom: 0;
}

.home__container{
    padding-top: 4rem;
    row-gap: 3rem;
}

.home__data{
    text-align: center;
}

.home__subtitle{
    font-size: var(--bigger-font-size);
    -webkit-text-stroke: 1px var(--title-color);
    color: transparent;
}

.home__title{
    font-size: var(--biggest-font-size);
    font-weight: var(--font-black);
    margin: .5rem 0;
}

.home__subtitle,
.home__title{
    letter-spacing: 1.5px;
}

.home__description{
    margin-bottom: 2.5rem;
}

.home__triangle{
    height: 325px;
    position: absolute;
    right: 0;
    bottom: 0;
    clip-path: polygon(100% 0, 0 100%, 100% 100%);
}

.home__triangle-1{
    width: 105px;
    background-color: var(--first-color);

}


.home__triangle-2{
    width: 205px;
    background-color: var(--first-color-alt);

}


.home__triangle-3{
    width: 305px;
    background-color: var(--first-color-dark);

}

.home__img{
    display: block;
    position: relative;
    z-index: 1;
    width: 350px;
    margin: 0 auto;
}/*all this .home triangle does is actually design that triangle design behind the home image/

/*all this .home triangle does is actually design that triangle design behind the home image*/

/*================BUTTN===============*/
.button{
    display: inline-block;
    background-color: var(--first-color);
    padding: 18px 32px;
    border: 2px solid var(--first-color-light);
    color: var(--title-color-black);
    font-weight: var(--font-bold);
    cursor: pointer;
    transition: background .3s;
}
.button:hover{
    background-color: var(--first-color-alt);
}

.button i{
    font-size: 1.25rem;
    transition: transform .3s;
}

.button__flex{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    column-gap: .5rem;
}

.button__flex:hover i{
    transform: translateX(.25rem);
}

/*=================LoGoS=============*/
.logos__container{
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    justify-items: center;
}

.logos__img{
    width: 120px;
}


/*==============ABOUT US==============*/
.about{
    position: relative;
    overflow: hidden;
}

.about__container{
    align-items: center;
    row-gap: 4rem;
}

.about__visual{
    position: relative;
    min-height: 400px;
    width: min(100%, 390px);
    margin: 0 auto;
}

.about-reveal-visual,
.about-reveal-content{
    opacity: 0;
    transition: opacity .8s ease, transform .8s cubic-bezier(.22, 1, .36, 1);
}

.about-reveal-visual{
    transform: translateX(-2rem);
}

.about-reveal-content{
    transform: translateX(2rem);
    transition-delay: .12s;
}

.about.is-visible .about-reveal-visual,
.about.is-visible .about-reveal-content{
    opacity: 1;
    transform: translateX(0);
}

.about__image-frame{
    position: absolute;
    overflow: hidden;
    background-color: var(--first-color-gray);
    border: 8px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.32);
}

.about__image-frame::after{
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(8, 12, 12, 0.3));
    pointer-events: none;
}

.about__image-frame--portrait{
    top: 0;
    left: 0;
    width: 68%;
    height: 350px;
    border-radius: 1.5rem 1.5rem 0.3rem 1.5rem;
    transform: rotate(-3deg);
}

.about__image-frame--fitness{
    right: 0;
    bottom: 0;
    width: 57%;
    height: 260px;
    border-radius: 0.3rem 1.5rem 1.5rem 1.5rem;
    transform: rotate(4deg);
}

.about__image{
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.about__image-frame--portrait .about__image{
    object-position: center 20%;
}

.about__image-frame--fitness .about__image{
    object-position: center 18%;
}

.about__signature{
    position: absolute;
    left: 2rem;
    bottom: 1.5rem;
    z-index: 2;
    padding: 0.75rem 1rem;
    background-color: var(--first-color);
    color: var(--title-color-black);
    font-size: 0.72rem;
    font-weight: var(--font-bold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.about__signature span{
    margin: 0 0.35rem;
    color: var(--title-color);
}

.about__content .section__data{
    margin-bottom: 1.5rem;
}

.about__eyebrow{
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 1rem;
    color: var(--first-color);
    font-size: 0.72rem;
    font-weight: var(--font-bold);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.about__eyebrow::before{
    content: "";
    width: 2.25rem;
    height: 1px;
    background-color: var(--first-color);
}

.about__lead{
    max-width: 620px;
    margin-bottom: 1.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--title-color);
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    font-weight: 600;
    line-height: 1.65;
}

.about__story{
    display: grid;
    gap: 1.15rem;
    max-width: 640px;
    padding-left: 1.25rem;
    border-left: 1px solid rgba(79, 97%, 77%, 0.28);
    color: var(--text-color);
    line-height: 1.8;
    font-size: 0.96rem;
}

.about__story p{
    margin: 0;
}

.about__quote{
    max-width: 580px;
    margin: 2rem 0 0;
    padding: 1.25rem 1.5rem;
    border: 1px solid rgba(79, 97%, 77%, 0.2);
    border-left: 3px solid var(--first-color);
    background: linear-gradient(135deg, rgba(79, 97%, 77%, 0.08), rgba(255, 255, 255, 0.02));
    color: var(--first-color-light);
    font-size: 1.05rem;
    font-weight: var(--font-bold);
    line-height: 1.6;
}
/*==============CHOOSE================*/
.choose{
    padding-bottom: 0;
}

.choose__overflow{
    position: relative;
}

.choose__container{
    row-gap: 3rem;
}

.choose__content .section__data{
    margin-bottom: 2rem;
}

.choose__description{
    text-align: center;
    margin-bottom: 2rem;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.choose__data{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.choose__group{
    text-align: center;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(79, 97%, 77%, 0.03));
    border: 1px solid rgba(79, 97%, 77%, 0.18);
    border-radius: 1rem;
    padding: 1.5rem 1rem;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.choose__group:hover{
    transform: translateY(-3px);
    border-color: rgba(79, 97%, 77%, 0.4);
    box-shadow: 0 18px 30px rgba(79, 97%, 77%, 0.08);
}

.choose__number{
    font-size: 1.05rem;
    font-family: var(--body-font);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--first-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.choose__subtitle{
    font-size: var(--small-font-size);
    color: var(--text-color);
    line-height: 1.5;
}

.choose__triangle{
    height: 325px;
    position: absolute;
    left: 0;
    bottom: 0;
    clip-path: polygon(0 0, 0 100%, 100% 100%);
}

.choose__triangle-1{
    width: 305px;
    background-color: var(--first-color);
}

.choose__triangle-2{
    width: 205px;
    background-color: var(--first-color-alt);
}

.choose__triangle-3{
    width: 105px;
    background-color: var(--first-color-dark);
}

.choose__images{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0 0;
}

.choose__img{
    width: min(100%, 300px);
    display: block;
    position: relative;
    z-index: 1;
    margin: 0 auto;
    filter: drop-shadow(0 20px 30px rgba(9, 12, 12, 0.5));
}
/*================PRICING============*/
.pricing__container{
    grid-template-columns: 285px;
    justify-content: center;
    row-gap: 2rem;
}

.pricing__card,
.pricing__shape,
.pricing__list{
    display: grid;
}

.pricing__card{
    row-gap: 2rem;
    background-color: hsla(79, 6%, 64%, .07);
    padding: 2rem 1.5rem;
    text-align: center;
}

.pricing__img{
    width: 35px;
}

.pricing__shape{
    width: 60px;
    height: 60px;
    background-color: var(--first-color-gray);
    border-radius: 50%;
    place-items: center;
    margin: 0 auto 1rem;
}

.pricing__title{
    font-size: var(--h3-font-size);
    color: var(--text-color);
    margin-bottom: 1rem;
}

.pricing__number{
    font-size: var(--h1-font-size);
}

.pricing__list{
    row-gap: 1rem;
    padding: 0 1rem;
}

.pricing__item{
    display: flex;
    column-gap: .5rem;
    align-items: center;
    font-size: var(--small-font-size);
    justify-content: center;
}

.pricing__item i{
    font-size: 1.25rem;
    color: var(--first-color);
}

.pricing__item--standard {
    color: rgba(17, 26, 26, 0.9);
    font-weight: 700;
}

.pricing__item--standard-muted {
    color: rgba(17, 26, 26, 0.8);
    font-weight: 600;
}

.pricing__item-opacity{
    opacity: .55;
}

.pricing__button{
    background-color: var(--title-color);
    margin: 0 1.5rem;
}

.pricing__button:hover{
    background-color: var(--title-color);
}

.pricing__card-active{
    background-color: var(--first-color);
    border: 2px solid var(--first-color-light);
}

.pricing__card-active .pricing__shape{
    background-color: var(--first-color-light);
}

.pricing__card-active .pricing__item i{
    color: var(--title-color);
}

.pricing__card-active .pricing__title,
.pricing__card-active .pricing__number,
.pricing__card-active .pricing__item{
    color: var(--title-color);
}

.pricing__card-active .pricing__period--standard{
    color: #172019;
    font-weight: 800;
}

/*===========CALCULATE BMI=============*/
.calculate{
    padding-bottom: 0;
}

.calculate__container{
    row-gap: 4rem;
}

.calculate__content .section__titles{
    margin-bottom: 2rem;
    text-align: center;
}

.calculate__description{
    text-align: center;
    margin-bottom: 2.5rem;
}

.calculate__form{
    display: grid;
    row-gap: 1rem;
}

.calculate__box{
    position: relative;
    border: 2px solid var(--first-color-light);
}

.calculate__input{
    width: 100%;
    background: transparent;
    padding: 20px 56px 20px 24px;
    outline: none;
    border: none;
    color: var(--text-color);
}

.calculate__input::-webkit-outer-spin-button,
.calculate__input::-webkit-inner-spin-button{
    -webkit-appearance: none;
    margin: 0;
}

.calculate__input[type=number]{
    appearance: textfield;
}

.calculate__label{
    position: absolute;
    right: 1.5rem;
    top: 1.25rem;
    color: var(--title-color);
}

.calculate__form .button{
    margin-top: 1.5rem;
}

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

.calculate__summary-card{
    width: 100%;
    max-width: 360px;
    background: linear-gradient(145deg, rgba(79, 72%, 55%, 0.12), rgba(180, 12%, 8%, 0.94));
    border: 1px solid rgba(79, 97%, 77%, 0.35);
    border-radius: 1.25rem;
    padding: 2rem 1.5rem;
    box-shadow: 0 18px 35px rgba(79, 72%, 55%, 0.12);
}

.calculate__summary-tag{
    margin: 0 0 0.75rem;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--first-color-light);
}

.calculate__summary-card h3{
    margin: 0 0 1.25rem;
    color: var(--title-color);
    font-size: 1.6rem;
}

.calculate__summary-list{
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.85rem;
}

.calculate__summary-list li{
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 0.9rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-color);
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.calculate__summary-list strong{
    color: var(--title-color);
}

.calculate__note{
    margin: 1rem 0 0;
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--text-color-light);
}

.calculate__message{
    position: absolute;
    transform: translateY(1rem);
}
/*================= CALCULATE BMI ENDS ================*/

/*================= FOOTER ===================*/
.footer__container{
    row-gap: 2rem;
    padding-top: 1rem;
    
}

.footer__logo,
.footer__description{
    color: var(--title-color);
}

.footer__logo,
.footer__form,
.footer__social{
    display: flex;
}

.footer__logo{
    align-items: center;
    column-gap: .5rem;
    font-weight: var(--font-bold);
    margin-bottom: 1rem;
}

.footer__logo img{
    width: 3rem;
}

.footer__description{
    margin-bottom: 1.25rem;
}

.footer__brand{
    display: grid;
    align-content: start;
    gap: 1rem;
}

.footer__cta{
    background: linear-gradient(135deg, rgba(79, 97%, 77%, 0.08), rgba(255,255,255,0.02));
    border: 1px solid rgba(79, 97%, 77%, 0.2);
    border-radius: 1rem;
    padding: 1.25rem 1rem;
}

.footer__cta .footer__title{
    margin-bottom: 0.75rem;
    font-size: 1rem;
    letter-spacing: 0.08em;
}

.footer__cta p{
    margin: 0 0 1rem;
    color: var(--text-color);
    line-height: 1.6;
    font-size: var(--small-font-size);
}

.footer__benefits{
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    display: grid;
    gap: 0.45rem;
}

.footer__benefits li{
    position: relative;
    padding-left: 1.1rem;
    color: var(--title-color);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.footer__benefits li::before{
    content: "•";
    position: absolute;
    left: 0;
    color: var(--first-color);
}

.footer__cta-button{
    padding: 0.85rem 1.25rem;
    font-size: 0.85rem;
    border-radius: 0.8rem;
}

.footer__form{
    flex-direction: column;
    gap: 1.25rem;

}

.footer__input{
    padding: 20px 56px 20px 24px;
    border: 2px solid var(--first-color-light);
    background: transparent;
    color: var(--text-color);
    outline: none;
}

.footer__content,
.footer__links,
.footer__group{
    display: grid;
}

.footer__content{
    grid-template-columns: repeat(2, max-content);
    gap: 2.5rem 3.5rem;
}

.footer__title{
    font-size: var(--h3-font-size);
    margin-bottom: 1.5rem;
}

.footer__links{
    row-gap: .75rem;
}

.footer__link{
    color: var(--text-color);
    transition: color .3s;
}

.footer__link:hover{
    color: var(--first-color);
}

.footer__group{
    margin-top: 2rem;
    justify-items: center; /* center on mobile; will change on larger screens */
    row-gap: 1.25rem;
}

/* Make footer less tall when used as a section on the index page */
.footer.section{
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.footer__social{
    column-gap: 1.25rem;
}

.footer__social-link{
    display: inline-flex;
    padding: .35rem;
    background-color: var(--first-color);
    border-radius: 50%;
    font-size: 1.25rem;
    color: var(--title-color-black);
    transition: background .4s;
}

.footer__social-link:hover{
    background-color: var(--first-color-dark);
}

.footer__copy{
    font-size: var(--smaller-font-size);
    color: var(--text-color-light);
}

.footer__message{
    position: absolute;
    transform: translateY(1rem);
}
/*footer ends*/

/*================= SCROOL BAR ===================*/
::-webkit-scrollbar{
    width: .6rem;
    border-radius: .5rem;
    background-color: hsl(79, 4%, 15%);
}

::-webkit-scrollbar-thumb{
    background-color: hsl(79, 4%, 15%);
    border-radius: .5rem;
}


::-webkit-scrollbar-thumb:hover{
    background-color: hsl(79, 4%, 35%);    
}

/*================= SCROLL UP ===================*/
.scrollup{
    position: fixed;
    right: 1rem;
    bottom: -30%;
    background-color: var(--first-color);
    display: inline-flex;
    padding: .35rem;
    color: var(--title-color-black);
    font-size: 1.25rem;
    z-index: var(--z-tooltip);
    transition: .3s;
}

.scrollup:hover{
    transform: translateY(-.25rem);
}

/*SHOW SCROLL UP*/
.show-scroll{
    bottom: 3rem;
}

/*================= MEDIA QUERIES ===================*/
/*For small devices*/
@media screen and (max-width: 340px){
    .container{
        margin-left: auto;
        margin-right: auto;
    }

    .section__titles{
        flex-direction: column;
        row-gap: .25rem;
    }

    .home__triangle{
        height: 255px;
    }

    .home__triangle-3,
    .choose__triangle-1{
        width: 260px;
    }

    .choose__img{
        width: 195px;
    }   

    .about__visual{
        min-height: 340px;
    }

    .about__image-frame--portrait{
        height: 275px;
    }

    .about__image-frame--fitness{
        height: 210px;
    }

    .pricing__container{
        grid-template-columns: 250px;
    }

    .pricing__card{
        padding: 1.5rem;
    }

    .footer__content{
        grid-template-columns: 1fr;
    }


}


/*For medium devices*/
@media screen and (min-width: 768px){
    .nav__menu{
        width: 50%;
    }

    .home__container,
    .choose__container{
        grid-template-columns: repeat(2,1fr);
        align-items: center;
    }

    .home__data,
    .choose__content .section__data,
    .choose__description,
    .calculate__description{
        text-align: initial;
    }

    .logos__container{
        grid-template-columns: repeat(4, 1fr);
    }

    .about__container{
        grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
        column-gap: 3rem;
    }

    .about__visual{
        min-height: 400px;
        width: min(100%, 360px);
    }
    
    .choose__content{
        order: 1;
    }

    .choose__data{
        justify-items: flex-start ;
    }

    .choose__content .section__titles,
    .calculate__content .section__titles{
        justify-content: initial;
    }

    .pricing__container{
        grid-template-columns: repeat(2, 285px);
        gap: 2.5rem;
    }

    .calculate__container{
        grid-template-columns: 1fr .8fr;
        align-items: center;
    }

    .calculate__form{
        grid-template-columns: repeat(2, 1fr);
        column-gap: 1.5rem;
    }

    .calculate__form .button{
        grid-column: 1 / 3;
    }

    .footer__container{
        grid-template-columns: repeat(2, max-content);
        justify-content: space-between;
    }

    .footer__content{
        grid-template-columns: repeat(3, max-content);

    }

    /* slightly larger calculate image on medium screens */
    .calculate__img{ max-width: 340px; }
}


/*For large devices*/
@media screen and (min-width: 1023px){
    .nav{
        height: calc(var(--header-height) + 2rem);
    }

    .nav__menu{
        width: initial;
    }

    .nav__toggle,
    .nav__close{
        display: none;

    }

    .nav__list{
        flex-direction: row;
        align-items: center;
        padding: 0;
        column-gap: 4rem;
    }

    .section{
        padding: 7rem 0 0;
    }
    .section__subtitle{
        font-size: 2rem;
    }

    .about__container{
        grid-template-columns: minmax(360px, 0.82fr) minmax(0, 1.18fr);
        column-gap: 4rem;
    }

    .about__visual{
        min-height: 440px;
        width: min(100%, 400px);
    }

    .about__image-frame--portrait{
        height: 380px;
    }

    .about__image-frame--fitness{
        height: 285px;
    }

    .home__container{
        grid-template-columns: repeat(2, max-content);
        align-items: center;
    }

    .home__title{
        margin: .75rem;
    }

    .home__description{
        width: 445px;
        margin-bottom: 3rem;
    }

    .home__images{
        justify-self: end;
        margin-left: 5.25rem;
    }

    .home__img{
        width: 550px;
        transform: translateX(4.75rem);
    }

    .home__triangle{
        height: 700px;
    }
    .home__triangle-1{
        width: 145px;
    }
    .home__triangle-2{
        width: 345px;
    }
    .home__triangle-3{
        width: 545px;
    }

    .logos{
        padding: 3.5rem 0 1rem;
    }

    .logos__img{
        width: 190px;
    }

    .choose__overflow{
        overflow: hidden;
    }
    .choose__img{
        width: 350px;
    }

    .choose__triangle{
        height: 700px;
    }
    .choose__triangle-1{
        width: 545px;
    }
    .choose__triangle-2{
        width: 345px;
    }
    .choose__triangle-3{
        width: 145px;
    }
    .footer{
        padding-bottom: 3rem;
    }
    .footer__form{
        flex-direction: row;
    }
    .footer__content{
        column-gap: 5rem;
    }

    .footer__group{
        justify-content: space-between;
        grid-template-columns: repeat(2, max-content);
        margin-top: 7rem;
    }

    .footer__social{
        order: 1;
    }

}

@media screen and (min-width: 1150px){
    .container{
        /* keep centered but allow a larger max width on wider screens */
        max-width: 1400px;
    }

    .home__data{
        padding-top: 3rem;
    }

    .home__images{
        transform: translateX(0);
    }

    .home__img{
        width: 700px;
        transform: translateX(2rem);
    }

    .home__triangle{
        height: 995px;
    }
    .home__triangle-1{
        width: 205px;
    }
    .home__triangle-2{ 
        width: 505px;
    }
    .home__triangle-3{
        width: 705px;
    }
    .program__container{
        grid-template-columns: repeat(4, 245px);
        padding: 3rem 0;
    }        
    .program__card{
        padding: 2rem;
    }
    .program__description{
        font-size: var(--normal-font-size);
    }
    .choose__container{
        column-gap: 8rem;
    }
    .choose__img{
        width: 450px;
        margin: 0 0 0 auto;
    }
    .choose__triangle{
        height: 800px;
    }
    .choose__images{
        position: relative;
    }
    .choose__data{
        grid-template-columns: repeat(2,max-content);
        gap: 2.5rem 8rem;
    }
    .choose__description{
        width: 418px;
        margin-bottom: 3.5rem;
    }

    .pricing__container{
        padding-top: 3rem;
        grid-template-columns: repeat(3, 320px);
    }
    .pricing__card{
        padding: 2rem 3.5rem;
        row-gap: 2.5rem;
    }
    .calculate__description{
        width: 415px;
    }
    .calculate__form{
        width: 505px;
    }
    .calculate__img{
        max-width: 420px;
    }
    .scrollup{
        right: 3rem;
    }
}

/* Global responsive helpers and overrides to avoid fixed-width overflow */
.container img, .container video, .container svg{
    max-width: 100%;
    height: auto;
}

.video-protected{
    position: relative;
}

.video-protection-watermark{
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 20;
    transform: translate(-50%, -50%) rotate(-18deg);
    color: rgba(255, 255, 255, 0.28);
    font-size: clamp(.65rem, 1.5vw, .95rem);
    font-weight: 800;
    letter-spacing: .12em;
    line-height: 1.4;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
}

/* Cap commonly fixed large images so they scale on smaller screens and don't overflow
   Use site-specific classes here too (these selectors are intentionally broad to
   gently override rigid pixel widths set elsewhere). */
.home__img, .choose__img, .logos__img, .pricing__img{
    max-width: 100%;
    height: auto;
}

/* Ensure form controls never overflow their grid/column containers */
input, textarea, select, button{
    max-width: 100%;
    box-sizing: border-box;
}

/* Make grids behave sensibly on very large screens */
@media (min-width: 1600px){
    .container{ max-width: 1700px; }
    .grid{ gap: 2rem; }
}

/* Small devices: tighten container gutters */
@media screen and (max-width: 420px){
    .container{ padding-left: 1rem; padding-right: 1rem; }
}