/**
 * Shared styles for Redesign V2 (templates-new).
 * Breakpoints: Mobile ≤767px, Tablet 768–1024px, Desktop ≥1025px.
 * Used when body has classes: body-redesign-v2, redesignv2.
 *
 * NOTE: Site header / primary navigation CSS now lives in header-navigation.css
 * (enqueued right after this file by header-redesign-v2.php). Add menu rules there,
 * not here, so all nav styling stays in one place.
 *
 * This file holds shared, non-menu redesign-v2 styles: responsive line-break
 * helpers, footer, container padding, section headings, grain overlay, generic
 * CTAs (.gradientbtn, .cta-secondary, .btn-showcase-style) and testimonials.
 */
/* Full-bleed sections / 100vw math must not widen past the visible viewport */
html:has(body.redesignv2),
body.redesignv2 {
	overflow-x: clip;
	max-width: 100%;
}

/* AI V2 only: hide vertical scrollbar (carousel peek). Body class: template-ai-v2 */
body.template-ai-v2 {
	scrollbar-width: none;
	-ms-overflow-style: none;
}
body.template-ai-v2::-webkit-scrollbar {
	display: none;
}
/* Desktop-only: show on desktop, hide on tablet and mobile */
.brfordesk {
	display: none;
}
@media (min-width: 1025px) {
	.brfordesk {
		display: block;
	}
}
/* brondesk: hide on tablet and mobile (global) */
@media (min-width: 768px) and (max-width: 1024px) {
	.brondesk {
		display: none !important;
	}
}
@media (max-width: 767px) {
	.brondesk {
		display: none !important;
	}
}

/* Tablet-only: show on tablet (768–1024px), hide on mobile and desktop */
.brfortab {
	display: none;
}
@media (min-width: 768px) and (max-width: 1024px) {
	.brfortab {
		display: block;
	}
}

/* Mobile-only: show on mobile (≤767px), hide on tablet and desktop */
.brformob {
	display: none;
}
@media (max-width: 767px) {
	.brformob {
		display: block;
	}
}

/* Hide on mobile only (≤767px) — use class hideonmob on markup */
@media (max-width: 767px) {
	.redesignv2 .hideonmob {
		display: none !important;
	}
}
.body-redesign-v2 footer {
	background: #140532 !important;
}

/* AI V2 template only (body.template-ai-v2 from header-redesign-v2.php) */
.body-redesign-v2.template-ai-v2 footer {
	background: #181818 !important;
}
.redesignv2 .news-story-header {
	display: none !important;
  }
/* Homepage hero spacing at the hamburger breakpoint (992–1024px) */
@media (min-width: 992px) and (max-width: 1024px) {
	.homepage-new .hero-tagline-pill {
		margin-bottom: 5px;
	}

	.homepage-new .hero-section-new-v2 .hero-title-new {
		margin-bottom: 20px;
	}
}
/* CTA button – white/light pill, border, dark text (no uppercase) */
.redesignv2 .gradientbtn {
	display: inline-block;
	padding: 15px 30px;
	background: #fff;
	color: #212121;
	text-decoration: none;
	border-radius: 9999px;
	font-family: 'Proxima Nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-weight: 600;
	font-size: 16px;
	line-height: 100%;
	letter-spacing: 0;
	text-align: center;
	text-transform: none;
	transition: all 0.3s ease;
	/* border: 1px solid #cccccc; */
	/* box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); */
	cursor: pointer;
	margin-top: 0;
  background: linear-gradient(45deg, rgba(103, 63, 255, 1) 0%, rgba(140, 130, 255, 1) 100%) !important;
  color: #ffffff !important;
  border-radius: 100px !important;
  max-width: max-content !important;
}

.redesignv2 .gradientbtn:hover {
	background: #f7f7fa;
	border-color: #b0b0b0;
	transform: translateY(-1px);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
	.redesignv2 .gradientbtn {
		padding: 12px 20px;
		min-width: auto !important;
		font-size: 15px;
	}
}

@media screen and (max-width: 767px) {
	.redesignv2 .gradientbtn {
		padding: 10px 16px;
		min-width: auto !important;
		font-size: 14px;
	}
}
/* Global container horizontal padding – all containers get 30px left/right */
.body-redesign-v2 .container,
.redesignv2 .container {
	padding-left: 30px;
	padding-right: 30px;
	box-sizing: border-box;
}

@media (max-width: 767px) {
	.body-redesign-v2 .container,
	.redesignv2 .container {
		padding-left: 20px;
		padding-right: 20px;
	}

	.body-redesign-v2 .container.footer__inner, .redesignv2 .container.footer__inner {
		padding: 0;
	}
}

/* Global container horizontal padding – all containers get 30px left/right */
.body-redesign-v2 .testimonials .container,
.redesignv2 .testimonials.container {
	padding: 0;
	box-sizing: border-box;
	margin-left: max(var(--container-padding), calc((100vw - var(--container-max)) / 2 + 15px + var(--container-padding)));
	max-width: 850px;
}

@media (max-width: 1399px) {
	.body-redesign-v2 .testimonials .container,
	.redesignv2 .testimonials.container {
		width: 59%;
		margin-left: max(var(--container-padding), calc((100vw - var(--container-max)) / 2 + 15px + var(--container-padding)));
		padding: 0;
	}
}

@media (min-width: 768px) and (max-width: 1024px) {
	.body-redesign-v2 .testimonials .container,
	.redesignv2 .testimonials.container {
		width: 94%;
		max-width: none;
	}
}

@media (max-width: 767px) {
	.body-redesign-v2 .testimonials .container,
	.redesignv2 .testimonials.container {
		margin: 0 20px;
		width: auto;
	}
}

/* All section h2s – font-size, line-height, font-weight from one place (New Homepage + New AI page) */
.body-redesign-v2 h2,
.redesignv2 h2,
.ai-v2 h2 {
	font-size: 40px;
	line-height: 1.1em;
	font-weight: 600;
}
@media (max-width: 1024px) {
	.body-redesign-v2 h2,
	.redesignv2 h2,
	.ai-v2 h2 {
		font-size: 30px;
	}
}
@media (max-width: 767px) {
	.body-redesign-v2 h2,
	.redesignv2 h2,
	.ai-v2 h2 {
		font-size: 26px;
	}
}

/* Grain texture overlay – add class "has-grain-overlay" to any section/banner to show grain on top of background or video */
.body-redesign-v2 .has-grain-overlay,
.redesignv2 .has-grain-overlay {
	position: relative;
}
.body-redesign-v2 .has-grain-overlay::after,
.redesignv2 .has-grain-overlay::after {
	content: '';
	position: absolute;
	inset: 0;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-image: url('https://www.vts.com/wp-content/uploads/2026/01/grain-1-e1768411566993.png');
	background-repeat: repeat;
	background-size: auto;
	pointer-events: none;
	z-index: 1;
	opacity: 0.2;
}

/* Secondary CTA – text + gradient underline via ::after (single source of truth for all secondary CTAs) */
.cta-secondary {
	position: relative;
	display: inline-block;
	width: fit-content;
	border: 0;
	text-decoration: none;
}

.cta-secondary::after {
	content: '';
	position: absolute;
	left: 0;
	right: auto;
	width: 100%;
	top: 100%;
	margin-top: 6px;
	height: 3px;
	border-radius: 2px;
	background: linear-gradient(
		90deg,
		#673fff 0%,
		#8c82ff 40%,
		#a898ff 80%
	);
	background-size: 100% 100%;
	background-repeat: no-repeat;
	transition: width 0.3s ease;
}

.cta-secondary:hover::after {
	width: 50%;
}

@media (min-width: 768px) and (max-width: 1024px) {
	.cta-secondary::after {
		margin-top: 4px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cta-secondary::after {
		background: linear-gradient(90deg, #673fff 0%, #8c82ff 35%, #a898ff 50%);
		background-size: 100% 100%;
		transition: none;
	}
}

/* Reusable CTA style (glass pill) – same as product-showcase__cta; use class "btn-showcase-style" on any link/button */
.btn-showcase-style {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	/* min-width: 180px; */
  max-width: max-content;
	height: 43px;
	padding: 0 32px;
  background: linear-gradient(90deg, rgba(47, 44, 48, 0.3) 0%, rgba(66, 28, 81, 0.3) 100%);
  color: #fff;
	/* border: 1px solid rgba(255, 255, 255, 0.12); */
	border-radius: 104px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1em;
	text-align: center;
	text-decoration: none;
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	box-shadow: inset 1px 0 2px 0 rgb(255 255 255 / 27%), 0 1px 3px rgb(0 0 0 / 32%);
	transition: opacity 0.2s ease, transform 0.2s ease;
}
.btn-showcase-style:hover {
	opacity: 0.92;
	transform: translateY(-1px);
	background: #ffffff30;
	/* box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 2px 6px rgba(0, 0, 0, 0.4); */
}

@media (max-width: 767px) {
	.btn-showcase-style {
		padding: 12px 30px;
		font-size: 14px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		text-align: center;
	}
}

/* Testimonials: hide play button when main_video (Wistia ID) is empty – play button is only for Wistia modal */
.testimonials__card[data-main-video=""] .testimonials__play-btn,
.testimonials__card.testimonials__card--no-main-video .testimonials__play-btn {
	display: none !important;
	visibility: hidden !important;
	pointer-events: none !important;
}
