/*
Theme Name: Sepehrno Atelier
Theme URI: https://sepehrno.ir/
Author: Sepehrno
Description: A premium, lightweight RTL WordPress theme for Sepehrno, designed to preserve shortcode-built pages, provide full-width layouts, animated lighting, and customizable header/footer.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: sepehrno-atelier
*/
:root{--sp-bg:#FCF9F3;--sp-bg2:#F6F0E9;--sp-ink:#2E2D27;--sp-gold:#D08E27;--sp-gold-light:#E8D4A5;--sp-muted:#6B675F;--sp-placeholder:#B2AFA7;--sp-card:#FBF8F0;--sp-border:#BCB9B3;--sp-radius:22px;--sp-shadow:0 18px 55px rgba(46,45,39,.09);--sp-container:1320px;--sp-header-height:84px}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:100px}body{margin:0;background:var(--sp-bg);color:var(--sp-ink);font-family:Vazirmatn,Tahoma,Arial,sans-serif;font-size:16px;line-height:1.85;overflow-wrap:anywhere}body,button,input,select,textarea{font-family:Vazirmatn,Tahoma,Arial,sans-serif}img{max-width:100%;height:auto}a{color:inherit;text-decoration:none}button,input,select,textarea{max-width:100%}button,a,input,select,textarea{outline-offset:4px}a:focus-visible,button:focus-visible{outline:2px solid var(--sp-gold)}.sp-container{width:min(var(--sp-container),calc(100% - 44px));margin-inline:auto}.sp-site{min-height:100vh;display:flex;flex-direction:column}.sp-main{flex:1;min-width:0}.sp-site-header{position:relative;z-index:100;background:rgba(252,249,243,.86);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border-bottom:1px solid rgba(188,185,179,.45)}.sp-site-header:before{content:"";position:absolute;inset:0 0 auto;height:2px;background:linear-gradient(90deg,transparent,var(--sp-gold),#F5E7C7,var(--sp-gold),transparent);background-size:220% 100%;animation:sp-shimmer 8s linear infinite;opacity:.95}.sp-header-glow{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:-1}.sp-header-glow:before{content:"";position:absolute;width:300px;height:160px;top:-100px;right:10%;background:rgba(208,142,39,.18);filter:blur(55px);border-radius:50%;animation:sp-drift 12s ease-in-out infinite alternate}.sp-header-inner{min-height:var(--sp-header-height);display:flex;align-items:center;gap:28px}.sp-brand{display:flex;align-items:center;gap:12px;flex-shrink:0;min-width:150px}.sp-brand img{max-width:190px;max-height:58px;object-fit:contain}.sp-brand-name{font-size:1.35rem;font-weight:900;letter-spacing:-.04em}.sp-brand-name span{color:var(--sp-gold)}.sp-brand-tagline{display:block;font-size:.68rem;color:var(--sp-muted);font-weight:500;line-height:1.3}.sp-primary-nav{flex:1;min-width:0}.sp-primary-nav ul{list-style:none;margin:0;padding:0;display:flex;align-items:center;justify-content:center;gap:clamp(12px,1.8vw,28px)}.sp-primary-nav li{position:relative}.sp-primary-nav a{display:block;padding:12px 0;color:var(--sp-ink);font-size:.91rem;font-weight:700;transition:color .25s ease}.sp-primary-nav a:hover,.sp-primary-nav .current-menu-item>a{color:var(--sp-gold)}.sp-primary-nav .sub-menu{position:absolute;top:100%;right:0;min-width:220px;padding:10px;background:rgba(252,249,243,.98);border:1px solid rgba(208,142,39,.22);border-radius:16px;box-shadow:var(--sp-shadow);display:none;flex-direction:column;align-items:stretch;gap:0}.sp-primary-nav li:hover>.sub-menu,.sp-primary-nav li:focus-within>.sub-menu{display:flex}.sp-primary-nav .sub-menu a{padding:9px 12px;border-radius:10px}.sp-primary-nav .sub-menu a:hover{background:var(--sp-bg2)}.sp-header-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}.sp-header-cta{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:11px 18px;border-radius:14px;background:linear-gradient(135deg,#E4B45E,var(--sp-gold));color:#fff;font-weight:800;font-size:.87rem;box-shadow:0 7px 22px rgba(208,142,39,.23);transition:transform .25s,box-shadow .25s}.sp-header-cta:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(208,142,39,.32);color:#fff}.sp-menu-toggle{display:none;border:1px solid var(--sp-border);background:var(--sp-card);color:var(--sp-ink);border-radius:12px;width:44px;height:44px;cursor:pointer;font-size:1.25rem}.sp-page-shell{width:100%;min-width:0}.sp-content{width:min(var(--sp-container),calc(100% - 44px));margin-inline:auto;padding-block:38px 64px}.page-template-sp-full-width .sp-content,.sp-full-width-content .sp-content{width:100%;max-width:none;padding:0}.page-template-sp-full-width .entry-content,.sp-full-width-content .entry-content{margin:0;padding:0}.sp-content-no-gutter{padding:0!important}.entry-content{min-width:0}.entry-content>*{max-width:100%}.entry-content>.alignfull{width:100vw;max-width:100vw;margin-inline:calc(50% - 50vw)}.entry-content>.alignwide{max-width:min(1500px,calc(100vw - 36px));margin-inline:auto}.entry-content>:first-child{margin-top:0}.entry-content>:last-child{margin-bottom:0}.sp-shortcode-page .entry-content,.sp-shortcode-page .wp-block-shortcode,.sp-shortcode-page .entry-content>div:has(>[class]){max-width:100%;width:100%}.sp-shortcode-page .entry-content{margin:0}.sp-shortcode-page .entry-content p:empty{display:none}.sp-post-title{font-size:clamp(1.8rem,3.2vw,3rem);line-height:1.35;letter-spacing:-.035em;margin:0 0 26px;font-weight:900}.sp-article{background:var(--sp-card);border:1px solid rgba(188,185,179,.45);border-radius:var(--sp-radius);padding:clamp(22px,4vw,54px);box-shadow:0 10px 38px rgba(46,45,39,.035)}.sp-site-footer{position:relative;isolation:isolate;overflow:hidden;background:#292821;color:#F9F3E7;margin-top:auto}.sp-site-footer:before{content:"";position:absolute;inset:0;z-index:-2;background:radial-gradient(ellipse at 12% 0%,rgba(208,142,39,.18),transparent 35%),radial-gradient(ellipse at 88% 100%,rgba(232,212,165,.11),transparent 38%),linear-gradient(135deg,#292821,#343128 55%,#24231E)}.sp-site-footer:after{content:"";position:absolute;z-index:-1;top:-130px;left:-8%;width:70%;height:180px;border-radius:50%;background:rgba(208,142,39,.12);filter:blur(65px);animation:sp-footer-glow 11s ease-in-out infinite alternate;pointer-events:none}.sp-footer-topline{height:2px;background:linear-gradient(90deg,transparent,#D08E27,#F7E7C2,#D08E27,transparent);background-size:200% 100%;animation:sp-shimmer 7s linear infinite}.sp-footer-inner{padding:58px 0 24px}.sp-footer-grid{display:grid;grid-template-columns:1.35fr 1fr 1fr 1fr;gap:34px}.sp-footer-brand .sp-brand-name{color:#fff}.sp-footer-brand .sp-brand-tagline{color:#C6BFB0}.sp-footer-description{color:#D2CBBE;font-size:.91rem;max-width:360px;margin:18px 0}.sp-footer-heading{font-size:1rem;font-weight:900;margin:0 0 18px;color:#F3D69A}.sp-footer-menu,.sp-footer-links{list-style:none;padding:0;margin:0;display:grid;gap:9px}.sp-footer-menu a,.sp-footer-links a{color:#D7D0C4;font-size:.9rem;transition:color .2s,transform .2s;display:inline-block}.sp-footer-menu a:hover,.sp-footer-links a:hover{color:#F3C875;transform:translateX(-3px)}.sp-footer-custom-content{color:#D7D0C4;font-size:.9rem}.sp-footer-custom-content img{max-height:90px;width:auto}.sp-footer-trust{margin-top:24px;padding:18px;border:1px solid rgba(232,212,165,.22);background:rgba(255,255,255,.035);border-radius:18px}.sp-footer-trust-title{font-weight:800;color:#F3D69A;margin-bottom:12px}.sp-trust-code{max-width:100%;overflow:auto}.sp-trust-code img{max-width:100%;height:auto}.sp-trust-image-link{display:inline-flex;margin-top:12px;align-items:center;gap:8px}.sp-trust-image-link img{max-width:130px;max-height:100px;object-fit:contain;border-radius:8px;background:#fff;padding:5px}.sp-footer-bottom{border-top:1px solid rgba(232,212,165,.16);margin-top:36px;padding-top:18px;display:flex;align-items:center;justify-content:space-between;gap:16px;color:#BEB6A8;font-size:.82rem}.sp-footer-bottom a{color:#F3D69A}.sp-social-links{display:flex;flex-wrap:wrap;gap:10px}.sp-social-links a{display:inline-flex;align-items:center;justify-content:center;min-width:36px;height:36px;padding:0 10px;border:1px solid rgba(232,212,165,.22);border-radius:11px;color:#F4E8D1;font-size:.8rem;transition:background .2s,border-color .2s}.sp-social-links a:hover{background:rgba(208,142,39,.16);border-color:var(--sp-gold)}.sp-mobile-nav{display:none}.sp-scroll-top{position:fixed;z-index:80;bottom:22px;left:22px;width:44px;height:44px;border-radius:14px;border:1px solid rgba(208,142,39,.4);background:rgba(252,249,243,.9);color:var(--sp-ink);box-shadow:0 8px 24px rgba(46,45,39,.12);cursor:pointer;opacity:0;pointer-events:none;transform:translateY(10px);transition:all .25s}.sp-scroll-top.is-visible{opacity:1;pointer-events:auto;transform:translateY(0)}.sp-reveal{opacity:0;transform:translateY(14px);transition:opacity .65s ease,transform .65s cubic-bezier(.2,.7,.2,1)}.sp-reveal.is-visible{opacity:1;transform:none}.sp-404{text-align:center;padding:90px 20px}.sp-404 h1{font-size:clamp(2.5rem,8vw,5rem);margin:0;color:var(--sp-gold)}.sp-404 p{color:var(--sp-muted)}.sp-button{display:inline-flex;padding:12px 20px;border-radius:13px;background:var(--sp-gold);color:#fff;font-weight:800}.sp-search-form{display:flex;gap:8px}.sp-search-form input{min-width:0;flex:1;border:1px solid var(--sp-border);background:var(--sp-card);padding:12px 14px;border-radius:12px}.sp-search-form button{border:0;border-radius:12px;background:var(--sp-gold);color:#fff;padding:0 18px;font-weight:800;cursor:pointer}.woocommerce .woocommerce-breadcrumb{color:var(--sp-muted)}.woocommerce ul.products li.product,.woocommerce div.product div.images,.woocommerce div.product div.summary{min-width:0}.woocommerce ul.products li.product{background:var(--sp-card);padding:16px;border:1px solid rgba(188,185,179,.4);border-radius:18px;transition:transform .25s,box-shadow .25s}.woocommerce ul.products li.product:hover{transform:translateY(-4px);box-shadow:var(--sp-shadow)}.woocommerce ul.products li.product a img{border-radius:12px}.woocommerce a.button,.woocommerce button.button,.woocommerce input.button{background:var(--sp-gold);color:#fff;border-radius:11px;padding:12px 17px}.woocommerce a.button:hover,.woocommerce button.button:hover,.woocommerce input.button:hover{background:#B87919;color:#fff}.woocommerce span.onsale{background:var(--sp-gold);min-height:3em;min-width:3em;line-height:3em}.widget{margin-bottom:24px}.widget-title{font-weight:900}
@keyframes sp-shimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}@keyframes sp-drift{0%{transform:translate(0,0) scale(1)}100%{transform:translate(-90px,35px) scale(1.25)}}@keyframes sp-footer-glow{0%{transform:translateX(0) scale(1);opacity:.65}100%{transform:translateX(90px) scale(1.25);opacity:1}}
@media(min-width:1500px){:root{--sp-container:1400px}}@media(max-width:1100px){.sp-header-inner{gap:18px}.sp-primary-nav ul{gap:13px}.sp-primary-nav a{font-size:.84rem}.sp-footer-grid{grid-template-columns:1.2fr 1fr 1fr;gap:26px}.sp-footer-grid>*:last-child{grid-column:1/-1}}@media(max-width:860px){:root{--sp-header-height:72px}.sp-container{width:calc(100% - 30px)}.sp-header-inner{justify-content:space-between;gap:12px}.sp-brand{min-width:0}.sp-brand img{max-width:150px;max-height:48px}.sp-brand-name{font-size:1.2rem}.sp-primary-nav{display:none}.sp-header-actions{margin-right:auto}.sp-header-cta{font-size:.8rem;padding:10px 12px}.sp-menu-toggle{display:inline-flex;align-items:center;justify-content:center}.sp-mobile-nav{display:block;max-height:0;overflow:hidden;opacity:0;transition:max-height .35s ease,opacity .25s ease;border-top:1px solid transparent}.sp-mobile-nav.is-open{max-height:75vh;overflow:auto;opacity:1;border-top-color:rgba(188,185,179,.35)}.sp-mobile-nav ul{list-style:none;padding:12px 0 18px;margin:0;display:grid;gap:3px}.sp-mobile-nav a{display:block;padding:11px 14px;border-radius:12px;font-weight:700}.sp-mobile-nav a:hover{background:var(--sp-bg2);color:var(--sp-gold)}.sp-mobile-nav .sub-menu{padding:0 15px 0 0}.sp-content{width:calc(100% - 30px);padding-block:26px 44px}.sp-footer-inner{padding-top:42px}.sp-footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 22px}.sp-footer-grid>*:first-child{grid-column:1/-1}.sp-footer-grid>*:last-child{grid-column:auto}.sp-footer-bottom{align-items:flex-start;flex-direction:column}.sp-article{padding:22px;border-radius:18px}}@media(max-width:520px){.sp-container{width:calc(100% - 24px)}.sp-brand-tagline{display:none}.sp-brand img{max-width:120px}.sp-header-cta{padding:9px 10px;font-size:.75rem}.sp-menu-toggle{width:40px;height:40px}.sp-content{width:calc(100% - 24px)}.sp-footer-grid{grid-template-columns:1fr;gap:25px}.sp-footer-grid>*:first-child,.sp-footer-grid>*:last-child{grid-column:auto}.sp-footer-trust{padding:14px}.sp-footer-bottom{font-size:.78rem}.sp-scroll-top{left:12px;bottom:12px}.woocommerce ul.products{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.woocommerce ul.products:before,.woocommerce ul.products:after{display:none!important}.woocommerce ul.products li.product{width:auto!important;float:none!important;margin:0!important;padding:10px}.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:.88rem}.woocommerce ul.products li.product .price{font-size:.9rem}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}.sp-reveal{opacity:1;transform:none}}


/* SEPEHRNO ATELIER 1.1 — full-width shortcode canvas and richer motion */
.sp-shortcode-page .sp-page-shell,.sp-shortcode-page .sp-content,.sp-shortcode-page .entry-content{width:100%!important;max-width:none!important;margin-inline:0!important;padding-inline:0!important}
.sp-shortcode-page .sp-content{padding-block:0!important}
.sp-shortcode-page .entry-content>*{max-width:100%;}
.sp-shortcode-page .entry-content>p:has(> .wp-block-shortcode),.sp-shortcode-page .entry-content>.wp-block-shortcode{width:100%;max-width:none;margin-inline:0;padding:0}
.sp-shortcode-page .entry-content>.wp-block-shortcode>*,.sp-shortcode-page .entry-content .wp-block-shortcode> *{max-width:100%}
.sp-site-header{box-shadow:0 10px 35px rgba(46,45,39,.045);overflow:visible}
.sp-site-header:after{content:"";position:absolute;inset:auto 7% -1px;height:1px;background:linear-gradient(90deg,transparent,rgba(208,142,39,.6),rgba(232,212,165,.95),rgba(208,142,39,.6),transparent);background-size:220% 100%;animation:sp-shimmer 5s linear infinite;pointer-events:none}
.sp-header-glow:after{content:"";position:absolute;width:220px;height:130px;left:12%;top:-95px;border-radius:50%;background:rgba(232,212,165,.3);filter:blur(48px);animation:sp-drift 9s ease-in-out infinite alternate}
.sp-primary-nav a{position:relative}
.sp-primary-nav a:after{content:"";position:absolute;right:0;left:100%;bottom:5px;height:2px;border-radius:2px;background:linear-gradient(90deg,var(--sp-gold),var(--sp-gold-light));transition:left .28s ease}
.sp-primary-nav a:hover:after,.sp-primary-nav .current-menu-item>a:after{left:0}
.sp-header-search{display:flex;align-items:center;min-width:145px;max-width:220px;border:1px solid rgba(188,185,179,.62);border-radius:15px;background:rgba(255,255,255,.58);overflow:hidden;transition:border-color .25s,box-shadow .25s,background .25s}
.sp-header-search:focus-within{border-color:var(--sp-gold);box-shadow:0 0 0 4px rgba(208,142,39,.12),0 8px 25px rgba(208,142,39,.09);background:#fff}
.sp-header-search input{width:100%;min-width:0;border:0;outline:0;background:transparent;padding:10px 12px;color:var(--sp-ink);font-size:.82rem}
.sp-header-search button{flex:0 0 38px;width:38px;height:38px;border:0;border-radius:11px;margin:3px;background:linear-gradient(135deg,#E8D4A5,#D08E27);color:#fff;font-size:1.45rem;line-height:1;cursor:pointer;transition:transform .2s,box-shadow .2s}
.sp-header-search button:hover{transform:scale(.95);box-shadow:0 0 18px rgba(208,142,39,.35)}
.sp-header-cta{position:relative;isolation:isolate;overflow:hidden}
.sp-header-cta:before{content:"";position:absolute;z-index:-1;inset:0;transform:translateX(-120%);background:linear-gradient(110deg,transparent,rgba(255,255,255,.45),transparent);animation:sp-cta-glint 4.8s ease-in-out infinite}
@keyframes sp-cta-glint{0%,55%{transform:translateX(-120%)}85%,100%{transform:translateX(120%)}}
.sp-site-footer{box-shadow:0 -15px 55px rgba(46,45,39,.045)}
.sp-site-footer:before{background:radial-gradient(ellipse at 8% 10%,rgba(208,142,39,.25),transparent 33%),radial-gradient(ellipse at 92% 70%,rgba(232,212,165,.16),transparent 36%),radial-gradient(ellipse at 52% 115%,rgba(208,142,39,.12),transparent 38%),linear-gradient(135deg,#24231e,#343128 55%,#24231e);background-size:140% 140%;animation:sp-footer-ambient 18s ease-in-out infinite alternate}
.sp-site-footer:after{width:85%;height:220px;top:-155px;left:-12%;background:linear-gradient(90deg,rgba(208,142,39,.02),rgba(232,212,165,.22),rgba(208,142,39,.05));filter:blur(70px);animation:sp-footer-glow 8s ease-in-out infinite alternate}
.sp-footer-topline{height:3px;box-shadow:0 0 16px rgba(208,142,39,.45),0 0 32px rgba(208,142,39,.2)}
.sp-footer-heading{position:relative;padding-bottom:10px;text-shadow:0 0 22px rgba(232,212,165,.08)}
.sp-footer-heading:after{content:"";position:absolute;right:0;bottom:0;width:42px;height:2px;border-radius:2px;background:linear-gradient(90deg,var(--sp-gold),var(--sp-gold-light));box-shadow:0 0 12px rgba(208,142,39,.4)}
.sp-footer-block,.sp-footer-grid>section{min-width:0}
.sp-footer-grid-custom{grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr))}
.sp-footer-block{padding:4px 2px;animation:sp-footer-enter .7s both}
.sp-footer-block:nth-child(2){animation-delay:.08s}.sp-footer-block:nth-child(3){animation-delay:.16s}.sp-footer-block:nth-child(4){animation-delay:.24s}
.sp-footer-trust{background:linear-gradient(135deg,rgba(255,255,255,.065),rgba(255,255,255,.02));box-shadow:inset 0 1px rgba(255,255,255,.06),0 10px 35px rgba(0,0,0,.08);backdrop-filter:blur(8px)}
.sp-trust-image-link img{transition:transform .3s,box-shadow .3s}.sp-trust-image-link:hover img{transform:translateY(-3px);box-shadow:0 0 24px rgba(232,212,165,.25)}
@keyframes sp-footer-ambient{0%{background-position:0% 50%}100%{background-position:100% 50%}}
@keyframes sp-footer-enter{from{opacity:.45;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:1100px){.sp-header-inner{gap:14px}.sp-header-search{max-width:185px;min-width:125px}.sp-header-cta{padding-inline:12px}}
@media(max-width:860px){.sp-header-inner{flex-wrap:wrap;padding-block:10px;min-height:72px}.sp-header-search{order:3;flex:1 0 100%;max-width:none;width:100%;margin:0 0 2px}.sp-header-search input{padding-block:9px}.sp-site-header:has(.sp-header-search){padding-bottom:0}.sp-footer-grid-custom{grid-template-columns:repeat(2,minmax(0,1fr))}.sp-footer-grid-custom>.sp-footer-block:first-child{grid-column:1/-1}}
@media(max-width:520px){.sp-header-inner{column-gap:8px}.sp-header-actions{gap:7px}.sp-header-cta{font-size:.73rem;padding:9px 9px}.sp-footer-grid-custom{grid-template-columns:minmax(0,1fr)}.sp-footer-grid-custom>.sp-footer-block:first-child{grid-column:auto}}
@media(prefers-reduced-motion:reduce){.sp-header-glow:before,.sp-header-glow:after,.sp-site-header:before,.sp-site-header:after,.sp-header-cta:before,.sp-site-footer:before,.sp-site-footer:after,.sp-footer-topline,.sp-footer-block{animation:none!important}}


/* Premium ambient light accents — layered over the existing header/footer design */
.sp-site-header{isolation:isolate}
.sp-header-glow:after{
  content:"";position:absolute;top:-55%;bottom:-55%;left:-28%;width:18%;
  pointer-events:none;opacity:0;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.24),rgba(232,212,165,.34),transparent);
  filter:blur(13px);transform:skewX(-18deg);
  animation:sp-header-light-sweep 10s ease-in-out infinite;
}
.sp-site-header:before{height:2px;box-shadow:0 0 10px rgba(208,142,39,.34),0 0 22px rgba(208,142,39,.15)}
.sp-header-cta{box-shadow:0 7px 22px rgba(208,142,39,.25),0 0 0 1px rgba(255,255,255,.18) inset}
.sp-footer-topline{position:relative;overflow:hidden}
.sp-footer-topline:after{
  content:"";position:absolute;inset:-5px auto -5px -30%;width:22%;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.82),rgba(255,244,214,.9),transparent);
  filter:blur(5px);animation:sp-footer-light-sweep 6.5s ease-in-out infinite;
}
.sp-site-footer{box-shadow:0 -15px 55px rgba(46,45,39,.06),0 0 35px rgba(208,142,39,.035)}
.sp-footer-heading:after{animation:sp-heading-pulse 3.8s ease-in-out infinite alternate}
@keyframes sp-header-light-sweep{
  0%,12%{left:-28%;opacity:0}
  22%{opacity:.8}
  55%{left:112%;opacity:.55}
  66%,100%{left:112%;opacity:0}
}
@keyframes sp-footer-light-sweep{
  0%,18%{left:-30%;opacity:0}
  28%{opacity:.95}
  72%{left:112%;opacity:.65}
  86%,100%{left:112%;opacity:0}
}
@keyframes sp-heading-pulse{
  from{box-shadow:0 0 7px rgba(208,142,39,.22);opacity:.75}
  to{box-shadow:0 0 17px rgba(232,212,165,.62);opacity:1}
}
@media(prefers-reduced-motion:reduce){
  .sp-header-glow:after,.sp-footer-topline:after,.sp-footer-heading:after{animation:none!important}
}


/* =========================================================
   Sepehrno Atelier — Midnight Gold global dark mode
   Activated by html[data-sp-theme="dark"].
   ========================================================= */
html[data-sp-theme="dark"]{
 --sp-bg:#111315;
 --sp-bg2:#181B1E;
 --sp-ink:#F2EEE6;
 --sp-gold:#E0A642;
 --sp-gold-light:#F0D79F;
 --sp-muted:#B8B2A8;
 --sp-placeholder:#85837E;
 --sp-card:#1D2124;
 --sp-border:#3B3F42;
 --sp-shadow:0 18px 55px rgba(0,0,0,.38);
 color-scheme:dark;
}
html[data-sp-theme="dark"] body{
 background-color:var(--sp-bg)!important;
 color:var(--sp-ink)!important;
}
html[data-sp-theme="dark"] .sp-site-header{
 background:rgba(17,19,21,.90)!important;
 border-bottom-color:rgba(224,166,66,.22)!important;
}
html[data-sp-theme="dark"] .sp-primary-nav a,
html[data-sp-theme="dark"] .sp-brand-name,
html[data-sp-theme="dark"] .sp-menu-toggle{color:var(--sp-ink)}
html[data-sp-theme="dark"] .sp-primary-nav .sub-menu{
 background:#1B1F22!important;border-color:#484139!important;
}
html[data-sp-theme="dark"] .sp-primary-nav .sub-menu a:hover,
html[data-sp-theme="dark"] .sp-menu-toggle{background:#25292C!important}
html[data-sp-theme="dark"] .sp-header-search input,
html[data-sp-theme="dark"] input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]),
html[data-sp-theme="dark"] textarea,
html[data-sp-theme="dark"] select{
 background-color:#202428!important;color:#F2EEE6!important;
 border-color:#484D50!important;
}
html[data-sp-theme="dark"] input::placeholder,
html[data-sp-theme="dark"] textarea::placeholder{color:#99958D!important}
html[data-sp-theme="dark"] .sp-article,
html[data-sp-theme="dark"] .sp-card,
html[data-sp-theme="dark"] .sp-content-card,
html[data-sp-theme="dark"] .sp-panel,
html[data-sp-theme="dark"] .sp-modal,
html[data-sp-theme="dark"] .sp-dropdown,
html[data-sp-theme="dark"] .sp-widget,
html[data-sp-theme="dark"] .sp-box{
 background-color:var(--sp-card)!important;color:var(--sp-ink)!important;
 border-color:var(--sp-border)!important;
}
html[data-sp-theme="dark"] .sp-site-footer{
 background:#0B0D0F!important;color:#E9E3D8!important;
}
html[data-sp-theme="dark"] .sp-site-footer:before{
 background:radial-gradient(ellipse at 12% 0%,rgba(208,142,39,.16),transparent 35%),radial-gradient(ellipse at 88% 100%,rgba(232,212,165,.08),transparent 38%),linear-gradient(135deg,#0B0D0F,#17191B 55%,#090A0B)!important;
}
html[data-sp-theme="dark"] .sp-footer-custom-content,
html[data-sp-theme="dark"] .sp-footer-description,
html[data-sp-theme="dark"] .sp-footer-menu a,
html[data-sp-theme="dark"] .sp-footer-links a{color:#C7C0B4}
html[data-sp-theme="dark"] .sp-footer-bottom{border-color:#343638!important}
html[data-sp-theme="dark"] .sp-theme-toggle{
 color:#F4D99F;background:rgba(224,166,66,.12);
 border-color:rgba(224,166,66,.48);
}
html[data-sp-theme="dark"] .sp-theme-toggle:hover{
 background:rgba(224,166,66,.22);box-shadow:0 0 24px rgba(224,166,66,.18);
}
/* Cross-plugin / shortcode compatibility: common surfaces, typography and controls. */
html[data-sp-theme="dark"] .entry-content,
html[data-sp-theme="dark"] .entry-content p,
html[data-sp-theme="dark"] .entry-content li,
html[data-sp-theme="dark"] .entry-content label,
html[data-sp-theme="dark"] .entry-content h1,
html[data-sp-theme="dark"] .entry-content h2,
html[data-sp-theme="dark"] .entry-content h3,
html[data-sp-theme="dark"] .entry-content h4,
html[data-sp-theme="dark"] .entry-content h5,
html[data-sp-theme="dark"] .entry-content h6,
html[data-sp-theme="dark"] .sp-content{color:var(--sp-ink)}
html[data-sp-theme="dark"] .entry-content [class*="card"],
html[data-sp-theme="dark"] .entry-content [class*="panel"],
html[data-sp-theme="dark"] .entry-content [class*="widget"],
html[data-sp-theme="dark"] .entry-content [class*="modal"],
html[data-sp-theme="dark"] .entry-content [class*="dropdown"],
html[data-sp-theme="dark"] .entry-content [class*="table"],
html[data-sp-theme="dark"] .entry-content [class*="box"]{
 border-color:var(--sp-border);
}
html[data-sp-theme="dark"] .entry-content table,
html[data-sp-theme="dark"] .entry-content th,
html[data-sp-theme="dark"] .entry-content td{
 border-color:var(--sp-border)!important;color:var(--sp-ink);
}
html[data-sp-theme="dark"] .entry-content th{background:#292D30!important}
html[data-sp-theme="dark"] .entry-content tr:nth-child(even){background:rgba(255,255,255,.025)}
html[data-sp-theme="dark"] .entry-content input,
html[data-sp-theme="dark"] .entry-content textarea,
html[data-sp-theme="dark"] .entry-content select,
html[data-sp-theme="dark"] .entry-content option,
html[data-sp-theme="dark"] .entry-content .select2-selection{
 background:#202428!important;color:#F2EEE6!important;border-color:#484D50!important;
}
html[data-sp-theme="dark"] .entry-content input[type="checkbox"],
html[data-sp-theme="dark"] .entry-content input[type="radio"]{accent-color:var(--sp-gold)}
html[data-sp-theme="dark"] .entry-content a:not(.sp-button):not([class*="button"]){color:#E7B85F}
html[data-sp-theme="dark"] .entry-content hr{border-color:var(--sp-border)!important}
html[data-sp-theme="dark"] .entry-content blockquote{background:#202428!important;border-color:var(--sp-gold)!important;color:var(--sp-ink)!important}
/* WooCommerce */
html[data-sp-theme="dark"] .woocommerce,
html[data-sp-theme="dark"] .woocommerce-page{color:var(--sp-ink)}
html[data-sp-theme="dark"] .woocommerce div.product,
html[data-sp-theme="dark"] .woocommerce ul.products li.product,
html[data-sp-theme="dark"] .woocommerce-cart .cart-collaterals,
html[data-sp-theme="dark"] .woocommerce-checkout #payment,
html[data-sp-theme="dark"] .woocommerce form.checkout_coupon,
html[data-sp-theme="dark"] .woocommerce form.login,
html[data-sp-theme="dark"] .woocommerce form.register{
 background:var(--sp-card)!important;color:var(--sp-ink)!important;border-color:var(--sp-border)!important;
}
html[data-sp-theme="dark"] .woocommerce div.product .woocommerce-tabs ul.tabs li,
html[data-sp-theme="dark"] .woocommerce-message,
html[data-sp-theme="dark"] .woocommerce-info{background:#252A2D!important;color:var(--sp-ink)!important;border-color:var(--sp-border)!important}
html[data-sp-theme="dark"] .woocommerce table.shop_table,
html[data-sp-theme="dark"] .woocommerce table.shop_table th,
html[data-sp-theme="dark"] .woocommerce table.shop_table td{border-color:var(--sp-border)!important;color:var(--sp-ink)}
html[data-sp-theme="dark"] .woocommerce .quantity .qty{background:#202428!important;color:#fff!important;border-color:var(--sp-border)!important}
/* Generic embedded admin/plugin components */
html[data-sp-theme="dark"] .entry-content [style*="background:#fff"],
html[data-sp-theme="dark"] .entry-content [style*="background: #fff"],
html[data-sp-theme="dark"] .entry-content [style*="background-color:#fff"],
html[data-sp-theme="dark"] .entry-content [style*="background-color: #fff"],
html[data-sp-theme="dark"] .entry-content [style*="background:white"],
html[data-sp-theme="dark"] .entry-content [style*="background: white"],
html[data-sp-theme="dark"] .entry-content [style*="background-color: white"]{
 background-color:#202428!important;color:var(--sp-ink)!important;border-color:var(--sp-border)!important;
}
html[data-sp-theme="dark"] .entry-content [style*="color:#2E2D27"],
html[data-sp-theme="dark"] .entry-content [style*="color: #2E2D27"],
html[data-sp-theme="dark"] .entry-content [style*="color:#333"],
html[data-sp-theme="dark"] .entry-content [style*="color: #333"],
html[data-sp-theme="dark"] .entry-content [style*="color:black"],
html[data-sp-theme="dark"] .entry-content [style*="color: black"]{color:var(--sp-ink)!important}
html[data-sp-theme="dark"] .entry-content .has-white-background-color{background-color:#202428!important;color:var(--sp-ink)!important}
html[data-sp-theme="dark"] .entry-content .has-black-color{color:var(--sp-ink)!important}
html[data-sp-theme="dark"] .entry-content .has-dark-gray-background-color{background-color:#252A2D!important}
html[data-sp-theme="dark"] .entry-content .wp-block-separator{border-color:var(--sp-border)!important}
html[data-sp-theme="dark"] .sp-scroll-top{background:#272B2E!important;color:#F0D79F!important;border-color:#5B4A2C!important}
.sp-theme-toggle{
 display:inline-flex;align-items:center;justify-content:center;gap:7px;
 min-height:40px;padding:8px 12px;border:1px solid rgba(208,142,39,.38);
 border-radius:13px;background:rgba(208,142,39,.08);color:#76521E;
 font:inherit;font-size:.78rem;font-weight:800;cursor:pointer;
 transition:all .25s ease;white-space:nowrap;
}
.sp-theme-toggle:hover{transform:translateY(-2px);background:rgba(208,142,39,.15);box-shadow:0 8px 22px rgba(208,142,39,.12)}
.sp-theme-icon{font-size:1.05rem;line-height:1}
@media(max-width:860px){
 .sp-theme-toggle{width:42px;min-width:42px;height:42px;padding:0;border-radius:12px}
 .sp-theme-label{display:none}
}
@media(prefers-reduced-motion:reduce){
 .sp-theme-toggle{transition:none}
}
