/*
Theme Name: JGF Block Theme
Author: Griffiy
Version: 0.1.0
Text Domain: jgf
*/

body {
    font-size: var(--wp--preset--font-size--md);
}

a {
    color: var(--wp--preset--color--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1 {
    font-size: var(--wp--preset--font-size--2-xl);
    margin: 0 0 0.4rem;
    font-weight: 600;
}

:root :where(.wp-block-heading) {
    line-height: 1.5 !important;
}

ul {
    font-size: var(--wp--preset--font-size--md);
    padding-inline-start: 25px;
}

.jgf-site-header {
    position: sticky;
    top: 0;
    z-index: 2; 
}

.jgf-site-header-inner {
    background-image: linear-gradient(to right, var(--wp--preset--color--primary), var(--wp--preset--color--secondary-yellow), var(--wp--preset--color--secondary-pink), var(--wp--preset--color--secondary-cyan), var(--wp--preset--color--secondary-purple));
    padding: 0.5rem 2rem;
}

body .is-layout-flow .jgf-site-header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr; /* left grows, middle hugs, right grows */
    align-items: center;
}

.jgf-site-header-inner .wp-block-site-logo {
    justify-self: start;
}

.jgf-site-header-inner .wp-block-navigation {
    color: #fff;
    justify-self: center;
}

.jgf-site-header-inner .wp-block-navigation a {
    padding-bottom: 0.5rem;
    border-bottom: 2px solid transparent;
}

.jgf-site-header-inner .wp-block-navigation a:hover {
    text-decoration: none;
    border-bottom-color: #fff;
}

.jgf-site-header-inner .community-button {
    justify-self: end;
}

.centered-text {
    text-align: center;
}

.wp-block-buttons {
    justify-content: space-around;
}

.wp-block-button__link {
    box-shadow: 0px 0px 2px #000;
}

.wp-block-button__link:hover {
    opacity: 0.8;
    text-decoration: none;
}

.is-layout-constrained .alignleft {
    float: left;
    margin-inline-start: 0;
    margin-inline-end: 2em;
}

.is-layout-constrained .alignright {
    float: right;
    margin-inline-start: 2em;
    margin-inline-end: 0;
}

.wp-block-term-description img {
    width: 33%;
}

.jgf-program-archive .wp-block-term-description {
    display: flow-root;
}

.jgf-program-archive .wp-block-term-description p {
    margin-block-start: 24px;
    margin-block-end: 0;
}

.jgf-program-archive .wp-block-term-description ul {
    position: relative;
    left: 3em;
    margin-right: 3em;
}

.jgf-site-header .custom-logo,
.jgf-site-header .wp-block-site-logo img {
    width: 120px;
    height: 120px;
    max-width: none;
    transition: width 0.2s ease, height 0.2s ease;
}

.jgf-site-header.is-scrolled .custom-logo,
.jgf-site-header.is-scrolled .wp-block-site-logo img {
    width: 60px;
    height: 60px;
}

.tax-jgf_program_category .wp-block-query-title {
    align-items: center;
    color: #fff;
    display: flex;
    justify-content: center;
    padding: 1rem 0;
    text-shadow: 0px 0px 3px #000;
    text-wrap: balance;
}

.tax-jgf_program_category.term-corefusion .wp-block-query-title,
.page-id-15701 .wp-block-query-title {
    background-color: var(--wp--preset--color--primary);
}

.tax-jgf_program_category.term-corefusion .class-schedule {
    background-color: var(--wp--preset--color--muted-blue);
}

.tax-jgf_program_category.term-corefusion .jgf-program-block,
.jgf-program-block.term-category-corefusion {
    border: 1px solid var(--wp--preset--color--primary);
}

.tax-jgf_program_category.term-strong-fitness .wp-block-query-title,
.page-id-15711 .wp-block-query-title {
    background-color: var(--wp--preset--color--secondary-yellow);
}

.tax-jgf_program_category.term-strong-fitness .class-schedule {
    background-color: var(--wp--preset--color--muted-yellow);
}

.tax-jgf_program_category.term-strong-fitness .jgf-program-block,
.jgf-program-block.term-category-strong-fitness {
    border: 1px solid var(--wp--preset--color--secondary-yellow);
}

.tax-jgf_program_category.term-groove-cardio .wp-block-query-title,
.page-id-15726 .wp-block-query-title {
    background-color: var(--wp--preset--color--secondary-pink);
}

.tax-jgf_program_category.term-groove-cardio .class-schedule {
    background-color: var(--wp--preset--color--muted-pink);
}

.tax-jgf_program_category.term-groove-cardio .jgf-program-block,
.jgf-program-block.term-category-groove-cardio {
    border: 1px solid var(--wp--preset--color--secondary-pink);
}

.tax-jgf_program_category.term-stretch-flow .wp-block-query-title,
.page-id-15716 .wp-block-query-title {
    background-color: var(--wp--preset--color--secondary-cyan);
}

.tax-jgf_program_category.term-stretch-flow .class-schedule {
    background-color: var(--wp--preset--color--muted-cyan);
}

.tax-jgf_program_category.term-stretch-flow .jgf-program-block,
.jgf-program-block.term-category-stretch-flow {
    border: 1px solid var(--wp--preset--color--secondary-cyan);
}

.tax-jgf_program_category.term-mindfulness .wp-block-query-title,
.page-id-15718 .wp-block-query-title {
    background-color: var(--wp--preset--color--secondary-purple);
}

.tax-jgf_program_category.term-mindfulness .class-schedule {
    background-color: var(--wp--preset--color--muted-purple);
}

.tax-jgf_program_category.term-mindfulness .jgf-program-block,
.jgf-program-block.term-category-mindfulness {
    border: 1px solid var(--wp--preset--color--secondary-purple);
}

.jgf-program-schedules .jgf-class-group {
    margin-top: 0;
}

a.button,
button.wp-element-button {
    background-color: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--bg);
    border-radius: 999px;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
}

a.button:hover,
button:hover,
button.wp-element-button:hover {
    text-decoration: none;
    background-color: rgba(6, 96, 222, 0.8);
}

.program-link img,
.program-link p {
    transition: transform 0.25s ease;
}

.program-link:hover {
    text-decoration: none;
}

.program-link:hover img,
.program-link:hover p {
    transform: scale(1.06);
}

@media (max-width: 600px) {
    body .is-layout-flow .jgf-site-header-inner {
        display: flex;
    }
    body .is-scrolled .is-layout-flow .jgf-site-header-inner {
        gap: 10px;
    }

    .jgf-site-header-inner .wp-block-buttons {
        text-align: center;
        width: 100%;
    }

    .jgf-site-header-inner .wp-block-navigation {
        justify-self: end;
    }

    .jgf-program-archive .wp-block-term-description img {
        float: none;
        margin: 0 auto;
        width: 100%;
    }

    .jgf-program-inner {
        align-items: center;
    }

    .ad-banner {
        font-size-adjust: 0.35;
    }

    .mobile-fix {
        margin-block-start: 24px !important;
    }
}
