/* TNS custom landing page */

/* =========================================================
   GLOBAL
   ========================================================= */

html {
	scroll-behavior: smooth;
}


/* =========================================================
   HEADER
   Logo + Site Title + Navigation + Get in Touch
   ========================================================= */

.tns-site-header {
	position: relative;
	z-index: 50;
	width: 100%;
}

/* Main header row */
.tns-header-inner {
	width: 100%;
	max-width: 1400px;
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 30px !important;
	margin-left: auto;
	margin-right: auto;
}

/* Logo + Site Title */
.tns-brand {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	flex: 0 0 auto !important;
	gap: 10px !important;
}

/* Navigation + Get in Touch wrapper */
.tns-nav-wrap {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	justify-content: flex-end !important;
	gap: 24px !important;
	margin-left: auto !important;
	flex: 1 1 auto !important;
}

/* Navigation block */
.tns-site-header .wp-block-navigation {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	justify-content: flex-end !important;
}

/* Navigation menu container */
.tns-site-header .wp-block-navigation__container {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	justify-content: flex-end !important;
	gap: 24px !important;
}

/* Navigation links */
.tns-site-header .wp-block-navigation-item__content {
	position: relative;
	padding: 8px 0;
	white-space: nowrap;
}

/* Navigation hover / active underline */
.tns-site-header .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	transform: scaleX(0);
	transform-origin: center;
	transition: transform .2s ease;
	background: currentColor;
}

.tns-site-header .wp-block-navigation-item__content:hover::after,
.tns-site-header .wp-block-navigation-item__content[aria-current="page"]::after,
.tns-site-header .wp-block-navigation-item__content.is-active::after {
	transform: scaleX(1);
}

/* Get in Touch button wrapper */
.tns-header-cta {
	display: flex !important;
	flex: 0 0 auto !important;
	margin: 0 !important;
}

/* Get in Touch button */
.tns-header-cta .wp-block-button {
	margin: 0 !important;
}

.tns-header-cta .wp-block-button__link {
	white-space: nowrap;
}


/* =========================================================
   HERO SLIDER
   ========================================================= */

.tns-hero-slider {
	position: relative;
	min-height: 650px;
	overflow: hidden;
	color: #fff;
}

.tns-slides {
	position: relative;
	min-height: 650px;
}

.tns-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity .8s ease;
}

.tns-slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 1;
}

.tns-slide > img {
	width: 100%;
	height: 650px;
	object-fit: cover;
	display: block;
}

.tns-slide-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		90deg,
		rgba(0,0,0,.75) 0%,
		rgba(0,0,0,.42) 60%,
		rgba(0,0,0,.18) 100%
	);
}

.tns-slide-content {
	position: absolute;
	z-index: 2;
	left: max(24px, calc((100vw - 1170px)/2));
	top: 50%;
	transform: translateY(-50%);
	max-width: 650px;
	padding: 30px 20px 30px 0;
}

.tns-slide-content h1 {
	color: #fff;
	font-size: clamp(38px, 6vw, 72px);
	line-height: 1.1;
	margin: 8px 0 18px;
}

.tns-slide-content p {
	color: #fff;
	max-width: 600px;
	font-size: 17px;
	line-height: 1.8;
}

.tns-eyebrow {
	text-transform: uppercase;
	letter-spacing: 2px;
	font-weight: 600;
}

.tns-hero-button {
	display: inline-block;
	margin-top: 18px;
	padding: 14px 26px;
	border-radius: 5px;
	background: #384bf8;
	color: #fff;
	text-decoration: none;
	font-weight: 600;
}

.tns-slider-prev,
.tns-slider-next {
	position: absolute;
	z-index: 5;
	top: 50%;
	transform: translateY(-50%);
	border: 0;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: rgba(255,255,255,.2);
	color: #fff;
	cursor: pointer;
	font-size: 22px;
}

.tns-slider-prev {
	left: 20px;
}

.tns-slider-next {
	right: 20px;
}

.tns-slider-dots {
	position: absolute;
	z-index: 5;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 8px;
}

.tns-slider-dots button {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255,255,255,.55);
	cursor: pointer;
}

.tns-slider-dots button.is-active {
	background: #fff;
	transform: scale(1.25);
}


/* =========================================================
   SECTION ANCHORS
   ========================================================= */

.tns-section-anchor {
	height: 0;
	margin: 0 !important;
	padding: 0 !important;
	scroll-margin-top: 100px;
}

#about,
#services,
#team,
#testimonials,
#clients-partners,
#get-in-touch {
	scroll-margin-top: 100px;
}


/* =========================================================
   CLIENTS & PARTNERS LOGO MARQUEE
   ========================================================= */

.tns-clients-partners {
	overflow: hidden;
}

.tns-logo-marquee {
	overflow: hidden;
	width: 100%;
	margin-top: 35px;
}

.tns-logo-track {
	display: flex;
	width: max-content;
	animation: tns-marquee 28s linear infinite;
	align-items: center;
	gap: 22px;
}

.tns-logo-item {
	min-width: 180px;
	padding: 22px 28px;
	border: 1px solid #e6e6e6;
	border-radius: 8px;
	background: #fff;
	text-align: center;
	font-weight: 600;
	letter-spacing: 1px;
	color: #555;
}

.tns-logo-marquee:hover .tns-logo-track {
	animation-play-state: paused;
}

.tns-logo-note {
	text-align: center;
	margin-top: 20px;
	font-size: 12px;
	opacity: .65;
}

@keyframes tns-marquee {
	from {
		transform: translateX(0);
	}

	to {
		transform: translateX(-50%);
	}
}


/* =========================================================
   CONTACT FORM
   ========================================================= */

.tns-contact-form-wrap {
	max-width: 900px;
	margin: 35px auto 0;
}

.tns-contact-form {
	background: #fff;
	padding: clamp(24px, 5vw, 55px);
	border-radius: 12px;
	box-shadow: 0 12px 40px rgba(0,0,0,.06);
}

.tns-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.tns-contact-form p {
	margin: 0;
}

.tns-contact-form label {
	display: block;
	margin-bottom: 7px;
	font-weight: 500;
}

.tns-contact-form input,
.tns-contact-form textarea {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid #ddd;
	border-radius: 6px;
	padding: 13px 14px;
	font: inherit;
}

.tns-contact-form .tns-full {
	grid-column: 1 / -1;
}

.tns-form-submit {
	margin-top: 24px !important;
	text-align: center;
}

.tns-form-submit button {
	border: 0;
	border-radius: 5px;
	padding: 14px 30px;
	background: #384bf8;
	color: #fff;
	cursor: pointer;
	font: inherit;
	font-weight: 600;
}


/* =========================================================
   TABLET / SMALL DESKTOP
   ========================================================= */

@media (max-width: 1100px) {

	.tns-header-inner {
		gap: 20px !important;
	}

	.tns-nav-wrap {
		gap: 14px !important;
	}

	.tns-site-header .wp-block-navigation__container {
		gap: 14px !important;
	}

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 782px) {

	/* Keep logo + title + hamburger in one row */
	.tns-header-inner {
		display: flex !important;
		flex-direction: row !important;
		flex-wrap: nowrap !important;
		align-items: center !important;
		gap: 10px !important;
	}

	/* Keep branding compact */
	.tns-brand {
		min-width: 0;
		flex: 1 1 auto !important;
	}

	.tns-brand .wp-block-site-title {
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	/* Navigation wrapper */
	.tns-nav-wrap {
		width: auto !important;
		margin-left: auto !important;
		flex: 0 0 auto !important;
		gap: 10px !important;
	}

	/* Hide Get in Touch button on mobile.
	   The Get in Touch link remains available
	   inside the mobile navigation overlay. */
	.tns-header-cta {
		display: none !important;
	}

	/* Hero */
	.tns-hero-slider,
	.tns-slides,
	.tns-slide > img {
		min-height: 560px;
		height: 560px;
	}

	.tns-slide-content {
		left: 24px;
		right: 24px;
		padding-right: 0;
	}

	.tns-slide-content h1 {
		font-size: clamp(34px, 10vw, 52px);
	}

	/* Contact form */
	.tns-form-grid {
		grid-template-columns: 1fr;
	}

	.tns-contact-form .tns-full {
		grid-column: auto;
	}

}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

	.tns-brand {
		gap: 6px !important;
	}

	.tns-brand .wp-block-site-logo img {
		max-width: 34px;
		height: auto;
	}

	.tns-brand .wp-block-site-title {
		font-size: 18px !important;
	}

}

/* =========================================================
   FULL-WIDTH HERO / BANNER
   ========================================================= */

.tns-hero-slider {
	width: 100vw !important;
	max-width: 100vw !important;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
	position: relative;
	overflow: hidden;
}