/*
Theme Name: Piws.space
Theme URI: https://www.livetech.co.uk
Author: Livetech
Author URI: https://www.livetech.co.uk
Description: Piws.space Theme
Version: 0.1
License: GNU General Public License v2 or later
License URI: https://www.livetech.co.uk
Tags: 
Text Domain: piws-space
*/

@font-face {
    font-display: swap;
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    src: url('./assets/font/open-sans-v44-latin-regular.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Open Sans';
    font-style: italic;
    font-weight: 400;
    src: url('./assets/font/open-sans-v44-latin-italic.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 500;
    src: url('./assets/font/open-sans-v44-latin-500.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Open Sans';
    font-style: italic;
    font-weight: 500;
    src: url('./assets/font/open-sans-v44-latin-500italic.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 700;
    src: url('./assets/font/open-sans-v44-latin-700.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Open Sans';
    font-style: italic;
    font-weight: 700;
    src: url('./assets/font/open-sans-v44-latin-700italic.woff2') format('woff2');
}


@font-face {
    font-display: swap;
    font-family: 'Quicksand';
    font-style: normal;
    font-weight: 400;
    src: url('./assets/font/quicksand-v37-latin-regular.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Quicksand';
    font-style: normal;
    font-weight: 500;
    src: url('./assets/font/quicksand-v37-latin-500.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Quicksand';
    font-style: normal;
    font-weight: 700;
    src: url('./assets/font/quicksand-v37-latin-700.woff2') format('woff2');
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    padding: 0;
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    color: #000;
    font-family: var(--wp--preset--font-family--primary-font);
}

/* =Variables   
-------------------------------------------------------------- */
:root {
    /* Fallback; updated dynamically via JS */
    --header-height: 120px;
}

/* =Gutenberg Overrides   
-------------------------------------------------------------- */
.editor-start-page-options__modal-content iframe {
    padding: 0 25px;
}

.wp-block-cover,
.wp-block-cover-image {
    min-height: unset;
}

.wp-block-media-text,
.wp-block-media-text.has-media-on-the-right {
    grid-gap: var(--wp--preset--spacing--small);
    grid-template-columns: calc(50% - (var(--wp--preset--spacing--small) / 2)) 1fr;
}

.wp-block-media-text:not(.is-image-fill-element)>.wp-block-media-text__media {
    text-align: center;
}

.wp-block-media-text>.wp-block-media-text__media img {
    border-radius: 15px;
}

.wp-block-media-text .wp-block-media-text__content {
    padding-left: var(--wp--preset--spacing--small);
    padding-right: 0;
}

.wp-block-media-text.has-media-on-the-right .wp-block-media-text__content {
    padding-right: var(--wp--preset--spacing--small);
    padding-left: 0;
}

/* =Formatting 
-------------------------------------------------------------- */
.entry-content> :not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright),
.acf-innerblocks-container> :not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright) {
    width: var(--wp--style--global--content-size);
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.entry-content>*:first-child:not(.wp-block-omnicanvas-hero) {
    padding-top: var(--wp--preset--spacing--medium);
}

.entry-content {
    padding-bottom: var(--wp--preset--spacing--medium);
}

.search .entry-content>*:first-child,
.tax-gd_placecategory .entry-content>*:first-child,
.entry-content.no-padding>*:first-child {
    padding-top: 0;
}

.search .entry-content,
.tax-gd_placecategory .entry-content,
.entry-content.no-padding {
    padding-bottom: 0;
}

.entry-content> :last-child {
    margin-bottom: 0;
}

.is-style-alignwide,
.alignwide {
    width: var(--wp--style--global--wide-size);
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

#tribe-events-pg-template {
    width: var(--wp--style--global--wide-size) !important;
    max-width: 90% !important;
}

.is-style-alignfull,
.alignfull,
.acf-innerblocks-container {
    width: 100%;
    max-width: unset;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0;
}

.acf-innerblocks-container>*:first-child {
    margin-top: 0;
}

.acf-innerblocks-container>*:last-child {
    margin-bottom: 0;
}

/* =Flex */
.flex {
    display: flex;
    gap: var(--wp--preset--spacing--small);
}

.flex .full {
    flex: 0 0 100%;
}

.flex .half {
    flex: 0 0 calc(50% - var(--wp--custom--gap) / 2);
}

.flex .fifth {
    flex: 0 0 calc(20% - 4 * var(--wp--custom--gap) / 5);
}

.flex .quarter {
    flex: 0 0 calc(25% - 3 * var(--wp--custom--gap) / 4);
}

.flex .third {
    flex: 0 0 calc(33.3333% - 2 * var(--wp--custom--gap) / 3);
}

.flex .two-thirds {
    flex: 0 0 calc(66.6667% - var(--wp--custom--gap) / 3);
}

.flex .three-quarters {
    flex: 0 0 calc(75% - var(--wp--custom--gap) / 4);
}

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

.flex-grow {
    flex-grow: 1;
}

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

.justify-space-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.justify-content-end {
    justify-content: flex-end;
}

.align-items-start {
    align-items: flex-start;
}

.align-items-center {
    align-items: center;
}

.align-items-bottom {
    align-items: flex-end;
}

.align-items-stretch {
    align-items: stretch;
}

/* =Globals
-------------------------------------------------------------- */
.skip-link {
    position: absolute;
    top: -1000em;
    left: 6px;
    height: auto;
    width: auto;
    display: block;
    font-size: 14px;
    font-weight: 600;
    padding: 15px 23px 14px;
    background: #f0f0f1;
    color: var(--wp--preset--color--primary-brand);
    z-index: 100000;
    text-decoration: none;
}

.skip-link:focus {
    top: 7px;
    background: #f0f0f1;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
}

p,
ul,
address,
time {
    margin-top: 0;
    margin-bottom: var(--wp--preset--spacing--small);
}

a {
    text-decoration: none;
    color: var(--wp--preset--color--primary-brand);
    transition: all 300ms ease 0ms;
}

a:hover {
    opacity: 0.7;
}

h1:first-child,
h2:first-child,
h3:first-child,
h4:first-child,
h5:first-child,
h6:first-child,
p:first-child,
li:first-child,
a:first-child {
    margin-top: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--wp--preset--font-family--secondary-font) !important;
    line-height: 1.3;
}

h1 {
    font-size: min(max(1.563rem, 1.39rem + 0.86vw), 1.875rem);
}

h2 {
    font-size: min(max(1.438rem, 1.334rem + 0.52vw), 1.625rem);
}

h3 {
    font-size: min(max(1.438rem, 1.334rem + 0.52vw), 1.625rem);
}

h4 {
    font-size: 18px
}

h5 {
    font-size: 16px
}

h6 {
    font-size: 14px
}

img {
    max-width: 100%;
    height: auto;
}

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

.lt-button,
.lt-menu-button a,
.purple-btn a,
.wp-element-button a,
.wp-block-button a,
.slick-dots li button,
p:has(input[type="submit"]),
.slick-arrow {
    background-color: var(--wp--preset--color--primary-brand);
    color: #fff;
    border: 2px solid var(--wp--preset--color--white);
    border-radius: 5px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    padding: 10px 0.7em;
    font-family: var(--wp--preset--font-family--primary-font);
    transition: all 300ms ease 0ms;
}

.lt-button.is-style-alt-button a,
.wp-block-button.is-style-alt-button a {
    background-color: transparent;
    border: 1px solid var(--wp--preset--color--primary-brand);
    color: var(--wp--preset--color--primary-brand);
}

iframe {
    display: block;
    margin-top: 0;
    margin-block-start: 0 !important;
}

/* =Header
-------------------------------------------------------------- */
header.site-header {
    width: 100%;
    padding: 10px 20px;
    background-color: var(--wp--preset--color--primary-brand);
    z-index: 10;
    position: sticky;
    top: 0;
}

header.site-header a {
    color: #fff;
    font-weight: 700;
    z-index: 3;
}

header.site-header img.header-logo {
    display: block;
    max-height: 105px;
    min-width: 100px;
    width: auto;
}

header.site-header ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

header.site-header .menu {
    gap: 0 25px;
}

header.site-header .menu>ul.flex {
    gap: 0;
}

header.site-header .menu>ul>li {
    padding: 10px;
    position: relative;
}

header.site-header .menu>ul>li>a {
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 300ms ease 0ms;
}

header.site-header .menu>ul>li>a:hover {
    opacity: 0.7;
}

header.site-header .menu>ul>li.menu-item-has-children>a:after {
    content: "";
    display: inline-block;
    width: 11px;
    height: 7px;
    background-image: url(./assets/img/icons/chevron-down-black.svg);
    background-size: contain;
    background-repeat: no-repeat;
    filter: invert(93%) sepia(100%) saturate(0%) hue-rotate(248deg) brightness(106%) contrast(106%);
}

header.site-header .menu>ul>li>ul {
    position: absolute;
    top: calc(100% - 1px);
    left: 0;
    width: 240px;
    background: #fff;
    border-radius: 10px;
    visibility: hidden;
    opacity: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
    -moz-box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
    -webkit-box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
    -webkit-transform: translateZ(0);
    text-align: left;
    transition: all 300ms ease 0ms;
    z-index: 3;
}

header.site-header .menu>ul>li:hover>ul {
    opacity: 1;
    visibility: visible;
}

header.site-header .menu>ul>li>ul>li>a {
    display: block;
    color: #363f48;
    padding: 8px 15px;
    font-size: 15px;
}

header.site-header .menu>ul>li>ul>li:first-child>a {
    padding-top: 10px;
}

header.site-header .menu>ul>li>ul>li:last-child>a {
    padding-bottom: 10px;
}

header.site-header .menu>ul>li>ul>li>a:hover {
    color: var(--wp--preset--color--primary-brand);
    background-color: rgba(0, 0, 0, .03);
}

header.site-header ul li.menu-item-has-children .toggle-menu {
    display: none;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border: 1px solid #fff;
    border-radius: 5px;
    padding: 0;
    cursor: pointer;
}

header.site-header ul li.menu-item-has-children .toggle-menu.open:after {
    transform: rotate(180deg);
}

header.site-header .menu .menu-buttons {
    padding: 10px 0;
    gap: 25px;
    z-index: 2;
}

header.site-header .menu .menu-buttons.desktop {
    display: flex;
}

header.site-header .menu-buttons.mobile {
    display: none;
}

header.site-header .lt-button.flex {
    background-color: var(--wp--preset--color--primary-brand);
    border-color: #fff;
    gap: 5px;
    font-weight: 500;
    padding: 7px 0.7em;
}

header.site-header .lt-button.flex:hover {
    opacity: 1;
    background-color: #fff;
    color: var(--wp--preset--color--primary-brand);
}

header.site-header .lt-button:before {
    content: "";
    display: inline-block;
    filter: invert(93%) sepia(100%) saturate(0%) hue-rotate(248deg) brightness(106%) contrast(106%);
    transition: all 300ms ease 0ms;
    background-size: cover;
}

header.site-header .lt-button:hover:before {
    filter: invert(30%) sepia(25%) saturate(3182%) hue-rotate(266deg) brightness(93%) contrast(83%);
}

header.site-header .lt-button.add:before {
    background-image: url(./assets/img/icons/plus-icon.svg);
    width: 15px;
    height: 15px;
}

header.site-header .lt-button.find {
    display: none;
}

header.site-header .lt-button.find:before {
    width: 20px;
    height: 20px;
    background-image: url(./assets/img/icons/search.svg);
}

/* Account Menu */
header.site-header .account-menu {
    position: relative;
}

header.site-header .lt-button.account {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    flex-shrink: 0;
}

header.site-header .lt-button.account:before {
    background-image: url(./assets/img/icons/person.svg);
    width: 18px;
    height: 18px;
}

header.site-header .account-menu-toggle[aria-expanded="true"] {
    opacity: 1;
    background-color: #fff;
}

header.site-header .account-menu-toggle[aria-expanded="true"]:before {
    filter: invert(30%) sepia(25%) saturate(3182%) hue-rotate(266deg) brightness(93%) contrast(83%);
}

header.site-header .account-menu-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 200px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
    -moz-box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
    -webkit-box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    text-align: left;
    transition: all 300ms ease 0ms;
    z-index: 5;
}

header.site-header .account-menu.open .account-menu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

header.site-header .account-menu-dropdown ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

header.site-header .account-menu-dropdown li>a {
    display: block;
    color: #363f48;
    padding: 8px 15px;
    font-size: 15px;
}

header.site-header .account-menu-dropdown li:first-child>a {
    padding-top: 10px;
}

header.site-header .account-menu-dropdown li:last-child>a {
    padding-bottom: 10px;
}

header.site-header .account-menu-dropdown li>a:hover {
    color: var(--wp--preset--color--primary-brand);
    background-color: rgba(0, 0, 0, .03);
}

/* Mobile Menu */
.mobile-menu-button {
    display: none;
    cursor: pointer;
    z-index: 2;
}

/* =Footer
-------------------------------------------------------------- */
footer p,
footer a {
    color: #fff;
}

footer ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

footer .top {
    background-color: var(--wp--preset--color--primary-brand);
    padding: var(--wp--preset--spacing--small) 20px;
}

footer .bottom {
    background-color: #363f48;
    padding: var(--wp--preset--spacing--small) 20px;
}

footer .bottom .content {
    margin-bottom: var(--wp--preset--spacing--medium);
    font-size: 14px;
}

footer .bottom .socials {
    gap: 10px;
}

footer .bottom .socials a {
    border: 1px solid #fff;
    border-radius: 5px;
    padding: 5px;
}

footer .bottom .socials a img {
    display: block;
    filter: invert(93%) sepia(100%) saturate(0%) hue-rotate(248deg) brightness(106%) contrast(106%);
}


/* =Accessibility Features
-------------------------------------------------------------- */
.to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--wp--preset--color--secondary-brand);
    opacity: 0.5;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.25s ease-in-out;
}

.to-top:hover,
.to-top:focus {
    outline: none;
    opacity: 1;
}

.to-top svg {
    transform: rotate(180deg);
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* =Captcha
-------------------------------------------------------------- */
.grecaptcha-badge {
    visibility: hidden;
    display: none;
}

/* =Calendar
-------------------------------------------------------------- */
.tribe-events-view {
    margin-top: 0;
    margin-bottom: 0;
    max-width: 100% !important;
}

.tribe-events .tribe-events-l-container {
    padding: 0 !important;
    max-width: 100% !important;
}

.tribe-events-view .tribe-events-c-subscribe-dropdown {
    margin-bottom: 0 !important;
}

.tribe-events-meta-group {
    width: unset;
}

.tribe-events-event-image img {
    width: 100%;
    height: auto;
    margin: 0 auto;
}

/* =Media queries
--------------------------------------------------------------- */
@media (min-width: 1200px) {}

@media (max-width: 1199.98px) {}

@media (max-width: 991.98px) {

    .flex .fifth,
    .flex .quarter,
    .flex .three-quarters,
    .flex .third,
    .flex .two-thirds {
        flex: 0 0 calc(50% - var(--wp--custom--gap) / 2);
    }

    .grid.three,
    header.site-header .menu .menu-buttons .grid.four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    header.site-header {
        flex-wrap: wrap;
        gap: 15px;
    }

    header.site-header .menu {
        gap: 0 25px;
    }

    header .main-menu {
        position: fixed;
        z-index: 1;
        /* below sticky header */
        background: var(--wp--preset--color--primary-brand);
        width: 100%;
        height: calc(100vh - var(--header-height));
        left: 0;
        top: -100%;
        right: 0;
        bottom: 0;
        padding: 10px 25px 0;
        flex-direction: column;
        align-items: end;
        gap: 0;
        visibility: hidden;
        pointer-events: none;
        transition: top 0.25s ease-in-out, visibility 0.25s ease-in-out;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        touch-action: pan-y;
    }

    header.mobile-menu-open .main-menu {
        padding-top: 30px;
        top: var(--header-height);
        visibility: visible;
        pointer-events: auto;
    }

    /* Prevent background page scroll when menu open */
    body.mobile-menu-open {
        overflow: hidden;
    }

    header.small .main-menu>li,
    header .main-menu>li {
        opacity: 0;
    }

    header.mobile-menu-open.small .main-menu>li,
    header.mobile-menu-open .main-menu>li {
        padding: 15px 0;
        opacity: 1;
        transition: opacity 0.25s ease-in-out 0.5s;

        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: flex-end;
        align-items: center;
    }

    header.mobile-menu-open.site-header ul>li {
        background-color: var(--wp--preset--color--primary-brand);
    }

    header.mobile-menu-open.site-header ul>li:first-child {
        padding-top: 0;
    }

    header.mobile-menu-open.site-header ul>li:last-child {
        padding-bottom: 0;
    }

    header.mobile-menu-open.site-header ul li a:not(.toggle-menu) {
        color: #fff;
        font-size: 20px;
    }

    header.mobile-menu-open.site-header ul li.menu-item-has-children>a:not(.toggle-menu):after,
    header.mobile-menu-open.site-header ul>li:last-child a:before {
        display: none;
    }

    header.mobile-menu-open.site-header ul>li:last-child a:hover:after {
        opacity: 1;
    }

    header.site-header ul li.menu-item-has-children .toggle-menu {
        display: flex;
    }

    header.mobile-menu-open.site-header ul .sub-menu {
        position: static;
        background-color: unset;
        text-align: right;
        transform: unset;
        width: 100%;
        padding-right: 25px;
        height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transition: height 0.25s ease;
        box-shadow: none;
        -moz-box-shadow: none;
        -webkit-box-shadow: none;
    }

    /* Mobile Menu */
    .mobile-menu-button {
        display: flex;
        flex-direction: column;
        gap: 6px;
        margin: 10px 0;
        background: transparent;
        border: none;
        position: relative;
        transition: all 0.25s ease-in-out;
    }

    .mobile-menu-button .bar {
        display: block;
        width: 25px;
        height: 2px;
        transition: 0.25s;
    }

    .mobile-menu-button .bar {
        background-color: #fff;
    }

    .mobile-menu-button.open .bar:nth-child(1) {
        transform: translateY(10px) rotate(-46deg);
    }

    .mobile-menu-button.open .bar:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-button.open .bar:nth-child(3) {
        transform: translateY(-6px) rotate(45deg);
    }

    header.site-header .menu .menu-buttons {
        gap: 10px;
    }

    header.site-header .menu .menu-buttons.desktop {
        display: none;
    }

    header.site-header .menu-buttons.mobile {
        display: flex;
        gap: 15px;
        justify-content: center;
        width: 100%;
    }

    header.site-header .lt-button.find {
        display: flex;
    }
}

@media (max-width: 767.98px) {

    .flex .fifth,
    .flex .quarter,
    .flex .three-quarters,
    .flex .third,
    .flex .two-thirds {
        flex: 0 0 100%;
    }

    .flex-wrap-mobile {
        flex-wrap: wrap;
    }

    .grid.two,
    .grid.three,
    .grid.four {
        grid-template-columns: 1fr;
    }

    .wp-block-media-text.is-stacked-on-mobile {
        grid-template-columns: 100% !important;
    }

    .wp-block-media-text.is-stacked-on-mobile>.wp-block-media-text__media {
        grid-column: 1;
        grid-row: 1;
    }

    .wp-block-media-text.is-stacked-on-mobile>.wp-block-media-text__content {
        grid-column: 1;
        grid-row: 2;
        padding: 0;
    }

    header.mobile-menu-open.site-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
    }

    .lt-menu-button a {
        font-size: 15px;
    }
}

@media (max-width: 575.98px) {}