/*
Theme Name: Iran Docs
Theme URI: https://the-dmb.com/
Author: PMA IT
Description: قالب فارسی مینیمال سفید و مشکی برای انتشار و دانلود فایل‌های PDF.
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: iran-docs
*/

:root{--ink:#111;--paper:#fff;--soft:#f5f5f5;--line:#dedede;--muted:#6b6b6b;--radius:18px;--shadow:0 14px 42px rgba(0,0,0,.08)}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--ink);font-family:Tahoma,"Segoe UI",Arial,sans-serif;line-height:1.8;direction:rtl}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto}
.wrap{width:min(1160px,calc(100% - 40px));margin-inline:auto}
.site-header{position:sticky;top:0;z-index:50;background:rgba(12,12,12,.96);color:#fff;border-bottom:1px solid #292929;backdrop-filter:blur(12px)}
.header-inner{min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:28px}
.brand{display:flex;align-items:center;gap:12px;font-size:1.15rem;font-weight:800}
.brand-mark{display:grid;place-items:center;width:38px;height:38px;border:1px solid #fff;border-radius:12px;font-size:.78rem;letter-spacing:.5px}
.site-nav ul{display:flex;align-items:center;gap:28px;list-style:none;margin:0;padding:0}
.site-nav a{color:#e8e8e8;font-size:.94rem}.site-nav a:hover{color:#fff}
.hero{background:#0c0c0c;color:#fff;padding:105px 0 96px;overflow:hidden}
.hero-grid{display:grid;grid-template-columns:1.3fr .7fr;align-items:center;gap:70px}
.eyebrow{display:inline-flex;border:1px solid #444;border-radius:999px;padding:6px 14px;color:#d8d8d8;font-size:.82rem}
.hero h1{font-size:clamp(2.4rem,5vw,5rem);line-height:1.18;margin:24px 0 20px;letter-spacing:-2px}
.hero p{font-size:1.1rem;color:#c9c9c9;max-width:690px;margin:0 0 32px}
.hero-art{position:relative;min-height:300px;display:grid;place-items:center}
.document-stack{position:relative;width:230px;height:280px}
.sheet{position:absolute;inset:0;border:1px solid #505050;border-radius:20px;background:#191919;box-shadow:var(--shadow);transform:rotate(-8deg)}
.sheet:nth-child(2){transform:rotate(5deg) translate(-14px,10px);background:#242424}
.sheet:nth-child(3){transform:none;background:#fff;color:#111;display:grid;place-items:center;font-weight:900;font-size:2.4rem}
.sheet:nth-child(3)::after{content:"DOWNLOAD";position:absolute;bottom:28px;font-size:.62rem;letter-spacing:3px;color:#555}
.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;border-radius:12px;padding:12px 22px;font-weight:700;transition:.2s}
.button-light{background:#fff;color:#111}.button-light:hover{transform:translateY(-2px);background:#ececec}
.button-dark{background:#111;color:#fff}.button-dark:hover{background:#333;transform:translateY(-2px)}
.section{padding:86px 0}
.section-soft{background:var(--soft)}
.section-head{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:36px}
.section-head h2{font-size:clamp(1.8rem,3vw,2.7rem);margin:0;line-height:1.3}.section-head p{margin:0;color:var(--muted)}
.docs-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.doc-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:25px;display:flex;flex-direction:column;min-height:265px;transition:.22s}
.doc-card:hover{transform:translateY(-5px);box-shadow:var(--shadow);border-color:#bdbdbd}
.doc-type{display:inline-flex;align-self:flex-start;background:#111;color:#fff;border-radius:8px;padding:4px 10px;font-size:.72rem;letter-spacing:1px}
.doc-card h3{font-size:1.24rem;line-height:1.5;margin:20px 0 10px}.doc-card p{color:var(--muted);font-size:.91rem;margin:0 0 22px}
.doc-card .button{margin-top:auto;width:100%}
.empty-state{grid-column:1/-1;padding:55px 25px;text-align:center;border:1px dashed #aaa;border-radius:var(--radius);background:#fff}
.content-page{padding:70px 0;min-height:60vh}.content-page h1{font-size:2.4rem;margin-top:0}.entry-content{max-width:850px}.entry-content a{text-decoration:underline}
.site-footer{background:#0b0b0b;color:#fff;padding:48px 0 28px}
.footer-main{display:flex;justify-content:space-between;align-items:center;gap:30px;padding-bottom:32px;border-bottom:1px solid #2b2b2b}
.footer-main p{color:#bdbdbd;margin:6px 0 0}.footer-bottom{display:flex;justify-content:space-between;gap:20px;padding-top:25px;color:#999;font-size:.84rem}
.menu-toggle{display:none;border:1px solid #555;background:transparent;color:#fff;border-radius:9px;padding:8px 11px}
@media(max-width:850px){.hero-grid{grid-template-columns:1fr}.hero-art{display:none}.docs-grid{grid-template-columns:repeat(2,1fr)}.site-nav{display:none}.site-nav.open{display:block;position:absolute;top:76px;right:0;left:0;background:#111;padding:18px 24px}.site-nav.open ul{flex-direction:column;align-items:stretch}.menu-toggle{display:block}.footer-main,.footer-bottom,.section-head{align-items:flex-start;flex-direction:column}}
@media(max-width:560px){.wrap{width:min(100% - 28px,1160px)}.hero{padding:75px 0}.hero h1{letter-spacing:-1px}.docs-grid{grid-template-columns:1fr}.section{padding:62px 0}}
