/* J&G Site Header & Footer */
/* ===== Header ===== */
.jgx-head{--y1:#FFFF66;--y2:#FFE566;--k1:#D6D58B;--k2:#B3B347;--ink:#1E1E12;--ink2:#2B2B1A;position:fixed;left:0;right:0;top:var(--wp-admin--admin-bar--height,0px);z-index:9999;background:rgba(30,30,18,.94);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);box-shadow:0 10px 30px -18px rgba(0,0,0,.6);font-family:Montserrat,Arial,sans-serif;transition:box-shadow .4s}
.jgx-head *{box-sizing:border-box}
.jgx-head ul,.jgx-head li{margin:0;padding:0;list-style:none}
.jgx-head a{text-decoration:none}
.jgx-head .hwrap{max-width:1320px;margin:0 auto;padding:0 clamp(18px,3vw,40px);height:80px;display:flex;align-items:center;justify-content:space-between;gap:24px;transition:height .4s}
.jgx-head.scrolled .hwrap{height:68px}
.jgx-head .logo{flex:none;display:block;line-height:0}
.jgx-head .logo img{height:46px;width:auto;max-width:240px;object-fit:contain;transition:height .4s}
.jgx-head.scrolled .logo img{height:40px}
.jgx-head .nav > ul{display:flex;align-items:center;gap:clamp(14px,1.8vw,30px)}
.jgx-head .nav li{position:relative}
.jgx-head .nav a{display:inline-flex;align-items:center;gap:6px;color:#fff;font-weight:500;font-size:14.5px;white-space:nowrap}
.jgx-head .nav > ul > li > a:not(.btn){padding:10px 0;background:linear-gradient(var(--y2),var(--y2)) 0 100%/0 2px no-repeat;transition:background-size .35s,color .3s}
.jgx-head .nav > ul > li > a:not(.btn):hover{background-size:100% 2px;color:var(--y2)}
.jgx-head .caret{width:14px;height:14px;transition:transform .3s}
.jgx-head .has-sub:hover .caret,.jgx-head .has-sub:focus-within .caret{transform:rotate(180deg)}
.jgx-head .dd{position:absolute;left:-18px;top:100%;min-width:230px;padding:10px;border-radius:16px;background:var(--ink);box-shadow:0 24px 50px -20px rgba(0,0,0,.6);opacity:0;visibility:hidden;transform:translateY(10px);transition:opacity .3s,transform .3s,visibility .3s}
.jgx-head .has-sub:hover .dd,.jgx-head .has-sub:focus-within .dd{opacity:1;visibility:visible;transform:none}
.jgx-head .dd a{display:block;padding:11px 14px;border-radius:10px;font-size:14.5px;color:#fff;transition:background .25s,color .25s}
.jgx-head .dd a:hover{background:var(--ink2);color:var(--y2)}
.jgx-head .nav a.btn-y{color:var(--ink);font-size:14px;padding:6px 6px 6px 20px}
.jgx-head .nav .cta .btn b{width:34px;height:34px}
.jgx-head .nav .cta .btn b svg{width:15px;height:15px}
.jgx-head .nav-toggle{position:absolute;opacity:0;pointer-events:none}
.jgx-head .burger{display:none;width:46px;height:46px;border-radius:12px;background:rgba(255,255,255,.1);cursor:pointer;flex-direction:column;align-items:center;justify-content:center;gap:5px}
.jgx-head .burger span{display:block;width:20px;height:2px;border-radius:2px;background:#fff;transition:transform .3s,opacity .3s}
.jgx-spacer{height:80px}
.jgx-head .btn{position:relative;overflow:hidden;isolation:isolate;display:inline-flex;align-items:center;gap:12px;border-radius:999px;font-family:Montserrat,Arial,sans-serif;font-weight:600;text-decoration:none;transition:transform .4s cubic-bezier(.2,.7,.2,1),box-shadow .4s,color .35s}
.jgx-head .btn b{display:grid;place-items:center;border-radius:50%;background:var(--ink);color:var(--y2);transition:transform .45s cubic-bezier(.2,1.4,.4,1)}
.jgx-head .btn-y{background:var(--y2);color:var(--ink)}
.jgx-head .btn::after{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;background:var(--y1);transform:scaleX(0);transform-origin:left center;transition:transform .55s cubic-bezier(.7,0,.2,1)}
.jgx-head .btn::before{content:"";position:absolute;inset:0;z-index:0;background:linear-gradient(110deg,transparent 30%,rgba(255,255,255,.45) 50%,transparent 70%);transform:translateX(-120%);transition:transform .9s ease;pointer-events:none}
.jgx-head .btn:hover{transform:translateY(-3px);box-shadow:0 16px 34px -12px rgba(255,229,102,.75)}
.jgx-head .btn:hover::after{transform:scaleX(1)}.jgx-head .btn:hover::before{transform:translateX(120%)}
.jgx-head .btn:hover b{transform:translateX(4px) scale(1.06)}
.jgx-head .btn:active{transform:scale(.97)}
.jgx-head .btn > *{position:relative;z-index:1}
@media (max-width:1180px){
.jgx-head .burger{display:flex}
.jgx-head .nav{position:fixed;left:0;right:0;top:calc(var(--wp-admin--admin-bar--height,0px) + 72px);max-height:calc(100vh - 72px);overflow:auto;background:var(--ink);padding:18px clamp(18px,3vw,40px) 28px;opacity:0;visibility:hidden;transform:translateY(-10px);transition:opacity .3s,transform .3s,visibility .3s}
.jgx-head .nav-toggle:checked ~ .nav{opacity:1;visibility:visible;transform:none}
.jgx-head .nav-toggle:checked ~ .burger span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.jgx-head .nav-toggle:checked ~ .burger span:nth-child(2){opacity:0}
.jgx-head .nav-toggle:checked ~ .burger span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
.jgx-head .nav > ul{flex-direction:column;align-items:stretch;gap:2px}
.jgx-head .nav > ul > li > a:not(.btn){display:flex;padding:14px 4px;font-size:16px;border-bottom:1px solid rgba(255,255,255,.08);background:none}
.jgx-head .dd{position:static;opacity:1;visibility:visible;transform:none;box-shadow:none;background:none;padding:4px 0 8px 14px;min-width:0}
.jgx-head .dd a{font-size:15px;color:rgba(255,255,255,.8)}
.jgx-head .caret{display:none}
.jgx-head .nav .cta{margin-top:16px}
.jgx-head .nav .cta .btn{width:100%;justify-content:space-between;padding:8px 8px 8px 24px;font-size:15px}
.jgx-head .hwrap,.jgx-head.scrolled .hwrap{height:72px}
.jgx-head .logo img,.jgx-head.scrolled .logo img{height:40px}
.jgx-spacer{height:72px}
}
/* ===== Footer ===== */
.jgx-foot{--y1:#FFFF66;--y2:#FFE566;--k1:#D6D58B;--k2:#B3B347;--ink:#1E1E12;--ink2:#2B2B1A;position:relative;background:#16160D;color:rgba(255,255,255,.75);padding:clamp(64px,7vw,96px) 0 32px;border-top:1px solid rgba(255,229,102,.18);font-family:Montserrat,Arial,sans-serif;font-size:16px;line-height:1.7}
.jgx-foot *{box-sizing:border-box}
.jgx-foot ul,.jgx-foot li,.jgx-foot p,.jgx-foot h4{margin:0;padding:0;list-style:none}
.jgx-foot a{text-decoration:none}
.jgx-foot::before{content:"";position:absolute;left:50%;top:0;width:min(560px,70%);height:1px;transform:translateX(-50%);background:linear-gradient(90deg,transparent,var(--y2),transparent)}
.jgx-foot .wrap{max-width:1220px;margin:0 auto;padding:0 clamp(22px,4vw,48px)}
.jgx-foot .f-top{display:grid;grid-template-columns:1.4fr 1fr 1fr 1.3fr;gap:clamp(28px,4vw,56px)}
.jgx-foot .f-brand .logo img{height:50px;width:auto;max-width:240px}
.jgx-foot .f-brand p{margin-top:18px;max-width:300px;font-size:15px;color:rgba(255,255,255,.75)}
.jgx-foot .social{display:flex;gap:10px;margin-top:24px}
.jgx-foot .social a{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:rgba(255,255,255,.07);color:#fff;transition:background .3s,color .3s,transform .35s cubic-bezier(.2,1.4,.4,1)}
.jgx-foot .social a:hover{background:var(--y2);color:var(--ink);transform:translateY(-4px)}
.jgx-foot .social svg{width:19px;height:19px}
.jgx-foot .f-col h4{margin:0 0 18px;font-weight:700;font-size:12px;letter-spacing:.2em;text-transform:uppercase;color:var(--y2)}
.jgx-foot .f-col li+li{margin-top:10px}
.jgx-foot .f-col a:not(.btn){font-size:15px;color:rgba(255,255,255,.78);background:linear-gradient(var(--y2),var(--y2)) 0 100%/0 1px no-repeat;padding-bottom:2px;transition:color .3s,background-size .35s}
.jgx-foot .f-col a:not(.btn):hover{color:#fff;background-size:100% 1px}
.jgx-foot .f-cta p{font-size:15px;color:rgba(255,255,255,.75)}
.jgx-foot .f-col a.btn{margin-top:18px;padding:8px 8px 8px 26px;font-size:15px}
.jgx-foot .f-col a.btn b{width:40px;height:40px}
.jgx-foot .f-col a.btn b svg{width:18px;height:18px}
.jgx-foot .f-cta .f-spons{display:inline-block;margin-top:16px;font-weight:600;color:#fff}
.jgx-foot .f-bottom{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;margin-top:clamp(48px,6vw,72px);padding-top:24px;border-top:1px solid rgba(255,255,255,.1);font-size:13.5px;color:rgba(255,255,255,.6)}
.jgx-foot .credit a{color:#fff;font-weight:600;background:linear-gradient(var(--y2),var(--y2)) 0 100%/0 1px no-repeat;padding-bottom:2px;transition:color .3s,background-size .35s}
.jgx-foot .credit a:hover{color:var(--y2);background-size:100% 1px}
.jgx-foot .totop{color:rgba(255,255,255,.75);transition:color .3s}
.jgx-foot .totop:hover{color:var(--y2)}
.jgx-foot .btn{position:relative;overflow:hidden;isolation:isolate;display:inline-flex;align-items:center;gap:12px;border-radius:999px;font-family:Montserrat,Arial,sans-serif;font-weight:600;text-decoration:none;transition:transform .4s cubic-bezier(.2,.7,.2,1),box-shadow .4s,color .35s}
.jgx-foot .btn b{display:grid;place-items:center;border-radius:50%;background:var(--ink);color:var(--y2);transition:transform .45s cubic-bezier(.2,1.4,.4,1)}
.jgx-foot .btn-y{background:var(--y2);color:var(--ink)}
.jgx-foot .btn::after{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;background:var(--y1);transform:scaleX(0);transform-origin:left center;transition:transform .55s cubic-bezier(.7,0,.2,1)}
.jgx-foot .btn::before{content:"";position:absolute;inset:0;z-index:0;background:linear-gradient(110deg,transparent 30%,rgba(255,255,255,.45) 50%,transparent 70%);transform:translateX(-120%);transition:transform .9s ease;pointer-events:none}
.jgx-foot .btn:hover{transform:translateY(-3px);box-shadow:0 16px 34px -12px rgba(255,229,102,.75)}
.jgx-foot .btn:hover::after{transform:scaleX(1)}.jgx-foot .btn:hover::before{transform:translateX(120%)}
.jgx-foot .btn:hover b{transform:translateX(4px) scale(1.06)}
.jgx-foot .btn:active{transform:scale(.97)}
.jgx-foot .btn > *{position:relative;z-index:1}
@media (max-width:1024px){.jgx-foot .f-top{grid-template-columns:1fr 1fr}}
@media (max-width:600px){.jgx-foot .f-top{grid-template-columns:1fr}}
.jgx-fw{width:100vw;max-width:100vw;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw)}
/* ===== Global: plugin header/footer replace the theme's ===== */
body.jgx-on{overflow-x:hidden}
body.jgx-on #masthead,body.jgx-on .site-header:not(.jgx-head),body.jgx-on .wp-site-blocks > header,body.jgx-on header.wp-block-template-part,body.jgx-on #colophon,body.jgx-on .site-footer:not(.jgx-foot),body.jgx-on .wp-site-blocks > footer,body.jgx-on footer.wp-block-template-part{display:none!important}
.jgx-spacer{display:block;background:#1E1E12}



/* ===== Override theme link styles (underlines, borders, shadows) ===== */
html body .jgx-head a,html body .jgx-head a:link,html body .jgx-head a:visited,html body .jgx-head a:hover,html body .jgx-head a:focus,html body .jgx-head a:active,
html body .jgx-foot a,html body .jgx-foot a:link,html body .jgx-foot a:visited,html body .jgx-foot a:hover,html body .jgx-foot a:focus,html body .jgx-foot a:active{text-decoration:none!important;text-decoration-line:none!important;border-bottom:0!important;box-shadow:none!important;outline-offset:4px}
html body .jgx-head .logo,html body .jgx-foot .logo,html body .jgx-foot .social a{background-image:none!important}
html body .jgx-head .logo img,html body .jgx-foot .logo img{border:0!important;box-shadow:none!important;text-decoration:none!important}
html body .jgx-foot .f-col a:not(.btn),html body .jgx-foot .credit a{color:rgba(255,255,255,.78)!important}
html body .jgx-foot .credit a{color:#fff!important}
html body .jgx-foot .f-col a:not(.btn):hover,html body .jgx-foot .credit a:hover,html body .jgx-foot .f-cta .f-spons:hover,html body .jgx-foot .totop:hover{color:#FFE566!important}
html body .jgx-foot .f-cta .f-spons{color:#fff!important}
html body .jgx-foot .totop{color:rgba(255,255,255,.75)!important}
html body .jgx-foot .btn-y,html body .jgx-foot .btn-y:visited,html body .jgx-head .btn-y,html body .jgx-head .btn-y:visited{color:#1E1E12!important}
html body .jgx-foot .social a{color:#fff!important}
html body .jgx-foot .social a:hover{color:#1E1E12!important}


/* ===== Hide old header/footer copies pasted into page content (only the plugin's copy shows) ===== */
body.jgx-on .jgx-head:not([data-jgsc]),body.jgx-on .jgx-spacer:not([data-jgsc]),body.jgx-on .jgx-fw:not([data-jgsc]),body.jgx-on .jgx-foot:not([data-jgsc]),body.jgx-on #jg .jg-head,body.jgx-on #jg .jg-foot{display:none!important}

/* ===== Strip the theme's blue link underlines/borders inside the designed pages ===== */
html body #jg a,html body #jg a:hover,html body #jg a:focus,html body #jg a:visited,
html body .jgp-arch a,html body .jgp-arch a:hover,html body .jgp-arch a:visited,
html body .jgp-single a,html body .jgp-single a:hover,html body .jgp-single a:visited,
html body .jg-foot a,html body .jg-head a{text-decoration:none!important;border-bottom:0!important;box-shadow:none!important}

/* ===== Custom designed pages (#jg): remove theme gaps ===== */
body:has(#jg),body:has(#jg){margin:0!important;overflow-x:hidden}
body:has(#jg) .wp-site-blocks,body:has(#jg) .site,body:has(#jg) .site-content,body:has(#jg) #content,body:has(#jg) #primary,body:has(#jg) .content-area,body:has(#jg) .site-main,body:has(#jg) main,body:has(#jg) article,body:has(#jg) .ast-container,body:has(#jg) .entry-content,body:has(#jg) .wp-block-post-content,body:has(#jg) .wp-block-group:has(.jgx-head),body:has(#jg) .wp-block-group:has(.jgx-foot){margin-top:0!important;margin-bottom:0!important;padding-top:0!important;padding-bottom:0!important}
body:has(#jg) .entry-header,body:has(#jg) .wp-block-post-title:not(.wp-block-query *),body:has(#jg) .wp-block-post-featured-image:not(.wp-block-query *),body:has(#jg) .page-header{display:none!important}
.jgx-head,.jgx-spacer,.jgx-fw,.jgx-foot,#jg{margin-top:0!important;margin-bottom:0!important}
body:has(#jg) .entry-footer,body:has(#jg) .widget-area,body:has(#jg) .post-navigation,body:has(#jg) .comments-area,body:has(#jg) .site-footer:not(:has(.jgx-foot)),body:has(#jg) .site-header:not(:has(.jgx-head)){display:none!important}
body:has(#jg) .entry-content > *,body:has(#jg) .wp-block-post-content > *{margin-top:0!important;margin-bottom:0!important}
body:has(#jg) #page,body:has(#jg) .site{margin:0!important;padding:0!important}
html body .jgx-head{left:0!important;right:0!important;width:auto!important;max-width:none!important;margin:0!important;transform:none!important}
html body .jgx-spacer,html body .jgx-foot{width:100%!important;max-width:none!important;margin-left:0!important;margin-right:0!important}
html body .jgx-fw,html body #jg{width:100vw!important;max-width:100vw!important;margin-left:calc(50% - 50vw)!important;margin-right:calc(50% - 50vw)!important}
.jgx-spacer{display:block;background:#1E1E12}
.jgx-fw{display:block}
body:has(#jg) .entry-content > p:empty,body:has(#jg) .wp-block-post-content > p:empty{display:none!important}
