/* ═══════════ قواعد سراسری (خارج از wrapperها) ═══════════ */
html{scroll-behavior:smooth}
body{font-family:'Vazirmatn',Tahoma,sans-serif;background:#faf6ed;color:#22301f;line-height:1.8;direction:rtl;overflow-x:clip;margin:0}
a{color:inherit;text-decoration:none}
button{font-family:inherit;cursor:pointer;border:none;background:none;outline:none}
img{max-width:100%}
.container{width:min(1200px,92%);margin-inline:auto;max-width:100%}
/* آیکون‌های SVG در همه‌جا (هدر، منو، فوتر، محتوا) */
.icon{width:1em;height:1em;fill:currentColor;display:inline-block;vertical-align:middle}

/* ═══════════ پایه wrapperها ═══════════ */
#hp-page,#sp-page,#ar-page{font-family:'Vazirmatn',Tahoma,sans-serif;background:#faf6ed;color:#22301f;line-height:1.8;direction:rtl;overflow-x:clip;max-width:100%}
#hp-page *,#hp-page *::before,#hp-page *::after,
#sp-page *,#sp-page *::before,#sp-page *::after,
#ar-page *,#ar-page *::before,#ar-page *::after{box-sizing:border-box;margin:0;padding:0}
#hp-page a,#sp-page a,#ar-page a{text-decoration:none;color:inherit}
#hp-page img,#sp-page img,#ar-page img{max-width:100%;display:block}
#hp-page button,#sp-page button,#ar-page button{font-family:inherit;cursor:pointer;border:none;background:none;outline:none}
#hp-page .container,#sp-page .container,#ar-page .container{width:min(1200px,92%);margin-inline:auto;max-width:100%}
#hp-page .icon,#sp-page .icon,#ar-page .icon{width:1em;height:1em;fill:currentColor;display:inline-block;vertical-align:middle}
#hp-page .reveal{opacity:0;transform:translateY(24px);transition:opacity .7s ease,transform .7s cubic-bezier(.22,1,.36,1)}
#hp-page .reveal.in{opacity:1;transform:none}

/* ═══ نوار بالای هدر ═══ */
.top-bar{background:#0f2a18;border-bottom:1px solid rgba(236,217,160,.12)}
.top-bar-inner{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:8px 0}
.top-bar-langs{display:flex;align-items:center;gap:8px}
.lang-btn{padding:4px 16px;border-radius:999px;border:1px solid rgba(236,217,160,.35);color:#ecd9a0;font-size:.75rem;font-weight:700;transition:.35s}
.lang-btn:hover{background:#c9a227;color:#241b09;border-color:#c9a227}
.top-bar-social{display:flex;align-items:center;gap:14px}
.top-bar-social a{color:#ecd9a0;display:grid;place-items:center;transition:.35s}
.top-bar-social a:hover{color:#d8b44a;transform:translateY(-2px)}
.top-bar-social .icon{width:16px;height:16px}
.top-bar-social img{width:18px;height:18px;object-fit:contain;border-radius:4px}
@media(max-width:767px){.top-bar{display:none}}

/* ═══ هدر ═══ */
.site-header{display:block}
.header-hero{position:relative;overflow:hidden;color:#fff;background-color:#14381f;
  background-image:linear-gradient(to left, rgba(20,56,31,0.9) 0%, rgba(20,56,31,.9) 60%, rgba(20,56,31,.9) 100%), url("/splash/images/hero.jpg");
  background-position:center center, center center;background-size:auto, cover;background-repeat:no-repeat}
.header-hero::after{content:"";position:absolute;inset:0;pointer-events:none;opacity:.08;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cpath d='M28 8l5.5 14.5L48 28l-14.5 5.5L28 48l-5.5-14.5L8 28l14.5-5.5z' fill='none' stroke='%23d8b44a' stroke-opacity='.6'/%3E%3C/svg%3E");
  background-size:56px}
.header-hero-inner{position:relative;z-index:2;display:flex;align-items:center;gap:26px;flex-wrap:wrap;padding:38px 0;height:200px}
.brand-area{display:flex;align-items:center;gap:16px}
.brand-logo{width:80px;height:80px;border-radius:50%;overflow:hidden;flex-shrink:0;background:linear-gradient(135deg,#d8b44a,#a9851c);display:grid;place-items:center;border:3px solid #ecd9a0;box-shadow:0 8px 22px rgba(0,0,0,.3)}
.brand-logo img{width:100%;height:100%;object-fit:cover}
.brand-text h1{font-size:clamp(1.25rem,2.6vw,1.85rem);font-weight:900;color:#fff;line-height:1.5;text-shadow:0 2px 12px rgba(10,26,15,.5)}
.brand-text span{color:#ecd9a0;font-size:.82rem;font-weight:700}

/* ═══ دکمه همبرگری ═══ */
.nav-toggle{display:none;flex-direction:column;gap:5px;width:46px;height:46px;margin-inline-start:auto;align-items:center;justify-content:center;border-radius:12px;border:1px solid rgba(236,217,160,.4);background:rgba(255,255,255,.08);transition:.35s}
.nav-toggle span{width:20px;height:2px;background:#ecd9a0;border-radius:2px;transition:.35s}
.nav-toggle:hover{background:#c9a227}
.nav-toggle:hover span{background:#241b09}
.nav-open .nav-toggle span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.nav-open .nav-toggle span:nth-child(2){opacity:0}
.nav-open .nav-toggle span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

/* ═══ درآور موبایل + Overlay ═══ */
.overlay{position:fixed;inset:0;background:rgba(10,26,15,.6);z-index:900;backdrop-filter:blur(3px);opacity:0;visibility:hidden;transition:.4s}
.nav-open .overlay{opacity:1;visibility:visible}
.mobile-drawer{position:fixed;top:0;bottom:0;right:0;width:min(300px,85%);z-index:950;background:linear-gradient(200deg,#234f2e,#14381f);transform:translateX(105%);transition:transform .5s cubic-bezier(.22,1,.36,1);padding:20px 18px;display:flex;flex-direction:column;gap:3px;overflow-y:auto}
.nav-open .mobile-drawer{transform:translateX(0)}
.drawer-brand{display:flex;align-items:center;gap:12px;color:#fff;font-weight:800;padding-bottom:14px;margin-bottom:6px;border-bottom:1px solid rgba(236,217,160,.2)}
.drawer-brand .brand-logo{width:44px;height:44px;border-width:2px}
.mobile-drawer a{display:flex;align-items:center;gap:12px;color:#eef3ec;padding:10px 13px;border-radius:11px;font-weight:600;font-size:.88rem;transition:.35s}
.mobile-drawer a .icon{width:16px;height:16px;color:#d8b44a}
.mobile-drawer a:hover{background:rgba(255,255,255,.08);color:#ecd9a0}

/* ═══ منوی چسبان ═══ */
.main-nav{position:sticky;top:0;z-index:1000;background:#234f2e;border-bottom:2px solid #c9a227;box-shadow:0 4px 16px rgba(20,56,31,.28)}
.nav-list{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:1px}
.nav-link{display:flex;align-items:center;gap:5px;padding:12px 10px;color:rgba(250,246,237,.9);font-size:.82rem;font-weight:700;position:relative;transition:.35s;white-space:nowrap}
.nav-link .icon{width:13px;height:13px;color:#d8b44a;transition:.35s}
.nav-link::after{content:"";position:absolute;bottom:6px;inset-inline:11px;height:2px;border-radius:2px;background:linear-gradient(90deg,#d8b44a,#a9851c);transform:scaleX(0);transition:.35s}
.nav-link:hover,.nav-link.active{color:#ecd9a0}
.nav-link:hover::after,.nav-link.active::after{transform:scaleX(1)}
.nav-link:hover .icon{transform:translateY(-2px)}

/* ═══ فوتر ═══ */
.site-footer{background:linear-gradient(160deg,#1a4b2b,#14381f);color:rgba(250,246,237,.85);max-width:100%}
.footer-grid{display:grid;grid-template-columns:1.3fr 1fr 1.2fr;gap:30px;padding:38px 0 26px}
.footer-col h4{color:#d8b44a;font-size:.95rem;font-weight:900;margin-bottom:12px;padding-bottom:8px;border-bottom:1px solid rgba(236,217,160,.2)}
.footer-col a{display:block;padding:5px 0;font-size:.82rem;color:rgba(250,246,237,.8);transition:.35s}
.footer-col a:hover{color:#ecd9a0;transform:translateX(-4px)}
.footer-brand{display:flex;align-items:center;gap:12px;margin-bottom:12px}
.footer-brand .brand-logo{width:44px;height:44px;border-width:2px}
.footer-brand strong{color:#fff;font-size:.95rem}
.footer-about p{font-size:.8rem;line-height:1.9;color:rgba(250,246,237,.7)}
.footer-contact p{display:flex;align-items:center;gap:10px;padding:5px 0;font-size:.8rem}
.footer-contact .icon{width:14px;height:14px;color:#d8b44a;flex-shrink:0}
.footer-bottom{border-top:1px solid rgba(236,217,160,.15);padding:14px 0;text-align:center}
.footer-bottom p{font-size:.78rem;color:rgba(250,246,237,.7)}
.footer-bottom b{color:#ecd9a0}

/* ═══ دکمه بالا ═══ */
.to-top{position:fixed;bottom:22px;left:22px;width:44px;height:44px;border-radius:12px;z-index:700;background:linear-gradient(135deg,#d8b44a,#a9851c);color:#241b09;display:grid;place-items:center;box-shadow:0 10px 24px rgba(201,162,39,.4);opacity:0;visibility:hidden;transform:translateY(14px);transition:.35s}
.to-top.show{opacity:1;visibility:visible;transform:none}
.to-top svg{width:17px;height:17px}

/* ═══ ریسپانسیو مشترک ═══ */
@media(max-width:900px){
  .main-nav{display:none}
  .nav-toggle{display:flex}
  .header-hero-inner{flex-direction:column;text-align:center;padding:32px 0;gap:12px;height:auto}
  .brand-area{flex-direction:column;gap:12px}
}
@media(max-width:600px){
  .footer-grid{grid-template-columns:1fr;gap:22px}
  .brand-logo{width:68px;height:68px}
}