/*
Theme Name: EnfejarSanj Violet Core
Theme URI: https://enfejarsanj.com/
Author: SEOHero
Description: Standalone Persian editorial theme | stage 1 foundation
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: enfejarsanj-violet-core
*/
:root{
  --esh-black:#08060e;--esh-ink:#151020;--esh-surface:#1b1329;
  --esh-surface-2:#251937;--esh-white:#fbf9ff;--esh-muted:#b8aaca;
  --esh-purple:#a35cff;--esh-purple-2:#7135c2;--esh-pink:#e76fff;
  --esh-border:rgba(205,166,255,.17);--esh-radius:22px;
  --esh-font:Tahoma,Arial,system-ui,sans-serif;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:105px}
body{margin:0;background:#100b18;color:var(--esh-white);font-family:var(--esh-font);direction:rtl;line-height:1.9;-webkit-font-smoothing:antialiased}
body.esh-menu-open{overflow:hidden}
::selection{background:#a35cff;color:#fff}
a{color:inherit;text-decoration:none}
a:hover{color:#e4bdff}
img{max-width:100%;height:auto}
button,input{font:inherit}
button{cursor:pointer}
:focus-visible{outline:3px solid #c78cff;outline-offset:3px}
.esh-container{width:min(1200px,calc(100% - 40px));margin-inline:auto}
.esh-skip{position:absolute;top:-100px;right:20px;background:#fff;color:#111;padding:10px 20px;z-index:5000}
.esh-skip:focus{top:12px}
/* Black, always-readable header */
.esh-header{position:sticky;top:0;z-index:1000;background:#030305;border-bottom:1px solid #3c2656;box-shadow:0 12px 30px rgba(0,0,0,.4)}
.admin-bar .esh-header{top:32px}
.esh-header-row{min-height:86px;display:flex;align-items:center;gap:28px}
.esh-brand{display:flex;align-items:center;gap:11px;flex:0 0 auto;min-width:0;color:#fff}
.esh-brand:hover{color:#fff}
.esh-brand .custom-logo-link{display:block;line-height:0}
.esh-brand .custom-logo{max-height:58px;max-width:190px;width:auto;object-fit:contain}
.esh-brand-mark{display:grid;place-items:center;width:49px;height:49px;border-radius:15px;background:linear-gradient(145deg,#a965ff,#512290);font-size:28px;font-weight:900;box-shadow:0 0 28px #8e32fc45}
.esh-brand-text{display:flex;flex-direction:column;line-height:1.35;min-width:0}
.esh-brand-name{font-size:19px;font-weight:900;letter-spacing:-.3px}
.esh-brand-sub{font-size:11px;color:#a49aaf;letter-spacing:.4px}
.esh-primary{flex:1;min-width:0}
.esh-links,.esh-drawer-links,.esh-footer-links{display:flex;align-items:center;flex-wrap:wrap;gap:6px 18px;list-style:none;margin:0;padding:0}
.esh-links a{display:block;color:#ddd0e7;font-size:13px;font-weight:700;padding:9px 0;transition:color .2s}
.esh-links a:hover,.esh-links .current-menu-item>a{color:#e4a9ff}
.esh-header-actions{display:flex;align-items:center;gap:10px;margin-right:auto}
.esh-icon-btn{width:42px;height:42px;display:grid;place-items:center;border:1px solid #4b355d;background:#1b1127;color:#f4e9ff;border-radius:13px;transition:.2s}
.esh-icon-btn:hover{background:#42215f;border-color:#a35cff}
.esh-icon-btn svg{width:21px;height:21px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.esh-menu-btn{display:none}
.esh-search-panel{position:absolute;top:100%;right:0;left:0;background:#0e0a15;border-bottom:1px solid #674093;padding:20px 0;box-shadow:0 15px 25px #0009}
.esh-search-panel[hidden]{display:none!important}
.esh-search-panel .search-form{display:flex;gap:10px;width:min(650px,100%)}
.esh-search-panel label{flex:1;display:block}
.esh-search-panel .search-field{width:100%;background:#241735;border:1px solid #604181;color:#fff;border-radius:12px;padding:11px 15px;outline:none}
.esh-search-panel .search-submit{background:#a35cff;color:#fff;border:0;border-radius:12px;padding:10px 22px;font-weight:800}
.esh-drawer-backdrop{position:fixed;inset:0;background:#030205ac;z-index:1090;opacity:0;visibility:hidden;transition:opacity .25s}
.esh-drawer{position:fixed;inset:0 0 0 auto;width:min(370px,88vw);overflow-y:auto;z-index:1100;background:#0c0813;border-left:1px solid #5f387f;padding:24px;transform:translateX(105%);visibility:hidden;transition:transform .3s,visibility .3s}
.esh-menu-open .esh-drawer{transform:translateX(0);visibility:visible}
.esh-menu-open .esh-drawer-backdrop{opacity:1;visibility:visible}
.esh-drawer-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}
.esh-drawer-head strong{font-size:20px}
.esh-drawer-links{flex-direction:column;align-items:stretch;gap:0}
.esh-drawer-links>li{width:100%;border-bottom:1px solid #3c2d4c}
.esh-drawer-links a{display:block;padding:14px 7px;font-weight:700}
.esh-drawer-links .sub-menu{list-style:none;padding:0 20px 0 0}
/* Shared design primitives, ready for homepage sections */
.esh-main{min-height:50vh}
.esh-main h1,.esh-main h2,.esh-main h3{line-height:1.5;letter-spacing:-.5px}
.esh-kicker{color:#e3b9ff;font-size:12px;font-weight:900;letter-spacing:2px}
.esh-intro{padding:72px 0 40px;position:relative;isolation:isolate}
.esh-intro:before{content:"";position:absolute;inset:0 0 auto;height:440px;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 55% 0%,#7027a755,transparent 65%)}
.esh-intro-panel{background:linear-gradient(125deg,#2e194b 0%,#1a112b 62%,#10101f 100%);border:1px solid #8b4bb75c;border-radius:32px;padding:clamp(30px,6vw,76px);box-shadow:0 28px 90px #0005,inset 0 1px #ffffff19}
.esh-intro h1{font-size:clamp(32px,5vw,59px);max-width:880px;margin:12px 0 18px;font-weight:900}
.esh-intro p{color:#e5d2f2;max-width:780px;font-size:clamp(15px,2vw,18px);margin:0}
.esh-action{display:inline-flex;margin-top:24px;align-items:center;justify-content:center;gap:12px;color:#fff;background:linear-gradient(135deg,#a05dff,#6725b1);border-radius:14px;padding:11px 24px;font-weight:900;box-shadow:0 10px 30px #a05dff3d}
.esh-action:hover{color:#fff;filter:brightness(1.12)}
.esh-articles{padding:45px 0 85px}
.esh-section-title{font-size:clamp(23px,3vw,32px);margin:0 0 24px}
.esh-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.esh-card{background:#1c1429;border:1px solid var(--esh-border);border-radius:var(--esh-radius);overflow:hidden;transition:transform .25s,border-color .25s}
.esh-card:hover{transform:translateY(-5px);border-color:#9956dc}
.esh-card-media{height:170px;display:grid;place-items:center;overflow:hidden;background:linear-gradient(120deg,#37165f,#7840bd)}
.esh-card-media img{height:100%;width:100%;object-fit:cover}
.esh-card-media svg{width:44px;height:44px;opacity:.65;fill:none;stroke:#fff;stroke-width:1.7}
.esh-card-body{padding:22px}
.esh-card h3{font-size:18px;margin:0 0 10px}
.esh-card p{color:var(--esh-muted);font-size:14px;margin:0 0 16px}
.esh-card-more{color:#d29cff;font-size:13px;font-weight:900}
.esh-article{max-width:860px;margin:65px auto;background:#1c1429;padding:clamp(25px,5vw,58px);border:1px solid var(--esh-border);border-radius:var(--esh-radius)}
.esh-article a{color:#e5b2ff;text-decoration:underline}
.esh-article h1{font-size:clamp(26px,4vw,42px)}
.esh-article img{border-radius:16px}
.esh-pager{padding:24px 0}
.esh-pager .nav-links{display:flex;gap:14px;flex-wrap:wrap}
.esh-pager a{background:#301b46;border:1px solid #66418b;padding:7px 15px;border-radius:10px}
/* Footer */
.esh-footer{background:#08070e;border-top:1px solid #483157;position:relative;overflow:hidden}
.esh-footer:before{content:"";position:absolute;top:-200px;left:10%;width:420px;height:420px;background:radial-gradient(circle,#6925b929,transparent 65%);pointer-events:none}
.esh-footer-main{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:55px;padding:64px 0 52px;position:relative}
.esh-footer h2{font-size:20px;color:#fff;margin:0 0 17px}
.esh-footer p{color:#b8a9c3;font-size:14px;margin:0;max-width:390px}
.esh-footer-links{flex-direction:column;align-items:flex-start;gap:9px}
.esh-footer-links a{font-size:14px;color:#cec0dd}
.esh-footer-links a:hover{color:#e0a2ff}
.esh-footer-bottom{border-top:1px solid #34263f;padding:18px 0;color:#a498b3;font-size:13px}
.esh-footer-bottom .esh-container{display:flex;align-items:center;justify-content:space-between;gap:12px}
@media(max-width:1050px){.esh-primary{display:none}.esh-menu-btn{display:grid}.esh-header-actions{margin-right:auto}.esh-footer-main{gap:30px}}
@media(max-width:750px){.admin-bar .esh-header{top:46px}.esh-header-row{min-height:72px;gap:10px}.esh-brand .custom-logo{max-width:145px;max-height:49px}.esh-brand-name{font-size:16px}.esh-brand-sub{font-size:9px}.esh-icon-btn{width:40px;height:40px}.esh-container{width:min(100% - 28px,1200px)}.esh-intro{padding-top:38px}.esh-intro-panel{border-radius:24px}.esh-grid{grid-template-columns:1fr}.esh-footer-main{grid-template-columns:1fr;gap:28px;padding:46px 0}.esh-footer-bottom .esh-container{display:block;text-align:center}.esh-footer-bottom .esh-container span{display:block}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* SEOHERO BLACK HEADER V3 */

.esh-header,
header.esh-header {
    background: #000000 !important;
    background-color: #000000 !important;
    background-image: none !important;
    border-bottom: 1px solid rgba(183,108,255,.25);
    box-shadow: 0 6px 25px rgba(0,0,0,.35);
}

.esh-header-row {
    background: #000000 !important;
    background-image: none !important;
    min-height: 78px;
}

.esh-brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
    gap: 0;
    min-width: 0;
}

.esh-brand .custom-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    padding: 0;
    margin: 0;
}

.esh-brand .custom-logo {
    display: block;
    width: auto;
    height: auto;
    max-width: 190px;
    max-height: 62px;
    object-fit: contain;
}

/* No duplicate title beside the uploaded logo */
.esh-brand:has(.custom-logo) .esh-brand-text {
    display: none !important;
}

.esh-primary,
.esh-primary nav {
    background: transparent !important;
}

.esh-search-panel {
    background: #000000 !important;
    background-image: none !important;
}

.esh-drawer {
    background: #050505 !important;
    background-image: none !important;
}

.esh-drawer-head {
    background: transparent !important;
}

.esh-icon-btn {
    background: #111111 !important;
    color: #ffffff !important;
    border-color: #383038 !important;
}

.esh-icon-btn:hover {
    background: #261335 !important;
    border-color: #a35cff !important;
}

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

    .esh-header-row {
        min-height: 70px;
        gap: 12px;
    }

    .esh-brand .custom-logo {
        max-width: 150px;
        max-height: 52px;
    }

    .esh-header-actions {
        margin-right: auto;
    }

    .esh-icon-btn {
        width: 42px;
        height: 42px;
        flex-shrink: 0;
    }
}



/* SEOHERO HOME RECOVERY | 2026 | Scoped and repeatable */
html,body{max-width:100%;overflow-x:clip}
.esh-header,.esh-header-row{background-color:#000!important;background-image:none!important}
.esh-brand:has(.custom-logo) .esh-brand-text{display:none!important}
.esh-rescue-home,.esh-rescue-home *,.esh-rescue-footer,.esh-rescue-footer *{box-sizing:border-box}
.esh-rescue-home{max-width:100%;overflow-x:clip;min-width:0}
.esh-rescue-home .esh-container,.esh-rescue-footer .esh-container{width:min(1200px,calc(100% - 32px));max-width:100%;margin-inline:auto}
.esh-rescue-section{padding:52px 0;background:#140d20;color:#fff}
.esh-rescue-section h2{font-size:clamp(23px,3vw,34px);margin:0 0 20px}
.esh-rescue-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.esh-rescue-tile{background:#241532;border:1px solid #644080;border-radius:18px;padding:22px;min-width:0;overflow-wrap:anywhere;color:#f1e6ff}
.esh-rescue-tile h3{font-size:18px;margin:0 0 10px}
.esh-rescue-tile p{font-size:14px;color:#d2c0e2}
.esh-rescue-tile a{color:#e0bcff}
.esh-rescue-header{background:#000;padding:18px 0;color:#fff}
.esh-rescue-footer{display:block!important;visibility:visible!important;opacity:1!important;background:#050507!important;color:#f6f0ff!important;border-top:1px solid #604177;clear:both}
.esh-rescue-footer-grid{display:grid;grid-template-columns:1.35fr repeat(3,minmax(0,1fr));gap:clamp(16px,3vw,48px);padding-block:55px 42px}
.esh-rescue-footer h2{font-size:17px;line-height:1.5;color:#fff;margin:0 0 16px}
.esh-rescue-footer p{font-size:14px;color:#beaec9;line-height:2.05;margin:0 0 15px}
.esh-rescue-footer a{color:#e5d3f3;text-decoration:none}
.esh-rescue-footer a:hover{color:#c48eff}
.esh-rescue-footer-links{padding:0;margin:0;list-style:none;display:flex;flex-direction:column;gap:9px}
.esh-rescue-footer-links li{list-style:none;margin:0;font-size:14px}
.esh-rescue-footer-bottom{border-top:1px solid #2b2135;padding-block:18px;color:#bbaac8;font-size:12px}
.esh-rescue-footer-bottom .esh-container{display:flex;gap:12px;justify-content:space-between;flex-wrap:wrap}
@media(max-width:900px){.esh-rescue-footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.esh-rescue-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.esh-rescue-footer-grid,.esh-rescue-grid{grid-template-columns:minmax(0,1fr)}.esh-rescue-footer-grid{padding-block:36px 25px}.esh-rescue-section{padding:32px 0}}
