/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Description: Child theme for Astra
Author: Liubomyr
Author URI: https://example.com
Template: astra
Version: 1.0.0
Text Domain: astra-child
*/


.custom-list-city .uagb-icon-list__wrap {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
}
header .custom-logo-link img {
    max-width: 120px;
    width: 120px;
}

.custom-footer__main {
    padding: 150px 0;
}

.custom-footer__grid {
    display: grid;
    grid-gap: 30px;
    grid-template-columns: repeat(3, 1fr);
}
.custom-footer__col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 2px solid #e5e5e5;
    padding-right: 30px;
}
.custom-footer__col:last-child {
    border-right: none;
    padding-right: 0;
}

.custom-footer__col--callback {
    gap: 20px;
}
.custom-footer__col--callback .custom-footer__title {
    font-size: 2.375rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    line-height: 1.3em;
    text-transform: uppercase;
    color: #52426e;
    text-align: center;
    margin: 0;
}
.custom-footer__col--callback .callback-text {
    font-size: 1.175rem;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    line-height: 1.3em;
    color: #655a79;
    text-align: center;
    margin: 0;
}
.custom-footer__col--callback .custom-footer__btn-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    box-shadow: 0px 0px 0 #00000026;
    background: #7c6a9e;
    padding: 18px 35px;
    border-radius: 6px;
}
.custom-footer__col--callback .custom-footer__btn-icon svg {
    width: 30px;
    height: auto;
}
.custom-footer__col--callback .custom-footer__btn-icon svg path {
    fill: #ffffff;
}
.custom-footer__col--callback .custom-footer__btn-icon span {
    font-size: 1.375rem;
    font-weight: normal;
    line-height: 1em;
    color: #ffffff;
    text-transform: uppercase;
}
.custom-footer__col--callback .custom-footer__btn-icon:hover {
    background: #655a79;
}

.custom-footer__col--logo {}

.custom-footer__logo-link {
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 75%;
}
.custom-footer__col--logo .custom-footer__logo {
    width: 100%;
    height: auto;
}

.custom-footer__col--logo .custom-footer__phone {
    font-size: 2.175rem;
    margin-bottom: 20px;
}

.custom-footer__col--logo .custom-footer__email {
    font-size: 1.275rem;
    margin-top: 20px;
    text-transform: none;
    font-weight: 700;
}

.custom-footer__col--logo .custom-footer__location {
    font-size: 0.975rem;
    font-weight: 400;
    font-family: 'Poppins', sans-serif;
    line-height: 1.3em;
    color: #655a79;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0;
}
.custom-footer__col--logo .custom-footer__location span {}

.custom-footer__col--contact {}
.custom-footer__col--contact .custom-footer__title {
    font-size: 2.375rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    line-height: 1.3em;
    text-transform: uppercase;
    color: #52426e;
    text-align: center;
    margin: 0 0 40px 0;
}
.custom-footer__col--contact .custom-social-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}
.custom-footer__col--contact .custom-social-list__item {
    width: 45px;
}
.custom-footer__col--contact .custom-social-list__item svg {
    width: 100%;
    height: auto;
    transition: all 0.3s ease-in-out;
}
.custom-footer__col--contact .custom-social-list__item:hover svg {
    transform: scale(1.1);
    transition: all 0.3s ease-in-out;
}

.custom-footer__col--contact {}


.custom-footer__bottom {
    background: #7c6a9e;
}
.custom-footer__bottom .custom-footer__copyright {
    margin: 0;
    padding: 30px 0;
    text-align: center;
    color: #ffffff;
    font-size: 1.075rem;
    font-weight: 400;
    font-family: 'Poppins', sans-serif;
    line-height: 1.3em;
}

/* === Read More / Read Less for items-read-more === */

/* Default state — truncated description */
.items-read-more .wp-block-uagb-container .uagb-ifb-desc {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    line-clamp: 5;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: max-height 0.3s ease;
}

/* Expanded state — full description visible */
.items-read-more .wp-block-uagb-container .uagb-ifb-desc.is-expanded {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
}

/* Read more / less button */
.items-read-more .read-more-toggle {
    background: #7c6a9e;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: box-shadow .2s ease;
    color: var(--ast-global-color-5);
    font-family: inherit;
    font-weight: normal;
    line-height: 1em;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 15px;
    font-size: 0.9375rem;
    border-radius: 6px;
    padding: 18px 35px;
    box-shadow: 0px 0px 0 #00000026;
    margin: 0 auto;
}

.items-read-more .read-more-toggle:hover {
}

.items-read-more .uagb-buttons-repeater.wp-block-button__link {
    /*display: none !important;*/
}
.items-read-more .read-more-toggle {

}

@media (max-width: 1200px) {
    .custom-footer__col--callback .custom-footer__title,
    .custom-footer__col--contact .custom-footer__title {
        font-size: 1.875rem;
    }
    .custom-footer__col--callback .callback-text {
        font-size: 1rem;
    }
    .custom-footer__col--callback .custom-footer__btn-icon span {
        font-size: 1.175rem;
    }
    .custom-footer__col--logo .custom-footer__phone {
        font-size: 1.375rem;
    }
    .custom-footer__col--logo .custom-footer__location {
        font-size: 0.875rem;
    }
}
/* Table */
@media (max-width: 1020px) {
    .custom-footer__col--callback .custom-footer__btn-icon {
        padding: 18px 10px;
    }
    .custom-footer__col--logo .custom-footer__location {
        flex-direction: column;
    }
    .custom-footer__col--logo .custom-footer__location span:nth-child(2) {
        display: none;
    }
}
@media (max-width: 921px) {
    .custom-footer__main {
        padding: 50px 0;
    }
    .custom-footer__grid {
        grid-template-columns: 1fr;
    }
    .custom-footer__col {
        padding-right: 0;
        border-right: none;
    }
    .custom-footer__logo-link {
        width: 45%;
    }
    .custom-list-city .uagb-icon-list__wrap {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    header .custom-logo-link img {
        max-width: 100px;
        width: 100px;
    }
}

/* Mobile */
@media (max-width: 544px) {
    .custom-footer__logo-link {
        width: 75%;
    }
    .custom-list-city .uagb-icon-list__wrap {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    header .custom-logo-link img {
        max-width: 90px;
        width: 90px;
    }
}