/* ==========================================
   Chody Navigation Suite
   navigation.css v3.0
========================================== */

:root{
    --cns-purple:#4a246a;
    --cns-gold:#d4af37;
    --cns-cream:#fffaf0;
}

/* ==========================================
   HEADER
========================================== */

.cns-navigation,
.cns-navigation *{
    box-sizing:border-box;
}

.cns-navigation{
    position:relative;
    z-index:9998;

    display:grid;
    grid-template-columns:minmax(300px,1fr) auto minmax(180px,1fr);
    align-items:center;

    width:calc(100% - 56px);
    max-width:1400px;
    min-height:145px;

    margin:18px auto 26px;
    padding:6px 30px;

    /* Floating frosted-glass treatment */
    background:rgba(255,250,240,.82);

    backdrop-filter:blur(16px);
    -webkit-backdrop-filter:blur(16px);

    /* No visible gold border */
    border:none;

    border-radius:26px;

    box-shadow:
        0 14px 36px rgba(0,0,0,.18),
        0 4px 12px rgba(0,0,0,.08);
}

.cns-logo{
    display:flex;
    align-items:center;
    justify-content:flex-start;
    min-width:0;
}

.cns-logo-link{
    display:inline-flex;
    align-items:center;
    max-width:100%;
    text-decoration:none;
}

.cns-header-logo{
    display:block;
    width:auto;
    height:165px;
    max-width:100%;
    object-fit:contain;
    transform:scale(1.12);
    transform-origin:left center;
}

.cns-nav{
    justify-self:center;
}

.cns-menu{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:26px;
    margin:0;
    padding:0;
    list-style:none;
}

.cns-menu li{
    position:relative;
    margin:0;
    padding:0;
    list-style:none;
}

.cns-menu li::before,
.cns-menu li::after{
    display:none !important;
    content:none !important;
}

.cns-menu a{
    position:relative;
    display:block;
    padding:12px 0;
    color:var(--cns-purple);
    font-size:16px;
    font-weight:600;
    line-height:1.2;
    letter-spacing:.3px;
    text-decoration:none;
    white-space:nowrap;
    transition:color .25s ease,text-shadow .25s ease;
}

.cns-menu a::before{
    display:none !important;
    content:none !important;
}

.cns-menu a::after{
    content:"";
    position:absolute;
    left:50%;
    bottom:5px;
    width:0;
    height:2px;
    background:var(--cns-gold);
    border-radius:2px;
    transform:translateX(-50%);
    transition:width .25s ease;
}

.cns-menu a:hover,
.cns-menu a:focus-visible,
.cns-menu .current-menu-item>a,
.cns-menu .current_page_item>a,
.cns-menu .current-menu-ancestor>a{
    color:var(--cns-purple);
    text-shadow:
        0 0 6px rgba(212,175,55,.50),
        0 0 12px rgba(212,175,55,.25);
}

.cns-menu a:hover::after,
.cns-menu a:focus-visible::after,
.cns-menu .current-menu-item>a::after,
.cns-menu .current_page_item>a::after,
.cns-menu .current-menu-ancestor>a::after{
    width:100%;
}

/* ==========================================
   HEADER ACTIONS / SEARCH
========================================== */

.cns-header-actions{
    justify-self:end;
    display:flex;
    align-items:center;
}

.cns-search-button{
    position:relative;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:52px;
    height:48px;
    margin-left:10px;
    color:var(--cns-purple);
    text-decoration:none;
    border-radius:50%;
    transition:color .25s ease,transform .25s ease,text-shadow .25s ease;
}

.cns-search-button::before{
    content:"";
    position:absolute;
    left:-8px;
    top:8px;
    bottom:8px;
    width:1px;
    background:rgba(74,36,106,.22);
}

.cns-search-button:hover,
.cns-search-button:focus-visible{
    color:var(--cns-gold);
    transform:translateY(-1px);
    filter:drop-shadow(0 0 5px rgba(212,175,55,.35));
}

.cns-search-button svg{
    width:23px;
    height:23px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.8;
    stroke-linecap:round;
}

.cns-menu-toggle{
    display:none;
    width:48px;
    height:48px;
    padding:11px;
    border:1px solid rgba(212,175,55,.65);
    border-radius:14px;
    background:rgba(255,250,240,.72);
    color:var(--cns-purple);
    cursor:pointer;
}

.cns-menu-toggle span{
    display:block;
    width:24px;
    height:2px;
    margin:5px auto;
    background:currentColor;
    border-radius:2px;
    transition:transform .25s ease,opacity .2s ease;
}

.cns-menu-toggle.is-open span:nth-child(1){
    transform:translateY(7px) rotate(45deg);
}

.cns-menu-toggle.is-open span:nth-child(2){
    opacity:0;
}

.cns-menu-toggle.is-open span:nth-child(3){
    transform:translateY(-7px) rotate(-45deg);
}

/* ==========================================
   DROPDOWN FOUNDATION
========================================== */

.cns-menu .sub-menu{
    position:absolute;
    top:calc(100% + 10px);
    left:50%;
    z-index:9999;
    min-width:260px;
    margin:0;
    padding:12px;
    list-style:none;
    background:var(--cns-cream);
    border:1px solid var(--cns-gold);
    border-radius:18px;
    box-shadow:0 14px 32px rgba(0,0,0,.14);
    opacity:0;
    visibility:hidden;
    transform:translate(-50%,8px);
    transition:opacity .2s ease,transform .2s ease,visibility .2s ease;
}

.cns-menu .sub-menu::before{
    content:"";
    position:absolute;
    top:-7px;
    left:50%;
    width:12px;
    height:12px;
    background:var(--cns-cream);
    border-left:1px solid var(--cns-gold);
    border-top:1px solid var(--cns-gold);
    transform:translateX(-50%) rotate(45deg);
}

.cns-menu li:hover>.sub-menu,
.cns-menu li:focus-within>.sub-menu{
    opacity:1;
    visibility:visible;
    transform:translate(-50%,0);
}

.cns-menu .sub-menu a{
    padding:11px 14px;
    border-radius:10px;
}

.cns-menu .sub-menu a::after{
    display:none;
}

.cns-menu .sub-menu a:hover,
.cns-menu .sub-menu a:focus-visible{
    background:rgba(212,175,55,.10);
}

/* ==========================================
   BACK TO TOP
========================================== */

.cns-back-to-top{
    position:fixed;
    right:24px;
    bottom:24px;
    z-index:9997;
    display:flex;
    align-items:center;
    justify-content:center;
    width:50px;
    height:50px;
    padding:0;
    border:1px solid var(--cns-gold);
    border-radius:50%;
    background:rgba(255,250,240,.94);
    color:var(--cns-gold);
    box-shadow:
        0 8px 22px rgba(0,0,0,.14),
        0 0 12px rgba(212,175,55,.16);
    opacity:0;
    visibility:hidden;
    transform:translateY(10px);
    cursor:pointer;
    transition:
        opacity .25s ease,
        visibility .25s ease,
        transform .25s ease,
        background .25s ease,
        color .25s ease;
}

.cns-back-to-top.is-visible{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}

.cns-back-to-top:hover,
.cns-back-to-top:focus-visible{
    background:var(--cns-purple);
    color:var(--cns-gold);
    transform:translateY(-2px);
}

.cns-back-to-top svg{
    width:25px;
    height:25px;
    fill:none;
    stroke:currentColor;
    stroke-width:2;
    stroke-linecap:round;
    stroke-linejoin:round;
}

/* ==========================================
   RESPONSIVE HEADER
========================================== */

@media (max-width:1280px){
    .cns-navigation{
        width:calc(100% - 28px);
        grid-template-columns:minmax(190px,1fr) auto minmax(110px,1fr);
        padding-left:20px;
        padding-right:20px;
    }

    .cns-header-logo{
        height:140px;
    }

    .cns-menu{
        gap:24px;
    }

    .cns-menu a{
        font-size:16px;
    }
}

@media (max-width:1050px){
    .cns-navigation{
        grid-template-columns:1fr auto;
        min-height:132px;
        padding:10px 20px;
    }

    .cns-header-logo{
        height:118px;
    }

    .cns-header-actions{
        gap:10px;
    }

    .cns-menu-toggle{
        display:block;
    }

    .cns-nav{
        grid-column:1 / -1;
        justify-self:stretch;
        display:grid;
        grid-template-rows:0fr;
        width:100%;
        overflow:hidden;
        transition:grid-template-rows .3s ease;
    }

    .cns-nav.is-open{
        grid-template-rows:1fr;
    }

    .cns-nav>.cns-menu{
        min-height:0;
        overflow:hidden;
    }

    .cns-menu{
        flex-direction:column;
        align-items:stretch;
        gap:0;
        width:100%;
        padding:0;
    }

    .cns-nav.is-open>.cns-menu{
        padding:14px 0 8px;
    }

    .cns-menu>li{
        width:100%;
        text-align:center;
    }

    .cns-menu a{
        padding:12px 14px;
    }

    .cns-menu a::after{
        bottom:6px;
        max-width:80px;
    }

    .cns-menu .sub-menu{
        position:static;
        min-width:0;
        width:min(100%,460px);
        margin:4px auto 8px;
        padding:8px;
        opacity:1;
        visibility:visible;
        transform:none;
        box-shadow:none;
    }

    .cns-menu .sub-menu::before{
        display:none;
    }
}

@media (max-width:600px){
    .cns-navigation{
        width:calc(100% - 20px);
        min-height:104px;
        margin:10px auto;
        padding:8px 12px;
        border-radius:20px;
        border:none;
    }

    .cns-header-logo{
        height:88px;
        max-width:min(58vw,240px);
    }

    .cns-search-button{
        width:42px;
        height:42px;
        margin-left:0;
    }

    .cns-search-button::before{
        display:none;
    }

    .cns-menu-toggle{
        width:44px;
        height:44px;
        padding:9px;
    }

    .cns-back-to-top{
        right:16px;
        bottom:16px;
        width:46px;
        height:46px;
    }
}

/* ==========================================
   INTERIOR HEADER — FLOATING MOCKUP STYLE
========================================== */

body:not(.home):not(.front-page) .cns-navigation{
    border:none !important;
    background:rgba(255,255,255,.50) !important;
    box-shadow:
        0 14px 36px rgba(0,0,0,.18),
        0 4px 12px rgba(0,0,0,.08) !important;
}

body:not(.home):not(.front-page) .cns-navigation a,
body:not(.home):not(.front-page) .cns-navigation button{
    background:transparent !important;
}


/* ==========================================
   FOOTER
   Existing footer preserved
========================================== */

.cns-footer{
    margin-top:30px;
    background:transparent;
    backdrop-filter:none;
    -webkit-backdrop-filter:none;
    color:#4a246a;
}

.cns-footer-top-band{
    position:relative;
    height:2px;
    background:#d4af37;
}

.cns-footer-gem{
    position:absolute;
    left:50%;
    top:50%;
    transform:translate(-50%,-50%);
    width:96px;
    height:96px;
    display:flex;
    justify-content:center;
    align-items:center;
    z-index:5;
}

.cns-footer-gem-image{
    width:88px;
    height:auto;
    filter:drop-shadow(0 0 8px rgba(212,175,55,.45));
}

.cns-footer-inner{
    max-width:1400px;
    margin:0 auto;
    padding:18px 30px 16px;
    display:flex;
    align-items:center;
    justify-content:flex-start;
}

.cns-footer-nav{margin-right:auto;}

.cns-footer-menu{
    display:flex;
    align-items:center;
    flex-wrap:nowrap;
    list-style:none;
    margin:0;
    padding:0;
}

.cns-footer-menu li{
    display:flex;
    align-items:center;
    margin:0;
    padding:0;
}

.cns-footer-menu li:not(:last-child)::after{
    content:"\25C6";
    color:#d4af37;
    font-size:8px;
    margin:0 10px;
}

.cns-footer-menu a{
    font-size:13px;
    font-weight:500;
    color:#4a246a;
    text-decoration:none;
    white-space:nowrap;
    display:inline-block;
    transition:color .25s ease,text-shadow .25s ease;
}

.cns-footer-menu a:hover{
    color:#d4af37;
    text-shadow:0 0 8px rgba(212,175,55,.35);
}

.cns-footer-copy{
    font-size:13px;
    white-space:nowrap;
    margin-left:auto;
}

.cns-footer-social{
    display:flex;
    align-items:center;
    gap:18px;
    margin-left:24px;
}

.cns-footer-social a{
    color:#4a246a;
    display:inline-flex;
    transition:color .25s ease,transform .25s ease,text-shadow .25s ease;
}

.cns-footer-social a:hover{
    color:#d4af37;
    transform:translateY(-2px);
    text-shadow:0 0 8px rgba(212,175,55,.35);
}

.cns-footer-social svg{
    width:20px;
    height:20px;
}

@media (max-width:1100px){
    .cns-footer-inner{
        display:grid;
        grid-template-columns:1fr;
        row-gap:14px;
        text-align:center;
    }

    .cns-footer-nav,
    .cns-footer-copy,
    .cns-footer-social{
        justify-self:center;
        margin-left:0;
        margin-right:0;
    }

    .cns-footer-menu{
        justify-content:center;
        flex-wrap:wrap;
    }
}

@media (prefers-reduced-motion:reduce){
    .cns-navigation *,
    .cns-back-to-top{
        scroll-behavior:auto !important;
        transition:none !important;
    }
}

/* =========================================================
   CHODY INTERIOR HEADER — CLEAN FLOATING HERO VERSION
   Single interior-page header definition.
   Home/front page excluded.
========================================================= */

@media (min-width:1051px){

    body:not(.home):not(.front-page) .cns-navigation{
        position:absolute !important;
        top:18px !important;
        left:50% !important;
        transform:translateX(-50%) !important;
        width:calc(100% - 56px) !important;
        max-width:1400px !important;
        min-height:170px !important;
        margin:0 !important;
        padding:6px 30px !important;
        z-index:9999 !important;

        background:transparent !important;
        background-color:transparent !important;
        border:0 !important;
        border-radius:26px !important;

        box-shadow:0 10px 28px rgba(55,35,20,.10) !important;
        backdrop-filter:blur(5px) saturate(105%) !important;
        -webkit-backdrop-filter:blur(5px) saturate(105%) !important;
    }

    body:not(.home):not(.front-page) .cns-header-logo{
        height:150px !important;
        width:auto !important;
    }

    body:not(.home):not(.front-page) .cns-menu{
        gap:30px !important;
    }

    body:not(.home):not(.front-page) .cns-menu a{
        color:#4a246a !important;
        background:transparent !important;
    }

    body:not(.home):not(.front-page) .cns-search-button{
        color:#4a246a !important;
        background:transparent !important;
    }

    /* Hero remains underneath the floating header. */
    body:not(.home):not(.front-page) .elementor-location-single{
        position:relative !important;
        z-index:1 !important;
        margin-top:0 !important;
    }

    body:not(.home):not(.front-page) .elementor-location-single > .elementor,
    body:not(.home):not(.front-page) .elementor-location-single .elementor-section:first-child{
        margin-top:0 !important;
    }

    /* Prevent REHub's native wrapper from painting a second panel. */
    body:not(.home):not(.front-page) .logo_section_wrap,
    body:not(.home):not(.front-page) .main-nav{
        background:transparent !important;
        background-color:transparent !important;
        border:0 !important;
        box-shadow:none !important;
    }

    body:not(.home):not(.front-page) .logo_section_wrap,
    body:not(.home):not(.front-page) .main-nav{
        position:static !important;
    }
}

@media (min-width:1051px){
    body.admin-bar:not(.home):not(.front-page) .cns-navigation{
        top:50px !important;
    }
}

/* Dropdowns remain solid and readable. */
body:not(.home):not(.front-page) .cns-menu .sub-menu{
    background:#fffaf0 !important;
    background-color:#fffaf0 !important;
    border:1px solid #d4af37 !important;
    border-radius:18px !important;
    box-shadow:0 14px 32px rgba(0,0,0,.14) !important;
}

/* =========================================================
   CHODY INTERIOR HEADER — FINAL GLASS TUNING
   Step 2: stronger frosted veil + protect hero title.
   No logo/menu/hero image replacement.
========================================================= */

@media (min-width:1051px){

    body:not(.home):not(.front-page) .cns-navigation{
        background:rgba(255,250,240,.30) !important;
        background-color:rgba(255,250,240,.30) !important;

        backdrop-filter:blur(11px) saturate(110%) !important;
        -webkit-backdrop-filter:blur(11px) saturate(110%) !important;

        box-shadow:
            0 12px 30px rgba(55,35,20,.12),
            0 0 24px rgba(255,250,240,.08) inset !important;
    }

    /*
     * Keep the hero behind the floating header, but give its
     * page title a clear starting position below the header.
     * This targets Elementor's first hero section only.
     */
    body:not(.home):not(.front-page) .elementor-location-single
    .elementor-section:first-child{
        padding-top:190px !important;
    }

    body:not(.home):not(.front-page) .elementor-location-single
    .elementor-section:first-child > .elementor-container{
        position:relative !important;
        z-index:2 !important;
    }
}

/* =========================================================
   CHODY INTERIOR HEADER — MOCKUP GLASS PASS
   Header appearance only.
   No hero/title positioning changes in this pass.
========================================================= */

@media (min-width:1051px){

    body:not(.home):not(.front-page) .cns-navigation{
        background:rgba(255,250,240,.42) !important;
        background-color:rgba(255,250,240,.42) !important;

        border:1px solid rgba(212,175,55,.58) !important;
        border-radius:26px !important;

        backdrop-filter:blur(14px) saturate(108%) !important;
        -webkit-backdrop-filter:blur(14px) saturate(108%) !important;

        box-shadow:
            0 10px 26px rgba(55,35,20,.12),
            0 0 0 1px rgba(255,255,255,.20) inset !important;
    }
}
/* =========================================================
   CHODY CLEAN SEARCH RESULTS
========================================================= */

.chody-search-page{
    padding:240px 20px 70px;
    background:#fffaf0;
}

.chody-search-container{
    width:100%;
    max-width:1100px;
    margin:0 auto;
}

.chody-search-header{
    text-align:center;
    margin-bottom:40px;
}

.chody-search-header h1{
    margin:0;
    color:#4a246a;
    font-size:38px;
    font-weight:700;
}

.chody-search-header h1 span{
    color:#d4af37;
}

/* Results */

.chody-search-results{
    display:flex;
    flex-direction:column;
    gap:24px;
}

.chody-search-result{
    display:flex;
    align-items:center;
    gap:28px;
    margin:0;
    padding:24px;
    background:#ffffff;
    border:1px solid rgba(212,175,55,.45);
    border-radius:22px;
    box-shadow:0 8px 24px rgba(55,35,20,.10);
    overflow:hidden;
}

/* Featured image */

.chody-search-image{
    flex:0 0 260px;
}

.chody-search-image a{
    display:block;
}

.chody-search-image img{
    display:block;
    width:100%;
    height:180px;
    object-fit:cover;
    border-radius:16px;
}

/* Content */

.chody-search-content{
    flex:1;
    min-width:0;
}

.chody-search-title{
    margin:0 0 8px;
    font-size:27px;
    line-height:1.25;
}

.chody-search-title a{
    color:#4a246a;
    text-decoration:none;
}

.chody-search-title a:hover{
    color:#d4af37;
}

.chody-search-meta{
    margin-bottom:14px;
    color:#777;
    font-size:14px;
}

.chody-search-excerpt{
    margin-bottom:18px;
    color:#444;
    font-size:16px;
    line-height:1.7;
}

.chody-search-excerpt p{
    margin:0;
}

/* Read more */

.chody-search-read-more{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:10px 18px;
    color:#4a246a;
    background:rgba(212,175,55,.12);
    border:1px solid #d4af37;
    border-radius:999px;
    font-weight:600;
    text-decoration:none;
    transition:all .25s ease;
}

.chody-search-read-more:hover{
    color:#fffaf0;
    background:#4a246a;
    border-color:#4a246a;
}

.chody-search-read-more span{
    font-size:19px;
    line-height:1;
}

/* No results */

.chody-no-results{
    padding:50px 30px;
    text-align:center;
    background:#ffffff;
    border:1px solid rgba(212,175,55,.45);
    border-radius:22px;
}

.chody-no-results h2{
    color:#4a246a;
}

/* Pagination */

.chody-search-pagination{
    margin-top:40px;
    text-align:center;
}

.chody-search-pagination .page-numbers{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:42px;
    height:42px;
    margin:3px;
    padding:0 12px;
    color:#4a246a;
    background:#ffffff;
    border:1px solid rgba(212,175,55,.55);
    border-radius:10px;
    text-decoration:none;
}

.chody-search-pagination .page-numbers.current,
.chody-search-pagination .page-numbers:hover{
    color:#ffffff;
    background:#4a246a;
    border-color:#4a246a;
}

/* Mobile */

@media (max-width:700px){

    .chody-search-page{
        padding:145px 14px 50px;
    }

    .chody-search-header h1{
        font-size:28px;
    }

    .chody-search-result{
        flex-direction:column;
        align-items:stretch;
        gap:18px;
        padding:18px;
    }

    .chody-search-image{
        flex:none;
        width:100%;
    }

    .chody-search-image img{
        height:210px;
    }

    .chody-search-title{
        font-size:23px;
    }
}
/* =========================================================
   CHODY SEARCH BOX – IMPROVED LAYOUT
========================================================= */

.chody-search-header {
    text-align: center;
}

.chody-search-header h1 {
    margin-bottom: 25px;
}

/* Search form */
.chody-search-form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 700px;
    margin: 0 auto 45px;
}

/* Search input */
.chody-search-field {
    flex: 1;
    width: 100%;
    height: 54px;
    padding: 0 20px;
    font-size: 17px;
    color: #4a246a;
    background: #ffffff;
    border: 1px solid #d4af37;
    border-radius: 14px;
    box-sizing: border-box;
}

.chody-search-field:focus {
    outline: none;
    border-color: #4a246a;
    box-shadow: 0 0 0 3px rgba(74, 36, 106, 0.12);
}

/* Search button */
.chody-search-submit {
    flex: 0 0 auto;
    height: 54px;
    padding: 0 28px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: #4a246a;
    border: 1px solid #4a246a;
    border-radius: 14px;
    cursor: pointer;
}

.chody-search-submit:hover {
    color: #4a246a;
    background: #d4af37;
    border-color: #d4af37;
}

/* Mobile */
@media (max-width: 600px) {

    .chody-search-form {
        flex-direction: column;
        max-width: 100%;
    }

    .chody-search-field,
    .chody-search-submit {
        width: 100%;
    }
}
/* Tighten space at the top of the search page */
.chody-search-page {
    padding-top: 150px;
}