/*
Theme Name: Salient Child Theme
Description: This is a custom child theme for Salient
Theme URI:   https://themeforest.net/item/salient-responsive-multipurpose-theme/4363266
Author: ThemeNectar
Author URI:  https://themeforest.net/user/themenectar
Template: salient
Version: 1.0
*/

/* Match header container width with Elementor container width */
#header-outer header > .container {
    max-width: 1220px !important;
    width: 100%;
    padding-left: 40px;
    padding-right: 40px;
}

@media (max-width: 999px) {
    #header-outer header > .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Footer Styles */
.site-footer {
    background: #f5f5f5;
    color: #2c2c2c;
    padding: 60px 0 40px;
}

.footer-tagline {
    text-align: left;
    margin-bottom: 40px;
}

.footer-tagline p {
    font-size: 20px;
    font-weight: 500;
    color: #2c2c2c;
    margin: 0;
}

.footer-menus-inline {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.footer-menu-inline {
    display: flex;
}

.inline-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.inline-menu li {
    position: relative;
    padding: 0 12px;
    list-style: unset;
}

.inline-menu li:first-child {
    padding-left: 0;
}

.inline-menu li:not(:last-child)::after {
    content: '|';
    position: absolute;
    right: 0;
    color: #999;
}

.inline-menu a {
    color: #2c2c2c;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.inline-menu a:hover {
    color: #d62c1e;
}

.footer-contact {
    margin-bottom: 30px;
}

.footer-contact a {
    color: #2c2c2c;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: #d62c1e;
}

.footer-disclaimer {
    margin-bottom: 30px;
}

.footer-disclaimer p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.footer-copyright {
    border-top: 1px solid #ddd;
    padding-top: 20px;
    margin-top: 20px;
}

.footer-copyright p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

@media (max-width: 768px) {
    .site-footer {
        padding: 40px 0 30px;
    }

    .footer-tagline p {
        font-size: 18px;
    }

    .inline-menu {
        flex-direction: column;
        gap: 12px;
    }

    .inline-menu li {
        padding: 0;
    }

    .inline-menu li:not(:last-child)::after {
        display: none;
    }

    .footer-contact a {
        font-size: 16px;
    }
}
@media(min-width: 991px){
    li.slide-out-widget-area-toggle{
        display: none !important;
    }
}

/* search */
body.material #search-outer #search #search-box input[type="text"]{
    font-size: 26px;
    line-height: 1;
    height: 44px !important;
}
body.material #search-outer {
    height: 18vh;
}
#search-outer #search #close {
    margin-top: -34px;
}
@media(max-width: 768px){
    body.material #search-outer #search #search-box input[type="text"]{
        font-size: 18px;
        height: 36px !important;
    }
    body.material #search-outer{
        height: 180px;
    }
}

/* Hontas Mobile Menu */
.hontas-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s 0.3s, opacity 0.3s;
}

.hontas-mobile-menu.active {
    visibility: visible;
    opacity: 1;
    transition: visibility 0s, opacity 0.3s;
}

.hontas-menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hontas-menu-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 320px;
    max-width: 85vw;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.hontas-mobile-menu.active .hontas-menu-panel {
    transform: translateX(0);
}

.hontas-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
    color: #2c2c2c;
    padding: 0;
}

.hontas-menu-close:hover {
    color: #d62c1e;
}

.hontas-menu-nav {
    padding: 80px 30px 30px;
}

.hontas-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hontas-menu-list li {
    border-bottom: 1px solid #e5e5e5;
}

.hontas-menu-list a {
    display: block;
    padding: 15px 0;
    color: #2c2c2c;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
}

.hontas-menu-list a:hover {
    color: #d62c1e;
}

.hontas-menu-list .sub-menu {
    list-style: none;
    padding: 0 0 0 20px;
    margin: 0;
}

.hontas-menu-list .sub-menu a {
    font-size: 14px;
    font-weight: 400;
    padding: 10px 0;
}

/* Mobile menu submenu styles */
.hontas-menu-list .menu-item-has-children > a {
    position: relative;
    padding-right: 35px;
}

.hontas-menu-list .menu-item-has-children > a::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    font-weight: 300;
    line-height: 1;
    transition: transform 0.3s ease;
}

.hontas-menu-list .menu-item-has-children.submenu-open > a::after {
    content: '−';
}

.hontas-menu-list .sub-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.hontas-menu-list .menu-item-has-children.submenu-open > .sub-menu {
    max-height: 500px;
}

/* Убираем точки у всех пунктов меню */
.hontas-menu-list,
.hontas-menu-list ul,
.hontas-menu-list li {
    list-style: none !important;
    list-style-type: none !important;
}

/* Убираем border-bottom у последних дочерних элементов подменю */
.hontas-menu-list .sub-menu li {
    border-bottom: none;
}

/* Оставляем border-bottom только у элементов верхнего уровня */
.hontas-menu-list > li {
    border-bottom: 1px solid #e5e5e5;
}

.hontas-menu-list > li:last-child {
    border-bottom: none;
}

/* Footer container width to match header */
.site-footer .container {
    max-width: 1220px !important;
    width: 100%;
    padding-left: 40px;
    padding-right: 40px;
    margin: 0 auto;
}

@media (max-width: 999px) {
    .site-footer .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}
