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

/* * { border: 1px solid red; } */

body {
    margin: 0;
    font-size: 1rem;
    font-family: "Poppins", sans-serif;
    color: #fff;
    background-color: #191919;
}

img {
    max-width: 100%;
}

h1 {
    font-size: 2.75rem;
    font-weight: 500;
    text-align: center;
    margin: 0;
}

.hero__text {
    text-align: center;
    font-size: 2rem;
    margin: 0;
}

h2 {
    font-family: "Chivo", sans-serif;
    font-size: 2rem;
    font-weight: 700;
}

h3 {
    font-family: "Chivo", sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0; 
}

.subpage__text {
    font-size: 1.25rem;
}

.refund-text {
    font-size: 1.75rem;
    font-weight: bold;
    text-align: center;
}

.text-dark {
    color: #EECD1B;
}

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

.text-bold {
    font-weight: bold;
}

.text-italic {
    font-style: italic;
}

.btn {
    display: inline-block;
    text-decoration: none;
    text-transform: uppercase; 
    color: #fff;
    font-family: "Chivo", sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    background-color: #EECD1B;
    margin: 0;
    padding: .5em 1.5em;
    border-radius: 100px;
}

.btn:hover,
.btn:focus,
.nav__link--button:hover,
.nav__link--button:focus {
    background: #C8B100;
    opacity: 1;
}

.container {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1em 0;
    position: relative;
}

header {
    background: #191919;
    text-align: center;
}

.nav {
    width: 100%;
}

.nav-toggle {
    cursor: pointer;
    border: 0;
    width: 3em;
    height: 3em;
    padding: 0em;
    border-radius: 50%;
    background: #191919;
    color: white;
    transition: opacity 250ms ease;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.nav-toggle:focus,
.nav-toggle:hover {
    opacity: .75;
}

.hamburger {
    width: 50%;
    position: relative;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    margin: 0 auto;
    height: 3px;
    background: white;
}

.hamburger::before,
.hamburger::after {
    content: '';
    width: 100%;
}

.hamburger::before {
    transform: translateY(-6px);
}

.hamburger::after {
    transform: translateY(3px);
}

.nav {
    visibility: hidden;
    height: 0;
    position: absolute;
    font-size: 1rem;
}

.nav--visible {
    visibility: visible;
    height: auto;
    position: relative;
}

.nav__list {
    display: flex;
    flex-direction: column;
    gap: 1em;
    margin: 2em 0 0 0;
    padding: 0;
    list-style: none;
    align-items: flex-start;
}

.nav__item {
    font-family: "Chivo", sans-serif;
    font-weight: 700;
    margin-top: .75em;
    list-style-type: none;
}

.nav__link {
    color: white;
    text-transform: uppercase;
    text-decoration: none;
    position: relative;
}

.nav__link--button {
    padding: 1em 2em;
    background: #EECD1B;
    color: #fff;
    border-radius: 100px;
}

.nav__link:not(.nav__link--button)::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: #C8B100;
    transition: height 0.3s ease;
}

.nav__link:not(.nav__link--button):hover::before,
.nav__link:not(.nav__link--button).active::before {
    height: 60%;
}

.logo {
    height: 30px;
}

.dropdown {
    display: none;
    flex-direction: column;
}


/* .dropdown--visible {
    display: flex;
} */

.nav__item--dropdown .dropdown {
    display: none;
    flex-direction: column;
    background: #191919;
    border-radius: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.nav__item--dropdown:hover .dropdown {
    display: flex;
}

.dropdown li {
    margin: 0;
}

.dropdown a {
    display: block;
    padding: 0.75em 1.5em;
    color: white;
    text-decoration: none;
    white-space: nowrap;
    text-align: left;
    padding-left: 1.5em;
}

.nav__item--dropdown {
    position: relative;
    z-index: 999;
}

.nav__item--dropdown.active .dropdown {
    display: flex;
}

.dropdown .nav__link {
    text-transform: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.dropdown-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1rem;
    margin-left: 0.5em;
    cursor: pointer;
}

.dropdown-toggle:focus,
.dropdown-toggle:hover {
    opacity: 0.7;
}

.nav-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    position: absolute;
    top: 1em;
    left: 1em;
    cursor: pointer;
    z-index: 1001;
    display: block;
}

.dropdown-link {
    pointer-events: auto;
}

.dropdown-header {
    display: flex;
    align-items: center;
}

.hero {
    background-image: url(img/joe-hero-img3.png);
    background-size: cover;
    height: 100vh;
}

.hero__content {
    margin-top: 20%;
}

.hero-btn {
    margin-top: 0;
    padding: .75em 3em;
}

.training-philosophy {
    text-align: center;
}

.training__philosophy--subhead {
    margin-bottom: 0;
}

.icon {
    width: 100px;
}

.col {
    margin-top: 4em;
}

.testimonials {
    margin: 4em 0;
    text-align: center;
}

.testimonials-subhead {
    font-size: 1.25rem;
}

.testimonial-text {
    color: #D9E3EA;
}

footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4em 0;
    background-size: cover;
}

.footer-home {
    background-image: url(img/home-footer-img.jpg);
}

.footer-clients {
    background-image: url(img/joe-hero-img3.png);
}

.footer__content {
    margin: 0 auto;
}

.footer-btn {
        margin-top: 5%;
        padding: 1em 2em;
    }

.price {
    font-size: 1.5rem;
    display: block;
    margin-top: 5%;

}

.section__one,
.section__two,
.FAQs {
    max-width: 1100px;
    margin: 0 auto;
}

.section__one--title {
    font-size: 4.5rem;
    font-family: "Chivo", sans-serif;
    font-weight: 700;
}

.section__two--title {
    text-align: center;
}

.section__text {
    font-size: 1.25rem;
    margin: 0 auto;
    padding: 0;
}

.section__two--btn {
    display: block;
    padding: .75em 3em;
    text-transform: none;
    text-align: center;
    margin: 10% auto 0 auto;
}

hr {
    margin: 2em auto;
}

.reviews__title--two {
    font-size: 3rem;
    font-family: "Chivo", sans-serif;
    font-weight: 700;
}

.client-name {
    font-family: "Poppins", sans-serif;
    font-weight: bold;
    font-size: 1.25rem;
    color: #EECD1B;
}

.client-text {
    font-size: 1.25rem;
    text-align: left;
    color: #D9E3EA;
}

.client__text--dark {
    color: #000;
}

.client-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 20%;
    flex-shrink: 0;
    margin: 2.5% auto 0 auto;
}

.subpage-title {
    font-size: 3rem;
    margin-bottom: 5%;
}

.subpage-img2 {
    display: none;
}

.subpage-btn {
        display: block;
        margin: 5% auto 0 auto;
        padding: 1em 2em;
        text-align: center;
        width: fit-content;
    }

.features {
    text-align: center;
}

.payment-options {
    padding-bottom: 100px;
}

.payment-box {
    padding: .5em 1.5em;
    background-color: #ececec;
    color: #000;
}

.FAQs {
    padding-bottom: 3em;
}

.faqs-title {
    text-align: center;
}

.subpage__progress--title {
    text-align: center;
    padding-bottom: 5%;
}

.client-progress-img {
    display: flex;
}

.testimonial-box {
    background-color: #393939;
    padding: 1em 1em;
    border-radius: 24px;
}

.bodyweight-progress-img {
    margin-top: 5%;
    border-radius: 16px;
}

video {
    max-width: 320px;
}

.footer__cta {
    max-width: 60%;
    margin: 0 auto;
}

.footer__cta--text {
    font-weight: bold;
}

.contact {
    height: 100vh;
    background-size: cover;
    background-image: url(img/joe-hero-img3.png);
    text-align: center;
}

form {
    font-family: "Poppins", sans-serif;
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: .5em;
    font-weight: 500;
}

.contact-inputs {
    height: 50px;
    padding-left: 25px;
    font-weight: 500;
    color: #666;
    border: 1px solid black;
    border-radius: 50px;

}

.contact-inputs::placeholder {
    font-family: "Poppins", sans-serif;
    color: #a9a9a9;
}

.message-input {
    height: 100px;
    padding-left: 25px;
    font-weight: 500;
    color: #666;
    border: 1px solid black;
    border-radius: 24px;

}

.message-input::placeholder {
    font-family: "Poppins", sans-serif;
    color: #a9a9a9;
}

form input:focus,
form textarea:focus {
    border: 2px solid #EECD1B;
    outline: none;
}

button {
    border: none;
}

.email-text {
    font-size: 1.25rem;
    font-weight: bold;
    color: #EECD1B;
    text-decoration: underline;
}

.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}





@media (min-width: 1000px) {

    body {
        font-size: 1.75rem;
    }

    h1 {
        font-size: 5.625rem;
    }

    h2 {
        font-size: 3rem;
    }

    .row {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 3em;
    }

    .row_2 {
        display: flex;
        align-items: flex-start;
        justify-content: center;
        gap: 5em;
    }

    .row_3 {
        display: flex;
        align-items: flex-start;
        justify-content: center;
        gap: .5em;
    }

    .row_4 {
        display: flex;
        align-items: flex-start;
        justify-content: space-evenly;
        gap: 1em;
    }

    .row_5 {
        display: flex;
        align-items: flex-start;
        justify-content: center;
        gap: 3em;
    }

    .habit-btn {
        margin-top: 0;
    }

    .payment-box {
        padding: .5em 5em;
    }

    .testimonial-box {
        display: flex;
        gap: 1em;
        max-width: 50%;
    }

    .bodyweight-progress-box {
        max-width: 30%;
    }

    header .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .section-title {
        order: 1;
        flex: 1;
        margin-bottom: 0;
    }

    .training__philosophy--subhead {
        margin-bottom: 2em;
    }

    .testimonials-subhead {
        font-size: 2rem;
        margin-right: 20%;
    }

    .about-img-1 {
        order: 3;
        flex: 1;
        max-width: 45%;
    }

    .about-img-2 {
        order: 2;
        flex: 1;
        max-width: 45%;
        margin-top: 50px;
    }

    .about__text {
        order: 2;
        flex: 1;
    }

    .col {
        max-width: 300px;
        margin-top: 0;
    }

    .col2 {
        order: 2;
    }

    .nav-toggle {
        display: none;
    }

    header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 120px;
    }

    .logo {
        width: 400px;
        display: flex;
        align-items: center;
    }

    .nav {
        visibility: visible;
        height: auto;
        position: static;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 2em;
    }

    .nav__list {
        display: flex;
        flex-direction: row;
        gap: 2em;
        margin: 0;
        padding: 0;
    }

    .nav__item {
        margin-top: 0;
    }

    .nav__item--dropdown {
        position: relative;
    }

    .nav__item--dropdown:hover .dropdown {
        display: flex;
        flex-direction: column;
        position: absolute;
        background: #191919;
        padding: 1em;
        border-radius: 8px;
        top: 100%;
        left: 0;
        z-index: 999;
    }

    .dropdown li {
        padding: 0.5em 1em;
    }

    .dropdown .nav__link {
        color: white;
    }

    .nav__link::before {
        display: none;
    }

    .nav__link:not(.nav__link--button)::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 0;
        height: 3px;
        background: #C8B100;
        transition: width 0.3s ease;
    }

    .nav__link:not(.nav__link--button):hover::after,
    .nav__link:not(.nav__link--button).active::after {
        width: 100%;
    }

    .hero__content {
        margin-top: 8%;
    }

    footer {
        min-height: 100vh;
    }

    .price {
        display: inline;
    }

    .section__two--btn {
        margin: 5% auto 0 auto;
    }

    .transformation-text {
        margin-top: 5%;
    }

    .subpage-img2 {
        order: 2;
        flex: 1;
        max-width: 40%;
        margin-top: 50px;
        display: block;
    }

    .features-title {
        margin-bottom: 3em;
    }

    .walkthrough {
        padding-top: 2em;
    }

    video {
        max-width: 600px;
    }

    form {
        width: 30%;
        margin: 0 auto;
    }

    .nav-close {
        display: none;
    }

}

@media (max-width: 999px) {
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100%;
        background: #191919;
        transition: right 0.3s ease;
        padding-top: 4em;
        z-index: 1000;
    }

    .nav--visible {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        gap: 1.5em;
        padding-left: 1.5em;
    }

    .nav__item {
        margin-top: 0;
    }

    .nav__item:last-child {
        margin-top: 1em;
    }

}