/* =============================================================================
   Services page — Hero Banner

   @package yendigital
============================================================================= */
.hero {
	position: relative;
	overflow: hidden;                 /* clips the image's slide-in animation */
	background: var( --yd-primary );  /* solid brand red — no gradient */
	font-family: var( --yd-font );
}

.hero__inner {
	display: grid;
	grid-template-columns: minmax( 0, 50% ) minmax( 0, 50% );
	align-items: center;
	min-height: 640px;
}

/* --- Left: content --- */
.hero__content {
	padding: clamp( 48px, 7vw, 96px ) 32px clamp( 48px, 7vw, 96px )
		max( 40px, calc( ( 100% - var( --yd-container, 1600px ) ) / 2 + 40px ) );
}
.hero__title {
	margin: 0 0 22px;
	max-width: 620px;
	color: #fff;
	font-family: var( --yd-font );
	font-weight: 800;
	font-size: clamp( 28px, 5.4vw, 58px );
	line-height: 1.04;
	letter-spacing: -1px;
}
.hero__desc {
	max-width: 460px;
	margin: 0 0 40px;
}
.hero__desc p {
	margin: 0 0 18px;
	color: rgba( 255, 255, 255, 0.9 );
	font-size: 18px;
	line-height: 1.6;
}
.hero__desc p:last-child {
	margin-bottom: 0;
}

.hero__cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 16px 32px;
	border-radius: 999px;
	background: var( --yd-black );
	color: #fff;
	font-family: var( --yd-font );
	font-weight: 600;
	font-size: 15px;
	letter-spacing: 0.02em;
	line-height: 1;
	text-decoration: none;
	transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}
.hero__cta:hover {
	background: #fff;
	color: var( --yd-black );
	transform: translateY( -2px );
}
.hero__cta-arrow {
	font-size: 18px;
	line-height: 1;
	transition: transform 0.25s ease;
}
.hero__cta:hover .hero__cta-arrow {
	transform: translateX( 4px );
}

/* --- Right: hero image --- */
.hero__image {
	position: relative;
	align-self: stretch;
	height: 100%;
	min-height: 420px;
	    transition: background .3s, border .3s, border-radius .3s, box-shadow .3s, transform var(--e-transform-transition-duration, .4s);
}
.hero__image-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;  
	object-position: center center;
	border-radius: 0px 0px 0px 110px;

	/* Premium slide-in from the right on page load. Left content is never
	   touched/delayed — only the image animates. Slower, softer ease-out (the
	   same curve used for the About page's tagline fade) with a wider starting
	   offset so the image genuinely reads as sliding in from just off-screen,
	   settling with no bounce/abrupt stop. Runs once on load, not on scroll. */
	animation: hero-image-in 1.3s cubic-bezier( 0.22, 1, 0.36, 1 ) both;
}
@keyframes hero-image-in {
	from {
		opacity: 0;
		transform: translateX( 90px );
	}
	to {
		opacity: 1;
		transform: translateX( 0 );
	}
}
@media ( prefers-reduced-motion: reduce ) {
	.hero__image-img {
		animation: none;
	}
}

/* -----------------------------------------------------------------------------
   Responsive
----------------------------------------------------------------------------- */
@media ( max-width: 1100px ) {
	.hero__inner {
		grid-template-columns: 1fr;
		min-height: auto;
	}
	.hero__content {
		padding: 56px 32px 40px;         /* stacked: equal gutters both sides */
	}
	.hero__image {
		height: 340px;
		min-height: 0;
	}
	.hero__image-img {
		border-radius: 0px 0px 0px 110px;
	}
}
@media ( max-width: 560px ) {
	.hero__content {
		padding: 40px 22px 32px;         /* matches the site's mobile gutter */
	}
	.hero__title {
		font-size: clamp( 32px, 9vw, 46px );
	}
	.hero__desc {
		max-width: 100%;
		margin-bottom: 32px;
	}
	.hero__image {
		height: 260px;
	}
	.hero__image-img {
		border-radius: 0px 0px 0px 110px;
	}
}

/* ==========Services page — Services Cards========================== */
.services {
	background: #ffedec;                 /* page/section background stays white */
	padding: 68px 0;
	font-family: var( --yd-font );
}
.services__panel {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.service-card {
	display: flex;
	align-items: stretch;
	gap: 48px;
	min-height: clamp( 420px, 34vw, 520px );  /* keeps every card the same height */
	padding: clamp( 32px, 3.2vw, 56px );
	background: #fff;
	border-radius: 40px 40px 40px 40px;
    box-shadow: 0px 4px 44px 0px rgba(0, 0, 0, 0.1);
}
/* Fade-up reveal (added only when JS/motion is active — see
   js/services-cards.js). No-JS / reduced-motion: cards render fully visible. */
.service-card.is-anim {
	opacity: 0;
	transform: translateY( 46px );
	transition: opacity 1s cubic-bezier( 0.22, 1, 0.36, 1 ), transform 1s cubic-bezier( 0.22, 1, 0.36, 1 );
}
.service-card.is-anim.is-visible {
	opacity: 1;
	transform: translateY( 0 );
}

.service-card__content {
	display: flex;
	flex-direction: column;
	flex: 1 1 63%;
	min-width: 0;
}
.service-card__icon {
	display: inline-flex;
	width: 40px;
	height: 40px;
	margin-bottom: 28px;
}
.service-card__icon svg {
	width: 100%;
	height: 100%;
}
.service-card__title {
	margin: 0 0 18px;
	color: var( --yd-heading );
	font-family: var( --yd-font );
	font-weight: 800;
	font-size: clamp( 30px, 3.2vw, 46px );
	line-height: 1.08;
	letter-spacing: -0.5px;
}
.service-card__text {
	margin: 0 0 22px;
	max-width: 46em;
	color: var( --yd-body );
	font-size: 18px;
	line-height: 1.6;
}
.service-card__list {
	display: block;
	margin: 0 0 32px;
	padding: 0;
	max-width: 46em;
	list-style: none;
	color: var( --yd-body );
	font-size: 18px;
	line-height: 1.6;
}
.service-card__list li {
	display: inline;
}
.service-card__list li:not( :last-child )::after {
	content: " | ";
}
.service-card__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: flex-start;
	margin-top: auto;
	padding: 16px 36px;
	border-radius: 999px;
	background: var( --yd-black );
	color: #fff;
	font-family: var( --yd-font );
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
	transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}
.service-card__cta:hover {
	background: var(--yd-primary);
	color: #fff;
	transform: translateY( -2px );
	box-shadow: 0 0 0 1px var( --yd-line ) inset;
}

.service-card__image {
	position: relative;
	flex: 0 0 40%;
	max-width: 40%;
	min-height: 0;
	overflow: hidden;                  /* clip to the rounded corner */
}
.service-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: fill;
}

@media ( prefers-reduced-motion: reduce ) {
	.service-card.is-anim {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* -----------------------------------------------------------------------------
   Responsive
----------------------------------------------------------------------------- */
@media ( max-width: 1100px ) {
	.service-card {
		flex-direction: column;
		min-height: 0;
		gap: 28px;
	}
	.service-card__image {
		flex-basis: auto;
		max-width: 100%;
		height: 280px;
		order: 2;                     /* content stays first, image second */
	}
	.service-card__content {
		flex-basis: auto;
		order: 1;
	}
}
@media ( max-width: 560px ) {
	.services {
		padding: 48px 0;
	}
	.services__panel {
		padding: 14px;
		border-radius: 28px;
	}
	.service-card {
		padding: 24px;
		border-radius: 22px;
	}
	.service-card__image {
		height: 220px;
	}
	.service-card__image img {
		border-radius: 16px;
	}
}

/*======================================
WHY CHOOSE
======================================*/

.why-choose {
    padding: 120px 0;
    background: #fff;
}

.why-choose .container {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    align-items: center;
    column-gap: 120px;
}


/*=========================
LEFT IMAGE
==========================*/

.why-choose__image {
    position: relative;
	overflow: hidden;
    border-radius: 44px;
}

.why-choose__image img {
    width: 100%;
    height: 1138px;
    display: block;
    object-fit: cover;
    border-radius: 44px;

	transform: scale(1.12) translateY(0);
    will-change: transform;
    transition: transform .08s linear;
}


/*=========================
RIGHT CONTENT
==========================*/

.why-choose__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 88px;
}


/*=========================
ITEM
==========================*/

.why-choose__item {
    display: flex;
    align-items: flex-start;
    gap: 26px;
}
.why-choose__item.is-anim {
    opacity: 0;
    transform: translate3d(100px, 0, 0);
    transition:
        transform 1.35s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 1.35s ease-out;
    will-change: transform, opacity;
}

.why-choose__item.is-visible {
    opacity: 1;
    transform: translate3d(0,0,0);
}


/*=========================
ICON
==========================*/

.why-choose__icon {
    width: 62px;
    height: 62px;
    flex-shrink: 0;
    border-radius: 16px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow:
        0 8px 24px rgba(0,0,0,.08),
        0 2px 8px rgba(0,0,0,.05);
}

.why-choose__icon svg {
	display: block;
	height: 2em;
	position: relative;
	width: 2em;
	object-fit: contain;
}


/*=========================
TEXT
==========================*/

.why-choose__text {
    flex: 1;
}

h3.why-choose__title {
    font-size: clamp(30px, 3.2vw, 46px);
    line-height: 1.08;
    letter-spacing: -0.5px;
}

.why-choose__description {
    margin: 0;
    max-width: 430px;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
}


/*=====================================
TABLET
======================================*/

@media (max-width:1200px){

    .why-choose{
        padding:100px 0;
    }

    .why-choose .container{
        grid-template-columns:1fr;
        row-gap:70px;
    }

    .why-choose__image img{
        height:700px;
    }

    .why-choose__content{
        gap:65px;
    }

}


/*=====================================
MOBILE
======================================*/

@media (max-width:768px){
    .why-choose{
        padding:80px 0;
    }

    .why-choose .container{
        row-gap:50px;
    }

    .why-choose__image img{
        height:460px;
        border-radius:30px;
    }

    .why-choose__item{
        gap:18px;
    }

    .why-choose__icon{
        width:54px;
        height:54px;
        border-radius:14px;
    }

    .why-choose__icon svg{
		display: block;
		height: 2em;
		position: relative;
		width: 2em;
	}

    .why-choose__content{
        gap:50px;
    }

    .why-choose__description{
        max-width:100%;
    }

}
