/*
Theme Name:   دیده‌بان نظم و امنیت دی
Theme URI:    https://amniyatday.ir
Description:  قالب راست‌به‌چپ موسسه خدمات حفاظتی و مراقبتی دیده‌بان نظم و امنیت دی؛ هدر، فوتر، منو و صفحه‌های داخلی مطابق سایت اصلی. بخش‌های صفحه‌ها (هیرو، خدمات، اخبار، تجهیزات، فرم‌ها و …) توسط افزونه‌ی «دیده‌بان نظم و امنیت دی — محتوا و صفحه‌ساز» ساخته می‌شود؛ هر دو را با هم نصب کنید.
Author:       دیده‌بان نظم و امنیت دی
Version:      1.5.0
Requires at least: 6.0
Requires PHP: 7.4
License:      GPL-2.0-or-later
Text Domain:  amniyatday-theme
Tags:         rtl-language-support, custom-menu, custom-logo, featured-images, translation-ready
*/

@font-face {
  font-family: "Vazirmatn";
  src: url("assets/fonts/Vazirmatn-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --amn-ink: #0a1a33; --amn-ink-2: #102544; --amn-ink-3: #1b3560;
  --amn-brand: #0d9488; --amn-brand-600: #0f766e; --amn-brand-400: #2dd4bf; --amn-brand-50: #ecfdf9;
  --amn-sky: #e6f0fb; --amn-line: #e3e8ef; --amn-muted: #64748b; --amn-canvas: #f4f7fb; --amn-text: #0f1c33;
  --amn-ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; direction: rtl; text-align: start;
  font-family: "Vazirmatn", system-ui, "Segoe UI", Tahoma, sans-serif; font-size: 16px; line-height: 1.5;
  background: var(--amn-canvas); color: var(--amn-text); -webkit-tap-highlight-color: transparent;
}
body.amnt { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
img { max-width: 100%; height: auto; }
a { color: var(--amn-brand-600); }
a:hover { color: var(--amn-brand); }
:focus-visible { outline: 2px solid var(--amn-brand); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { clip: auto; width: auto; height: auto; background: #fff; padding: 12px 18px; z-index: 100000; top: 8px; inset-inline-start: 8px; border-radius: 8px; }
.amnt-container { width: 100%; max-width: 1152px; margin-inline: auto; padding-inline: 16px; }

/* ---------- حرکت‌های مشترک ---------- */
@keyframes amnt-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.rise { animation: amnt-rise .7s var(--amn-ease) both; }
.rise-2 { animation-delay: .12s; } .rise-3 { animation-delay: .24s; } .rise-4 { animation-delay: .36s; }
@keyframes amnt-page-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.page-enter { animation: amnt-page-in .45s var(--amn-ease) both; }
@keyframes amnt-pop-in { from { opacity: 0; transform: translateY(-8px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes amnt-float-a { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(-40px, 30px, 0) scale(1.12); } }
@keyframes amnt-float-b { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(50px, -34px, 0) scale(.9); } }
.orb { position: absolute; border-radius: 9999px; filter: blur(70px); pointer-events: none; z-index: -10; }
.orb-a { background: rgba(45, 212, 191, .28); animation: amnt-float-a 14s ease-in-out infinite; }
.orb-b { background: rgba(59, 130, 246, .26); animation: amnt-float-b 18s ease-in-out infinite; }

/* نوار پیشرفت اسکرول */
.scroll-progress { position: fixed; inset-inline: 0; top: 0; z-index: 60; height: 3px; background: linear-gradient(to left, #2dd4bf, #38bdf8); transform-origin: right; transform: scaleX(0); pointer-events: none; }

/* ---------- هدر ---------- */
.amnt-header { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid rgba(255, 255, 255, .1); background: rgba(10, 26, 51, .85);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); transition: background-color .3s, box-shadow .3s, border-color .3s; }
.admin-bar .amnt-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .amnt-header { top: 46px; } }
.amnt-header[data-scrolled] { background-color: rgba(10, 26, 51, .94); box-shadow: 0 8px 30px -12px rgba(0, 0, 0, .5); }
.amnt-header-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; max-width: 1152px; margin-inline: auto; padding-inline: 16px; }
.amnt-brand { display: block; min-width: 0; flex-shrink: 0; text-decoration: none; color: inherit; }
.amnt-brand-in { display: flex; align-items: center; gap: 12px; }
.amnt-logo { display: inline-flex; flex-shrink: 0; align-items: center; border-radius: 12px; background: #fff; padding: 6px; box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .05); }
.amnt-logo img { display: block; height: 32px; width: auto; }
.amnt-brand-text { display: block; line-height: 1.25; }
.amnt-brand-name { display: block; white-space: nowrap; font-size: 14px; line-height: 1.4286; font-weight: 800; color: #fff; }
.amnt-brand-tag { display: none; font-size: 11px; color: rgba(255, 255, 255, .6); }
@media (min-width: 640px) { .amnt-brand-name { font-size: 15px; } .amnt-brand-tag { display: block; } }

/* منوی دسکتاپ (از 1024 پیکسل) */
.amnt-nav { display: none; min-width: 0; align-items: center; gap: 2px; }
@media (min-width: 1024px) { .amnt-nav { display: flex; } }
.nav-link { position: relative; display: block; white-space: nowrap; border-radius: 8px; padding: 8px 10px; font-size: 14px; line-height: 20px; color: rgba(255, 255, 255, .8); text-decoration: none; transition: color .15s; }
.nav-link:hover { color: #fff; }
.nav-link::after { content: ""; position: absolute; inset-inline: .65rem; bottom: .3rem; height: 2px; border-radius: 2px; background: var(--amn-brand-400); transform: scaleX(0); transform-origin: right; transition: transform .3s var(--amn-ease); }
.nav-link:hover::after, .nav-link:focus-visible::after { transform: scaleX(1); }
.amnt-more { position: relative; }
.amnt-more-btn { display: flex; align-items: center; gap: 4px; white-space: nowrap; border: 0; border-radius: 8px; background: transparent; padding: 8px 10px; font: inherit; font-size: 14px; line-height: 20px; color: rgba(255, 255, 255, .8); cursor: pointer; transition: background-color .15s, color .15s; }
.amnt-more-btn:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.amnt-more-btn svg { width: 14px; height: 14px; transition: transform .15s; }
.amnt-more:hover .amnt-more-btn svg, .amnt-more:focus-within .amnt-more-btn svg { transform: rotate(180deg); }
.amnt-dd { visibility: hidden; position: absolute; inset-inline-end: 0; top: 100%; z-index: 50; width: 208px; padding-top: 8px; opacity: 0; transform: translateY(-6px) scale(.98);
  transition: opacity .2s, transform .25s var(--amn-ease), visibility .2s; }
.amnt-more:hover .amnt-dd, .amnt-more:focus-within .amnt-dd { visibility: visible; opacity: 1; transform: none; }
.amnt-dd-in { border-radius: 16px; border: 1px solid var(--amn-line); background: #fff; padding: 8px; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .1), 0 8px 10px -6px rgba(0, 0, 0, .1); }
.amnt-dd-in a { display: block; border-radius: 12px; padding: 10px 16px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--amn-ink); text-decoration: none; transition: background-color .15s; }
.amnt-dd-in a:hover { background: var(--amn-sky); color: var(--amn-ink); }

/* دکمه‌ها و منوی موبایل */
.amnt-actions { display: flex; flex-shrink: 0; align-items: center; gap: 8px; }
.amnt-consult { display: none; white-space: nowrap; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .2); padding: 10px 16px; font-size: 14px; line-height: 20px; font-weight: 700; color: #fff; text-decoration: none; transition: background-color .15s; }
.amnt-consult:hover { background: rgba(255, 255, 255, .1); color: #fff; }
@media (min-width: 1280px) { .amnt-consult { display: inline-flex; align-items: center; justify-content: center; } }
.amnt-login { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; border-radius: 12px; padding: 10px 16px;
  font-size: 14px; line-height: 20px; font-weight: 600; background: var(--amn-brand); color: #fff; text-decoration: none; box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .05);
  transition: background-color .2s, color .2s, transform .2s, box-shadow .2s; }
.amnt-login:hover { background: var(--amn-brand-600); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(13, 148, 136, .6); }
.amnt-login:active { transform: translateY(0) scale(.98); }
.amnt-login::after { content: ""; position: absolute; inset-block: 0; width: 40%; left: -60%; transform: skewX(-20deg); background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent); }
.amnt-login:hover::after { left: 130%; transition: left .7s ease; }
.amnt-login svg { width: 16px; height: 16px; flex-shrink: 0; }
.amnt-login .t-full { display: none; } .amnt-login .t-short { display: inline; }
@media (min-width: 640px) { .amnt-login .t-full { display: inline; } .amnt-login .t-short { display: none; } }

.amnt-burger { position: relative; }
@media (min-width: 1024px) { .amnt-burger { display: none; } }
.amnt-burger > summary { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; list-style: none; cursor: pointer; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .15); color: #fff; }
.amnt-burger > summary::-webkit-details-marker { display: none; }
.amnt-burger svg { width: 20px; height: 20px; }
.amnt-burger .i-close { display: none; }
.amnt-burger[open] .i-close { display: block; } .amnt-burger[open] .i-menu { display: none; }
.amnt-menu-panel { position: absolute; left: 0; top: 48px; z-index: 60; width: 224px; max-height: calc(100vh - 5rem); max-height: calc(100dvh - 5rem); overflow-y: auto; border-radius: 16px; border: 1px solid var(--amn-line); background: #fff; padding: 8px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .1), 0 8px 10px -6px rgba(0, 0, 0, .1); }
.amnt-burger[open] > .amnt-menu-panel { animation: amnt-pop-in .22s var(--amn-ease) both; transform-origin: top left; }
.amnt-menu-panel a { display: block; border-radius: 12px; padding: 12px 16px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--amn-ink); text-decoration: none; transition: background-color .15s, padding-inline-start .15s; }
.amnt-menu-panel a:hover { background: var(--amn-sky); color: var(--amn-ink); padding-inline-start: 24px; }

/* ---------- بنر صفحه‌ی داخلی ---------- */
.hero-bg { background: radial-gradient(60rem 30rem at 85% -10%, rgba(45, 212, 191, .28), transparent 60%), radial-gradient(40rem 26rem at 0% 110%, rgba(59, 130, 246, .25), transparent 60%), linear-gradient(160deg, #07142a 0%, #0a1a33 55%, #0d2347 100%); }
.grid-lines { position: absolute; inset: 0; z-index: -10; background-image: linear-gradient(to right, rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
.amnt-hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; }
.amnt-hero-in { max-width: 1152px; margin-inline: auto; padding: 48px 16px; }
@media (min-width: 768px) { .amnt-hero-in { padding-block: 64px; } }
.amnt-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 16px; font-size: 12px; line-height: 16px; color: rgba(255, 255, 255, .6); }
.amnt-crumbs a { color: rgba(255, 255, 255, .6); text-decoration: none; }
.amnt-crumbs a:hover { color: #fff; }
.amnt-crumbs .cur { color: rgba(255, 255, 255, .9); }
.amnt-hero h1 { margin: 0; font-size: 30px; line-height: 1.375; font-weight: 900; color: #fff; }
@media (min-width: 768px) { .amnt-hero h1 { font-size: 36px; } }
.amnt-hero p { margin: 12px 0 0; max-width: 672px; line-height: 2; color: rgba(255, 255, 255, .7); }

/* ---------- محتوا ---------- */
.amnt-main { flex: 1 1 auto; }
.amnt-entry { padding-block: 48px; }
.amnt-entry .entry-content { line-height: 2.1; color: #334155; }
.amnt-entry .entry-content > * { max-width: 100%; }
.amnt-entry .entry-content h2, .amnt-entry .entry-content h3, .amnt-entry .entry-content h4 { color: var(--amn-ink); line-height: 1.6; margin: 1.8em 0 .6em; font-weight: 800; }
.amnt-entry .entry-content p { margin: 0 0 1.2em; }
.amnt-entry .entry-content ul, .amnt-entry .entry-content ol { padding-inline-start: 1.4em; }
.amnt-entry .entry-content blockquote { margin: 1.5em 0; padding: 12px 20px; border-inline-start: 4px solid var(--amn-brand); background: #fff; border-radius: 8px; }
.amnt-entry .entry-content table { width: 100%; border-collapse: collapse; background: #fff; }
.amnt-entry .entry-content th, .amnt-entry .entry-content td { padding: 10px 14px; border: 1px solid var(--amn-line); text-align: start; }
.entry-content .alignwide { max-width: 1152px; margin-inline: auto; }
.entry-content .alignfull { width: 100vw; max-width: 100vw; margin-inline: calc(50% - 50vw); }
.amnt-full { line-height: 1.5; color: var(--amn-text); }
.amnt-post-meta { font-size: 14px; color: var(--amn-muted); margin-bottom: 16px; }

.amnt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 960px) { .amnt-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .amnt-grid { grid-template-columns: 1fr; } }
.amnt-card { background: #fff; border: 1px solid var(--amn-line); border-radius: 16px; padding: 22px; transition: translate .3s var(--amn-ease), box-shadow .3s, border-color .3s; }
.amnt-card:hover { translate: 0 -4px; border-color: rgba(13, 148, 136, .4); box-shadow: 0 14px 30px -14px rgba(10, 26, 51, .25); }
.amnt-card h2 { margin: 8px 0; font-size: 18px; line-height: 1.8; }
.amnt-card h2 a { color: var(--amn-ink); text-decoration: none; }
.amnt-card p { margin: 0; font-size: 14.5px; color: #475569; }
.amnt-card img { border-radius: 10px; margin-bottom: 12px; width: 100%; height: 160px; object-fit: cover; }
.amnt-pagination { margin-top: 32px; display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.amnt-pagination .page-numbers { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--amn-line); background: #fff; text-decoration: none; color: var(--amn-ink); font-weight: 600; }
.amnt-pagination .current { background: var(--amn-ink); color: #fff; border-color: var(--amn-ink); }
.amnt-notfound { text-align: center; padding-block: 80px; }
.amnt-notfound .code { font-size: 96px; font-weight: 900; color: var(--amn-brand); line-height: 1; margin: 0; }
.amnt-btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 12px; background: var(--amn-brand); color: #fff; font-weight: 700; text-decoration: none; margin-top: 20px; }
.amnt-btn:hover { background: var(--amn-brand-600); color: #fff; }

/* ---------- فوتر ---------- */
.amnt-footer { background: var(--amn-ink); color: rgba(255, 255, 255, .7); }
.amnt-footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; max-width: 1152px; margin-inline: auto; padding: 48px 16px; }
@media (min-width: 768px) { .amnt-footer-grid { grid-template-columns: repeat(3, 1fr); } }
.amnt-footer h3 { margin: 0 0 12px; font-size: 14px; line-height: 20px; font-weight: 700; color: #fff; }
.amnt-footer p { margin: 16px 0 0; font-size: 14px; line-height: 28px; }
.amnt-footer .amnt-contact p { margin: 0; }
.amnt-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; line-height: 20px; }
.amnt-footer ul a { color: inherit; text-decoration: none; }
.amnt-footer ul a:hover { color: #fff; }
.amnt-footer .amnt-phone { display: block; margin-top: 4px; font-size: 14px; font-weight: 700; color: #fff; text-decoration: none; font-variant-numeric: tabular-nums; }
.amnt-footer .amnt-phone:hover { color: var(--amn-brand-400); }
.amnt-footer .amnt-hours { margin-top: 4px; font-size: 12px; line-height: 16px; color: rgba(255, 255, 255, .5); }
.amnt-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 16px; text-align: center; font-size: 12px; line-height: 16px; color: rgba(255, 255, 255, .5); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .page-enter, .orb, .amnt-burger[open] > .amnt-menu-panel { animation: none !important; }
  .amnt-login:hover, .amnt-card:hover { transform: none; translate: none; }
  .amnt-login::after { display: none; }
}
@media print { .amnt-header, .amnt-footer, .scroll-progress { display: none; } body { background: #fff; } }
