/* --primary and --secondary are defined in style.css (:root) — do not redefine here */

.progress-bar{
    background: var(--primary);
}

.bg-gray{
    background: #ebebeb;
}

.btn:not(.btn-search){
    padding: 11px 25px;
}
.rounded-4{
    border-radius: 20px;
}
.btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.btn-rounded{
    border-radius: 30px;
}

.categories-blocks .featured{
    padding: 35% 0;
    position: relative;
}

.categories-blocks{
    font-size: 18px;
    font-weight: 500;
    color: var(--secondary)
}

.bg-primary {
    background-color: var(--primary) !important;
}

.btn-secondary {
    background-color: var(--secondary) !important;
    border-color: var(--secondary) !important;
}

.bg-secondary {
    background-color: var(--secondary) !important;
}

/* Site header (Bootstrap 5 adaptation of #main_header) */
.site-header{
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: solid 1px #ebebeb;
}
.site-header .my-account{
    text-decoration: none;
    color: #000;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
.site-header .my-account i{
    font-size: 24px;
}
.site-header .top-links a {
    color: #111111;
    font-size: 12px;
    line-height: 14px;
}

.site-header .top-links a:hover {
    text-decoration: underline;
}

.site-header .navbar {
    border-bottom: 1px solid #eee;
}

/* Language switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 2px;
    border-left: 1px solid #ddd;
    padding-left: 12px;
    margin-left: 8px;
}
.lang-switcher .lang-link {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 4px 6px;
    color: #555;
    text-decoration: none;
    border-radius: 4px;
    transition: opacity 0.15s, background 0.15s;
    line-height: 1;
}
.lang-switcher .lang-flag {
    width: 22px;
    height: auto;
    display: block;
    border-radius: 2px;
}
.lang-switcher .lang-link:hover {
    color: #111;
    background: #f0f0f0;
}
.lang-switcher .lang-link.active {
    color: #111;
    font-weight: 700;
}

/* Main navigation drawer on handheld and tablet screens */
@media (max-width: 991.98px) {
    body.mobile-menu-open {
        overflow: hidden;
    }

    #mainHeader .navbar {
        z-index: 2;
        padding: 8px 0;
        background: #fff;
    }

    #mainHeader .navbar > .container {
        align-items: center;
    }

    #mainHeader .navbar-toggler {
        position: relative;
        z-index: 2;
        display: inline-grid;
        place-items: center;
        width: 46px;
        height: 46px;
        padding: 0;
        color: var(--primary);
        background: #fff;
        border: 1px solid rgba(190, 155, 81, 0.3);
        border-radius: 50%;
        transition: background-color .2s ease, border-color .2s ease;
    }

    #mainHeader .navbar-toggler:focus-visible {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(190, 155, 81, .2);
    }

    #mainHeader .navbar-toggler:not(.collapsed) {
        background: rgba(190, 155, 81, .08);
        border-color: var(--primary);
    }

    #mainHeader .navbar-toggler .fa-bars,
    #mainHeader .navbar-toggler .fa-xmark {
        transition: opacity .18s ease, transform .18s ease;
    }

    #mainHeader .navbar-toggler .fa-xmark,
    #mainHeader .navbar-toggler:not(.collapsed) .fa-bars {
        opacity: 0;
        transform: scale(.7);
    }

    #mainHeader .navbar-toggler:not(.collapsed) .fa-xmark {
        opacity: 1;
        transform: scale(1);
    }

    #mainHeader .navbar-collapse {
        top: calc(100% + 1px);
        padding: 8px 18px calc(18px + env(safe-area-inset-bottom));
        max-height: calc(100dvh - 72px - env(safe-area-inset-bottom));
        overflow-y: auto;
        overscroll-behavior: contain;
        border-radius: 0 0 18px 18px;
        box-shadow: 0 18px 30px rgba(20, 17, 12, .12);
        opacity: 0;
        transform: translateY(-8px);
        transition: opacity .2s ease, transform .2s ease;
    }

    #mainHeader .navbar-collapse.collapsing,
    #mainHeader .navbar-collapse.show {
        top: calc(100% + 1px);
        opacity: 1;
        transform: translateY(0);
    }

    #mainHeader #menu-main-menu .nav-item,
    #mainHeader #menu-main-menu-2 .nav-item {
        padding-left: 0 !important;
        border-bottom: 1px solid rgba(37, 33, 41, .08);
    }

    #mainHeader #menu-main-menu .nav-item::before,
    #mainHeader #menu-main-menu-2 .nav-item::before {
        display: none;
        content: none !important;
    }

    #mainHeader #menu-main-menu .nav-item .nav-link,
    #mainHeader #menu-main-menu-2 .nav-item .nav-link {
        display: flex;
        align-items: center;
        min-height: 50px;
        padding: 13px 4px;
        font-size: 16px;
        font-weight: 500;
    }

    #mainHeader #menu-main-menu .nav-item.btn-wrapper,
    #mainHeader #menu-main-menu-2 .nav-item.btn-wrapper {
        width: 100%;
        margin-top: 14px;
        border-bottom: 0;
    }

    #mainHeader #menu-main-menu .nav-item.btn-wrapper a,
    #mainHeader #menu-main-menu-2 .nav-item.btn-wrapper a {
        display: block;
        padding: 14px 22px;
        text-align: center;
    }

    #mainHeader .navbar-collapse .dropdown-menu {
        position: static;
        padding: 4px 10px 10px;
        margin: 0 0 6px;
        border: 0;
        box-shadow: none;
        background: #faf8f3;
    }

    #mainHeader .lang-switcher {
        flex-direction: row;
        gap: 6px;
        padding-top: 14px;
        margin-top: 10px;
    }

    #mainHeader .lang-switcher .nav-item {
        padding-left: 0;
    }

    #mainHeader .lang-switcher .lang-link {
        padding: 9px 12px;
        border: 1px solid #eee;
        border-radius: 20px;
    }

    #mainHeader .lang-switcher .lang-link.active {
        color: var(--primary);
        border-color: rgba(190, 155, 81, .32);
        background: rgba(190, 155, 81, .08);
    }

    #mainHeader .mobile-menu-backdrop {
        position: fixed;
        z-index: 1;
        inset: 0;
        display: block !important;
        width: 100%;
        height: 100%;
        padding: 0;
        border: 0;
        background: rgba(18, 15, 10, .42);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .2s ease, visibility .2s ease;
    }

    #mainHeader.header--menu-open .mobile-menu-backdrop {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
}

@media (max-width: 991.98px) and (prefers-reduced-motion: reduce) {
    #mainHeader .navbar-toggler .fa-bars,
    #mainHeader .navbar-toggler .fa-xmark,
    #mainHeader .navbar-collapse,
    #mainHeader .mobile-menu-backdrop {
        transition-duration: .01ms;
    }
}

@media (max-width: 991px) {
    .lang-switcher {
        border-left: none;
        padding-left: 0;
        margin-left: 0;
        border-top: 1px solid #eee;
        padding-top: 8px;
        margin-top: 4px;
    }
}

.site-header .navbar-brand img {
    max-height: 50px;
    height: auto;
}

.site-header .bg-light {
    background-color: #f8f9fa !important;
}

.site-header .border-bottom {
    border-bottom: 1px solid #eee !important;
}

.site-header .search-form{
    width: 400px;
    max-width: 100%;
}

/* Site footer (Bootstrap 5 adaptation of .footer-bottom and #theme_footer) */
.site-footer .footer-title {
    font-weight: 600;
}

.site-footer .footer-bottom .link-dark {
    color: #000;
}

.site-footer .footer-bottom .link-dark:hover {
    text-decoration: underline;
}

.footer-dark {
    background-color: #222;
    color: #FFF
}
.footer-dark ul a{
    color: #FFF;
    text-decoration: none;
}
.footer-copy{
    border-top: solid 1px rgba(255,255,255,.3);
}
.site-footer .footer-dark .link-light {
    color: #f1f1f1;
}

.site-footer .footer-dark .link-light:hover {
    text-decoration: underline;
}

/* Hero section (Bootstrap 5 adaptation of .elementor-element-578f475f) */
.hero-section {
    background-color: rgba(237, 205, 0, 0.21);
    padding: 150px 0;
}
.header-links a{
    text-decoration: none;
}
.hero-section .btn {
    border-radius: 10px;
}

.section{
    padding: 80px 0;
}
.section--white+.section--white{
    padding-top: 0;
}
.section--gray{
    background: #f8f8f8;
}
/* Alternating section backgrounds for homepage rhythm */
.section--houses-two {
    background: #f5f5f5;
}
.section--blog {
    background: #ffffff;
}
.section--blocks,
.section--services,
.section--locations {
    background: var(--primary);
}
.section--blocks .title--section {
    color: #fff;
}
.section--blocks .paragraph {
    color: rgba(255, 255, 255, 0.72);
}
.section--blocks .blocks .block .content .title--block {
    font-weight: 600;
}
.section--blocks .blocks .block .content .link i {
    margin-left: 6px;
}
/* Blog cards */
.section--blog .block figure {
    border-radius: 10px 10px 0 0;
}
.section--blog .block .title--block {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
}
.section--blocks .blocks .block,
.section--blog .blocks .block {
    background: #ffffff;
}
/* Features section (Bootstrap 5 adaptation of .elementor-element-0692907) */
.features-section {
    background-color: #EFEFEF;
}

.features-section i {
    color: #18BD31;
}

.features-section .feature-text {
    color: #111;
}

/* Mobile-only slider behavior for features */
@media (max-width: 767.98px) {
    .features-section .features-slider {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        position: relative; /* ensure child .position().left is relative */
        gap: 12px; /* compact spacing between slides */
    }

    .features-section .features-slider::-webkit-scrollbar {
        display: none; /* hide scrollbar on mobile */
    }

    .features-section .features-slider .feature {
        flex: 0 0 100%; /* one feature per viewport */
        scroll-snap-align: start;
    }

    /* Disable snap while animating to avoid jitter */
    .features-section .features-slider.fs-animating {
        scroll-snap-type: none;
    }
}

/* Popular section (Bootstrap 5 adaptation of .elementor-element-2a226c7c) */
.popular-section .h3 {
    font-weight: 700;
    color: #111;
}

.popular-section .text-muted {
    color: #6c757d !important;
}

.popular-section .border {
    border-color: #e5e5e5 !important;
}

/* Popular A section (Bootstrap 5 adaptation of .elementor-element-22f4bd78) */
.popular-a-section .popular-a-link {
    color: #111;
    text-decoration: none;
}

.popular-a-section .popular-a-link:hover {
    text-decoration: underline;
}

/* Popular B section (Bootstrap 5 adaptation of .elementor-element-bb275f9) */
.popular-section .popular-b-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
}

.popular-section .popular-b-link:hover {
    text-decoration: underline;
}

/* CTA section (Bootstrap 5 adaptation of .elementor-element-cfc1169) */
.cta-section .btn {
    border-radius: 10px;
}

/* Products section (Bootstrap 5 adaptation of .elementor-element-79ab4565) */
.products-section .h3 {
    font-weight: 700;
    color: #111;
}

.products-section .text-muted {
    color: #6c757d !important;
}

.products-section .product-link {
    color: #111;
    text-decoration: none;
}

.products-section .product-link:hover {
    text-decoration: underline;
}

.products-section .price {
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.9rem;
}

.products-section .btn {
    text-transform: uppercase;
    font-weight: 600;
}

/* Archive clean (Bootstrap adaptation of .main-side.woocommerce) */
.woobc .breadcrumb-item+.breadcrumb-item::before {
    content: ">";
}

/* Blog cards: image aspect ratio cover */
.blog-section .card .card-img-wrap,
.card .card-img-wrap {
    position: relative;
    padding-bottom: 65%;
    overflow: hidden;
}

.blog-section .card .card-img-wrap img,
.card .card-img-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Sidebar widgets (index/single) */
.sidebar .widget {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
}

.sidebar .widget .title,
.sidebar .widget .widget-title,
.sidebar .widgettitle {
    font-weight: 600;
    font-size: 1rem;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar .widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar .widget ul li {
    padding: 6px 0;
    border-bottom: 1px dashed #eee;
}

.sidebar .widget ul li:last-child { border-bottom: 0; }

.sidebar .widget a { text-decoration: none; color: #111; }
.sidebar .widget a:hover { text-decoration: underline; }

/* Categories dropdown */
.sidebar .widget select,
.sidebar .widget .postform {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px 10px;
    background: #fff;
}

/* Search widget */
.sidebar .widget_search .search-form,
.sidebar .search-form {
    display: flex;
    gap: 8px;
}

.sidebar .search-form input[type="search"],
.sidebar .search-form input[type="text"] {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px 10px;
}

.sidebar .search-form button,
.sidebar .widget_search .btnsearch {
    border-radius: 6px;
    border: 1px solid var(--secondary);
    color: var(--secondary);
    background: transparent;
    padding: 8px 12px;
}

.sidebar .search-form button:hover,
.sidebar .widget_search .btnsearch:hover {
    background: var(--secondary);
    color: #fff;
}

/* Compact latest posts list (generic) */
.sidebar .widget .media-list .media-item,
.sidebar .widget .latest-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

.sidebar .widget .media-list .media-item:last-child,
.sidebar .widget .latest-item:last-child { border-bottom: 0; }

.sidebar .widget .media-thumb {
    width: 64px;
    height: 64px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.sidebar .widget .media-thumb img { width: 100%; height: 100%; object-fit: cover; }


.price-pill {
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.9rem;
    display: inline-block;
}

.product-link {
    color: #111;
    text-decoration: none;
}

.product-link:hover {
    text-decoration: underline;
}

.list-group-item-action {
    border-radius: 6px;
    margin-bottom: 6px;
}

/* Banner section (Bootstrap 5 adaptation of .elementor-element-c85c1e1) */
.banner-section{
    padding: 150px 0;
    color: #FFF;
    font-size: 20px;
    text-shadow: 0 0 6px rgba(0,0,0,.8);
}
.banner-section .banner-eyebrow {
    font-weight: 600;
    color: #FFF;
    font-size: 35px;
}

.banner-section .banner-subtitle {
    font-size: 1rem;
}

.banner-section .btn {
    border-radius: 10px;
}

/* Categories section (Bootstrap 5 adaptation of #sect-categories) */
.categories-section .h3 {
    font-weight: 700;
    color: #111;
}

.categories-section .text-muted {
    color: #6c757d !important;
}

.categories-section .border {
    border-color: #e5e5e5 !important;
}

.categories-section .category-tile {
    color: #111;
}

.categories-section .category-tile:hover {
    text-decoration: underline;
}

/* Brand tiles for categories section */
.categories-section .brand-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.categories-section .brand-link {
    color: #111;
    text-decoration: none;
}

.categories-section .brand-link:hover {
    text-decoration: underline;
}

.categories-section .btn {
    border-radius: 10px;
}

.products-section .card img{
    width: 180px;
    max-width: 100%;
}

/* Blog section (Bootstrap 5 adaptation of .elementor-element-6d9d76df) */
.blog-section .blog-link {
    color: #111;
    text-decoration: none;
}

.blog-section .blog-link:hover {
    text-decoration: underline;
}

.blog-section .card img {
    object-fit: cover;
}

.no-wrap {
    white-space: nowrap;
}

.footer-widgets ul {
    list-style: none;
    padding-left: 0;
}

.search-form .btn{
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}
.search-form .form-control{
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}
.header__bottom{
    background: #FFF;
}
.header__bottom .navbar-nav li a{
    padding: 8px 20px;
    color: #2b2b2b;
}
@media(min-width: 992px){
.header__bottom .collapse:not(.show){
    display: block;
}
.header__bottom .navbar-nav{
    flex-wrap: wrap;
    flex-direction: row;
}
.header__bottom .navbar-nav li+li{
    border-left: solid 1px #ebebeb;
}
}

.sidebar .wp-block-heading{
    font-size: 20px !important;
}

.sidebar .container{
    padding: 0;
}

.sidebar ol.wp-block-latest-comments{
    padding-left: 0;
}

.wp-block-search__button-outside label{
    display: none;
}

/* ── Global: replace Bootstrap blue with theme colors ─────────────────── */

/* Override Bootstrap 5 link CSS variable */
:root {
    --bs-link-color: #1a1a1a;
    --bs-link-hover-color: var(--primary);
    --bs-link-color-rgb: 26, 26, 26;
}

/* Anchor tags: dark by default, orange on hover */
a {
    color: #1a1a1a;
}
a:hover {
    color: var(--primary);
}

/* Dropdown active/selected item */
.dropdown-item.active,
.dropdown-item:active {
    background-color: var(--primary) !important;
    color: #fff !important;
}

/* Bootstrap nav-link active (tabs, nav pills, etc.) */
.nav-link {
    color: #1a1a1a;
}
.nav-link:hover,
.nav-link:focus {
    color: var(--primary);
}
.nav-link.active {
    color: var(--primary) !important;
}

/* List-group active (chat sidebar, etc.) */
.list-group-item-action.active,
.list-group-item.active {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}

/* Form focus ring */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 .2rem rgba(190, 155, 81, .25);
}

/* btn-outline-primary */
.btn-outline-primary {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}
.btn-outline-primary:hover,
.btn-outline-primary:active,
.btn-outline-primary.active {
    background-color: var(--primary) !important;
    color: #fff !important;
}

/* Pagination */
.page-link {
    color: #1a1a1a;
}
.page-link:hover {
    color: var(--primary);
}
.page-item.active .page-link {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}

/* Mobile homepage UX polish */
@media (max-width: 575.98px) {
    body.home .section--hero {
        align-items: flex-end !important;
        min-height: calc(100svh - 72px) !important;
        padding: 150px 0 72px !important;
    }

    body.home .section--hero .container {
        margin-top: 0 !important;
    }

    body.home .section--hero .content {
        max-width: 100% !important;
        padding: 0 14px;
    }

    body.home .section--hero .content .title {
        font-size: 42px !important;
        line-height: 1.04 !important;
        margin-bottom: 18px !important;
    }

    body.home .section--hero .content form {
        max-width: 100% !important;
    }

    body.home .section--hero .scroll-down {
        display: none !important;
    }

    body.home .search-form .nav {
        gap: 0;
        padding: 0;
        margin-bottom: 0;
        background: #fff;
        border: 0 !important;
        border-radius: 14px 14px 0 0;
        overflow: hidden;
    }

    body.home .search-form .nav .nav-item {
        flex: 1 1 0;
        width: 50%;
        padding: 0 !important;
        background: transparent !important;
        border-radius: 0 !important;
    }

    body.home .search-form .nav .nav-link {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 50px;
        padding: 13px 12px !important;
        border: 0 !important;
        border-radius: 0 !important;
        color: #1a1a1a !important;
        line-height: 1;
    }

    body.home .section--hero .content .search-form .nav .nav-link::before {
        display: none !important;
        content: none !important;
    }

    body.home .search-form .nav .nav-link.active,
    body.home .search-form .nav .nav-link:hover,
    body.home .search-form .nav .nav-link:focus {
        background: var(--primary) !important;
        color: #fff !important;
        box-shadow: none;
    }

    body.home .search-form .tab-content {
        padding: 10px !important;
        border-radius: 0 0 14px 14px !important;
    }

    body.home .search-form .form-group {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 54px;
        gap: 8px !important;
        align-items: stretch;
    }

    body.home .search-form .main-search {
        min-height: 46px;
        font-size: 16px;
        border-radius: 10px !important;
    }

    body.home .search-form .btn {
        width: 54px;
        min-width: 54px !important;
        min-height: 46px;
        padding: 0 !important;
        border-radius: 10px !important;
        font-size: 0;
    }

    body.home .search-form .btn i {
        margin-left: 0 !important;
        font-size: 19px;
    }
}

@media (max-width: 380px) {
    body.home .section--hero {
        padding-top: 130px !important;
        padding-bottom: 58px !important;
    }

    body.home .section--hero .content .title {
        font-size: 38px !important;
    }
}

@media (max-width: 991.98px) {
    #mainHeader .navbar-toggler {
        position: relative;
        display: inline-grid;
        place-items: center;
        width: 50px;
        height: 50px;
        border: 1px solid rgba(190, 155, 81, .32) !important;
        border-radius: 999px;
        box-shadow: none !important;
    }

    #mainHeader .navbar-toggler i {
        position: absolute;
        inset: auto;
        margin: auto;
        transition: opacity .16s ease, transform .16s ease;
    }

    #mainHeader .navbar-toggler[aria-expanded="false"] .fa-bars,
    #mainHeader .navbar-toggler.collapsed .fa-bars {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }

    #mainHeader .navbar-toggler[aria-expanded="false"] .fa-xmark,
    #mainHeader .navbar-toggler.collapsed .fa-xmark {
        opacity: 0;
        transform: scale(.7) rotate(-45deg);
    }

    #mainHeader .navbar-toggler[aria-expanded="true"] .fa-bars {
        opacity: 0;
        transform: scale(.7) rotate(45deg);
    }

    #mainHeader .navbar-toggler[aria-expanded="true"] .fa-xmark {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }

    #mainHeader .navbar-collapse.show,
    #mainHeader .navbar-collapse.collapsing {
        border-radius: 0 0 18px 18px;
        padding: 16px 18px 20px;
    }
}
