/* VIRA typography system v1.6.22 — refined section-heading scale. */
:root{
  --vira-heading-font-fa:'IRANSansXFaNum','IRANSans','Vazirmatn',Tahoma,sans-serif;
  --vira-heading-font-en:'Manrope',Arial,sans-serif;
}
/* Use the supplied Persian heading family when it is available; retain the theme font as a safe fallback. */
html[dir="rtl"] body :is(h1,h2,h3,h4,h5,h6){font-family:var(--vira-heading-font-fa)!important;}
html[dir="ltr"] body :is(h1,h2,h3,h4,h5,h6){font-family:var(--vira-heading-font-en)!important;}

/* Semantic weight ladder: strong section titles, quieter subheadings, lighter nested labels. */
body h1{font-weight:800;}
body h2{font-weight:700;}
body h3{font-weight:600;}
body h4{font-weight:600;}
body h5,body h6{font-weight:500;}

/* Homepage section titles share one scale and one visual rhythm. */
#home :is(.section-heading h2,.vspd-empty-section>.container>h2,.about-copy h2,.vira-contact-heading h2,.product-copy h2,.contact-grid h2){
  font-family:var(--vira-heading-font-fa)!important;
  font-size:clamp(20px,2vw,26px)!important;
  font-weight:700!important;
  line-height:1.5!important;
  letter-spacing:normal!important;
  margin-block:0 18px;
}
html[dir="ltr"] #home :is(.section-heading h2,.vspd-empty-section>.container>h2,.about-copy h2,.vira-contact-heading h2,.product-copy h2,.contact-grid h2){
  font-family:var(--vira-heading-font-en)!important;
  letter-spacing:-.25px!important;
}
/* Keep Clients & Business Partners exactly the same size as Media & Events. */
#home #partners .section-heading h2,
#home #media .section-heading h2{font-size:clamp(20px,2vw,26px)!important;font-weight:700!important;line-height:1.5!important;}

/* All first-level subheadings use the same size and semi-bold weight. */
#home h3,#home .extra-service-heading{
  font-family:var(--vira-heading-font-fa)!important;
  font-size:clamp(18px,1.5vw,20px)!important;
  font-weight:600!important;
  line-height:1.6!important;
  letter-spacing:normal!important;
}
html[dir="ltr"] #home h3,html[dir="ltr"] #home .extra-service-heading{font-family:var(--vira-heading-font-en)!important;letter-spacing:0!important;}

/* Nested headings decrease gradually and consistently. */
#home h4{font-family:var(--vira-heading-font-fa)!important;font-size:17px!important;font-weight:600!important;line-height:1.6!important;}
#home h5{font-family:var(--vira-heading-font-fa)!important;font-size:16px!important;font-weight:500!important;line-height:1.6!important;}
#home h6{font-family:var(--vira-heading-font-fa)!important;font-size:14px!important;font-weight:500!important;line-height:1.6!important;}
html[dir="ltr"] #home :is(h4,h5,h6){font-family:var(--vira-heading-font-en)!important;}

/* Preserve readable explanatory text below headings. */
#home :is(.section-heading p,.vira-expertise-panel p,.about-copy>p,.vira-contact-details p,.vspd-empty-item p){font-weight:400;}
@media(max-width:680px){
  #home :is(.section-heading h2,.vspd-empty-section>.container>h2,.about-copy h2,.vira-contact-heading h2,.product-copy h2,.contact-grid h2){font-size:clamp(19px,5.2vw,22px)!important;margin-block-end:14px;}
  #home :is(h3,.extra-service-heading){font-size:18px!important;}
  #home h4{font-size:16px!important;}
  #home h5{font-size:15px!important;}
  #home h6{font-size:14px!important;}
}

/* Match the About Vira lead statement to the Industrial Automation expertise title. */
#home #about .about-copy h2{
  font-size:clamp(15px,1.8vw,20px)!important;
  font-weight:600!important;
  line-height:1.55!important;
  letter-spacing:normal!important;
}


/* v1.6.18: Justify the About Vira description while keeping its final line aligned to the reading direction. */
#home #about .about-copy > p{
  text-align:justify!important;
  text-justify:inter-word;
  text-align-last:start;
}


/* v1.6.20: Expertise accordion labels use regular weight rather than bold. */
#home .vira-expertise-summary h3{
  font-weight:400!important;
}


/* v1.6.21: Research and execution project labels use regular weight, matching expertise headings. */
#home .vspd-empty-item h3,
#home .project-tab{
  font-weight:400!important;
}


/* v1.6.44 — consistent, tighter spacing between homepage section titles and content */
/* Keep the established Persian/English font families, sizes, weights and line heights unchanged. */
#home .section .section-heading{
  margin-bottom:28px!important;
}
#home :is(
  .section-heading h2,
  .vspd-empty-section>.container>h2,
  .about-copy h2,
  .vira-contact-heading h2,
  .product-copy h2,
  .contact-grid h2
){
  margin-block-end:12px!important;
}
@media(max-width:680px){
  #home .section .section-heading{
    margin-bottom:22px!important;
  }
  #home :is(
    .section-heading h2,
    .vspd-empty-section>.container>h2,
    .about-copy h2,
    .vira-contact-heading h2,
    .product-copy h2,
    .contact-grid h2
  ){
    margin-block-end:10px!important;
  }
}


/* v1.6.44 — reduce and unify vertical spacing between all homepage sections */
#home > .section{
  padding-block:68px!important;
}
@media(max-width:680px){
  #home > .section{
    padding-block:48px!important;
  }
}


/* v1.6.45 — exact Business Partners heading gap and frame border match with Media */
#home #partners .section-heading{
  margin-bottom:18px!important;
}
#home #partners .section-heading h2{
  margin-block-end:0!important;
}
#home #partners .partner-logos-frame{
  border-color:rgba(39,156,150,.40)!important;
}
@media(max-width:680px){
  #home #partners .section-heading{
    margin-bottom:18px!important;
  }
  #home #partners .section-heading h2{
    margin-block-end:0!important;
  }
}
