/*
Theme Name: Empower Nutrition Custom Theme
Description: Bespoke theme developed for Empower Nutrition
Version: 1.0
Author: James Elliott Creative
*/

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

html, .wrapper, [role="main"], header {
    background: #f0f6ea;
}

html, body {
    margin: 0;
    padding: 0;
}

::-moz-selection {
    background: #2d2f83;
    color: #fff;
    text-shadow: none;
}

::selection {
    background: #2d2f83;
    color: #fff;
    text-shadow: none;
}

input::placeholder,
textarea::placeholder {
    color: #2d2f83 !important;
    font: 400 1rem/1.6 "all-round-gothic", sans-serif;
}

input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
    color: #2d2f83 !important;
    font: 400 1rem/1.6 "all-round-gothic", sans-serif;
}

input:-ms-input-placeholder,
textarea:-ms-input-placeholder {
    color: #2d2f83 !important;
    font: 400 1rem/1.6 "all-round-gothic", sans-serif;
}

ul, ol, ul li, ol li {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

a {
    text-decoration: none;
    color: #2d2f83;
}

.wrapper {
    opacity: 0;
}

header .inner > span {
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.inner {
    height: 100%;
}

.inner a#logo_container {
    margin: 0;
    height: auto;
}

.inner #logo {
    max-height: 100%;
    display: block;
}

.main_nav ul li a {
    font: 500 18px/24px "all-round-gothic", sans-serif;
    color: #2d2f83;
}

.main_nav ul li.current-menu-item a, .main_nav ul li a:hover {
    color: #76b4dd;
}

body .with_adjustments, body .container {
    margin: 0 auto 35px;
}

body .with_adjustments .container {
    max-width: 1640px;
    margin: 0 auto;
}

.full_width_text_section .container {
    flex-direction: column;
}

.container h2 {
    font: 500 32px/1.6 "all-round-gothic", sans-serif;
    color: #2d2f83;
    margin: 0 0 10px;
}

.container.testimonial_index h2 {
    font: 500 28px/1.4 "all-round-gothic", sans-serif;
}

.container ul li, .container ol li, .container p {
    width: 100%;
    font: 400 21px/1.6 "all-round-gothic", sans-serif;
    color: #2d2f83;
    margin-top: 0;
}

.container ul li {
    list-style: disc;
    list-style-position: inside;
}

.container ol li {
    list-style: decimal;
    list-style-position: inside;
}

.container ul, .container ol {
    margin-bottom: 20px;
}

body .with_adjustments .container p {
    color: unset;
    text-align: center;
    margin: 0;
    letter-spacing: 1px;
}

body.about .with_adjustments .container p {
    font: 500 24px/1.3 "all-round-gothic", sans-serif;
}

body .with_adjustments .container p a {
    text-decoration: 1px solid underline;
    color: #2d2f83;
}

.action_button {
    min-height: 260px;
    background-color: #cbe2e6;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    background-position: center;
    color: #fff;
    overflow: hidden;
}

.action_button h3 {
    font: 500 25px/1 "all-round-gothic", sans-serif;
    color: #2d2f83;
    margin-top: 10px;
    margin-bottom: 20px;
    text-align: center;
}

.action_button a {
    width: auto;
    font: 300 11px/1 "helvetica-lt-pro", sans-serif;
    color: #2d2f83;
    border: 1px solid #2d2f83;
    padding: 18px 26px;
    text-transform: uppercase;
    background-color: rgb(255,255,255,0.8);
}

.action_button::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(75, 157, 218, 0.75);
    z-index: 1;
}

.action_button > * {
    position: relative;
    z-index: 2;
}

.main_page_image {
    background-size: cover;
    background-repeat: no-repeat;
    aspect-ratio: 1/1;
}

.main_page_text {
    background-color: #83b451;
}

.main_page_text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: left;
    background-color: #5cb748;
}

.main_page_text h1 {
    width: 100%;
    font: 400 41px/1.3 "all-round-gothic", sans-serif;
    color: #2d2f83;
    margin: 0;
}

.main_page_text h1 .enhanced {
    font-weight: 600;
}

.main_page_text h2 {
    width: 100%;
    font: 600 30px/1.3 "all-round-gothic", sans-serif;
    color: #fff;
    margin: 20px 0;
}

.faqs {
    max-width: 800px;
    margin: 0 auto 60px;
}

.faqs h2 {
    font: 600 33px/1.3 "all-round-gothic", sans-serif;
    color: #83b451;
}

.faq-item {
    border-top: 1px solid #2d2f83;
}

.faq-item:last-of-type {
    border-bottom: 1px solid #2d2f83;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary {
    position: relative;
    padding: 1em 2em 1em 0;
    cursor: pointer;
    font: 500 26px/1.3 "all-round-gothic", sans-serif;
    color: #2f287f;
    list-style: none;
    outline: none;
}

.faq-item summary::after {
    width: 20px;
    height: 20px;
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background-image: url("https://www.empower-nutrition.co.uk/wp-content/uploads/plus_symbol.svg");
    background-repeat: no-repeat;
    background-size: contain;
    transition: background-image 0.2s;
}

.faq-item[open] summary::after {
    background-image: url("https://www.empower-nutrition.co.uk/wp-content/uploads/minus_symbol.svg");
}

.faq-answer {
    padding: 0 0 1em;
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}

.faq-answer p, .content ul li {
    font: 400 21px/1.6 "all-round-gothic", sans-serif;
    color: #2f287f;
}

.content ul {
    padding: 0 0 1em 20px;
}

.content ul li {
    list-style-type: disc;
    padding-left: 0;
}

.faq-item[open] .faq-answer {
    max-height: 500px; /* big enough for your longest answer */
}

footer {
    background-color: #2d2f83;
    position: relative;
    margin-top: 44px;
    padding: 40px 20px;
}

footer a {
    font-weight: 400;
}

footer .inner span {
    flex-direction: column;
    position: relative;
}

footer p {
    margin: 0;
}

footer p a, footer h3 {
    font: 500 32px / 1.6 "all-round-gothic", sans-serif;
    color: #fff;
    margin: 0;
}

footer p a {
    font: 400 21px/1.6 "all-round-gothic", sans-serif;
}

footer .social_media a {
    width: 32px;
    height: 32px;
    margin-left: 5px;
}

footer .footer_center {
    margin-top: 60px;
}

footer .footer_center p {
    font: 400 16px/1.4 "all-round-gothic", sans-serif;
    color: #fff;
    text-align: center;
    margin-bottom: 14px;
}

.testimonial_index {
    display: flex;
    flex-direction: column;
}

.testimonial_wrapper {
    width: 100%;
    max-width: 1640px;
    margin: 0 auto;
    padding: 0;
}

.testimonial_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    perspective: 1000px;
}

.testimonial_card {
    width: 100%;
    aspect-ratio: 1 / 1;
    position: relative;
    cursor: pointer;
}

.testimonial_inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.testimonial_card:hover .testimonial_inner {
    transform: rotateY(180deg);
}

.testimonial_front, .testimonial_back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    overflow: hidden;
}

.testimonial_front {
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 1rem;
    background-color: #ccc;
    flex-direction: column;
}

.testimonial_name {
    color: #fff;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font: 400 21px / 1.6 "all-round-gothic", sans-serif;
    position: absolute;
    bottom: 20px;
    left: 20px;
}

.testimonial_back {
    background-color: #fff;
    transform: rotateY(180deg);
    padding: 1rem;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.read_more {
    font: 400 21px / 1.6 "all-round-gothic", sans-serif;
    color: #2d2f83;
    position: absolute;
    bottom: 20px;
    right: 30px;
}

.testimonial_content {
    max-height: 100%;
    overflow-y: auto;
    font-size: 0.95rem;
    line-height: 1.5;
}

@media (max-width: 640px) {
    .testimonial_grid {
        grid-template-columns: 1fr;
    }
}

.testimonial_card.flipped .testimonial_inner {
    transform: rotateY(180deg);
}

.social_media {
    position: absolute;
}

.social_media a {
    width: 22px;
    height: 22px;
    display: inline-block;
}

#post_filters {
    max-width: 100%;
    display: flex;
    gap: 1em;
    margin: 2em auto;
    padding: 0;
}

#post_filters select {
    padding: 0.5em;
    font: 400 1rem/1.2 "all-round-gothic", sans-serif;
}

.posts_grid {
    max-width: 100%;
    padding: 0;
}

.post_card {
    display: flex;
    flex-direction: column;
}

.post_card__image {
    width: 100%;
    aspect-ratio: 1/1;
    background-size: cover;
    background-position: center;
}

.post_card__content {
    background: #cbe2e6;
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post_card__title {
    margin: 0 0 0.25em;
    font: 500 24px/1.6 "all-round-gothic", sans-serif;
    color: #2d2f83;
}

.post_card__date {
    font: 300 11px/1 "helvetica-lt-pro", sans-serif;
    color: #444;
    margin-bottom: 0.75em;
    letter-spacing: 1px;
}

.post_card__excerpt {
    flex: 1;
    margin-bottom: 1em;
    font: 400 1rem/1.4 "all-round-gothic", sans-serif;
    color: #2d2f83;
}

input#gform_submit_button_1, .post_card__button {
    align-self: flex-start;
    text-transform: uppercase;
    font: 300 11px/1 "helvetica-lt-pro", sans-serif;
    color: #2d2f83;
    border: 1px solid #2d2f83;
    border-radius: 0;
    padding: 18px 26px;
    background: transparent;
}

body label.gfield_label.gform-field-label, body legend.gfield_label.gform-field-label {
    font: 300 11px / 1 "helvetica-lt-pro", sans-serif;
    color: #2d2f83;
    text-transform: uppercase;
}

body span.gfield_required.gfield_required_text {
    font: 300 9px / 1 "helvetica-lt-pro", sans-serif;
}

body #gform_fields_1 input, body #gform_fields_1 textarea {
    color: #2d2f83 !important;
    font: 400 1rem/1.6 "all-round-gothic", sans-serif;
}

body .gform-theme--framework .gform_validation_errors {
    background-color: #5cb748 !important;
    border-radius: 0;
    border: none;
}

body .gform-theme--framework .gform_validation_errors:focus {
    border: none;
    outline: none;
}

body .gform-theme--framework .gform_validation_errors ol a, body .gform-theme--framework .gform_validation_errors .gform_submission_error {
    font: 400 1rem/1.6 "all-round-gothic", sans-serif;
    color: #fff !important;
    pointer-events: none;
}

body .gfield_validation_message, body .gform-theme--framework .gform_validation_errors .gform-icon {
    display: none !important;
}

body .gform-theme--framework .gform_validation_errors ol {
    padding-left: 0;
}

body .gform-theme--framework .gform_validation_errors ol li {
    list-style: none;
}

body #gform_fields_1 .gfield_error input, body #gform_fields_1 .gfield_error textarea {
    border-color: #5cb748 !important;
}

.interactive_text_container {
    width: 100%;
    max-width: 1640px;
    margin: 180px auto;
}

.click-instruction {
    text-align: center;
    font-size: 1rem;
    margin-bottom: 10px;
    color: #444;
    animation: fadeIn 2s ease forwards;
    opacity: 0;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.logo-area {
    text-align: center;
}

.brand-logo {
    max-width: 800px;
    transition: opacity 0.5s;
}

.animation-area {
    margin-top: -84px;
    position: relative;
}

.dimmed {
    opacity: 0.1;
}

.figure {
    transition: transform 1s ease;
    background: url('https://www.empower-nutrition.co.uk/wp-content/uploads/empower_figure.svg') no-repeat center;
    background-size: contain;
    width: 80px;
    height: 80px;
    margin: auto;
}

.figure.animate {
    transform: scale(2);
}

.scribble {
    opacity: 0;
    transition: opacity 1s;
    background: url('https://www.empower-nutrition.co.uk/wp-content/uploads/empower_scribble.svg') no-repeat center;
    background-size: contain;
    width: 260px;
    height: 260px;
    margin: -177px auto;
}

.scribble.visible {
    opacity: 1;
}

.topics {
    max-width: 800px;
    height: 130px;
    margin: 120px auto 0;
    position: relative;
    transition: margin-top 0.6s ease;
}

.topics.active {
    margin-top: 260px;
}

.topic {
    font: 600 38px / 1.6 "all-round-gothic", sans-serif;
    color: #5cb748;
    letter-spacing: 1px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.topic.pulse {
    animation: pulseHint 1.5s ease-in-out 2;
}

@keyframes pulseHint {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.keyword {
    display: inline-block;
    font: 600 21px / 1.6 "all-round-gothic", sans-serif;
    color: #2a2e83;
    position: absolute;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 1s ease;
}

.keyword-group {
    display: none;
    text-align: center;
    margin-top: 40px;
}

.keyword-group.active {
    display: block;
}

.keyword.measure-mode {
    opacity: 1 !important;
    transition: none !important;
}

.keyword-group.active .keyword {
    opacity: 1;
}

.keyword.top {
    top: -140px;
    transform: translateX(-50%);
}

.keyword.bottom {
    bottom: -45px;
    transform: translateX(-50%);
}

.keyword.left {
    top: 40px;
    transform: translateX(-100%) translateY(-50%);
}

.keyword.right {
    top: 40px;
    transform: translateX(0%) translateY(-50%);
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media screen and (max-width:1399px) {

    header {
        height: 70px;
    }

    header .inner > span {
        display: block;
    }

    .burger_menu {
        width: 30px;
        height: 18px;
        display: flex;
        position: absolute;
        right: 0;
        flex-direction: column;
        gap: 6px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1001;
        padding: 0;
    }

    .burger_line {
        width: 100%;
        height: 2px;
        background: #2d2f83;
        transition: all 0.3s ease;
    }

    .burger_menu.open .burger_line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .burger_menu.open .burger_line:nth-child(2) {
        opacity: 0;
    }

    .burger_menu.open .burger_line:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .main_menu {
        width: 100vw;
        display: none;
        flex-direction: column;
        gap: 7px;
        background: #f0f6ea;
        position: absolute;
        top: 21px;
        left: 0;
        right: 0;
        z-index: 1000;
        padding: 20px;
        text-align: right;
    }

    .main_menu.open {
        display: flex;
    }

    .social_media {
        top: 0;
        right: 20px;
    }

    .main_nav {
        width: 100%;
        height: 30px;
        position: absolute;
        right: 20px;
        top: 33px;
    }

    [role="main"] {
        width: calc(100% - 40px);
        margin: 0 20px;
    }

    .inner #logo {
        width: 100%;
        max-width: 300px;
        margin: 20px 0 0 20px;
    }

    .main_image_text {
        display: flex;
        flex-wrap: wrap;
    }

    .main_page_text {
        padding: 60px 5%;
        order: 2;
    }

    .main_page_image {
        width: 100%;
        order: 1;
    }

    .action_button {
        margin-bottom: 30px;
    }

    .full_width_text_section.with_adjustments {
        padding-left: 60px;
        padding-right: 60px;
    }

    body .with_adjustments .container p {
        font: 200 26px / 1.4 "all-round-gothic", sans-serif;
    }

    .interactive_text_container {
        margin: 240px auto 200px;
    }

    .topic {
        width: 100%;
        display: block;
        text-align: center;
    }

    .keyword.left {
        max-width: 150px;
        left: 19%;
        white-space: normal;
        text-align: right;
    }

    .keyword.right {
        max-width: 100px;
        right: -20px;
        white-space: normal;
        text-align: left;
    }

    .weight_loss_keywords .keyword.left {
        width: 150px !important;
        max-width: 150px;
    }

}

@media screen and (min-width:1400px) {

    header {
        height: 130px;
    }

    [role="main"] {
        width: calc(100% - 40px);
        margin: 0 20px;
    }

    .burger_menu {
        display: none;
    }

    .blog_index {
        flex-wrap: wrap;
        height: auto;
    }

    .blog_index #post_filters {
        order: 1;
        flex: 0 0 100%;
        margin: 0 0 2em;
    }

    .blog_index .posts_grid {
        order: 2;
        flex: 0 0 100%;
    }

    #menu-main-menu {
        height: 100%;
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
    }

    .testimonial_grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .social_media {
        top: 28px;
        right: 0;
    }

    .inner span, .container {
        width: 100%;
        max-width: 1640px;
        height: 100%;
        display: flex;
        margin: 0 auto;
    }

    .main_page_image, .main_page_text {
        flex: 0 0 49%;
    }

    .main_page_text {
        padding: 60px 5%;
        aspect-ratio: 1;
    }

    .action_button {
        flex: 0 0 32%;
    }

    .container.main_image_text {
        gap: 2%;
    }

    .container.three_action_buttons {
        gap: 35px;
        text-align: center;
    }

    .inner a#logo_container {
        flex: 0 0 300px;
    }

    .main_nav {
        flex: 0 0 calc(100% - 300px);
        padding: 30px 0 0 6%;
    }

    body .with_adjustments .container p {
        font: 200 32px/1.6 "all-round-gothic", sans-serif;
    }

    .posts_grid {
        display: grid;
        grid-template-columns: repeat(3, calc((100% - 60px) / 3));
        grid-gap: 30px;
        margin: 0 auto 4em;
    }

    .keyword.top {
        left: 50%;
    }

    .keyword.bottom {
        left: 50%;
    }

    .keyword.left {
        left: 41%;
    }

    .keyword.right {
        left: 59%;
    }

    .topic {
        position: absolute;
    }

    .topic.performance {
        top: 0; right: 0;
    }

    .topic.mens_health {
        top: 0; left: 0;
    }

    .topic.optimal_health {
        bottom: 0; right: 100px;
    }

    .topic.weight_loss {
        bottom: 0; left: 100px;
    }

    .topic.wellbeing {
        width: 200px;
        top: 0; left: 0; right: 0;
        margin: 0 auto;
    }

}

@media (max-width: 768px) {
    .interactive_text_container {
        transform: scale(0.8);
        transform-origin: top center;
    }

    .action_button {
        background-size: auto 100% !important;
    }

    .inner #logo {
        max-width: 260px;
    }
}

@media (min-width: 769px) {
    .action_button {
        background-size: 100% auto !important;
    }
}

@media (max-width: 480px) {
    .interactive_text_container {
        transform: scale(0.7);
    }

    .keyword.left {
        left: 12%;
    }

    .keyword.right {
        right: -63px;
    }

}