/*
 Theme Name:   Virtfit Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

/* --- Metropolis Font Family --- */
@font-face {
    font-family: 'Metropolis';
    src: url('/wp-content/themes/virtfit-child/assets/font/Metropolis-Thin.otf') format('opentype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Metropolis';
    src: url('/wp-content/themes/virtfit-child/assets/font/Metropolis-ThinItalic.otf') format('opentype');
    font-weight: 100;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Metropolis';
    src: url('/wp-content/themes/virtfit-child/assets/font/Metropolis-ExtraLight.otf') format('opentype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Metropolis';
    src: url('/wp-content/themes/virtfit-child/assets/font/Metropolis-ExtraLightItalic.otf') format('opentype');
    font-weight: 200;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Metropolis';
    src: url('/wp-content/themes/virtfit-child/assets/font/Metropolis-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Metropolis';
    src: url('/wp-content/themes/virtfit-child/assets/font/Metropolis-LightItalic.otf') format('opentype');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Metropolis';
    src: url('/wp-content/themes/virtfit-child/assets/font/Metropolis-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Metropolis';
    src: url('/wp-content/themes/virtfit-child/assets/font/Metropolis-RegularItalic.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Metropolis';
    src: url('/wp-content/themes/virtfit-child/assets/font/Metropolis-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Metropolis';
    src: url('/wp-content/themes/virtfit-child/assets/font/Metropolis-MediumItalic.otf') format('opentype');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Metropolis';
    src: url('/wp-content/themes/virtfit-child/assets/font/Metropolis-SemiBold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Metropolis';
    src: url('/wp-content/themes/virtfit-child/assets/font/Metropolis-SemiBoldItalic.otf') format('opentype');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Metropolis';
    src: url('/wp-content/themes/virtfit-child/assets/font/Metropolis-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Metropolis';
    src: url('/wp-content/themes/virtfit-child/assets/font/Metropolis-BoldItalic.otf') format('opentype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Metropolis';
    src: url('/wp-content/themes/virtfit-child/assets/font/Metropolis-ExtraBold.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Metropolis';
    src: url('/wp-content/themes/virtfit-child/assets/font/Metropolis-ExtraBoldItalic.otf') format('opentype');
    font-weight: 800;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Metropolis';
    src: url('/wp-content/themes/virtfit-child/assets/font/Metropolis-Black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Metropolis';
    src: url('/wp-content/themes/virtfit-child/assets/font/Metropolis-BlackItalic.otf') format('opentype');
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}

body,
button,
input,
select,
textarea,
h1,
h2,
h3,
h4,
h5,
h6,
a,
p,
span,
div {
    font-family: 'Metropolis', sans-serif !important;
}

/* --- Header Pill Styling --- */

body {
    overflow-x: hidden;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


.site-header {
    background-color: transparent;
    padding: 50px 30px 0;
    border: none;
    position: fixed;
    left: 0;
    z-index: 9;
    top: 0;
    -webkit-transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
    -moz-transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
    -o-transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
    transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: background-color, padding;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* The pill container */
.inside-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px 10px clamp(1.375rem, 2.75vw, 2rem);

    max-width: 1440px;
    width: calc(100% - 60px);
    margin: 0 auto;

    box-sizing: border-box;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.20);
    background: rgba(29, 29, 29, 0.20);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(16px);

    transition:
        width 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        max-width 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        background-color 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        border-radius 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.45s cubic-bezier(0.4, 0, 0.2, 1);

    will-change: width, max-width;
}

.site-header.is-sticky .inside-header {
    width: 100%;
    max-width: calc(90% - 30px);
    background: rgba(10, 10, 10, 0.9);
}

.site-logo {
    display: flex;
    align-items: center;
    margin: 0;
}

.site-logo img {
    height: clamp(20px, 2.3vw, 24px);
    width: auto;
    display: block;
}

/* Navigation wrappers */
.main-navigation {
    background: transparent;
    display: flex;
    align-items: center;
}

#site-navigation {
    display: flex;
    align-items: center;
}

#primary-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    width: 100%;
}

/* Desktop Layout Adjustments to center Nav */
@media screen and (min-width: 941px) {

    .site-logo {
        flex: 1;
        justify-content: flex-start;
        max-width: clamp(8.5rem, 14.7vw, 11.125rem);
    }

    .site-logo img {
        height: 24px;
        width: auto;
        display: block;
    }

    #site-navigation {
        flex: 2;
        justify-content: center;
    }

    .gp-menu-buttons {
        flex: 1;
        justify-content: flex-end;
        display: flex;
        max-width: clamp(8.5rem, 14.7vw, 11.125rem);
    }

    .main-navigation .main-nav>ul {
        display: flex;
        align-items: center;
        margin: 0;
        padding: 0;
        gap: clamp(0.75rem, 1.5vw, 1.75rem);
        list-style: none;
    }

    .main-navigation li {
        display: flex;
        align-items: center;
        margin: 0;
        padding: 0;
    }

    .main-navigation .menu-item a {
        display: flex;
        align-items: center;
        color: #ffffff;
        text-decoration: none;
        font-size: clamp(0.85rem, 1.25vw, 1.125rem);
        font-weight: 500;
        padding: 0;
        background: transparent;
        line-height: 48px !important;
        transition: opacity 0.2s ease;
        padding: 0 !important;
    }

    .main-navigation .menu-item a:hover {
        opacity: 0.8;
        color: #737373 !important;
        background: transparent;
    }



    .desktop-hide {
        display: none !important;
    }
}

/* Button */
.gp-menu-buttons {
    margin-left: 0;
}

.gp-menu-buttons .btn-login {
    color: #ffffff;
    padding: clamp(0.85rem, 0.85vw, 0.95rem) clamp(1rem, 2.75vw, 2rem);
    text-decoration: none;
    font-size: clamp(0.85rem, 1.25vw, 1.125rem);
    font-weight: 700;
    display: inline-block;
    transition: background-color 0.2s ease, transform 0.2s ease;
    line-height: 1;
    border-radius: clamp(0.75rem, 1.2vw, 1rem);
    background: #FF6025;
}

.gp-menu-buttons .btn-login:hover {
    background-color: #FF6025;
    color: #ffffff;
}

.main-navigation .main-nav ul li[class*="current-menu-"]>a {
    color: #ffffff;
    background-color: transparent !important;
}

/* Hide desktop elements on mobile */


/* --- Custom Footer Styling --- */
.custom-footer {
    background-color: #080808;
    border-top-left-radius: 33px;
    border-top-right-radius: 33px;
    color: #ffffff;
    margin-top: -40px;
    z-index: 1;
    position: relative;
}

.custom-footer__inner {
    margin: 0 auto;
    box-sizing: border-box;
}

.custom-footer__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.custom-footer__left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.custom-footer__logo img {
    width: 100%;
    display: block;
    height: clamp(24px, 5.25vw, 48.5px);
    aspect-ratio: 226 / 45;
}

.custom-footer__description {
    margin: 0;
}

.custom-footer__description p {
    margin: 0;
}

.custom-footer__description a {
    text-decoration: none;
    transition: color 0.2s ease;
    color: #55C6FF;
    font-size: clamp(16px, 2.75vw, 20px);
    font-style: normal;
    font-weight: var(--font-weight-400, 400);
    line-height: clamp(26.777px, 3.75vw, 33.777px);
}

.custom-footer__description a:hover {
    color: #7ab3d1;
}

.custom-footer__apps {
    display: flex;
    gap: clamp(8px, 1.2vw, 16px);
}

.custom-footer__app-link img {
    height: clamp(36.877px, 6.969vw, 55px);
    width: 100%;
    border-radius: clamp(4.583px, 0.969vw, 12.9px);
}

.custom-footer__divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.08);
    margin: 0 0 24px 0;
}

.custom-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    row-gap: 30px;
}

.custom-footer__copyright-wrap {
    display: flex;
    align-items: center;
    gap: 32px;
    text-align: center;
}



.custom-footer__socials {
    display: flex;
    gap: 12px;
}

.custom-footer__social-link {
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
    display: flex;
    padding: clamp(12.275px, 3.468vw, 20.275px);
    flex-direction: column;
    align-items: flex-start;
    align-self: stretch;
    border-radius: clamp(8.129px, 1.708vw, 12.9px);
    background: #171717;
}

.custom-footer__social-link:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.custom-footer__social-link img {
    width: 24px;
    height: 24px;
    aspect-ratio: 1 / 1;

}


.custom-footer__link {
    color: #737373;
    transition: color 0.2s ease;
}

.custom-footer__link:hover {
    color: #ffffff;
}

.no-data-bg {
    background-size: 100% 100%;
}

/* Mobile Responsiveness for Footer */
@media screen and (max-width: 940px) {
    .inside-header {
        width: calc(100% - 0px);
    }

    .site-header {
        padding: 50px 20px 0;
    }

}

@media screen and (max-width: 940px) {
    #site-navigation {
        justify-content: start;
    }

    .site-header {
        background-color: transparent;
        padding: 20px 20px;
        border: none;
        position: fixed;
        margin: 0 auto;
        z-index: 2;
        width: 100%;
        transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .mobile-menu-open .site-header {
        background-color: rgb(0 0 0 / 70%);
        height: 100%;
        position: fixed;
        z-index: 2;
        backdrop-filter: blur(10px);
    }

    #site-navigation {
        display: block !important;
        width: 100%;
        flex-basis: 100%;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        margin-top: 0;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, margin-top 0.3s ease;
    }

    #site-navigation.toggled {
        max-height: 80vh;
        height: 100%;
        opacity: 1;
        margin-top: 0 !important;
    }

    #site-navigation .main-nav>ul {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0;
        margin: 12px 0 0 0;
        list-style: none;
        width: 100%;
    }

    #site-navigation .main-nav>ul li {
        width: 100%;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    #site-navigation .main-nav>ul li:nth-last-child(2) {
        border-bottom: none;
    }

    #site-navigation .main-nav>ul li:last-child {
        border-bottom: none;
        margin-top: 24px;
        padding-bottom: 24px;
    }

    #site-navigation .main-nav>ul a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        color: #ffffff;
        text-decoration: none;
        font-size: 16px;
        padding: 16px 0;
        font-weight: 500;
        background: transparent !important;
        line-height: 30px;
    }

    #site-navigation .main-nav>ul li:last-child a {
        background: #FF6025 !important;
        border-radius: 12px;
        justify-content: center;
        padding: 14px 24px;
        font-weight: 700;
        line-height: 100%;
    }



    #site-navigation .menu-toggle {
        display: none !important;
    }

    .gp-menu-buttons.mobile-hide {
        display: none;
    }

    .mobile-menu-control-wrapper {
        display: block;
    }

    .menu-toggle {
        background: transparent;
        border: none;
        padding: 0;
        color: white;
        display: flex;
        align-items: center;
        line-height: 0;
    }

    .menu-toggle .gp-icon {
        fill: white;
    }

    .menu-toggle svg {
        width: 20px;
        height: 20px;
        top: 0;
    }

    .menu-toggle .mobile-menu,
    .menu-toggle .screen-reader-text {
        display: none;
    }

    .has-inline-mobile-toggle .inside-header {
        flex-direction: row;
        text-align: left;
        flex-wrap: wrap;
        display: flex;
        padding: 16px 20px;
        justify-content: space-between;
        align-items: self-start;
        border-radius: 12px;
        width: 100%;
        height: 90%;
        position: relative;
        overflow: hidden;
        background-color: #080808;
    }

    .has-inline-mobile-toggle .inside-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        transform: scale(1.2);
        height: 100%;
        background-image: url('/wp-content/themes/virtfit-child/assets/images/mob-menu-bg.png');
        background-size: 100% 100%;
        background-position: bottom center;
        background-repeat: no-repeat;
        z-index: -1;
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .has-inline-mobile-toggle .inside-header:has(#site-navigation.toggled)::before {
        opacity: 1;
    }

    html.mobile-menu-open,
    html.mobile-menu-open body {
        overflow: hidden !important;
        height: 100vh !important;
    }

    .custom-footer {
        border-top-left-radius: 14px;
        border-top-right-radius: 14px;
    }

    .custom-footer__description {
        text-align: center;
    }

    .custom-footer__top {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin-bottom: 24px;
    }

    .custom-footer__apps {
        flex-wrap: wrap;
    }


    .custom-footer__bottom {
        flex-direction: column-reverse;
        align-items: center;
        gap: 30px;
    }

    .custom-footer__copyright-wrap {
        flex-direction: column-reverse;
        align-items: center;
        gap: 12px;
    }

    .custom-footer__copyright {
        text-align: center;
    }
}

@media screen and (max-width:600px) {
    .custom-footer__social-link img {
        width: 15.188px;
        height: 15.188px;
        aspect-ratio: 1/1;
    }
}