/* ==========================================================================
   Enrich Financial components: what Elementor's controls can't express cleanly.
   Elementor templates (site/elementor/build.py) attach these through CSS classes (ef-*).
   Colours and type come from the Elementor Kit globals; these rules only add the brand's details.
   Logical properties (inline-start/end) mirror automatically on Persian (RTL) pages.
   ========================================================================== */

/* ---------- Base ---------- */
.ef-i{display:inline-block;vertical-align:middle;flex:none}
/* Two-column rows: the text column takes what the fixed-width column (form card, panel) leaves */
.e-con.ef-hero__copy,.e-con.ef-split__copy,.e-con.ef-ceo__copy{flex:1 1 0!important;min-width:0}
.e-con.ef-formcard,.e-con.ef-split__panel{flex:none!important;max-width:100%}
.ef-icon{display:inline-flex;line-height:0}
.elementor-widget-text-editor p:last-child{margin-bottom:0}
.ef-on-dark,.ef-on-dark p{color:var(--ef-navy-200)!important}
.ef-on-dark a{color:#fff;text-decoration:underline;text-underline-offset:3px}
.ef-on-dark a:hover{color:var(--ef-red-300)}
.ef-note{font-size:14px;color:var(--ef-muted)}
[dir="rtl"] .ef-more .ef-i,[dir="rtl"] .ef-btn .elementor-button-icon svg{transform:scaleX(-1)}

/* ---------- Motifs ---------- */
/* Dot grid on navy sections (from the reference) */
.ef-dots{background-color:var(--ef-navy-900);background-image:radial-gradient(rgba(175,192,217,.22) 1.6px,transparent 1.8px);background-size:28px 28px}
/* CTA band: the dot grid fades into red at the bottom edge */
.ef-dots-fade{position:relative;isolation:isolate;overflow:hidden}
.ef-dots-fade::after{content:"";position:absolute;inset:auto 0 0 0;height:140px;z-index:-1;pointer-events:none;
	background-image:radial-gradient(rgba(225,30,40,.6) 1.6px,transparent 1.8px);background-size:28px 28px;
	-webkit-mask-image:linear-gradient(transparent,#000);mask-image:linear-gradient(transparent,#000)}
/* Highlighted words in headings: <span class="ef-hl"> */
.ef-hl{color:var(--ef-red-700)}
.ef-dots .ef-hl,.ef-on-dark .ef-hl{color:var(--ef-red-300)}

/* ---------- Buttons ---------- */
.ef-btn .elementor-button{transition:background-color .15s,border-color .15s,color .15s,transform .15s;border:1.5px solid transparent}
.ef-btn .elementor-button:active{transform:translateY(1px)}
.ef-btn .elementor-button-icon svg{width:18px;height:18px;fill:none;stroke:currentColor}
.ef-btn--navy .elementor-button:hover{background-color:var(--ef-red-700)!important}
.ef-btn--ghost .elementor-button{background:transparent!important;border-color:rgba(255,255,255,.55)}
.ef-btn--ghost .elementor-button:hover{background:rgba(255,255,255,.1)!important;border-color:#fff}
.ef-btn--ghost-dark .elementor-button{background:transparent!important;border-color:var(--ef-navy-900);color:var(--ef-navy-900)!important}
.ef-btn--ghost-dark .elementor-button:hover{background:var(--ef-navy-900)!important;color:#fff!important}

/* ---------- Eyebrow, section heads ---------- */
.ef-eyebrow .elementor-heading-title{display:inline-flex;align-items:center;gap:10px}
.ef-eyebrow .elementor-heading-title::before{content:"";width:24px;height:2px;background:currentColor}
.ef-eyebrow--light .elementor-heading-title{color:var(--ef-red-300)!important}
html[lang^="fa"] .ef-eyebrow .elementor-heading-title{font-size:15px}
.ef-section__head--center{text-align:center;max-width:760px;margin-inline:auto}
.ef-section__head--center .elementor-widget{width:100%}
.ef-section__intro{max-width:680px;margin-inline:auto;color:var(--ef-muted)}

/* ---------- Header ---------- */
.elementor-location-header{position:sticky;top:var(--wp-admin--admin-bar--height,0);z-index:100}
.ef-header{background:#fff;border-bottom:1px solid var(--ef-line);transition:box-shadow .2s}
.ef-scrolled .ef-header{box-shadow:0 6px 24px rgba(10,29,55,.08)}
.ef-logo{flex:none!important}
.ef-logo img{display:block;height:auto}
.ef-nav .elementor-nav-menu--main>.elementor-nav-menu>li>a{font-weight:600}
.ef-nav .elementor-nav-menu--dropdown{border:1px solid var(--ef-line);box-shadow:var(--ef-shadow-2);overflow:hidden}
.ef-nav .elementor-nav-menu--main .elementor-nav-menu--dropdown{min-width:240px!important;padding:8px 0}
.ef-nav .sub-arrow svg{width:12px;height:12px}
.ef-nav .elementor-menu-toggle{background:var(--ef-surface);border-radius:var(--ef-r-md);padding:10px}
.ef-header__actions>.elementor-widget{flex:none!important;width:auto!important}
.ef-phone-w a.ef-phone{display:inline-flex;align-items:center;gap:8px;font-weight:700;color:var(--ef-navy-900);white-space:nowrap}
.ef-phone-w a.ef-phone:hover{color:var(--ef-red-700)}
.ef-phone .ef-i{color:var(--ef-red-700)}
.ef-lang-w a.ef-lang{display:inline-flex;align-items:center;gap:6px;font-weight:600;font-size:15px;color:var(--ef-ink);white-space:nowrap}
.ef-lang-w a.ef-lang:hover{color:var(--ef-red-700)}
.ef-lang .ef-i{color:var(--ef-muted)}
@media (max-width:1024px){
	.ef-nav{order:3;flex:0 0 auto!important}
	.ef-header__actions{margin-inline-start:auto}
	.ef-nav .elementor-nav-menu--dropdown.elementor-nav-menu__container{border-radius:0 0 var(--ef-r-lg) var(--ef-r-lg);margin-top:10px!important}
	.ef-nav .elementor-nav-menu--dropdown a{padding:14px 24px!important}
}
@media (min-width:1025px) and (max-width:1200px){.ef-phone-w{display:none}}

/* ---------- Hero ---------- */
.ef-hero{overflow:hidden}
.ef-hero__copy{padding-bottom:0}
.ef-hero__title .elementor-heading-title{text-wrap:balance}
.ef-hero__phone,.ef-hero__phone p{color:#fff!important;font-weight:600}
a[href^="tel:"]{white-space:nowrap}
.ef-hero__team{margin-top:8px}
.ef-hero__team img{display:block;width:100%;max-width:640px;height:auto}
.ef-checks{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.ef-checks li{display:flex;align-items:flex-start;gap:10px;font-weight:600}
.ef-checks .ef-i{color:var(--ef-success);margin-top:2px}
.ef-checks--light li{color:#fff}
.ef-checks--light .ef-i{color:#4ADE80}
@media (max-width:767px){.ef-hero__team{display:none}}
.ef-hero .ef-formcard{margin-bottom:48px}
@media (max-width:767px){.ef-hero .ef-formcard{margin-bottom:0}}

/* ---------- Form card ---------- */
.ef-formcard{background:#fff;border-radius:var(--ef-r-lg);box-shadow:var(--ef-shadow-2);border-top:4px solid var(--ef-red)}
.ef-formcard__intro{color:var(--ef-muted)}
.ef-form .elementor-field-group .elementor-field-label{margin-bottom:6px}
.ef-form .elementor-mark-required .elementor-field-label::after{color:var(--ef-red-700)}
.ef-form .elementor-field-type-acceptance{font-size:13px;line-height:1.5;color:var(--ef-muted)}
/* The consent field keeps a label for the lead email; the checkbox text already says it on screen */
.ef-form .elementor-field-type-acceptance>.elementor-field-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.ef-form .elementor-field-type-acceptance .elementor-field-subgroup{align-items:flex-start}
.ef-form .elementor-field-type-acceptance input{margin-top:3px;accent-color:var(--ef-red-700)}
.ef-form .elementor-field-textual:focus{box-shadow:0 0 0 3px rgba(10,29,55,.12)}
.ef-form .elementor-button{min-height:52px;margin-top:4px}

/* ---------- Trust bar ---------- */
.ef-trust-band{border-bottom:1px solid var(--ef-line);background:#fff}
.ef-trust__list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:24px}
.ef-trust__list li{display:flex;align-items:center;gap:14px;font-size:15px;line-height:1.4;color:var(--ef-muted)}
.ef-trust__list strong{display:block;font-size:17px;color:var(--ef-ink)}
.ef-trust__list .ef-icon{flex:none;display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:var(--ef-red-50);color:var(--ef-red-700)}
@media (max-width:1024px){.ef-trust__list{grid-template-columns:repeat(2,1fr)}}
@media (max-width:540px){.ef-trust__list{grid-template-columns:1fr;gap:16px}}

/* ---------- Cards ---------- */
.ef-cards>.e-con{flex:1 1 240px;--width:auto}
.ef-cards--3>.e-con{flex-basis:320px}
.ef-card{background:#fff;border:1px solid var(--ef-line);border-radius:var(--ef-r-lg);box-shadow:var(--ef-shadow-1)}
.ef-card__icon .ef-icon{display:grid;place-items:center;width:52px;height:52px;border-radius:var(--ef-r-md);background:var(--ef-red-50);color:var(--ef-red-700)}
.ef-card__icon svg{width:26px;height:26px}
.ef-card__text{color:var(--ef-muted)}
.ef-card--link{color:inherit;transition:transform .2s,box-shadow .2s,border-color .2s}
.ef-card--link:hover{transform:translateY(-3px);box-shadow:var(--ef-shadow-2);border-color:transparent}
.ef-card--link .elementor-widget-html:last-child{margin-top:auto}
.ef-more{display:inline-flex;align-items:center;gap:6px;font-weight:700;color:var(--ef-red-700)}
.ef-card--link:hover .ef-more .ef-i{transform:translateX(3px)}
[dir="rtl"] .ef-card--link:hover .ef-more .ef-i{transform:scaleX(-1) translateX(3px)}
.ef-more .ef-i{transition:transform .2s}
@media (max-width:767px){.ef-cards>.e-con{flex-basis:auto}}

/* ---------- Bands ---------- */
.ef-stat{background:var(--ef-navy-50);text-align:center}
.ef-stat .elementor-heading-title,.ef-stat .elementor-widget-text-editor{text-align:center}
.ef-stat__title .elementor-heading-title{text-wrap:balance}
.ef-stat__text{max-width:640px;margin-inline:auto;color:var(--ef-charcoal)}
.ef-services,.ef-process,.ef-latest{background:var(--ef-surface)}
.ef-process{background:#fff}
.ef-testimonials{background:var(--ef-navy-50)}

/* Navy split: what we can challenge */
.ef-split__panel{background:rgba(255,255,255,.05);border:1px solid rgba(175,192,217,.22);border-radius:var(--ef-r-lg);backdrop-filter:blur(2px)}
.ef-chips{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.ef-chips li{display:flex;align-items:center;gap:8px;padding:10px 12px;border-radius:var(--ef-r-md);background:rgba(255,255,255,.07);color:#fff;font-weight:600;font-size:15px}
.ef-chips .ef-i{color:var(--ef-red-300)}
@media (max-width:767px){.ef-chips li{font-size:14px;padding:9px 10px}}
@media (max-width:359px){.ef-chips{grid-template-columns:1fr}}

/* ---------- Process stepper ---------- */
.ef-steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:24px;counter-reset:step}
.ef-step{position:relative;padding:28px;border:1px solid var(--ef-line);border-radius:var(--ef-r-lg);background:#fff}
.ef-step__n{display:inline-grid;place-items:center;width:44px;height:44px;margin-bottom:16px;border-radius:50%;background:var(--ef-navy-900);color:#fff;font-weight:800;font-size:15px}
.ef-step:first-child .ef-step__n{background:var(--ef-red-700)}
.ef-step__title{margin:0 0 8px;font-size:20px;font-weight:700;line-height:1.3;color:var(--ef-ink)}
.ef-step p{margin:0;color:var(--ef-muted)}
@media (max-width:1024px){.ef-steps{grid-template-columns:repeat(2,1fr)}}
@media (max-width:640px){.ef-steps{grid-template-columns:1fr;gap:16px}}

/* ---------- CEO ---------- */
.ef-ceo__copy{flex:1 1 0!important;min-width:0}
/* Arian on the red wall, 4:5, with a navy offset frame */
.ef-ceo__photo{flex:0 0 auto;width:min(420px,100%);position:relative}
.ef-ceo__photo::before{content:"";position:absolute;inset:20px -20px -20px 20px;border-radius:var(--ef-r-lg);z-index:-1;
	background-color:var(--ef-navy-900);background-image:radial-gradient(rgba(175,192,217,.22) 1.6px,transparent 1.8px);background-size:28px 28px}
[dir="rtl"] .ef-ceo__photo::before{inset:20px 20px -20px -20px}
.ef-ceo__photo img{display:block;width:100%;height:auto;aspect-ratio:4/5;object-fit:cover;border-radius:var(--ef-r-lg);box-shadow:var(--ef-shadow-2)}
.ef-ceo{isolation:isolate}
@media (max-width:767px){.ef-ceo__photo{width:calc(100% - 20px);align-self:flex-start}}
/* About: team photo */
.ef-team-photo img{display:block;width:100%;height:auto;border-radius:var(--ef-r-lg);box-shadow:var(--ef-shadow-2)}

/* ---------- Testimonials ---------- */
.ef-quotes>.elementor-widget{flex:1 1 0;min-width:0}
.ef-quote{height:100%;margin:0;padding:32px;display:flex;flex-direction:column;gap:16px;background:#fff;border-radius:var(--ef-r-lg);box-shadow:var(--ef-shadow-1)}
.ef-stars{display:inline-flex;gap:2px;color:var(--ef-star)}
.ef-quote blockquote{margin:0;padding:0;border:0;font-size:17px;line-height:1.7;color:var(--ef-charcoal)}
.ef-quote figcaption{margin-top:auto;display:flex;flex-direction:column;font-style:normal}
.ef-latest__head{flex:1 1 auto!important;width:auto!important}
.ef-quote figcaption strong{color:var(--ef-ink)}
.ef-quote figcaption span{font-size:14px;color:var(--ef-muted)}
.ef-quote-w,.ef-quote-w .elementor-widget-container{height:100%}

/* ---------- FAQ (Elementor accordion) ---------- */
.ef-faq .elementor-accordion-item{border:1px solid var(--ef-line)!important;border-radius:var(--ef-r-lg);margin-bottom:12px;background:#fff;overflow:hidden}
.ef-faq .elementor-tab-title{padding:20px 24px!important;display:flex;align-items:center;gap:12px}
.ef-faq .elementor-tab-title .elementor-accordion-icon{order:2;margin-inline-start:auto}
.ef-faq .elementor-tab-content{border-top:0!important;padding:0 24px 22px!important;color:var(--ef-muted)}
.ef-faq .elementor-tab-title.elementor-active{background:var(--ef-surface)}

/* ---------- Post cards, article ---------- */
.ef-post{height:100%;background:#fff;border:1px solid var(--ef-line);border-radius:var(--ef-r-lg);overflow:hidden;transition:box-shadow .2s,transform .2s}
.ef-post:hover{box-shadow:var(--ef-shadow-2);transform:translateY(-3px)}
.ef-post__img img{display:block;width:100%;aspect-ratio:40/21;object-fit:cover} /* = the 1200x630 title cards */
.ef-post__img a{display:block}
.ef-post__meta{font-size:14px;color:var(--ef-muted)}
.ef-post__title a{color:inherit}
.ef-grid .elementor-pagination{margin-top:40px;display:flex;justify-content:center;gap:8px;font-weight:600}
.ef-grid .elementor-pagination .page-numbers{padding:8px 14px;border-radius:var(--ef-r-md);border:1px solid var(--ef-line)}
.ef-grid .elementor-pagination .current{background:var(--ef-navy-900);color:#fff;border-color:var(--ef-navy-900)}
.ef-crumbs{font-size:14px;color:var(--ef-muted)}
.ef-crumbs a{color:var(--ef-muted)}
.ef-pagehero .ef-crumbs,.ef-pagehero .ef-crumbs a{color:var(--ef-navy-200)!important}
.ef-article__img img{border-radius:var(--ef-r-lg)}
.ef-article__meta,.ef-article__cats{font-size:14px;color:var(--ef-muted)}
.ef-prose{font-size:18px;line-height:1.75;color:var(--ef-charcoal)}
.ef-prose h2{margin:1.6em 0 .6em;font-size:28px;line-height:1.25}
.ef-prose h3{margin:1.4em 0 .5em;font-size:22px}
.ef-prose a{text-decoration:underline;text-underline-offset:3px}
/* Links inside running text are underlined everywhere in the content, not told apart by colour alone (WCAG 1.4.1) */
#content .elementor-widget-text-editor :is(p,li) a:not(.elementor-button){text-decoration:underline;text-underline-offset:3px}
.ef-prose img{border-radius:var(--ef-r-lg);height:auto}
.ef-prose ul,.ef-prose ol{padding-inline-start:1.4em}
.ef-prose li{margin-bottom:.45em}
.ef-prose h2:first-child,.ef-prose p:first-child{margin-top:0}

/* ---------- Inner pages ---------- */
.ef-pagehero__intro{max-width:760px}
.e-con.ef-pagehero__copy{flex:1 1 0!important;min-width:0;align-self:center}
.ef-pagehero__portrait{flex:none}
.ef-pagehero__portrait img{display:block;width:auto;height:auto;max-height:380px;margin-top:32px}
@media (max-width:767px){.e-con.ef-pagehero__copy{align-self:stretch}.ef-pagehero__portrait img{max-height:260px;margin-top:0}}
.ef-pagehero__actions{margin-top:12px}
/* Content + sticky side card (form, book) */
.e-con.ef-main{flex:1 1 0!important;min-width:0}
.e-con.ef-aside{flex:none!important;max-width:100%}
@media (min-width:1025px){.ef-aside{position:sticky;top:calc(var(--wp-admin--admin-bar--height,0px) + 104px)}}
.ef-book-card{border-top:4px solid var(--ef-navy-900)}
/* Key figures (About) */
.ef-stats{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:24px}
.ef-stats li{padding:24px;border-radius:var(--ef-r-lg);background:var(--ef-navy-50);text-align:center}
.ef-stats strong{display:block;font-size:40px;line-height:1.1;font-weight:800;color:var(--ef-red-700)}
.ef-stats span{display:block;margin-top:8px;font-size:15px;color:var(--ef-charcoal)}
@media (max-width:1024px){.ef-stats{grid-template-columns:repeat(2,1fr)}}
@media (max-width:420px){.ef-stats{gap:12px}.ef-stats li{padding:18px 12px}.ef-stats strong{font-size:32px}}
/* Branches */
.ef-branches>.elementor-widget{flex:1 1 calc(50% - 12px);min-width:260px}
.ef-branch-w,.ef-branch-w .elementor-widget-container{height:100%}
.ef-branch{height:100%;padding:28px;background:#fff;border:1px solid var(--ef-line);border-radius:var(--ef-r-lg);box-shadow:var(--ef-shadow-1)}
.ef-branch .ef-branch__name{display:flex;align-items:center;gap:10px;margin:0 0 12px;font-size:22px!important;font-weight:700;line-height:1.3;color:var(--ef-ink)}
.ef-branch__name .ef-i{color:var(--ef-red-700)}
.ef-branch__addr{margin:0 0 16px;color:var(--ef-charcoal);text-align:start}
[dir="rtl"] .ef-branch__addr{text-align:right}
.ef-branch__links{display:flex;flex-wrap:wrap;gap:12px 24px;margin:0}
.ef-branch__links a{display:inline-flex;align-items:center;gap:6px;font-weight:700;color:var(--ef-red-700)}
.ef-map iframe{display:block;border-radius:var(--ef-r-lg)}
/* Contact */
.ef-contact>.ef-map{flex:1 1 0!important;min-width:0}
.ef-contact>.ef-map .elementor-custom-embed,.ef-contact>.ef-map iframe{height:100%!important}
@media (max-width:1024px){.ef-contact>.ef-map .elementor-custom-embed,.ef-contact>.ef-map iframe{height:320px!important}}
/* Consultation: numbered steps as a list */
.ef-steps--list{grid-template-columns:1fr!important;gap:12px}
.ef-steps--list .ef-step{display:grid;grid-template-columns:44px 1fr;column-gap:16px;padding:20px 24px}
.ef-steps--list .ef-step__n{grid-row:span 2;margin:0}
.ef-steps--list .ef-step__title{font-size:18px;margin:0 0 4px}
.ef-callout{padding:16px 20px;border-radius:var(--ef-r-md);background:var(--ef-navy-50);font-weight:600;color:var(--ef-ink)}
/* Careers */
.ef-job{background:#fff;border:1px solid var(--ef-line);border-top:4px solid var(--ef-red);border-radius:var(--ef-r-lg);box-shadow:var(--ef-shadow-1)}
/* Thank-you */
.ef-thanks{text-align:center}
.ef-thanks>.elementor-widget{width:100%}
.ef-thanks__icon{display:inline-grid;place-items:center;width:96px;height:96px;border-radius:50%;background:#DCFCE7;color:var(--ef-success)}

/* ---------- 404 ---------- */
.ef-404{text-align:center}
.ef-404__code .elementor-heading-title{font-size:120px!important;line-height:1}

/* ---------- Footer ---------- */
.ef-footer{background:var(--ef-navy-900);color:var(--ef-navy-200)}
.ef-footer a{color:var(--ef-navy-200)}
.ef-footer a:hover{color:#fff}
.ef-footer .elementor-widget-text-editor{color:var(--ef-navy-200)!important}
.ef-footer__brand{flex:1.4 1 0!important;max-width:340px}
.ef-footer__col{flex:1 1 0!important;min-width:160px}
.ef-footer__logo{text-align:start!important}
.ef-footer__tag{font-weight:600;color:#fff!important}
.ef-social{display:flex;flex-wrap:wrap;gap:8px}
.ef-social a{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,.08);color:#fff!important;transition:background .15s}
.ef-social a:hover{background:var(--ef-red)}
.ef-social svg{display:block;width:18px;height:18px}
.ef-footer__links .elementor-icon-list-item{padding-block:4px!important}
.ef-footer__links .elementor-icon-list-text{color:var(--ef-navy-200)!important;font-size:15px;transition:color .15s}
.ef-footer__links .elementor-icon-list-item:hover .elementor-icon-list-text{color:#fff!important}
.ef-footer__nap p{margin:0 0 .6em}
.ef-footer__bottom{border-top:1px solid rgba(175,192,217,.18)}
.ef-footer__legal{max-width:880px;opacity:.85}
.ef-footer__copy p,.ef-footer__credit p{margin:0 0 .3em}
@media (max-width:1024px){.ef-footer__brand{flex-basis:100%!important;max-width:none}}

/* ---------- Mobile bottom bar (call / free consultation) ---------- */
.ef-bottom-bar-w{display:none}
@media (max-width:767px){
	.ef-bottom-bar-w{display:block;position:fixed!important;inset-inline:0;bottom:0;z-index:99;margin:0!important}
	.ef-bottom-bar{display:grid;grid-template-columns:1fr 1.4fr;gap:8px;padding:8px 12px calc(8px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--ef-line);box-shadow:0 -6px 20px rgba(10,29,55,.08)}
	.ef-bottom-bar a{display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;border-radius:var(--ef-r-md);font-weight:700;font-size:15px}
	.ef-bottom-bar__call{border:1.5px solid var(--ef-navy-900);color:var(--ef-navy-900)!important}
	.ef-bottom-bar__cta{background:var(--ef-red-700);color:#fff!important}
	body{padding-bottom:72px}
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion:reduce){
	*,*::before,*::after{transition:none!important;animation:none!important}
}
