/* =========================================================
   PASARGAD — Header v7.3
   زیرمنوها و مگامنوها: تم سفید، فشرده، فقط فونت pelak
   منوی موبایل: بازنویسی برای لمس، دکمه برگشت، اسکرول و RTL
   پالت فقط از style.css سایت:
   سفید #FFFFFF، ذغالی #363435، طلایی #D2AB66، کرم #ECDAB5،
   خاکستری #9C9A9B (فقط خط و جداکننده)، فیروزه‌ای ایران‌بان #13BAA9 (فقط نشانه)
   همه انتخابگرها با .pgh شروع می‌شوند تا روی بقیه سایت اثری نگذارند.
   ========================================================= */
:root{
  --pgh-white:#FFFFFF;
  --pgh-charcoal:#363435;
  --pgh-gold:#D2AB66;
  --pgh-cream:#ECDAB5;
  --pgh-gray:#9C9A9B;
  --pgh-iranban:#13BAA9;
  /* متن کم‌رنگ: ذغالی با شفافیت ۷۲٪ روی سفید ≈ کنتراست 5:1 (WCAG AA) */
  --pgh-muted:rgba(54,52,53,.72);
  --pgh-line:rgba(54,52,53,.10);
  --pgh-cream-soft:rgba(236,218,181,.30);
  --pgh-gold-line:rgba(210,171,102,.45);
  --pgh-shadow:0 18px 40px rgba(54,52,53,.10),0 2px 6px rgba(54,52,53,.05);
  --pgh-font:'pelak',sans-serif;
  --pgh-h:90px;
  --pgh-h-compact:72px;
  --pgh-top:90px;
}

/* ---------- پایه (محدود به هدر) ---------- */
.pgh,.pgh *{box-sizing:border-box}
.pgh{position:relative;z-index:2200;height:var(--pgh-h);font-family:var(--pgh-font);line-height:1.6;font-weight:400;color:var(--pgh-charcoal);text-align:start}
.pgh *{font-family:var(--pgh-font)}
.pgh ul{list-style:none;margin:0;padding:0}
.pgh a{text-decoration:none}
.pgh :where(button){font:inherit;color:inherit}
.pgh p{margin:0}
.pgh img{max-width:none}
.pgh :focus-visible{outline:2px solid var(--pgh-gold);outline-offset:2px;border-radius:8px}
/* وقتی منو باز است، هدر بالاتر از اجزای صفحه (نقشه، گالری، تقویم و…) قرار بگیرد */
.pgh.pgh-mega-open,.pgh.pgh-mobile-open{z-index:2147482000}

/* ---------- نوار هدر (ساختار بدون تغییر) ---------- */
.pgh-shell{position:relative;width:100%;isolation:isolate;transition:box-shadow .3s ease}
.pgh-shell::before{content:"";position:absolute;inset:0;z-index:-1;background:rgba(255,255,255,.98);transition:background .3s ease}
.pgh-shell::after{content:"";position:absolute;inset-inline:0;bottom:0;height:1px;background:linear-gradient(90deg,transparent,rgba(210,171,102,.55) 30%,rgba(210,171,102,.55) 70%,transparent);opacity:.8}
.pgh.is-scrolled .pgh-shell{position:fixed;top:0;inset-inline:0;box-shadow:0 10px 30px rgba(54,52,53,.08)}
.pgh.is-scrolled .pgh-shell::before{background:rgba(255,255,255,.94);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
.pgh.pgh-mega-open .pgh-shell::before{background:#fff;-webkit-backdrop-filter:none;backdrop-filter:none}

.pgh-inner{max-width:1600px;height:var(--pgh-h);margin:0 auto;padding:0 34px;display:flex;align-items:center;gap:28px;transition:height .3s ease}
.pgh.is-scrolled .pgh-inner{height:var(--pgh-h-compact)}

.pgh-progress{position:absolute;inset-inline:0;bottom:0;height:2px;transform-origin:right center;transform:scaleX(var(--pgh-progress,0));background:var(--pgh-gold);opacity:0;transition:opacity .3s ease;pointer-events:none}
.pgh[dir=ltr] .pgh-progress{transform-origin:left center}
.pgh.is-scrolled .pgh-progress{opacity:1}

.pgh-brand{position:relative;display:flex;align-items:center;flex:0 0 auto}
.pgh-brand img{display:block;width:62px;height:auto;transition:width .3s ease}
.pgh.is-scrolled .pgh-brand img{width:54px}

/* ---------- منوی اصلی دسکتاپ ---------- */
.pgh-desktop-nav{flex:1;min-width:0;height:100%}
.pgh-menu{position:relative;height:100%;display:flex;align-items:stretch;gap:2px;white-space:nowrap}
.pgh-item{position:static;display:flex}
.pgh-link{position:relative;display:inline-flex;align-items:center;gap:8px;height:100%;padding:0 12px;border:0;background:transparent;color:var(--pgh-charcoal);font-size:14.5px;font-weight:600;line-height:1;cursor:pointer;transition:color .2s ease}
.pgh-link::after{content:"";position:absolute;inset-inline:12px;bottom:22px;height:2px;border-radius:2px;background:var(--pgh-gold);transform:scaleX(0);transition:transform .25s ease,bottom .3s ease}
.pgh.is-scrolled .pgh-link::after{bottom:16px}
.pgh-link:hover::after,.pgh-item.is-open>.pgh-link::after,.pgh-link.is-current::after{transform:scaleX(1)}
.pgh-link.is-current{font-weight:700}
/* ایران‌بان: فیروزه‌ای برند به‌صورت نشانه؛ متن ذغالی برای کنتراست AA */
.pgh-link--iranban::before{content:"";flex:0 0 auto;width:7px;height:7px;border-radius:50%;background:var(--pgh-iranban)}
.pgh-link--iranban::after{background:var(--pgh-iranban)}
.pgh-chevron{width:6px;height:6px;margin-top:-3px;border-left:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(-45deg);transition:transform .2s ease,margin .2s ease;opacity:.7}
.pgh-item.is-open .pgh-chevron{transform:rotate(135deg);margin-top:3px;opacity:1;color:var(--pgh-gold)}

/* ---------- ابزارها ---------- */
.pgh-tools{display:flex;align-items:center;gap:18px;flex:0 0 auto}
.pgh-phone{display:inline-flex;align-items:center;gap:10px;color:var(--pgh-charcoal);font-size:14px;font-weight:700;white-space:nowrap;direction:ltr}
.pgh-phone-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;border:1px solid var(--pgh-gold-line);color:var(--pgh-gold);transition:background .2s ease,color .2s ease}
.pgh-phone-icon svg{width:15px;height:15px;fill:currentColor}
.pgh-phone:hover .pgh-phone-icon{background:var(--pgh-gold);color:#fff}
.pgh-lang{display:flex;align-items:center;gap:9px;font-size:13px;font-weight:700}
.pgh-lang span{width:1px;height:14px;background:var(--pgh-gray)}
.pgh-lang a{color:var(--pgh-muted);transition:color .2s ease}
.pgh-lang a.is-active,.pgh-lang a:hover{color:var(--pgh-charcoal)}
.pgh-club{display:inline-flex;align-items:center;gap:8px;padding:10px 18px;border:1px solid var(--pgh-gold);border-radius:999px;background:#fff;color:var(--pgh-charcoal);font-size:14px;font-weight:700;white-space:nowrap;transition:background .2s ease,box-shadow .2s ease}
.pgh-club svg{width:16px;height:16px;fill:var(--pgh-gold)}
.pgh-club:hover{background:var(--pgh-cream-soft);box-shadow:0 6px 16px rgba(210,171,102,.18)}

/* ---------- پس‌زمینه ---------- */
.pgh-backdrop{position:fixed;inset:0;z-index:-2;background:rgba(54,52,53,.18);opacity:0;visibility:hidden;transition:opacity .2s ease,visibility 0s linear .2s}
.pgh.pgh-mega-open .pgh-backdrop{opacity:1;visibility:visible;transition:opacity .2s ease,visibility 0s}

/* =========================================================
   مگامنو / زیرمنوی دسکتاپ — سفید و فشرده
   ========================================================= */
/* v7.3: زیرمنو به‌صورت کارت کوچک زیر همان گزینه منو باز می‌شود (نه تمام عرض).
   فهرست در یک ستون عمودی، تصویر کوچک کنار آن، ارتفاع به اندازه محتوا. */
.pgh-item.pgh-has-menu{position:relative}
.pgh-mega{position:absolute;top:100%;inset-inline-start:0;z-index:1;width:max-content;max-width:calc(100vw - 32px);max-height:calc(100vh - var(--pgh-top) - 16px);overflow-y:auto;overscroll-behavior:contain;background:var(--pgh-white);border:1px solid var(--pgh-line);border-top:2px solid var(--pgh-gold);border-radius:0 0 14px 14px;box-shadow:var(--pgh-shadow);color:var(--pgh-charcoal);opacity:0;visibility:hidden;pointer-events:none;transform:translateY(-4px);transition:opacity .18s ease,transform .18s ease,visibility 0s linear .18s}
.pgh-item.is-open>.pgh-mega{opacity:1;visibility:visible;pointer-events:auto;transform:none;transition:opacity .18s ease,transform .18s ease,visibility 0s}
/* منوهای سمت چپ نوار به سمت راست باز می‌شوند تا از صفحه بیرون نزنند */
.pgh-item[data-pgh-key="about"]>.pgh-mega{inset-inline-start:auto;inset-inline-end:0}
.pgh-mega-inner{display:grid;grid-template-columns:300px 240px;gap:16px;padding:12px;align-items:start;white-space:normal}

/* لینک‌ها: یک ستون عمودی */
.pgh-mega-col{display:flex;flex-direction:column;min-width:0}
.pgh-mega-links{display:flex;flex-direction:column;gap:0}
.pgh-mega-links li+li{border-top:1px solid var(--pgh-line)}
.pgh-mega-links a{position:relative;display:flex;align-items:center;gap:10px;min-height:50px;padding:8px 14px;border-radius:10px;color:var(--pgh-charcoal);transition:background .15s ease}
.pgh-mega-links a::before{content:"";position:absolute;inset-inline-start:0;top:12px;bottom:12px;width:2px;border-radius:2px;background:var(--pgh-gold);opacity:0;transition:opacity .15s ease}
.pgh-ml-body{flex:1;min-width:0}
.pgh-ml-body strong{display:block;font-size:14.5px;font-weight:600;line-height:1.5;color:var(--pgh-charcoal)}
.pgh-ml-body small{display:block;margin-top:2px;font-size:12px;line-height:1.5;color:var(--pgh-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pgh-ml-arrow{flex:0 0 auto;width:7px;height:7px;border-left:1.5px solid var(--pgh-gold);border-bottom:1.5px solid var(--pgh-gold);transform:rotate(45deg);opacity:0;transition:opacity .15s ease}
.pgh[dir=ltr] .pgh-ml-arrow{transform:rotate(-135deg)}
.pgh-mega-links a:hover,.pgh-mega-links a:focus-visible,.pgh-mega-links a.is-active{background:var(--pgh-cream-soft)}
.pgh-mega-links a:hover::before,.pgh-mega-links a:focus-visible::before,.pgh-mega-links a.is-active::before,.pgh-mega-links a.is-current::before{opacity:1}
.pgh-mega-links a:hover .pgh-ml-arrow,.pgh-mega-links a:focus-visible .pgh-ml-arrow,.pgh-mega-links a.is-active .pgh-ml-arrow{opacity:1}
.pgh-mega-links a.is-current strong{font-weight:700}
/* لینک «مشاهده همه» زیر فهرست، کوچک و طلایی */
.pgh-mega-cta{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:4px;padding:9px 14px;border-top:1px solid var(--pgh-gold-line);color:var(--pgh-charcoal);font-size:13px;font-weight:600;border-radius:0 0 10px 10px;transition:background .15s ease}
.pgh-mega-cta:hover{background:var(--pgh-cream-soft)}
.pgh-mega-cta span{color:var(--pgh-gold)}
.pgh[dir=ltr] .pgh-mega-cta span{display:inline-block;transform:scaleX(-1)}

/* تصویر افقی ۴:۳ با عرض ۲۴۰ پیکسل؛ ارتفاع ثابت و مستقل از طول فهرست */
.pgh-stage{margin:0;width:240px}
.pgh-stage-frame{position:relative;width:240px;aspect-ratio:4/3;border-radius:12px;overflow:hidden;background:var(--pgh-cream);border:1px solid var(--pgh-gold-line);box-shadow:0 6px 18px rgba(54,52,53,.08)}
/* نکته: فایل pasargad-image-clarity-global-v1.css همه تصاویر را با !important به opacity:1 می‌برد؛
   برای همین پنهان‌سازی با visibility انجام می‌شود تا تصویر خالی یا خراب دیده نشود */
.pgh-stage-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;visibility:hidden}
.pgh-stage-img.is-active.is-loaded{visibility:visible}
/* عنوان زیر تصویر لازم نیست؛ همان عنوان گزینه منو است */
.pgh-stage-cap{display:none}

/* =========================================================
   منوی موبایل و تبلت
   ========================================================= */
.pgh-mobile-toggle{display:none;position:relative;width:46px;height:46px;border:1px solid var(--pgh-line);border-radius:50%;background:#fff;padding:0;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.pgh-mobile-toggle span{position:absolute;inset-inline-start:13px;width:18px;height:2px;border-radius:2px;background:var(--pgh-charcoal)}
.pgh-mobile-toggle span:nth-child(1){top:17px}
.pgh-mobile-toggle span:nth-child(2){top:25px;width:12px}

.pgh-mobile-panel{position:fixed;top:0;bottom:0;inset-inline-start:0;z-index:5;width:100%;height:100%;height:100dvh;display:flex;flex-direction:column;background:#fff;transform:translateX(100%);visibility:hidden;transition:transform .26s ease,visibility 0s linear .26s;-webkit-tap-highlight-color:transparent}
.pgh[dir=ltr] .pgh-mobile-panel{transform:translateX(-100%)}
.pgh.pgh-mobile-open .pgh-mobile-panel{transform:none;visibility:visible;transition:transform .26s ease,visibility 0s}

.pgh-mobile-head{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px;border-bottom:1px solid var(--pgh-line);padding-top:calc(10px + env(safe-area-inset-top))}
.pgh-mobile-head img{display:block;width:48px;height:auto}
.pgh-mobile-close{position:relative;flex:0 0 auto;width:44px;height:44px;border:1px solid var(--pgh-line);border-radius:50%;background:#fff;cursor:pointer;touch-action:manipulation}
.pgh-mobile-close span{position:absolute;left:50%;top:50%;width:18px;height:2px;margin:-1px 0 0 -9px;border-radius:2px;background:var(--pgh-charcoal);transform:rotate(45deg)}
.pgh-mobile-close span+span{transform:rotate(-45deg)}

.pgh-mobile-scroll{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:6px 16px 16px}

.pgh-mobile-parent,.pgh-mobile-single{width:100%;min-height:54px;display:flex;align-items:center;gap:12px;padding:12px 4px;border:0;border-bottom:1px solid var(--pgh-line);background:transparent;color:var(--pgh-charcoal);font-size:16px;font-weight:600;line-height:1.6;text-align:start;cursor:pointer;touch-action:manipulation}
.pgh-mobile-label{flex:1;min-width:0;overflow-wrap:anywhere}
.pgh-mobile-parent i{flex:0 0 auto;width:8px;height:8px;margin-inline-end:6px;border-left:1.5px solid var(--pgh-gold);border-bottom:1.5px solid var(--pgh-gold);transform:rotate(-45deg);transition:transform .2s ease}
.pgh-mobile-accordion.is-open>.pgh-mobile-parent{font-weight:700}
.pgh-mobile-accordion.is-open>.pgh-mobile-parent i{transform:rotate(135deg)}
.pgh-mobile-single--iranban .pgh-mobile-label{display:inline-flex;align-items:center;gap:8px}
.pgh-mobile-single--iranban .pgh-mobile-label::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--pgh-iranban);flex:0 0 auto}

.pgh-mobile-sub[hidden]{display:none !important}
.pgh-mobile-sub{margin:6px 0 10px;padding:4px;border:1px solid var(--pgh-gold-line);border-radius:12px;background:var(--pgh-cream-soft)}
.pgh-mobile-sub a{position:relative;display:flex;align-items:center;gap:12px;min-height:48px;padding:10px 12px;border-radius:10px;color:var(--pgh-charcoal)}
.pgh-mobile-sub a.pgh-mobile-cta{display:block;padding:12px 14px}
/* تصویر هر زیرمنو — کوچک، گردگوشه، فقط با باز شدن همان زیرمنو بارگذاری می‌شود */
.pgh-msub-thumb{position:relative;flex:0 0 auto;width:56px;height:56px;border-radius:10px;overflow:hidden;background:var(--pgh-cream);border:1px solid var(--pgh-gold-line)}
.pgh-msub-thumb img{display:block;width:100%;height:100%;object-fit:cover;visibility:hidden}
.pgh-msub-thumb img.is-loaded{visibility:visible}
.pgh-msub-text{flex:1;min-width:0}
.pgh-mobile-sub a+a{border-top:1px solid rgba(210,171,102,.22)}
.pgh-mobile-sub a strong{display:block;font-size:15px;font-weight:600;line-height:1.7}
.pgh-mobile-sub a small{display:block;font-size:12.5px;line-height:1.8;color:var(--pgh-muted)}
.pgh-mobile-sub a:active,.pgh-mobile-sub a:hover{background:#fff}
.pgh-mobile-sub a.is-current strong{font-weight:700}
.pgh-mobile-sub a.is-current::before{content:"";position:absolute;inset-inline-start:0;top:12px;bottom:12px;width:2px;border-radius:2px;background:var(--pgh-gold)}
.pgh-mobile-sub a.pgh-mobile-cta strong{text-decoration:underline;text-decoration-color:var(--pgh-gold);text-underline-offset:6px}

.pgh-mobile-footer{flex:0 0 auto;display:grid;gap:10px;padding:12px 16px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--pgh-line);background:#fff}
.pgh-mobile-club{display:block;padding:12px 16px;border-radius:999px;background:var(--pgh-charcoal);color:var(--pgh-cream);text-align:center;font-size:15px;font-weight:700}
.pgh-mobile-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.pgh-mobile-phone{color:var(--pgh-charcoal);font-size:15px;font-weight:700;direction:ltr}
.pgh-mobile-lang{display:flex;gap:4px;padding:3px;border-radius:999px;border:1px solid var(--pgh-line);font-size:13px;font-weight:700}
.pgh-mobile-lang a{padding:5px 12px;border-radius:999px;color:var(--pgh-muted)}
.pgh-mobile-lang a.is-active{background:var(--pgh-cream-soft);color:var(--pgh-charcoal)}

/* قفل اسکرول صفحه وقتی منوی موبایل باز است (سازگار با iPhone) */
html.pgh-lock,html.pgh-lock body{overflow:hidden !important}
html.pgh-lock body{position:fixed !important;inset-inline:0;width:100%}

/* ---------- واکنش‌گرا ---------- */
@media (max-width:1440px){
  .pgh-inner{padding:0 24px;gap:20px}
  .pgh-link{padding:0 9px;font-size:14px}
  .pgh-link::after{inset-inline:9px}
  .pgh-tools{gap:14px}
}
@media (max-width:1240px){
  .pgh-phone-num{display:none}
  .pgh-club{padding:9px 14px;font-size:13px}
}
@media (max-width:1100px){
  .pgh{--pgh-h:76px;--pgh-h-compact:66px}
  .pgh-desktop-nav,.pgh-phone,.pgh-lang,.pgh-club,.pgh-backdrop{display:none}
  .pgh-mobile-toggle{display:block}
  .pgh-inner{justify-content:space-between;padding:0 18px}
  .pgh-brand img{width:51px}
  .pgh.is-scrolled .pgh-brand img{width:46px}
}
@media (min-width:641px) and (max-width:1100px){
  .pgh-backdrop{display:block;z-index:4;background:rgba(54,52,53,.28)}
  .pgh.pgh-mobile-open .pgh-backdrop{opacity:1;visibility:visible;transition:opacity .2s ease,visibility 0s}
  .pgh-mobile-panel{width:420px;max-width:100%;box-shadow:-12px 0 40px rgba(54,52,53,.14)}
  .pgh[dir=ltr] .pgh-mobile-panel{box-shadow:12px 0 40px rgba(54,52,53,.14)}
}
@media (min-width:1101px){
  .pgh-mobile-panel{display:none}
}
@media (max-width:640px){
  .pgh-inner{padding:0 14px}
  .pgh-brand img{width:48px}
}
@media (max-width:360px){
  .pgh-mobile-scroll{padding:4px 12px 12px}
  .pgh-mobile-parent,.pgh-mobile-single{font-size:15px}
  .pgh-mobile-footer{padding-inline:12px}
}

@media (prefers-reduced-motion:reduce){
  .pgh *,.pgh *::before,.pgh *::after{transition-duration:.01ms !important;transition-delay:0s !important;animation:none !important}
}

/* English-specific layout; the original v7 visual system is unchanged. */
.pgh.pgh--en { --pgh-font: 'Roboto', Arial, sans-serif; direction:ltr; }
.pgh.pgh--en .pgh-mega-links, .pgh.pgh--en .pgh-mobile-sub { direction:ltr; }
.pgh.pgh--en .pgh-mobile-panel { text-align:left; }
.pgh.pgh--en .pgh-menu { gap:clamp(7px,1.1vw,20px); }
.pgh.pgh--en .pgh-link { font-size:clamp(11px,.92vw,14px); }
.pgh.pgh--en .pgh-mega { max-width:min(96vw,940px); }
.pgh.pgh--en .pgh-mobile-parent { text-align:left; }
