/* =========================================================
   POUYAB — SHARED HEADER / FOOTER
   ========================================================= */

.pouyab-site{
  --pouyab-green:#214c2b;
  --pouyab-green-2:#2f6539;
  --pouyab-green-3:#5f8d3d;
  --pouyab-gold:#d8a91e;
  --pouyab-gold-soft:#f3d36c;
  --pouyab-cream:#f7f4e8;
  --pouyab-paper:#fbfaf4;
  --pouyab-ink:#24332a;
  --pouyab-muted:#68736b;
  --pouyab-line:#dfe4d8;
  --pouyab-white:#fff;
}

.pouyab-site a{
  text-decoration:none;
  color:inherit;
}

.pouyab-header a,
.pouyab-footer a{
  text-decoration:none;
}

/* ---------- Header ---------- */
.pouyab-header{
  position:sticky;
  top:0;
  z-index:120;
  font-family:"IRANYekan",sans-serif;
  background:rgba(251,250,244,.92);
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(33,76,43,.10);
  transition:box-shadow .25s ease;
}

.pouyab-header.is-scrolled{
  box-shadow:0 10px 30px rgba(30,58,37,.08);
}

.pouyab-header-inner{
  width:min(1120px,94%);
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  min-height:74px;
}

.pouyab-brand{
  display:flex;
  align-items:center;
  gap:12px;
}

.pouyab-brand img{
  height:46px;
  width:auto;
  display:block;
}

.pouyab-brand-text{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:1px;
}

.pouyab-brand-text strong{
  font-size:19px;
  font-weight:900;
  color:var(--pouyab-green);
  line-height:1.25;
  white-space:nowrap;
}

.pouyab-brand-text small{
  font-size:11px;
  font-weight:500;
  color:var(--pouyab-muted);
  letter-spacing:.2px;
}

.pouyab-nav{
  display:flex;
  align-items:center;
  gap:6px;
}

.pouyab-nav a{
  position:relative;
  display:inline-flex;
  align-items:center;
  padding:9px 14px;
  border-radius:999px;
  color:var(--pouyab-ink);
  font-size:14px;
  font-weight:600;
  transition:color .2s ease,background .2s ease;
}

.pouyab-nav a:hover{
  color:var(--pouyab-green);
  background:rgba(33,76,43,.06);
}

.pouyab-nav a.is-current{
  color:var(--pouyab-green);
  background:rgba(216,169,30,.14);
}

.pouyab-nav a.pouyab-nav-cta{
  margin-right:6px;
  padding:10px 20px;
  color:#fff;
  background:var(--pouyab-green);
  box-shadow:0 8px 18px rgba(33,76,43,.22);
}

.pouyab-nav a.pouyab-nav-cta:hover{
  color:#fff;
  background:var(--pouyab-green-2);
}

.pouyab-burger{
  display:none;
  flex-direction:column;
  justify-content:center;
  gap:6px;
  width:40px;
  height:40px;
  padding:10px 8px;
  border:none;
  border-radius:10px;
  background:transparent;
  cursor:pointer;
}

.pouyab-burger span{
  display:block;
  height:3px;
  width:100%;
  border-radius:999px;
  background:var(--pouyab-green);
  transition:transform .3s ease,opacity .3s ease;
}

.pouyab-header.open .pouyab-burger span:nth-child(1){
  transform:translateY(9px) rotate(45deg);
}

.pouyab-header.open .pouyab-burger span:nth-child(2){
  opacity:0;
}

.pouyab-header.open .pouyab-burger span:nth-child(3){
  transform:translateY(-9px) rotate(-45deg);
}

@media(max-width:900px){
  .pouyab-burger{
    display:flex;
  }

  .pouyab-nav{
    position:absolute;
    top:100%;
    right:0;
    left:0;
    flex-direction:column;
    align-items:stretch;
    gap:2px;
    padding:10px 5% 14px;
    background:rgba(251,250,244,.97);
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);
    border-bottom:1px solid rgba(33,76,43,.08);
    transform:translateY(-8px);
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:transform .3s ease,opacity .3s ease,visibility .3s ease;
  }

  .pouyab-header.open .pouyab-nav{
    transform:translateY(0);
    opacity:1;
    visibility:visible;
    pointer-events:auto;
  }

  .pouyab-nav a{
    justify-content:center;
    padding:13px 14px;
    font-size:15px;
    border-radius:12px;
    transition:background .2s ease,color .2s ease;
  }

  .pouyab-nav a:hover{
    background:rgba(33,76,43,.06);
  }

  .pouyab-nav a.is-current{
    background:rgba(216,169,30,.14);
  }

  .pouyab-nav a.pouyab-nav-cta{
    margin-right:0;
  }
}

@media(max-width:520px){
  .pouyab-header-inner{
    min-height:64px;
  }

  .pouyab-brand img{
    height:42px;
  }

  .pouyab-brand-text strong{
    font-size:17px;
  }
}

/* ---------- Footer ---------- */
.pouyab-footer{
  background:#173a20;
  color:#fff;
  font-family:"IRANYekan",sans-serif;
}

.pouyab-footer-top{
  width:min(1120px,94%);
  margin:0 auto;
  display:grid;
  grid-template-columns:1.3fr 1fr 1fr;
  gap:44px;
  padding:64px 0 48px;
}

.pouyab-footer-brand img{
  height:72px;
  width:auto;
  margin-bottom:18px;
}

.pouyab-footer-brand p{
  margin:0;
  max-width:360px;
  color:rgba(255,255,255,.72);
  font-size:13px;
  line-height:2;
  text-align:justify;
  text-justify:inter-word;
  text-align-last:right;
}

.pouyab-footer h4{
  margin:0 0 16px;
  color:var(--pouyab-gold-soft);
  font-size:15px;
  font-weight:800;
}

.pouyab-footer-links{
  display:flex;
  flex-direction:column;
  gap:9px;
}

.pouyab-footer-links a{
  color:rgba(255,255,255,.75);
  font-size:13px;
  transition:color .2s ease,padding-right .2s ease;
}

.pouyab-footer-links a:hover{
  color:#fff;
  padding-right:4px;
}

.pouyab-footer-contact p{
  margin:0 0 10px;
  color:rgba(255,255,255,.72);
  font-size:13px;
  line-height:1.9;
}

.pouyab-footer-contact strong{
  display:block;
  color:#fff;
  font-weight:700;
}

@media(max-width:820px){
  .pouyab-footer-top{
    grid-template-columns:1fr 1fr;
    gap:34px;
  }
}

@media(max-width:560px){
  .pouyab-footer-top{
    grid-template-columns:1fr;
    padding:46px 0 34px;
  }
}

/* =========================================================
   POUYAB — LANGUAGE SWITCHER + CJK + LTR OVERRIDES
   ========================================================= */

/* ---------- Language switcher ---------- */
.pouyab-lang{
  display:flex;
  align-items:center;
  gap:8px;
  margin-inline-start:4px;
  padding:4px 6px 4px 10px;
  border:1px solid rgba(33,76,43,.14);
  border-radius:999px;
  background:rgba(33,76,43,.05);
  white-space:nowrap;
}

.pouyab-lang-label{
  font-size:12px;
  font-weight:700;
  color:var(--pouyab-green);
}

.pouyab-lang-options{
  display:flex;
  gap:3px;
}

.pouyab-lang-options button{
  min-width:30px;
  height:26px;
  padding:0 8px;
  border:none;
  border-radius:999px;
  background:transparent;
  color:var(--pouyab-muted);
  font-family:inherit;
  font-size:11px;
  font-weight:800;
  line-height:1;
  cursor:pointer;
  transition:background .2s ease,color .2s ease;
}

.pouyab-lang-options button:hover{
  color:var(--pouyab-green);
  background:rgba(33,76,43,.08);
}

.pouyab-lang-options button.is-active{
  color:#fff;
  background:var(--pouyab-green);
  box-shadow:0 4px 10px rgba(33,76,43,.25);
}

@media(max-width:900px){
  .pouyab-header .pouyab-lang-label{
    display:none;
  }
}

@media(max-width:520px){
  .pouyab-lang{
    padding:3px 4px;
    gap:4px;
  }

  .pouyab-lang-options button{
    min-width:27px;
    height:24px;
    padding:0 6px;
    font-size:10px;
  }
}

/* ---------- CJK (Chinese) font stack ---------- */
html[lang="zh"] body,
html[lang="zh"] .pouyab-header,
html[lang="zh"] .pouyab-footer,
html[lang="zh"] .pouyab-page,
html[lang="zh"] .pr-hero,
html[lang="zh"] .pd-section,
html[lang="zh"] .pr-eyebrow,
html[lang="zh"] .pd-title,
html[lang="zh"] button{
  font-family:"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans SC","Source Han Sans SC","IRANYekan",sans-serif;
}

/* ---------- LTR alignment fixes (home) ---------- */
html[dir="ltr"] .pouyab-page p,
html[dir="ltr"] .pouyab-page .pouyab-subtitle,
html[dir="ltr"] .pouyab-page .pouyab-copy p,
html[dir="ltr"] .pouyab-page .pouyab-leader-copy p,
html[dir="ltr"] .pouyab-page .pouyab-area p,
html[dir="ltr"] .pouyab-page .pouyab-member p,
html[dir="ltr"] .pouyab-page .pouyab-method-intro p,
html[dir="ltr"] .pouyab-page .pouyab-future-subtitle,
html[dir="ltr"] .pouyab-page .pouyab-collab .pouyab-subtitle,
html[dir="ltr"] .pouyab-page .pouyab-projects-intro p{
  text-align-last:left;
}

html[dir="ltr"] .pouyab-footer-brand p{
  text-align-last:left;
}

html[dir="ltr"] .pouyab-identity-item + .pouyab-identity-item{
  border-right:0;
  border-left:1px solid rgba(26,61,36,.08);
}

html[dir="ltr"] .pouyab-highlight{
  border-right:0;
  border-left:4px solid var(--pouyab-gold);
  border-radius:18px 0 0 18px;
}

html[dir="ltr"] .pouyab-quote::before{
  right:auto;
  left:18px;
}

html[dir="ltr"] .pouyab-projects-intro-steps{
  text-align:left;
}

html[dir="ltr"] .pouyab-projects-intro-step{
  padding:18px 18px 18px 24px;
}

html[dir="ltr"] .pouyab-projects-intro-step-dot{
  right:auto;
  left:-6px;
}

html[dir="ltr"] .pouyab-footer-links a:hover{
  padding-right:0;
  padding-left:4px;
}

/* ---------- LTR alignment fixes (projects + detail) ---------- */
html[dir="ltr"] .pr-table th,
html[dir="ltr"] .pr-table td,
html[dir="ltr"] .pd-table th,
html[dir="ltr"] .pd-table td{
  text-align:left;
}

html[dir="ltr"] .pr-featured-media .pr-badge{
  right:auto;
  left:18px;
}

html[dir="ltr"] .pd-obj li p{
  padding-right:0;
  padding-left:36px;
}

html[dir="ltr"] .pd-obj li:before{
  right:auto;
  left:20px;
}

html[dir="ltr"] .pd-timeline:before{
  right:auto;
  left:18px;
}

html[dir="ltr"] .pd-tl-item{
  padding-right:0;
  padding-left:54px;
}

html[dir="ltr"] .pd-tl-item:before{
  right:auto;
  left:12px;
}

/* ---------- LTR arrow mirroring ---------- */
html[dir="ltr"] .pouyab-projects-intro-btn .pouyab-projects-intro-btn-arrow,
html[dir="ltr"] .pouyab-projects-intro-btn:hover .pouyab-projects-intro-btn-arrow,
html[dir="ltr"] .pr-more .pr-more-arrow,
html[dir="ltr"] .pr-more:hover .pr-more-arrow,
html[dir="ltr"] .pd-back .pd-more-arrow,
html[dir="ltr"] .pd-back:hover .pd-more-arrow{
  transform:scaleX(-1);
}

/* =========================================================
   POUYAB — RESPONSIVE HEADER (logo4 + brand text)
   ========================================================= */

.pouyab-lang-nav{
  display:none;
}

@media(max-width:900px){
  .pouyab-header-inner{
    min-height:68px;
  }

  .pouyab-brand img{
    height:42px;
  }

  .pouyab-brand-text strong{
    font-size:17px;
  }
}

@media(max-width:600px){
  .pouyab-header-inner{
    min-height:62px;
    gap:10px;
  }

  .pouyab-brand{
    gap:9px;
  }

  .pouyab-brand img{
    height:36px;
  }

  .pouyab-brand-text strong{
    font-size:15px;
  }

  .pouyab-header-inner > .pouyab-lang{
    display:none;
  }

  .pouyab-nav .pouyab-lang-nav{
    display:flex;
    justify-content:center;
    margin-top:10px;
    margin-inline-start:0;
    padding-top:10px;
    border-top:1px solid rgba(33,76,43,.08);
  }

  .pouyab-nav .pouyab-lang-nav .pouyab-lang-label{
    display:inline-flex;
  }
}

/* ---------- RESUME BUTTON ---------- */
.pouyab-rv-btn{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin-top:18px;
  padding:12px 22px;
  border-radius:999px;
  background:var(--pouyab-green);
  color:var(--pouyab-white);
  font-size:14px;
  font-weight:800;
  line-height:1;
  text-decoration:none;
  border:0;
  cursor:pointer;
  box-shadow:0 4px 12px rgba(26,61,36,.18);
  transition:transform .25s ease,box-shadow .25s ease,background-color .25s ease;
}
.pouyab-rv-btn::after{
  content:"›";
  font-size:18px;
  line-height:1;
  transform:translateY(-1px);
  transition:transform .3s;
}
html[dir="ltr"] .pouyab-rv-btn::after{
  transform:rotate(180deg) translateY(-1px);
}
.pouyab-rv-btn:hover{
  background:var(--pouyab-green-2);
  transform:translateY(-2px);
  box-shadow:0 8px 20px rgba(26,61,36,.22);
}
.pouyab-rv-btn:hover::after{
  transform:translateX(-4px);
}
html[dir="ltr"] .pouyab-rv-btn:hover::after{
  transform:rotate(180deg) translateX(4px);
}
.pouyab-rv-btn:focus-visible{
  outline:3px solid var(--pouyab-gold);
  outline-offset:3px;
}

.pouyab-rv-btn-small{
  margin-top:12px;
  padding:9px 16px;
  font-size:12.5px;
  box-shadow:0 4px 8px rgba(26,61,36,.14);
}
.pouyab-rv-btn-small::after{
  font-size:15px;
}