/*
Theme Name: Delvis Lite
Theme URI: https://delvis.example/
Author: Delvis
Description: قالب سبک، سریع و RTL برای وردپرس که با افزونه Delvis Landing و Yoast SEO هماهنگ است.
Version: 1.1.2
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: delvis-lite
*/
:root{--dl-bg:#fffaf1;--dl-surface:#fff;--dl-text:#382300;--dl-muted:#6b6258;--dl-accent:#d88700;--dl-border:#ece7df;--dl-max:1180px}
*{box-sizing:border-box}html{scroll-behavior:smooth}
body{margin:0;background:var(--dl-bg);color:var(--dl-text);font-family:IRANYekan,Tahoma,Arial,sans-serif;line-height:1.9}
.dl-theme-shell a,.dl-theme-shell a:visited,.dl-theme-shell a:hover,.dl-theme-shell a:active{color:inherit;text-decoration:none}
.dl-theme-shell a:focus-visible{outline:2px solid var(--dl-accent);outline-offset:4px;border-radius:4px}
img{max-width:100%;height:auto}
.dl-theme-shell{min-height:100vh;display:flex;flex-direction:column}
.dl-theme-header{background:#fff;border-bottom:1px solid var(--dl-border)}
.dl-theme-header__inner{max-width:var(--dl-max);width:100%;margin:auto;padding:18px 24px;display:flex;align-items:center;justify-content:space-between;gap:28px}
.dl-theme-brand,.custom-logo-link{display:flex;align-items:center;font-size:22px;font-weight:700;text-decoration:none}.dl-theme-brand img{display:block;width:180px;height:auto;max-height:48px;object-fit:contain}.custom-logo{max-width:220px;max-height:48px;width:auto}
.dl-theme-menu{display:none;border:0;background:transparent;padding:0;cursor:pointer}.dl-theme-menu img{display:block;width:26px;height:26px}
.dl-theme-install{display:inline-flex;align-items:center;gap:7px;border:1px solid #888;border-radius:24px;padding:7px 16px;text-decoration:none;white-space:nowrap;font-size:13px}.dl-theme-install img{width:16px;height:16px;object-fit:contain}
.dl-theme-nav ul{list-style:none;display:flex;gap:22px;margin:0;padding:0}
.dl-theme-nav a{font-size:14px}
.dl-theme-main{flex:1}
.dl-theme-container{max-width:var(--dl-max);margin:auto;padding:56px 24px 90px}
.dl-theme-breadcrumb{margin-bottom:28px;color:var(--dl-muted);font-size:13px}
.dl-theme-breadcrumb a{color:var(--dl-accent)}
.dl-theme-title{font-size:clamp(28px,4vw,48px);line-height:1.45;margin:0 0 20px}
.dl-theme-meta{display:flex;flex-wrap:wrap;gap:12px 26px;color:var(--dl-muted);font-size:13px;margin-bottom:28px}
.dl-theme-featured{display:block;width:100%;max-height:560px;object-fit:cover;border-radius:24px;margin:0 0 34px}
.dl-theme-content{max-width:820px;margin:auto;font-size:17px}
.dl-theme-content p{margin:0 0 24px}
.dl-theme-content h2{font-size:27px;line-height:1.5;margin:42px 0 14px}
.dl-theme-content h3{font-size:22px;line-height:1.5;margin:34px 0 12px}
.dl-theme-content ul,.dl-theme-content ol{padding-right:24px}
.dl-theme-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.dl-theme-card{background:var(--dl-surface);border:1px solid var(--dl-border);border-radius:18px;padding:10px;overflow:hidden}
.dl-theme-card__image{display:block;aspect-ratio:1.5;object-fit:cover;border-radius:12px}
.dl-theme-card h2{font-size:18px;line-height:1.7;margin:14px 4px 4px}
.dl-theme-card p{color:var(--dl-muted);font-size:13px;margin:0 4px 10px}
.dl-theme-download{background:#ffb52f;border-radius:90px 90px 0 0;text-align:center;padding:64px 24px 70px;color:var(--dl-text)}
.dl-theme-download h2{font-size:30px;line-height:1.5;margin:0 0 8px}.dl-theme-download p{font-size:16px;margin:0}
.dl-theme-download__buttons{display:flex;justify-content:center;gap:22px;margin-top:28px;direction:rtl}.dl-theme-download__buttons a{display:flex;align-items:center;gap:14px;width:230px;min-height:70px;padding:8px 16px;background:#050505;border-radius:12px;color:#fff;text-decoration:none;text-align:right}.dl-theme-download__buttons img{width:36px;height:36px;object-fit:contain;flex:0 0 36px}.dl-theme-download__buttons span{display:flex;flex-direction:column;line-height:1.25}.dl-theme-download__buttons small{font-size:10px}.dl-theme-download__buttons strong{font-size:17px;font-weight:500}
.dl-theme-footer{background:#252525;color:#fff;margin-top:auto}
.dl-theme-footer__inner{max-width:var(--dl-max);margin:auto;padding:48px 24px 34px;display:flex;justify-content:space-between;align-items:flex-start;gap:32px;direction:rtl}.dl-theme-footer__brand{max-width:290px;text-align:right}.dl-theme-footer__brand img{display:block;width:285px;max-width:100%;height:auto;margin:0 0 16px auto}.dl-theme-footer__brand p{color:#ddd;font-size:13px;line-height:2;margin:0}
.dl-theme-footer a{text-decoration:none;color:#eee}
.dl-theme-footer__nav{display:grid;grid-template-columns:repeat(2,minmax(150px,1fr));gap:15px 30px;font-size:13px}.dl-theme-footer__nav a{display:block;color:#eee}.dl-theme-footer__nav strong,.dl-theme-footer__nav small{display:block}.dl-theme-footer__nav strong{font-weight:500}.dl-theme-footer__nav small{color:#bdbdbd;font-size:11px;line-height:1.8;margin-top:2px}
.dl-theme-footer__copy{border-top:1px solid #4c4c4c;max-width:var(--dl-max);margin:auto;padding:18px 24px;text-align:center;color:#ccc;font-size:12px}
.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip-link:focus{position:fixed;z-index:9999;top:10px;left:10px;width:auto;height:auto;margin:0;padding:8px 12px;clip:auto;background:#fff;color:#000}
@media(max-width:760px){
 .dl-theme-header{position:sticky;top:0;z-index:1000}.dl-theme-header__inner{height:74px;padding:14px 20px;display:flex;position:relative;text-align:center;justify-content:center}
 .dl-theme-brand,.custom-logo-link{position:absolute;right:20px;top:50%;transform:translateY(-50%);margin:0}.dl-theme-brand img,.custom-logo{width:150px;max-height:40px}
 .dl-theme-menu{display:block;position:absolute;left:20px;top:50%;transform:translateY(-50%)}
 .dl-theme-nav{display:none;position:absolute;top:74px;right:0;left:0;background:#fff;border-top:1px solid var(--dl-border);box-shadow:0 8px 20px rgba(56,35,0,.12);padding:10px 20px}.dl-theme-nav.is-open{display:block}.dl-theme-nav ul{justify-content:center;gap:4px;flex-direction:column;align-items:stretch}.dl-theme-nav a{display:block;padding:6px 0;font-size:13px;text-align:right}.dl-theme-install{display:none}
 .dl-theme-container{padding:34px 16px 60px}
 .dl-theme-meta{gap:6px 14px}
 .dl-theme-featured{border-radius:16px;margin-bottom:24px}
 .dl-theme-content{font-size:16px}
 .dl-theme-card-grid{grid-template-columns:1fr}
 .dl-theme-download{border-radius:40px 40px 0 0;padding:48px 16px 54px}.dl-theme-download h2{font-size:21px}.dl-theme-download p{font-size:14px}.dl-theme-download__buttons{flex-direction:column;gap:12px}.dl-theme-download__buttons a{width:100%;min-height:72px}
 .dl-theme-footer__inner{padding:42px 20px 28px;display:block;text-align:right}.dl-theme-footer__brand{max-width:none}.dl-theme-footer__brand img{width:235px;margin:0 0 17px auto}.dl-theme-footer__brand p{font-size:13px}
 .dl-theme-footer__nav{margin-top:16px;text-align:center;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 20px}.dl-theme-footer__nav small{font-size:10px}
 .dl-theme-footer__copy{padding:16px;font-size:11px}
}
.dl-footer-info-link{cursor:pointer}
.dl-footer-info-modal{position:fixed;inset:0;z-index:30000;display:none;align-items:center;justify-content:center;padding:20px}
.dl-footer-info-modal.is-open{display:flex}
.dl-footer-info-modal__backdrop{position:absolute;inset:0;background:rgba(50,35,15,.42);backdrop-filter:blur(3px)}
.dl-footer-info-modal__dialog{position:relative;z-index:1;width:min(520px,calc(100vw - 32px));max-height:min(78vh,560px);overflow:auto;background:#fff;border:1px solid #f0e4cf;border-radius:24px;padding:30px 28px 28px;box-shadow:0 20px 60px rgba(0,0,0,.28);direction:rtl;text-align:right;color:#382300}
.dl-footer-info-modal__close{position:absolute;top:10px;left:12px;width:34px;height:34px;border:0;border-radius:50%;background:#fff8ec;color:#a86800;font:24px/1 Tahoma;cursor:pointer}
.dl-footer-info-modal__dialog h2{margin:0 42px 14px 0;color:#d88700;font-size:22px;font-weight:600;line-height:1.6}
.dl-footer-info-modal__dialog p{margin:0;color:#4f473f;font-size:15px;line-height:2.25;white-space:pre-line}
@media(max-width:760px){.dl-footer-info-modal{padding:16px}.dl-footer-info-modal__dialog{padding:28px 20px 22px;border-radius:20px}.dl-footer-info-modal__dialog h2{font-size:19px;margin-right:34px}.dl-footer-info-modal__dialog p{font-size:14px;line-height:2.15}}
.dl-contact-modal{position:fixed;inset:0;z-index:30001;display:none;align-items:center;justify-content:center;padding:18px}.dl-contact-modal.is-open{display:flex}.dl-contact-modal__backdrop{position:absolute;inset:0;background:rgba(50,35,15,.46);backdrop-filter:blur(3px)}.dl-contact-modal__dialog{position:relative;z-index:1;width:min(440px,calc(100vw - 32px));background:#fff;border-radius:26px;padding:28px 24px 24px;box-shadow:0 22px 70px rgba(0,0,0,.3);text-align:center;color:var(--dl-text)}.dl-contact-modal__close{position:absolute;top:12px;left:14px;width:34px;height:34px;border:0;border-radius:50%;background:#fff7e8;color:var(--dl-accent);font:24px/1 Tahoma;cursor:pointer}.dl-contact-modal__dialog h2{margin:0 0 6px;font-size:24px;color:var(--dl-accent)}.dl-contact-modal__dialog>p{margin:0 0 20px;color:var(--dl-muted);font-size:14px;line-height:1.9}.dl-contact-modal__links{display:grid;gap:0;text-align:right;border-top:1px solid #e0e0e0}.dl-contact-modal__links a{display:flex;align-items:center;gap:14px;min-height:74px;padding:0 4px;border-bottom:1px solid #e0e0e0!important;border-radius:0!important;background:transparent!important;color:#302a24!important;text-decoration:none!important}.dl-contact-modal__links a:visited,.dl-contact-modal__links a:hover,.dl-contact-modal__links a:active{color:#302a24!important;text-decoration:none!important}.dl-contact-modal__links img{width:26px;height:26px;object-fit:contain}.dl-contact-modal__links a:last-child img{width:21px;height:15px}.dl-contact-modal__links strong{font-size:14px;font-weight:400}.dl-modal-open{overflow:hidden}@media(max-width:760px){.dl-contact-modal__dialog{padding:26px 16px 18px;border-radius:22px}.dl-contact-modal__dialog h2{font-size:21px}.dl-contact-modal__links a{min-height:74px}}

.dl-theme-mobile-menu{display:none}
@media(max-width:760px){
 .dl-theme-mobile-menu{position:fixed;inset:0;z-index:40000;display:flex;align-items:flex-end;justify-content:center;padding:24px 16px 40px;visibility:hidden;opacity:0;pointer-events:none;direction:rtl;font-family:IRANYekan,Tahoma,Arial,sans-serif;transition:opacity .2s ease,visibility .2s ease}
 .dl-theme-mobile-menu.is-open{visibility:visible;opacity:1;pointer-events:auto}
 .dl-theme-mobile-menu__backdrop{position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;border:0;background:rgba(0,0,0,.25);cursor:pointer}
 .dl-theme-mobile-menu__dialog{position:relative;z-index:1;width:min(100%,432px);max-height:calc(100vh - 64px);overflow:auto;padding:24px 20px 8px;background:#fff;border-radius:20px;color:#292929;box-shadow:0 16px 48px rgba(0,0,0,.14);transform:translateY(18px);transition:transform .24s ease}
 .dl-theme-mobile-menu.is-open .dl-theme-mobile-menu__dialog{transform:translateY(0)}
 .dl-theme-mobile-menu__dialog h2{margin:0 0 17px;padding:0;font-size:20px;font-weight:500;line-height:1.8;text-align:right;color:#292929}
 .dl-theme-mobile-menu__links{display:flex;flex-direction:column}
 .dl-theme-mobile-menu__links a{display:flex!important;align-items:center;justify-content:flex-start;gap:16px;width:100%;min-height:72px;margin:0!important;padding:0 8px!important;border:0!important;border-bottom:1px solid #dedede!important;border-radius:0!important;background:transparent!important;color:#292929!important;font-size:17px!important;font-weight:400;text-align:right;text-decoration:none!important}
 .dl-theme-mobile-menu__links a:last-child{border-bottom:0!important}
 .dl-theme-mobile-menu__links a::before{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;flex:0 0 26px;font:22px/1 Arial,sans-serif}
 .dl-theme-mobile-menu__links a:nth-child(1)::before{content:"🏠"}
 .dl-theme-mobile-menu__links a:nth-child(2)::before{content:"🌟"}
 .dl-theme-mobile-menu__links a:nth-child(3)::before{content:"💬"}
 .dl-theme-mobile-menu__links a:nth-child(4)::before{content:"📚"}
 .dl-theme-mobile-menu__links a:nth-child(5)::before{content:"📞"}
 .dl-theme-mobile-menu__links .dl-theme-mobile-menu__install::before{display:none}
 .dl-theme-mobile-menu__install img{display:block;width:25px;height:25px;flex:0 0 25px;object-fit:contain}
}

/* Tablet (portrait and landscape): preserve the airy desktop design without
   forcing tablet users into either the narrow phone layout or a cramped menu. */
@media (min-width:761px) and (max-width:1180px){
 .dl-theme-header__inner{padding:16px clamp(24px,4vw,42px);gap:18px}
 .dl-theme-nav ul{gap:clamp(12px,2vw,22px)}
 .dl-theme-nav a{font-size:13px}
 .dl-theme-install{padding:7px 13px;font-size:12px}
 .dl-theme-container{padding:48px clamp(28px,5vw,56px) 76px}
 .dl-theme-content{max-width:760px;font-size:16px}
 .dl-theme-content h2{font-size:25px}
 .dl-theme-card-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
 .dl-theme-card h2{font-size:17px}
 .dl-theme-download{border-radius:64px 64px 0 0;padding:58px clamp(28px,5vw,56px) 64px}
 .dl-theme-download h2{font-size:27px}
 .dl-theme-download__buttons{flex-wrap:wrap;gap:16px}
 .dl-theme-download__buttons a{width:min(300px,calc(50% - 8px))}
 .dl-theme-footer__inner{padding:44px clamp(28px,5vw,56px) 30px;gap:26px}
 .dl-theme-footer__brand{max-width:255px}
 .dl-theme-footer__nav{grid-template-columns:repeat(2,minmax(130px,1fr));gap:14px 22px}
 .dl-theme-footer__copy{padding-right:clamp(28px,5vw,56px);padding-left:clamp(28px,5vw,56px)}
 .dl-footer-info-modal__dialog{width:min(600px,calc(100vw - 64px));max-height:76vh}
 .dl-contact-modal__dialog{width:min(500px,calc(100vw - 64px))}
}

/* Tablet portrait has insufficient room for the full header; use the same
   accessible menu sheet as phones, but at tablet proportions. */
@media (min-width:761px) and (max-width:920px){
 .dl-theme-header{position:sticky;top:0;z-index:1000}
 .dl-theme-header__inner{height:76px;position:relative;justify-content:center}
 .dl-theme-brand,.custom-logo-link{position:absolute;right:28px;top:50%;transform:translateY(-50%);margin:0}
 .dl-theme-brand img,.custom-logo{width:165px;max-height:43px}
 .dl-theme-menu{display:block;position:absolute;left:28px;top:50%;transform:translateY(-50%)}
 .dl-theme-nav,.dl-theme-install{display:none}
 .dl-theme-mobile-menu{position:fixed;inset:0;z-index:40000;display:flex;align-items:flex-end;justify-content:center;padding:28px 28px 48px;visibility:hidden;opacity:0;pointer-events:none;direction:rtl;font-family:IRANYekan,Tahoma,Arial,sans-serif;transition:opacity .2s ease,visibility .2s ease}
 .dl-theme-mobile-menu.is-open{visibility:visible;opacity:1;pointer-events:auto}
 .dl-theme-mobile-menu__backdrop{position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;border:0;background:rgba(0,0,0,.28);cursor:pointer}
 .dl-theme-mobile-menu__dialog{position:relative;z-index:1;width:min(100%,560px);max-height:calc(100vh - 96px);overflow:auto;padding:28px 26px 10px;background:#fff;border-radius:24px;color:#292929;box-shadow:0 16px 48px rgba(0,0,0,.14)}
 .dl-theme-mobile-menu__dialog h2{margin:0 0 16px;font-size:21px;text-align:right}
 .dl-theme-mobile-menu__links{display:flex;flex-direction:column}
 .dl-theme-mobile-menu__links a{display:flex!important;align-items:center;gap:16px;width:100%;min-height:66px;padding:0 8px!important;border:0!important;border-bottom:1px solid #dedede!important;color:#292929!important;font-size:16px!important;text-align:right;text-decoration:none!important}
 .dl-theme-mobile-menu__links a:last-child{border-bottom:0!important}
 .dl-theme-mobile-menu__links a::before{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;flex:0 0 26px;font:22px/1 Arial,sans-serif}
 .dl-theme-mobile-menu__links a:nth-child(1)::before{content:"🏠"}.dl-theme-mobile-menu__links a:nth-child(2)::before{content:"🌟"}.dl-theme-mobile-menu__links a:nth-child(3)::before{content:"💬"}.dl-theme-mobile-menu__links a:nth-child(4)::before{content:"📚"}.dl-theme-mobile-menu__links a:nth-child(5)::before{content:"📞"}
 .dl-theme-mobile-menu__links .dl-theme-mobile-menu__install::before{display:none}
 .dl-theme-mobile-menu__install img{display:block;width:25px;height:25px;flex:0 0 25px;object-fit:contain}
}
