/*
 Theme Name:   Twenty Twenty-Five Child
 Theme URI:    https://webheroe.com
 Description:  Twenty Twenty-Five child theme
 Author:       Álvaro Torres
 Author URI:   https://webheroe.com
 Template:     twentytwentyfive
 Version:      0.1
*/

.polylang_langswitcher {
    display: flex;
    list-style: none;
    padding-left: 15px;
}

.polylang_langswitcher .lang-item {
    margin-left: 10px;
    padding-bottom: 5px;
}

#top-custom-menu ul {
    list-style: none;
    display: flex;
    gap: 10px;
}

.top-menu-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-menu-burger {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background-color: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    padding: 0;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.top-menu-burger__line {
    width: 22px;
    height: 2px;
    background-color: var(--wp--preset--color--accent-1);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.top-menu-wrapper.is-open .top-menu-burger__line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.top-menu-wrapper.is-open .top-menu-burger__line:nth-child(2) {
    opacity: 0;
}

.top-menu-wrapper.is-open .top-menu-burger__line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

#top-custom-menu .page_item_has_children {
    position: relative;
}

#top-custom-menu .page_item_has_children::after {
    content: '▾';
    font-size: 31px;
    vertical-align: middle;
    line-height: 0;
}

#top-custom-menu .children {
    display: flex;
    flex-direction: column;
    height: 0;
    width: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    position: absolute;
    background-color: white;
    z-index: 99;
    padding: 5px 15px;
}

#top-custom-menu .page_item_has_children:hover .children {
    height: auto;
    width: auto;
    opacity: 1;
    overflow: visible;
    left: -100%;
}

#top-custom-menu a {
    white-space: nowrap;
    text-decoration: none;
    font-size: 17px;
    transition: all 0.3s ease-in-out;
}

/* #top-custom-menu a:hover, */
#top-custom-menu .current_page_item>a {
    font-weight: 700;
    color: var(--wp--preset--color--accent-1);
}

#top-custom-menu .children a {
    font-size: 15px;
}

.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

#the_content>div>*:not(.nopadd) {
    padding-top: clamp(40px, 18vw, 100px);
    padding-bottom: clamp(40px, 18vw, 100px);
    margin-block-start: unset;
}

.padd-v-short {
    padding-top: clamp(20px, 10vw, 30px) !important;
    padding-bottom: clamp(20px, 10vw, 30px) !important;
}

/* .padd-v-short>div {
    padding-top: unset;;
} */

#the_content>div>*:not(.nopadd),
#design-by {
    padding-right: var(--wp--preset--spacing--50) !important;
    padding-left: var(--wp--preset--spacing--50) !important;
}

.custom-logo-link img {
    width: 160px;
}

.material-icons {
    font-size: 35px;
    color: var(--wp--preset--color--accent-1);
}

.width-fit {
    width: fit-content !important;
}

.width1200,
.child1200>*:not(img):not(.wp-block-cover__background) {
    max-width: 1200px;
}

.width1024 {
    max-width: 1024px !important;
}

.width768 {
    max-width: 768px;
}

.width320 {
    max-width: 320px;
}

.no-m-left {
    margin-left: 0 !important;
}

.shadow-t-black {
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.boxshadow {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.icons-columns .wp-block-column,
.icons-header .wp-block-column {
    width: fit-content !important;
    flex-basis: unset !important;
    flex-grow: unset !important;
    display: flex;
    align-items: center;
}

.icons-columns span,
.icons-header span {
    margin-right: 15px;
}

.icons-columns .wp-block-columns,
.icons-header {
    gap: unset;
    background-color: rgba(255, 255, 255, 0.4);
    padding: 10px 25px;
    border-radius: 50px;
}

.icons-no-m .wp-block-columns {
    margin: 0;
}

.gallery-logos {
    max-width: 1024px;
    display: flex;
    flex-wrap: wrap !important;
    justify-content: center;
    gap: 25px;
}

.gallery-logos>div {
    display: flex;
    align-items: center;
    justify-content: space-around;
    min-width: 70px;
    flex-grow: unset !important;
    flex-basis: unset !important;
}

.gallery-logos img {
    filter: grayscale(100%);
    max-height: 35px;
    width: auto;
    transition: 0.3s ease-in-out;
}

.gallery-logos>div:hover img {
    filter: none;
}

.cards {
    flex-wrap: wrap !important;
}

.cards .material-icons {
    text-align: center;
    display: block;
    width: 50px;
    background-color: rgba(249, 150, 39, 0.1);
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.cards .margin-auto.material-icons {
    margin: 0 auto;
}

.cards .wp-block-column {
    padding: 15px;
    border-radius: 5px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: 0.3s ease-in-out;
    min-width: 220px;
}

.cards .wp-block-column:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#times-table>table {
    min-width: 600px;
    max-width: 1024px;
    margin: 0 auto;
}

#times-table thead>tr {
    background-color: var(--wp--preset--color--accent-2);
    color: var(--wp--preset--color--base);
}

#times-table tbody>tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.05);
}

footer {
    margin-top: 0;
}

.logo-footer img {
    filter: grayscale(6) brightness(10);
}

#design-by {
    background-color: var(--wp--preset--color--accent-2);
    padding-top: 10px;
    padding-bottom: 10px;
}

#design-by p {
    font-size: 14px;
    color: var(--wp--preset--color--base);
    text-align: right;
    margin: 0;
}

footer p {
    font-size: 16px;
}

footer p,
footer a:not(.children a) {
    color: var(--wp--preset--color--base);
}

footer #top-custom-menu ul {
    flex-direction: column;
}

@media (min-width: 1025px) {
    .cards {
        justify-content: center;
    }
}

@media (max-width: 1024px) {
    .cards .width320 {
        max-width: unset !important;
    }
}

@media (min-width: 782px) and (max-width: 1024px) {
    #top-custom-menu ul {
        flex-wrap: wrap !important;
    }
}

@media (min-width: 550px) and (max-width: 1024px) {
    .cards {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
    }

    .buttons-center {
        flex-wrap: nowrap !important;
    }
}

@media (max-width: 781px) {
    #footer-menu {
        display: none;
    }
    
    #top-home h1 {
        text-align: center;
    }

    .top-menu-wrapper {
        position: relative;
        order: 2;
    }

    .top-menu-burger {
        position: absolute;
        z-index: 1001;
        display: flex;
    }

    .top-menu-burger[aria-expanded="true"] {
        right: 27px;
        top: 12px;
    }
    
    .top-menu-burger[aria-expanded="false"] {
        right: -10px;
        top: -5px;
    }

    .top-menu-wrapper.is-open .top-menu-burger {
        position: fixed;
        background-color: transparent;
        border-color: transparent;
    }

    .top-menu-wrapper.is-open .top-menu-burger__line {
        background-color: #fff;
    }

    #top-custom-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: linear-gradient(135deg, var(--wp--preset--color--accent-2) 0%, var(--wp--preset--color--accent-1) 100%);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        margin: 0;
        opacity: 0;
        visibility: hidden;
        transform: scale(0.95);
        pointer-events: none;
        transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
        z-index: 1000;
    }

    .top-menu-wrapper.is-open #top-custom-menu {
        opacity: 1;
        visibility: visible;
        transform: scale(1);
        pointer-events: auto;
    }

    #top-custom-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 25px;
        width: 100%;
        padding: 0;
        text-align: center;
    }

    #top-custom-menu a {
        color: #fff;
        font-size: 24px;
        font-weight: 500;
        text-align: center;
        transition: all 0.3s ease;
    }

    #top-custom-menu a:hover {
        transform: scale(1.1);
        color: rgba(255, 255, 255, 0.8);
    }

    #top-custom-menu .current_page_item > a {
        color: #fff;
        font-weight: 700;
        text-decoration: underline;
    }

    #top-custom-menu .page_item_has_children::after {
        display: none;
    }

    .polylang_langswitcher {
        margin-right: 65px !important;
        order: 1;
    }

    #top-custom-menu .children {
        position: static;
        background-color: transparent;
        padding: 10px 0;
        gap: 15px;
    }

    #top-custom-menu .page_item_has_children:hover .children,
    #top-custom-menu .page_item_has_children .children {
        height: auto;
        width: auto;
        opacity: 1;
        overflow: visible;
        left: auto;
    }

    #top-custom-menu .children a {
        font-size: 20px;
        font-weight: 400;
    }

    .wp-block-columns.gallery-logos:not(.is-not-stacked-on-mobile)>.wp-block-column {
        flex-basis: unset !important;
    }

    .icons-columns.mobile-blue .wp-block-columns {
        background-color: var(--wp--preset--color--accent-2);
        width: 100%;
    }

    .icons-columns .wp-block-columns {
        flex-wrap: nowrap !important;
    }

    .icons-columns .wp-block-columns>.wp-block-column {
        flex-basis: unset !important;
    }

    .icons-columns .wp-block-column p {
        white-space: break-spaces;
    }

    .reverse-mobile>.wp-block-column:first-child {
        order: 2;
    }

    .reverse-mobile>.wp-block-column:last-child {
        order: 1;
    }

    #times-table {
        overflow-x: scroll;
    }
}

@media (max-width: 599px) {

    ul.wp-block-navigation__container,
    ul.wp-block-navigation__submenu-container {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-around !important;
        align-items: center !important;
        padding: 0 !important;
        gap: 20px !important
    }

    ul.wp-block-navigation__container li.has-child a {
        padding-bottom: 20px !important;
        display: block;
    }

    ul.wp-block-navigation__container a {
        font-size: 20px;
    }

    ul.wp-block-navigation__container li {
        align-items: center !important;
    }
}

@media (max-width: 549px) {
    .buttons-center {
        gap: 10px !important;
    }

    .buttons-center .wp-block-button {
        width: 100%;
    }
}
