/**
 * Hello Child — Home page styles (front page only). Native CSS: no Elementor selectors.
 * Markup: front-page.php + template-parts/home/*.php · Behaviour: assets/js/home.js
 *
 * Sections (in page order): wrapper · buttons · hero · features · categories · colours · about ·
 * clients · project gallery · projects button · articles + card · SEO text · carousel
 * Breakpoints (same as Elementor): tablet <= 1024px, mobile <= 767px.
 * Tune the spacing of every section with --pb-pad on .pb-home.
 */

/* ===== Wrapper ===== */
.pb-home{
	--pb-primary:#2E3192;
	--pb-secondary:#EC1B23;
	--pb-accent:#FFC20E;
	--pb-text:#000;
	--pb-navy:#11145E;
	--pb-white:#fff;
	--pb-font:"Vazirmatn","vazir",Sans-serif;
	--pb-pad:10px;
	display:flex;
	flex-direction:column;
	gap:20px;
	padding:10px;
	background:#E2EAF7;
	font-family:var(--pb-font);
	color:var(--pb-text);
}
.pb-home *,
.pb-home *::before,
.pb-home *::after{box-sizing:border-box}
.pb-home h1,.pb-home h2,.pb-home h3,.pb-home p,.pb-home ul,.pb-home figure{margin:0;padding:0}
.pb-home ul{list-style:none}
:where(.pb-home) img{display:block;max-width:100%;height:auto}
:where(.pb-home) :is(h2,h3){color:var(--pb-primary)}

/* every section: 1200px centred, full width on small screens */
.pb-sec{
	width:min(1200px,100%);
	align-self:center;
	padding:var(--pb-pad);
	background:#fff;
}

/* ===== Buttons ===== */
.pb-btn{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	gap:6px;
	padding:12px 24px;
	border:0;
	border-radius:10px;
	background:var(--pb-primary);
	color:#fff;
	font-family:var(--pb-font);
	font-size:15px;
	line-height:1;
	text-decoration:none;
	cursor:pointer;
	transition:background-color .2s ease,color .2s ease;
}
.pb-btn__icon{display:inline-flex}
.pb-btn__icon svg{width:1em;height:1em}
.pb-btn--icon-left{flex-direction:row-reverse}   /* icon on the left of the text (page is RTL) */
.pb-btn:focus-visible{outline:2px solid var(--pb-accent);outline-offset:2px}

.pb-btn--yellow{background:#fbc314;color:#A07700;font-size:17px;font-weight:600}
.pb-btn--yellow:hover,.pb-btn--yellow:focus{background:#FFBE00;color:#fff}
.pb-btn--lilac{background:#CACAF1;color:var(--pb-primary);font-size:17px;font-weight:600}
.pb-btn--lilac:hover,.pb-btn--lilac:focus{background:#2E3192;color:#fff}
.pb-btn--ghost{background:transparent;color:var(--pb-navy);font-weight:900}
.pb-btn--ghost:hover,.pb-btn--ghost:focus{background:#E99501}
.pb-btn--blue{background:#064B86;font-size:13px;font-weight:900;border-radius:8px;padding:20px 11px;gap:8px}
.pb-btn--blue:hover,.pb-btn--blue:focus{background:#ED1C24}
.pb-btn--gold{background:var(--pb-accent);color:var(--pb-navy);font-size:13px;font-weight:900;padding:20px 11px;gap:8px}
.pb-btn--gold:hover,.pb-btn--gold:focus{background:#E99501}
.pb-btn--navy{background:var(--pb-navy);font-weight:500;border-radius:12px;padding:11px 24px;gap:11px}
.pb-btn--navy:hover,.pb-btn--navy:focus{background:var(--pb-secondary)}
.pb-btn--primary{background:var(--pb-primary);font-weight:700}

/* ===== Hero ===== */
.pb-hero{
	position:relative;
	isolation:isolate;
	overflow:hidden;
	display:flex;
	flex-direction:column;
	justify-content:center;
	align-items:center;
	min-height:500px;
	margin-bottom:-20px;
	border-radius:30px 30px 0 0;
	background:var(--pb-navy);
}
.pb-hero__bg,
.pb-hero__bg img{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover;object-position:center}
.pb-hero::before{
	content:"";
	position:absolute;
	inset:0;
	z-index:-1;
	background-image:linear-gradient(90deg,var(--pb-navy) 25%,#4446966B 50%);
}
.pb-hero__text,
.pb-hero__badge{
	display:flex;
	flex-direction:column;
	align-items:flex-end;
	gap:20px;
	width:100%;
}
.pb-hero__tag{
	display:inline-flex;
	align-items:center;
	padding:5px;
	border-radius:10px;
	background:var(--pb-secondary);
	color:#fff;
	font-weight:400;
}
.pb-hero__tag-icon{display:inline-flex;color:#FEFEFF}
.pb-hero__tag-icon svg{width:20px;height:20px}
.pb-hero__title{
	display:flex;
	flex-direction:column;
	align-items:flex-end;
	gap:20px;
	text-align:justify;
	font-weight:900;
	line-height:1.2;
}
.pb-hero__t1{font-size:24px;color:#fff}
.pb-hero__t2{font-size:36px;color:var(--pb-accent)}
.pb-hero__lead{font-size:14px;font-weight:900;color:#fff;text-align:start}
.pb-hero__badge img{width:clamp(90px,15%,190px);border-radius:166px}
.pb-hero__actions{
	display:flex;
	flex-direction:row-reverse;
	justify-content:center;
	gap:0 42px;
	width:100%;
}

/* ===== Features (6 icon boxes) ===== */
.pb-features{
	display:flex;
	border:1px solid #E6F0F8;
	border-radius:0 0 30px 30px;
}
.pb-feature{
	flex:1 1 0;
	min-width:0;
	display:flex;
	flex-direction:column;
	align-items:center;
	gap:0;
	padding:10px;
	text-align:center;
}
.pb-feature:nth-child(1),.pb-feature:nth-child(2),.pb-feature:nth-child(4),.pb-feature:nth-child(5){border-left:1px solid #DDEAF5}
.pb-feature__icon{display:inline-flex;margin-bottom:15px;color:var(--pb-primary)}
.pb-feature__icon svg{width:26px;height:26px}
.pb-feature__title{margin-bottom:0;font-size:14px;font-weight:600;color:#003B78}
.pb-feature__text{font-size:12px;font-weight:400;color:#6B88A5}

/* ===== Product categories (6 cards: WooCommerce picture + name) ===== */
.pb-categories{display:flex;flex-direction:column;gap:20px}
.pb-categories__head{display:flex;justify-content:space-between;align-items:flex-start}
.pb-categories__title{font-size:24px;font-weight:600}
.pb-categories__grid{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:stretch;gap:9px}
.pb-categories__item{display:flex;width:16%}
.pb-ccard{
	display:flex;
	flex:1;
	flex-direction:column;
	gap:8px;
	padding:7px 7px 10px;
	border:1px solid #DCEAF7;
	border-radius:9px;
	background:#fff;
	color:inherit;
	text-decoration:none;
	transition:border-color .2s ease,transform .2s ease,box-shadow .2s ease;
}
.pb-ccard:hover,.pb-ccard:focus-visible{border-color:var(--pb-primary);box-shadow:0 6px 16px rgba(46,49,146,.12);transform:translateY(-2px)}
.pb-ccard__img{display:block;aspect-ratio:var(--pb-cat-ratio,1/1);overflow:hidden;border-radius:7px;background:#E6F0F8}
.pb-ccard__img img{width:100%;height:100%;object-fit:cover}
.pb-ccard__title{font-size:12px;font-weight:600;line-height:1.6;text-align:center}

/* ===== Colour chart ===== */
.pb-colors{
	display:flex;
	flex-direction:column;
	align-items:center;
	min-height:145px;
	padding:12px 8px;
	border-radius:10px;
	background:#F2F8FC;
}
.pb-colors__head{display:flex;flex-direction:column;align-items:flex-start;gap:14px;width:100%}
.pb-colors__title{font-size:21px;font-weight:800;color:#063B6D}
.pb-colors__text{font-size:11px;font-weight:400;color:#71859A}
.pb-colors__row{display:flex;justify-content:space-between;align-items:center;width:100%}
.pb-colors__list{display:flex;justify-content:flex-start;align-items:center;gap:8px;width:65%}
.pb-swatch{display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:8px;width:70px;text-align:center}
.pb-swatch img{width:38px;height:38px;border-radius:50px;object-fit:cover;box-shadow:0 2px 8px 1px rgba(0,0,0,.15)}
.pb-swatch span{font-size:9px;font-weight:600;color:#174A73}
.pb-colors__actions{display:flex;justify-content:space-around;align-items:center;width:35%}

/* =====================================================================
   6) About + numbers + video
   ===================================================================== */
.pb-about{
	display:flex;
	flex-direction:row;
	min-height:145px;
	padding:12px 8px;
	overflow:hidden;
	background-color:#F2F8FC;
	border-radius:14px;
}
.pb-about__body{
	display:flex;
	flex-direction:column;
	justify-content:center;
	align-self:flex-start;
	width:60%;
	padding:10px;
}
.pb-about__title{
	margin-bottom:10px;
	font-family:var(--pb-font);
	font-size:28px;
	font-weight:800;
	line-height:1.3;
	text-align:start;
	color:#063B6D;
}
.pb-about__text{
	padding:10px;
	border-radius:10px;
	font-size:14px;
	font-weight:400;
	text-align:start;
	color:var(--pb-navy);
}
.pb-about__stats{
	display:flex;
	flex-direction:row;
	align-items:center;
	gap:12px;
	width:100%;
	padding:10px;
}
.pb-stat{
	flex:0 1 25%;
	min-width:0;
	display:flex;
	flex-direction:column;
	align-items:center;
	gap:4px;
	padding:10px 8px;
	text-align:center;
}
.pb-stat__icon{
	display:inline-flex;
	padding:12px;
	border-radius:50%;
	background-color:var(--pb-primary);
	line-height:0;
	color:#fff;
}
.pb-stat__icon svg{
	width:24px;
	height:24px;
}
.pb-stat__value{
	font-size:13px;
	font-weight:800;
	line-height:1.4;
	color:var(--pb-navy);
}
.pb-stat__label{
	font-size:11px;
	font-weight:400;
	line-height:1.4;
	color:var(--pb-navy);
}
.pb-about__actions{
	display:flex;
	justify-content:flex-end;
	width:100%;
	padding:10px;
}
.pb-about__media{
	display:flex;
	justify-content:space-around;
	align-items:center;
	width:40%;
	padding:10px;
	border:2px solid var(--pb-accent);
	border-radius:45px;
}
.pb-video{
	position:relative;
	width:90%;
	aspect-ratio:7 / 3;
	overflow:hidden;
	border-radius:32px;
	background-color:var(--pb-navy);
}
.pb-video__poster{
	position:absolute;
	inset:0;
	width:100%;
	height:100%;
	object-fit:cover;
}
.pb-home .pb-video__play{
	position:absolute;
	inset:0;
	width:84px;
	height:84px;
	margin:auto;
	display:flex;
	align-items:center;
	justify-content:center;
	border-radius:50%;
	background-color:rgba(0,0,0,.55);
	color:#FFFFFF;
	transition:transform .2s ease,background-color .2s ease;
}
.pb-home .pb-video__play:hover,
.pb-home .pb-video__play:focus{
	background-color:var(--pb-secondary);
	color:#FFFFFF;
	transform:scale(1.06);
}
.pb-video__play .pb-i{
	width:34px;
	height:34px;
	margin-inline-start:4px;
}
.pb-video video{
	position:absolute;
	inset:0;
	width:100%;
	height:100%;
	object-fit:contain;
	background-color:#000;
}
.pb-video iframe{
	position:absolute;
	inset:0;
	width:100%;
	height:100%;
	border:0;
}
.pb-video.is-playing .pb-video__poster,
.pb-video.is-playing .pb-video__play{
	display:none;
}
.pb-video__play{appearance:none;border:0;padding:0;cursor:pointer}

/* ===== Clients carousel ===== */
.pb-clients{display:flex;flex-direction:column;gap:10px;background:#FDFDFD}
.pb-clients__title{font-size:20px;font-weight:500;text-align:center}
.pb-clients .pb-car{--pb-pv:8;--pb-gap:10px}
.pb-clients .pb-car__btn{width:30px;height:30px;color:#00499E}
.pb-clients .pb-car__btn svg{width:100%;height:100%}
.pb-clients .pb-car__dots{margin-top:10px}
.pb-clients .pb-car__dot{width:8px;height:8px;background:#1A0089}
.pb-clients .pb-car__dot.is-active{background:#FF0000}

/* =====================================================================
   9) Projects gallery (two rows, the wide picture swaps sides)
   ===================================================================== */
.pb-gallery-a{
	display:flex;
	flex-direction:row;
	align-items:flex-start;
	gap:15px;
	background-color:#FFFFFF;
}
.pb-gallery-a + .pb-gallery-a{
	align-items:flex-end;
}
.pb-shot{
	display:flex;
	flex-direction:column;
	min-width:0;
	padding:10px;
	text-align:center;
}
.pb-shot--wide{
	width:70%;
}
.pb-shot--narrow{
	width:29.333%;
}
.pb-shot img{
	width:100%;
	object-fit:cover;
}
.pb-shot--wide img{
	height:375px;
	border-radius:15px;
}
.pb-shot--narrow img{
	height:350px;
	border-radius:20px;
}
.pb-shot figcaption{
	color:#000000;
	font-weight:500;
	text-align:center;
}
.pb-shot--wide figcaption{
	margin-top:12px;
	font-size:19px;
	line-height:1.4;
}
.pb-shot--narrow figcaption{
	margin-top:21px;
	font-size:18px;
	line-height:27px;
	letter-spacing:.2px;
}

/* ===== Projects button ===== */
.pb-projects-btn{display:flex;justify-content:center;align-items:center}
.pb-projects-btn .pb-btn{width:184px;max-width:100%;box-shadow:0 0 10px rgba(0,0,0,.5);gap:8px}

/* ===== Articles slider + card ===== */
.pb-articles{display:flex;flex-direction:column;justify-content:center;align-items:center}
.pb-articles__title{margin-bottom:30px;font-size:24px;font-weight:700;color:#0e005c}
.pb-articles__line{
	display:block;
	width:181px;
	height:5px;
	margin:14px auto 10px;
	border-radius:10px;
	background:linear-gradient(to right,#263A9B 0 30%,#fff 30% 35%,#E51F2A 35% 65%,#fff 65% 70%,#F9C414 70% 100%);
}
.pb-articles .pb-car{--pb-pv:4;--pb-gap:0px;width:100%;background:#fff}
.pb-articles .pb-car__btn{width:36px;height:36px;border:1px solid var(--pb-accent);border-radius:20px;background:var(--pb-accent);box-shadow:0 2px 8px rgba(17,20,94,.25);color:var(--pb-primary)}
.pb-articles .pb-car__btn:hover{background:var(--pb-primary);color:var(--pb-accent)}
.pb-articles .pb-car__dots{margin-top:14px}
.pb-articles .pb-car__dot{width:12px;height:12px;background:#C9D3EE}
.pb-articles .pb-car__dot.is-active{background:var(--pb-secondary)}
/* Card = loop template 8730: image, title, divider, info row (date + comments). Spacing: --pb-card-pad / --pb-card-gap */
.pb-card{
	position:relative;
	display:flex;
	flex-direction:column;
	gap:var(--pb-card-gap,20px);
	height:100%;
	padding:var(--pb-card-pad,10px);
	overflow:hidden;
	border:1px solid #E6F0F8;
	border-radius:20px;
	background:#fff;
	transition:border-color .25s ease;
}
.pb-card::before{
	content:"";
	position:absolute;
	top:0;
	left:0;
	right:0;
	z-index:2;
	height:4px;
	background:linear-gradient(to right,#263A9B 0 30%,#fff 30% 35%,#E51F2A 35% 65%,#fff 65% 70%,#F9C414 70% 100%);
}
.pb-card:hover{border-color:var(--pb-secondary)}
.pb-card__media{display:block;overflow:hidden}
.pb-card__media img{width:100%;aspect-ratio:3/2;border-radius:0;object-fit:cover;transition:transform .4s ease}
.pb-card:hover .pb-card__media img{transform:scale(1.03)}
.pb-card__title{flex-grow:1;font-size:18px;font-weight:500;line-height:29px;text-align:start}
.pb-card__title a{
	display:-webkit-box;
	-webkit-box-orient:vertical;
	-webkit-line-clamp:3;
	overflow:hidden;
	color:var(--pb-primary);
	text-decoration:none;
	transition:color .2s ease;
}
.pb-card:hover .pb-card__title a{color:var(--pb-secondary)}
.pb-card__sep{width:100%;margin:0;border:0;border-top:1px solid #cdcdcd}
.pb-card__meta{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:0 30px;font-size:14px;font-weight:400;color:#6B88A5}
.pb-card__meta span{display:inline-flex;align-items:center;gap:6px}
.pb-card__meta svg{color:var(--pb-primary)}

/* ===== SEO text (clamped, "show more") ===== */
.pb-seo{display:flex;flex-direction:column;align-items:center;gap:10px}
.pb-seo__body{
	position:relative;
	width:100%;
	max-height:150px;
	overflow:hidden;
	font-size:15px;
	font-weight:400;
	line-height:26px;
	text-align:center;
	-webkit-mask-image:linear-gradient(to bottom,#000 55%,transparent);
	mask-image:linear-gradient(to bottom,#000 55%,transparent);
	transition:max-height .5s ease;
}
.pb-seo.is-open .pb-seo__body{-webkit-mask-image:none;mask-image:none}
.pb-seo__body p{margin:0 0 1px}
.pb-seo__body h4{margin:0 0 6px;font-size:inherit;font-weight:700;color:var(--pb-primary)}
.pb-seo__body a{color:var(--pb-primary)}
.pb-seo__btn{font-size:14px;font-weight:500;gap:15px}
.pb-seo__btn .pb-btn__icon{transition:transform .3s ease}
.pb-seo.is-open .pb-seo__btn .pb-btn__icon{transform:rotate(180deg)}

/* ===== Carousel (clients + articles): CSS scroll-snap, buttons and dots added by home.js ===== */
.pb-car{position:relative;--pb-pv:4;--pb-gap:0px}
.pb-car__track{
	display:flex;
	gap:var(--pb-gap);
	overflow-x:auto;
	scroll-snap-type:x mandatory;
	scrollbar-width:none;
	-webkit-overflow-scrolling:touch;
}
.pb-car__track::-webkit-scrollbar{display:none}
.pb-car__slide{
	flex:0 0 calc((100% - var(--pb-gap) * (var(--pb-pv) - 1)) / var(--pb-pv));
	min-width:0;
	scroll-snap-align:start;
}
.pb-car__btn{
	position:absolute;
	top:50%;
	z-index:2;
	display:flex;
	align-items:center;
	justify-content:center;
	padding:0;
	border:0;
	background:none;
	transform:translateY(-50%);
	cursor:pointer;
	transition:background-color .2s ease,color .2s ease;
}
.pb-car__btn--left{left:0}
.pb-car__btn--right{right:0}
.pb-car__btn svg{width:60%;height:60%}
.pb-car__btn:focus-visible{outline:2px solid var(--pb-accent);outline-offset:2px}
.pb-car.is-static .pb-car__btn,
.pb-car.is-static .pb-car__dots{display:none}
.pb-car__dots{display:flex;justify-content:center;gap:6px}
.pb-car__dot{padding:0;border:0;border-radius:50%;cursor:pointer}

/* ===== Tablet ===== */
@media (max-width:1024px){
	.pb-clients .pb-car{--pb-pv:6}
	.pb-articles .pb-car{--pb-pv:2}
	.pb-projects-btn .pb-btn{width:145px}
}
/* gallery row 2 stacks on tablet and phone */
@media (max-width:1024px){
	.pb-gallery-a + .pb-gallery-a{flex-direction:column;align-items:stretch}
	.pb-gallery-a + .pb-gallery-a .pb-shot--wide,
	.pb-gallery-a + .pb-gallery-a .pb-shot--narrow{width:100%}
}

/* ===== Mobile ===== */
@media (max-width:767px){
	.pb-home{--pb-pad:0px}
	.pb-sec{width:100%}

	.pb-hero{
		min-height:150px;
		margin-bottom:0;
		padding:10px;
		border-radius:20px;
	}
	.pb-hero__bg img{object-position:72% center}
	.pb-hero::before{background-image:linear-gradient(180deg,rgba(17,20,94,.88) 0%,rgba(17,20,94,.78) 38%,rgba(17,20,94,.25) 55%,rgba(17,20,94,.08) 100%)}
	.pb-hero__text,.pb-hero__badge{gap:20px 25px}
	.pb-hero__tag{padding:2px;font-size:13px}
	.pb-hero__tag-icon svg{width:16px;height:16px}
	.pb-hero__title{text-align:end}
	.pb-hero__t1{font-size:16px}
	.pb-hero__t2{font-size:20px}
	.pb-hero__lead{margin-bottom:20px;font-size:10px;font-weight:700;text-align:center}
	.pb-hero__actions{justify-content:space-evenly;gap:0;border-radius:10px}

	.pb-features{flex-wrap:wrap;border:0;border-radius:20px}
	.pb-feature{flex:0 0 33.3%;border:0!important;border-radius:10px}

	.pb-categories{gap:0;padding:0;border-radius:20px}
	.pb-categories__head{width:100%;align-items:center;padding:0 10px;border-radius:0}
	.pb-categories__title{font-size:18px}
	.pb-categories__head .pb-btn{width:auto;font-size:12px;line-height:.9em;letter-spacing:.2px;word-spacing:.1em;border-radius:0}
	.pb-categories__grid{width:100%;justify-content:space-between;align-items:stretch;gap:10px 8px;padding:10px}
	.pb-categories__item{width:calc(50% - 4px)}
	.pb-ccard__title{font-size:13px}

	.pb-colors{padding:18px 12px;border-radius:24px}
	.pb-colors__title{font-size:17px}
	.pb-colors__row{flex-direction:column;align-items:center}
	.pb-colors__list{flex-wrap:wrap;gap:0;width:100%}
	.pb-swatch{width:20%}
	.pb-swatch img{width:36px;height:36px}
	.pb-colors__actions{justify-content:space-around;align-items:flex-start;width:100%}
	.pb-colors .pb-btn{padding:10px 11px}
	.pb-btn--gold{line-height:.9em;letter-spacing:.2px;word-spacing:.1em}


	.pb-clients{border-radius:20px}
	.pb-clients .pb-car{--pb-pv:3}
	.pb-clients .pb-car__btn{width:20px;height:20px}
	.pb-clients .pb-car__dot{width:6px;height:6px}

	/* about */
	.pb-about{
		flex-direction:column;
		justify-content:flex-start;
		padding:18px 12px;
		border-radius:24px;
	}
	.pb-about__body{
		width:100%;
	}
	.pb-about__title{
		font-size:20px;
	}
	.pb-about__text{
		font-size:13px;
	}
	.pb-about__stats{
		flex-wrap:wrap;
		justify-content:space-around;
		align-items:flex-start;
		gap:0;
	}
	.pb-stat{
		flex:0 0 48%;
	}
	.pb-stat__icon svg{
		width:22px;
		height:22px;
	}
	.pb-about__actions{
		justify-content:flex-end;
	}
	.pb-home .pb-btn--navy{
		font-size:13px;
	}
	.pb-about__media{
		width:100%;
		border-radius:20px;
	}
	.pb-video{
		border-radius:14px;
	}


	/* gallery */
	.pb-gallery-a{
		flex-direction:column;
		align-items:stretch;
		gap:0;
	}
	.pb-gallery-a .pb-shot--wide,
	.pb-gallery-a .pb-shot--narrow{
		width:100%;
	}
	.pb-shot--wide img{
		height:151px;
	}
	.pb-shot--narrow img{
		height:350px;
	}


	.pb-projects-btn{justify-content:space-around;border-radius:24px}
	.pb-projects-btn .pb-btn{width:100%;font-size:14px}

	.pb-articles{border-radius:20px}
	.pb-articles__line{width:145px;height:4px;margin:12px auto 10px}
	.pb-articles .pb-car{--pb-pv:1}

	.pb-seo{border-radius:20px}
	.pb-seo__body{font-size:14px;line-height:1.2em;text-align:justify}
}

@media (prefers-reduced-motion:reduce){
	.pb-seo__body,.pb-card__media img,.pb-card,.pb-btn,.pb-video__icon{transition:none}
}
