/* ==========================================
   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:110px;

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

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

    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:110px;
    max-width:100%;
    object-fit:contain;
}

.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:100px;
    }

    .cns-menu{
        gap:24px;
    }

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

@media (max-width:1050px){
    .cns-navigation{
        position:absolute;
        top:18px;
        left:50%;
        transform:translateX(-50%);
        grid-template-columns:1fr auto;
        grid-template-rows:auto auto;
        height:105px;
        min-height:105px;
        margin:0;
        padding:8px 20px;
    }

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

    .cns-header-actions{
        grid-column:2;
        grid-row:1;
        gap:10px;
        align-self:center;
    }

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

    .cns-nav{
        grid-column:1 / -1;
        grid-row:2;
        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{
        top:10px;
        width:calc(100% - 20px);
        min-height:104px;
        margin:0;
        padding:8px 12px;
        border-radius:20px;
        border:none;
    }

    .cns-header-logo{
        height:78px;
        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.COM — FOOTER FINAL OVERRIDE
   Footer styling intentionally isolated from header navigation.
   ========================================================= */

html body footer.cns-footer{
    display:block !important;
    visibility:visible !important;
    opacity:1 !important;
    width:100% !important;
    color:#4A246A !important;
}

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

html body footer.cns-footer .cns-footer-menu{
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    flex-wrap:nowrap !important;
    list-style:none !important;
    margin:0 !important;
    padding:0 !important;
}

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

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

html body footer.cns-footer .cns-footer-menu li a{
    display:inline-block !important;
    font-family:"Great Vibes", cursive !important;
    font-size:19px !important;
    font-weight:400 !important;
    line-height:1.2 !important;
    color:#4A246A !important;
    text-decoration:none !important;
    white-space:nowrap !important;
    transition:color .25s ease,text-shadow .25s ease !important;
}

html body footer.cns-footer .cns-footer-menu li a:hover,
html body footer.cns-footer .cns-footer-menu li a:focus-visible{
    color:#d4af37 !important;
    text-shadow:0 0 8px rgba(212,175,55,.35) !important;
}

html body footer.cns-footer .cns-footer-copy{
    display:block !important;
    margin-left:auto !important;
    font-family:Arial, Helvetica, sans-serif !important;
    font-size:13px !important;
    font-weight:700 !important;
    line-height:1.2 !important;
    color:#4A246A !important;
    white-space:nowrap !important;
}

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

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

    html body footer.cns-footer .cns-footer-menu{
        justify-content:center !important;
        flex-wrap:wrap !important;
    }
}

/* =========================================================
   CHODY.COM — MASTER HEADER & FOOTER TYPOGRAPHY
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap');

/* HEADER NAVIGATION */
html body .cns-navigation .cns-menu > li > a {
    font-family:"Great Vibes", cursive !important;
    font-size:26px !important;
    font-weight:400 !important;
    line-height:1.2 !important;
    color:var(--cns-purple) !important;
    text-decoration:none !important;
}

html body .cns-navigation .cns-menu > li > a::after {
    display:none !important;
}

/* FOOTER PAGE LINKS */
html body footer.cns-footer .cns-footer-menu li a {
    font-family:"Great Vibes", cursive !important;
    font-size:19px !important;
    font-weight:400 !important;
    line-height:1.2 !important;
    color:#4A246A !important;
    text-decoration:none !important;
}

/* FOOTER COPYRIGHT */
html body footer.cns-footer .cns-footer-copy {
    font-family:Arial, Helvetica, sans-serif !important;
    font-size:13px !important;
    font-weight:700 !important;
    line-height:1.2 !important;
    color:#4A246A !important;
    white-space:nowrap;
}

/* DROPDOWN MENU — MATCH HEADER FONT */
html body .cns-navigation .cns-menu .sub-menu a {
    font-family:"Great Vibes", cursive !important;
    font-size:22px !important;
    font-weight:400 !important;
    line-height:1.3 !important;
    color:#4A246A !important;
    text-decoration:none !important;
}


/* =========================================================
   CHODY.COM — HIDE ONLY REHUB EMPTY-CATEGORY MESSAGE
   ========================================================= */

body.archive.category .wpsm-title h5.font140 {
    display: none !important;
}
/* =========================================================
   CHODY.COM — HIDE REHUB GENERIC FOOTER
   ========================================================= */

html body footer#theme_footer.dark_style {
    display: none !important;
}



/* =========================================================
   CHODY.COM — FINAL SUEBIRD HEADER
   Thin frosted panel with a slightly larger logo
   ========================================================= */

html body .cns-navigation{
    box-sizing:border-box !important;
    height:72px !important;
    min-height:72px !important;
    max-height:72px !important;
    padding:0 30px !important;
    align-items:center !important;
}

html body .cns-header-logo{
    height:68px !important;
    max-height:68px !important;
    width:auto !important;
    object-fit:contain !important;
}

html body .cns-navigation .cns-menu{
    height:72px !important;
    align-items:center !important;
}

html body .cns-navigation .cns-menu > li > a{
    padding:4px 10px !important;
    line-height:1 !important;
}

/* Tablet */
@media (max-width:1280px){
    html body .cns-navigation{
        height:70px !important;
        min-height:70px !important;
        max-height:70px !important;
    }
    html body .cns-header-logo{
        height:64px !important;
        max-height:64px !important;
    }
}

/* Mobile/tablet */
@media (max-width:1050px){
    html body .cns-navigation{
        height:64px !important;
        min-height:64px !important;
        max-height:none !important;
        grid-template-rows:auto auto !important;
        padding:2px 20px !important;
    }
    html body .cns-header-logo{
        height:58px !important;
        max-height:58px !important;
    }
    html body .cns-navigation .cns-menu{
        height:auto !important;
    }
}

@media (max-width:600px){
    html body .cns-navigation{
        height:62px !important;
        min-height:62px !important;
        padding:2px 12px !important;
    }
    html body .cns-header-logo{
        height:56px !important;
        max-height:56px !important;
    }
}
