/* ==========================================================================
   TRINAYA – Home Page Template Styles
   Location: templates/home/home.css
   Sections: templates/home/sections/
   ========================================================================== */

/* Hero Slider
   ========================================================================== */
.hero {
	position: relative;
	height: 100vh;
	min-height: 600px;
	max-height: 900px;
	margin-top: 0;
	overflow: hidden;
}

/* Hero sits behind transparent overlay header (Constructo demo11 style) */
body.has-overlay-header .hero {
	padding-top: 0;
}

.hero__slides {
	position: relative;
	width: 100%;
	height: 100%;
}

.hero__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 1s ease, visibility 1s ease;
}

.hero__slide.is-active {
	opacity: 1;
	visibility: visible;
}

.hero__slide-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	transform: scale(1);
	transition: transform 8s ease;
}

.hero__slide.is-active .hero__slide-bg {
	transform: scale(1.08);
}

.hero__slide-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(0, 51, 112, 0.75) 0%, rgba(0, 68, 148, 0.45) 100%);
}

.hero__slide-content {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	z-index: 2;
}

.hero__text {
	max-width: 650px;
	color: var(--color-white);
}

.hero__text h1 {
	color: var(--color-white);
	font-size: clamp(2rem, 5vw, 3.5rem);
	font-weight: var(--fw-extrabold);
	margin-bottom: var(--space-md);
	line-height: 1.15;
}

.hero__text p {
	font-size: clamp(15px, 2vw, 18px);
	color: rgba(255, 255, 255, 0.85);
	margin-bottom: var(--space-lg);
	line-height: 1.7;
}

.hero__nav {
	position: absolute;
	bottom: 40px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 10px;
	z-index: 3;
}

.hero__dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	border: 2px solid var(--color-white);
	background: transparent;
	cursor: pointer;
	transition: all var(--transition-fast);
	padding: 0;
}

.hero__dot.is-active,
.hero__dot:hover {
	background: var(--color-accent);
	border-color: var(--color-accent);
}

.hero__arrows {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 100%;
	display: flex;
	justify-content: space-between;
	padding: 0 30px;
	z-index: 3;
	pointer-events: none;
}

.hero__arrow {
	width: 50px;
	height: 50px;
	border: 2px solid rgba(255, 255, 255, 0.4);
	background: rgba(0, 0, 0, 0.2);
	color: var(--color-white);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all var(--transition);
	pointer-events: all;
	font-size: 18px;
}

.hero__arrow:hover {
	background: var(--color-accent);
	border-color: var(--color-accent);
}

/* Service Tabs (below hero – Constructo Demo11 style)
   ========================================================================== */
.service-tabs {
	position: relative;
	z-index: 10;
	margin-top: -150px;
	/* background-color: var(--color-white); */
	
}

.service-tabs__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	width: 100%;
}

.service-tab {
	background-color: var(--color-white);
	text-align: center;
}

.service-tab__media {
	position: relative;
}

.service-tab__image {
	position: relative;
	margin: 0;
	height: clamp(220px, 28vw, 340px);
	overflow: hidden;
}

.service-tab__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	transition: transform 0.6s ease;
}

.service-tab:hover .service-tab__image img {
	transform: scale(1.06);
}

.service-tab__icon {
	position: absolute;
	left: 50%;
	bottom: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 80px;
	height: 80px;
	border-radius: 50%;
	background-color: var(--color-accent);
	color: var(--color-black);
	transform: translate(-50%, 50%);
	transition: background-color var(--transition), transform var(--transition);
}

.service-tab:hover .service-tab__icon {
	background-color: var(--color-accent-hover);
	transform: translate(-50%, 50%) scale(1.04);
}

.service-tab__icon svg {
	display: block;
}

.service-tab__footer {
	padding: 52px var(--container-padding) 36px;
	background-color: var(--color-white);
}

.service-tab__title {
	margin: 0;
	font-family: var(--font-heading);
	font-size: clamp(0.75rem, 1.1vw, 0.9rem);
	font-weight: var(--fw-extrabold);
	color: var(--color-text-dark);
	text-transform: uppercase;
	letter-spacing: 0.16em;
	line-height: 1.4;
}

/* Section header block (title + desc above grids)
   ========================================================================== */
.section-header {
	margin-bottom: var(--space-2xl);
}

/* About / Intro Section
   ========================================================================== */
.intro-section {
	padding: var(--space-2xl) 0;
}

.intro-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-xl);
	align-items: center;
}

.intro-content .section-label {
	margin-bottom: var(--space-sm);
}

.intro-content h2 {
	margin-bottom: var(--space-md);
}

.intro-content h4 {
	font-size: clamp(1.1rem, 1.8vw, 1.35rem);
	font-weight: var(--fw-semibold);
	color: var(--color-primary);
	margin-bottom: var(--space-sm);
	line-height: 1.4;
}

.intro-content p {
	font-size: clamp(15px, 1.6vw, 17px);
	line-height: 1.75;
	color: var(--color-text-dark);
}

.intro-image {
	position: relative;
}

.intro-image .image-anime,
.intro-image .reveal {
	aspect-ratio: 4/3;
}

.intro-image .image-anime img,
.intro-image .reveal img {
	aspect-ratio: 4/3;
}

.intro-image__accent {
	position: absolute;
	bottom: -20px;
	right: -20px;
	width: 60%;
	height: 60%;
	border: 4px solid var(--color-accent);
	z-index: -1;
}

/* Featured Work
   ========================================================================== */
.featured-work {
	background: var(--color-bg-light);
}

.featured-work__header {
	text-align: center;
	margin-bottom: var(--space-xl);
}

.featured-work__slider {
	position: relative;
}

.featured-work__viewport {
	overflow: hidden;
}

.featured-work__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 4px;
}

.featured-work__item {
	position: relative;
	aspect-ratio: 1;
	overflow: hidden;
	display: block;
	text-decoration: none;
	color: inherit;
}

.featured-work__cta {
	margin-top: var(--space-lg);
}

/* Slider arrows & dots – mobile only */
.featured-work__arrow,
.featured-work__dots {
	display: none;
}

.featured-work__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	width: 44px;
	height: 44px;
	padding: 0;
	border: none;
	background: rgba(255, 255, 255, 0.95);
	color: var(--color-text-dark);
	line-height: 1;
	cursor: pointer;
	box-shadow: var(--shadow-sm);
	transition: background var(--transition-fast), color var(--transition-fast);
}

.featured-work__arrow svg {
	display: block;
	width: 14px;
	height: 14px;
	flex-shrink: 0;
}

.featured-work__arrow:hover {
	background: var(--color-accent);
	color: var(--color-white);
}

.featured-work__arrow--prev {
	left: 10px;
}

.featured-work__arrow--next {
	right: 10px;
}

.featured-work__dots {
	justify-content: center;
	gap: 8px;
	margin-top: var(--space-md);
	padding: 0 var(--container-padding);
}

.featured-work__dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: var(--color-border);
	cursor: pointer;
	transition: background var(--transition-fast), transform var(--transition-fast);
}

.featured-work__dot.is-active {
	background: var(--color-accent);
	transform: scale(1.15);
}

.featured-work__item .image-anime {
	width: 100%;
	height: 100%;
}

.featured-work__item .image-anime img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.featured-work__overlay {
	position: absolute;
	inset: 0;
	background: rgba(21, 101, 184, 0.85);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity var(--transition);
	padding: 20px;
	text-align: center;
}

.featured-work__item:hover .featured-work__overlay {
	opacity: 1;
}

.featured-work__overlay h4 {
	color: var(--color-white);
	font-size: var(--fs-h5);
	margin-bottom: 8px;
}

.featured-work__overlay span {
	color: var(--color-accent);
	font-size: var(--fs-small);
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

/* Vision Section
   ========================================================================== */
.vision-section {
	position: relative;
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
}

.vision-section::before {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0, 51, 112, 0.88);
}

.vision-section .container {
	position: relative;
	z-index: 1;
}

.vision-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-xl);
	align-items: center;
}

.vision-content {
	color: rgba(255, 255, 255, 0.85);
}

.vision-content .section-label {
	color: var(--color-accent);
}

.vision-content p {
	font-size: clamp(15px, 1.6vw, 17px);
	line-height: 1.75;
	color: rgba(255, 255, 255, 0.92);
}

.vision-content h2 {
	color: var(--color-white);
	margin-bottom: var(--space-md);
}

.vision-image .image-anime,
.vision-image .reveal {
	aspect-ratio: 16/10;
}

.vision-image .image-anime img,
.vision-image .reveal img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Services Grid
   ========================================================================== */
.services-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--space-md);
}

.service-card {
	display: flex;
	flex-direction: column;
	background: var(--color-white);
	border: 1px solid var(--color-border);
	transition: all var(--transition);
	text-decoration: none;
	color: inherit;
	position: relative;
	overflow: hidden;
	cursor: pointer;
}

.service-card:hover {
	border-color: var(--color-primary);
	box-shadow: var(--shadow-md);
	transform: translateY(-6px);
}

.service-card__image-wrapper {
	position: relative;
	overflow: hidden;
	width: 100%;
	aspect-ratio: 16/10;
}

.service-card__image-wrapper figure {
	margin: 0;
	width: 100%;
	height: 100%;
}

.service-card__image-wrapper img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-card__image-wrapper img {
	transform: scale(1.08);
}

.service-card__icon {
	position: absolute;
	bottom: -27px;
	right: 24px;
	z-index: 10;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: var(--color-accent);
	color: var(--color-black);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all var(--transition);
}

.service-card__icon svg {
	width: 24px;
	height: 24px;
	stroke: currentColor;
	transition: transform var(--transition);
}

.service-card:hover .service-card__icon {
	background: var(--color-primary);
	color: var(--color-white);
	transform: scale(1.08);
}

.service-card:hover .service-card__icon svg {
	transform: rotate(15deg);
}

.service-card__content {
	padding: var(--space-md);
	padding-top: var(--space-lg);
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	text-align: left;
}

.service-card h4 {
	margin-bottom: var(--space-xs);
	font-size: clamp(1.1rem, 1.6vw, 1.35rem);
	font-weight: var(--fw-bold);
	line-height: 1.35;
	color: var(--color-text-dark);
	transition: color var(--transition-fast);
}

.service-card:hover h4 {
	color: var(--color-primary);
}

.service-card p {
	font-size: clamp(14px, 1.4vw, 15px);
	line-height: 1.7;
	color: var(--color-text);
	margin-bottom: 0;
	flex-grow: 1;
}

/* CTA Banner
   ========================================================================== */
.cta-banner {
	position: relative;
	background-size: cover;
	background-position: center;
	padding: var(--space-3xl) 0;
	text-align: center;
}

.cta-banner::before {
	content: '';
	position: absolute;
	inset: 0;
	background: #06458f80;
}

.cta-banner .container {
	position: relative;
	z-index: 1;
}

.cta-banner h2 {
	color: var(--color-white);
	font-size: clamp(1.5rem, 3vw, 2.25rem);
	margin-bottom: var(--space-sm);
}

.cta-banner h3 {
	color: var(--color-accent);
	font-size: clamp(1.25rem, 2.5vw, 1.75rem);
	font-weight: var(--fw-semibold);
	margin-bottom: var(--space-lg);
}

/* Stats Counter
   ========================================================================== */
.stats-section {
	position: relative;
	padding: var(--space-xl) 0;
	overflow: hidden;
	background: linear-gradient(
		135deg,
		#0a2540 0%,
		#1565b8 42%,
		#0c3a6e 72%,
		#081e35 100%
	)
}

.stats-section::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(
		90deg,
		transparent,
		var(--color-accent) 20%,
		#ffd166 50%,
		var(--color-accent) 80%,
		transparent
	);
}

.stats-section::after {
	content: '';
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 55% 90% at 20% 50%, rgba(245, 166, 35, 0.14) 0%, transparent 55%),
		radial-gradient(ellipse 55% 90% at 80% 50%, rgba(255, 209, 102, 0.1) 0%, transparent 55%);
	pointer-events: none;
}

.stats-section .container {
	position: relative;
	z-index: 1;
}

.stats-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--space-md);
	text-align: center;
}

.stat-item {
	position: relative;
	padding: var(--space-sm) var(--space-xs);
}

.stat-item:not(:last-child)::after {
	content: '';
	position: absolute;
	top: 15%;
	right: 0;
	width: 1px;
	height: 70%;
	background: linear-gradient(
		180deg,
		transparent,
		rgba(245, 166, 35, 0.35) 50%,
		transparent
	);
}

.stat-item h3 {
	color: var(--color-accent);
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: var(--fw-extrabold);
	margin-bottom: 8px;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.stat-item p {
	color: rgba(255, 255, 255, 0.9);
	font-family: var(--font-heading);
	font-size: var(--fs-small);
	font-weight: var(--fw-semibold);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin: 0;
}

/* Recent Blogs
   ========================================================================== */
.home-blogs__cta {
	margin-top: var(--space-xl);
}

.news-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--space-md);
}

.news-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--color-white);
	border: 1px solid var(--color-border);
	overflow: hidden;
	transition: box-shadow var(--transition);
}

.news-card:hover {
	box-shadow: var(--shadow-md);
}

.news-card__image {
	aspect-ratio: 16/10;
	overflow: hidden;
}

.news-card__image .image-anime {
	width: 100%;
	height: 100%;
}

.news-card__image .image-anime img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--transition);
}

.news-card:hover .news-card__image .image-anime img {
	transform: scale(1.03);
}

.news-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: var(--space-md);
}

.news-card__date {
	display: block;
	font-size: var(--fs-label);
	color: var(--color-accent);
	font-weight: var(--fw-semibold);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin-bottom: 10px;
}

.news-card h4 {
	font-size: clamp(1.05rem, 1.5vw, 1.2rem);
	font-weight: var(--fw-bold);
	margin-bottom: 10px;
	line-height: 1.35;
	color: var(--color-text-dark);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: calc(1.35em * 2);
}

.news-card p {
	font-size: var(--fs-body);
	line-height: 1.75;
	color: var(--color-text);
	margin: 0 0 var(--space-sm);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: calc(1.75em * 2);
}

.news-card__more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	font-family: var(--font-heading);
	font-size: var(--fs-label);
	font-weight: var(--fw-bold);
	letter-spacing: var(--ls-label);
	text-transform: uppercase;
	color: var(--color-primary);
	text-decoration: none;
	transition: color var(--transition-fast);
}

.news-card__more:hover {
	color: var(--color-accent-hover);
}

.news-card__more::after {
	content: '→';
	transition: transform var(--transition-fast);
}

.news-card__more:hover::after {
	transform: translateX(4px);
}

/* Testimonials
   ========================================================================== */
.testimonials-section {
	position: relative;
	overflow: hidden;
	background: linear-gradient(
		165deg,
		#ffffff 0%,
		#f4f8fc 38%,
		#eaf2fa 72%,
		#f8fafc 100%
	);
}



.testimonials-section .container {
	position: relative;
	z-index: 1;
}

.testimonial-slider {
	max-width: 800px;
	margin: 0 auto;
	text-align: center;
}

.testimonial-item {
	display: none;
}

.testimonial-item.is-active {
	display: block;
}

.testimonial-item p {
	font-size: 17px;
	font-style: italic;
	color: var(--color-text);
	line-height: 1.8;
	margin-bottom: var(--space-md);
}

.testimonial-item__author {
	font-family: var(--font-heading);
	font-weight: var(--fw-bold);
	color: var(--color-primary);
	font-size: var(--fs-h5);
}

.testimonial-item__role {
	font-size: var(--fs-small);
	color: var(--color-text-light);
}

.testimonial-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: var(--space-md);
}

.testimonial-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: none;
	background: var(--color-border);
	cursor: pointer;
	padding: 0;
	transition: background var(--transition-fast);
}

.testimonial-dot.is-active {
	background: var(--color-accent);
}

/* Contact CTA
   ========================================================================== */
.contact-cta {
	position: relative;
	background: linear-gradient(
		135deg,
		#0a2540 0%,
		#1565b8 42%,
		#0c3a6e 72%,
		#081e35 100%
	);
	padding: var(--space-xl) 0;
	text-align: center;
}

.contact-cta h3 {
	color: var(--color-white);
	font-size: clamp(1.1rem, 2.5vw, 1.5rem);
	font-weight: var(--fw-semibold);
	margin-bottom: var(--space-md);
}

/* Featured work – grid only from 768px up */
@media (min-width: 768px) {
	.featured-work__arrow,
	.featured-work__dots {
		display: none !important;
	}

	.featured-work__grid {
		display: grid !important;
		transform: none !important;
		transition: none;
	}

	.featured-work__item {
		flex: unset;
	}
}

/* Home Responsive
   ========================================================================== */
@media (max-width: 1024px) {
	.featured-work__grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.services-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.stats-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.stat-item::after {
		display: none;
	}
}

@media (max-width: 991px) {
	.hero {
		min-height: 500px;
	}

	/* Center all section headings & content */
	.hero__text,
	#main-content .section .container {
		text-align: center;
	}

	.hero__text {
		margin-left: auto;
		margin-right: auto;
	}

	.section-desc {
		margin-left: auto;
		margin-right: auto;
	}

	.section-label {
		font-size: 16px;
		letter-spacing: 0.16em;
		margin-bottom: 12px;
	}

	.intro-content .btn,
	.vision-content .btn {
		display: inline-flex;
	}

	.news-card__body {
		text-align: center;
	}

	/* Tighter section padding on tablet/mobile */
	#main-content .section {
		padding-top: var(--space-lg);
		padding-bottom: var(--space-lg);
	}

	.section-header {
		margin-bottom: var(--space-md);
	}

	.intro-section {
		padding: var(--space-xl) 0;
	}

	.service-tabs {
		margin-top: 50px;
	}

	.service-tabs__grid {
		grid-template-columns: 1fr;
	}

	.service-tab__image {
		height: 260px;
	}

	.service-tab__icon {
		width: 68px;
		height: 68px;
	}

	.service-tab__footer {
		padding: 44px var(--container-padding) 28px;
	}

	.intro-grid,
	.vision-grid {
		grid-template-columns: 1fr;
		gap: var(--space-lg);
	}

	.intro-image__accent {
		display: none;
	}

	.featured-work__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.news-grid {
		grid-template-columns: repeat(2, 1fr);
		margin: 0 auto;
	}

	.hero__arrows {
		display: none;
	}
}

@media (max-width: 767px) {
	.intro-image {
		overflow: hidden;
	}

	.news-grid {
		grid-template-columns: repeat(1, 1fr);
		margin: 0 auto;
	}

	.hero {
		min-height: 450px;
		max-height: 600px;
	}

	.services-grid {
		grid-template-columns: 1fr;
	}

	.stats-grid {
		grid-template-columns: 1fr 1fr;
		gap: var(--space-sm);
	}

	/* Featured work – Constructo-style mobile slider */
	.featured-work__slider {
		padding: 0 var(--container-padding);
	}

	.featured-work__arrow {
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}

	.featured-work__dots {
		display: flex;
	}

	.featured-work__viewport {
		overflow: hidden;
		border-radius: 0;
	}

	.featured-work__grid {
		display: flex;
		gap: 0;
		grid-template-columns: none;
		transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
		will-change: transform;
	}

	.featured-work__item {
		flex: 0 0 100%;
		aspect-ratio: 4 / 3;
		min-width: 0;
	}

	.featured-work__overlay {
		opacity: 1;
		background: linear-gradient(180deg, transparent 45%, rgba(21, 101, 184, 0.88) 100%);
		justify-content: flex-end;
		padding-bottom: 28px;
	}

	.vision-section {
		background-attachment: scroll;
	}
}

@media (max-width: 480px) {
	.service-card__content {
		text-align: center;
	}

	.stats-grid {
		grid-template-columns: 1fr;
	}
}
