/**
 * GSAP Motion Addons - Horizontal Scroll Widget Stylesheet
 * Engineered for Inara Homes & High-End Architectural Studios
 */

/* ==========================================================================
   1. Section & Viewport Containers
   ========================================================================== */

/* Sticky & Pin Spacer stability */
.pin-spacer {
	margin: 0 !important;
	padding: 0 !important;
	box-sizing: border-box !important;
}

.gsma-horizontal-wrapper {
	position: relative;
	width: 100%;
	height: 100vh;
	min-height: 100vh;
	overflow: hidden;
	box-sizing: border-box !important;
	margin: 0 !important;
	background-color: #ffffff;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.gsma-horizontal-viewport {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	box-sizing: border-box;
}

.gsma-horizontal-track {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	height: 100%;
	gap: 32px;
	padding: 0;
	box-sizing: border-box;
	will-change: transform;
}

/* ==========================================================================
   2. Horizontal Items & Cards
   ========================================================================== */

.gsma-item {
	flex-shrink: 0;
	position: relative;
	width: 48%;
	min-width: 48%;
	box-sizing: border-box;
	transform-origin: center center;
	transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
}

.gsma-item-inner {
	width: 100%;
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	background-color: #ffffff;
	border: none;
	box-sizing: border-box;
	transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

/* Image Container */
.gsma-item-image-wrapper {
	position: relative;
	width: 100%;
	height: 650px;
	overflow: hidden;
	background-color: #f4f4f4;
}

.gsma-item-image-wrapper a {
	display: block;
	width: 100%;
	height: 100%;
}

.gsma-item-image-wrapper img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transform: scale(1.0);
	transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
	will-change: transform;
}

.gsma-item:hover .gsma-item-image-wrapper img {
	transform: scale(1.035);
}

/* Content Container */
.gsma-item-content {
	padding: 14px 0 0 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
	box-sizing: border-box;
	background-color: inherit;
}

.gsma-item-content:empty,
.gsma-item-meta:empty,
.gsma-item-cta:empty,
.gsma-cta-content:empty {
	display: none !important;
	padding: 0 !important;
	margin: 0 !important;
	height: 0 !important;
	min-height: 0 !important;
}

/* Titles */
.gsma-item-title {
	font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.35;
	color: #000000;
	margin: 0;
	letter-spacing: -0.01em;
}

.gsma-item-title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.3s ease;
}

.gsma-item-title a:hover {
	color: #666666;
}

/* Meta / Subtitle */
.gsma-item-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 13.5px;
	font-weight: 400;
	color: rgba(0, 0, 0, 0.6);
}

.gsma-item-subtitle {
	color: rgba(0, 0, 0, 0.7);
}

.gsma-item-category {
	color: rgba(0, 0, 0, 0.5);
}

.gsma-meta-bullet {
	font-size: 10px;
	opacity: 0.5;
}

/* ==========================================================================
   3. Floating "View" Cursor Badge (from Inara card design)
   ========================================================================== */

.gsma-cursor-badge {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0.6);
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background-color: rgba(0, 0, 0, 0.75);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'Satoshi', sans-serif;
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	z-index: 10;
}

.gsma-item:hover .gsma-cursor-badge {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
}

/* ==========================================================================
   4. Saved Template Container Support
   ========================================================================== */

.gsma-item-template-wrap {
	width: 100%;
	height: 100%;
}

/* ==========================================================================
   5. Dark Editorial Theme Variant
   ========================================================================== */

.gsma-horizontal-wrapper--theme-editorial_dark {
	background-color: #0a0a0a;
}

.gsma-horizontal-wrapper--theme-editorial_dark .gsma-item-inner {
	background-color: #141414;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 6px;
	padding-bottom: 24px;
}

.gsma-horizontal-wrapper--theme-editorial_dark .gsma-item-content {
	padding: 20px 24px 0 24px;
}

.gsma-horizontal-wrapper--theme-editorial_dark .gsma-item-title {
	color: #ffffff;
}

.gsma-horizontal-wrapper--theme-editorial_dark .gsma-item-meta {
	color: rgba(255, 255, 255, 0.65);
}

.gsma-horizontal-wrapper--theme-editorial_dark .gsma-cursor-badge {
	background-color: rgba(255, 255, 255, 0.9);
	color: #000000;
}

/* ==========================================================================
   6. Section Header, Progress Bar, Navigation & CTA Card
   ========================================================================== */

/* Section Header / Intro */
.gsma-section-header {
	width: 100%;
	padding: 0 10vw 30px;
	box-sizing: border-box;
}

.gsma-header-inner {
	display: flex;
	flex-direction: column;
	max-width: 800px;
}

.gsma-header-align-center .gsma-header-inner {
	margin: 0 auto;
	text-align: center;
	align-items: center;
}

.gsma-header-align-right .gsma-header-inner {
	margin-left: auto;
	text-align: right;
	align-items: flex-end;
}

.gsma-header-eyebrow {
	font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 2.5px;
	color: rgba(0, 0, 0, 0.55);
	margin-bottom: 8px;
	display: block;
}

.gsma-header-title {
	font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 36px;
	font-weight: 600;
	line-height: 1.2;
	color: #000000;
	margin: 0 0 12px 0;
	letter-spacing: -0.02em;
}

.gsma-header-description {
	font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 15px;
	line-height: 1.6;
	color: rgba(0, 0, 0, 0.65);
	margin: 0;
}

/* Scroll Progress Bar */
.gsma-progress-bar-wrap {
	position: absolute;
	left: 0;
	width: 100%;
	height: 3px;
	background-color: rgba(0, 0, 0, 0.08);
	z-index: 20;
	pointer-events: none;
}

.gsma-progress-pos-top {
	top: 0;
}

.gsma-progress-pos-bottom {
	bottom: 0;
}

.gsma-progress-bar-fill {
	height: 100%;
	width: 0%;
	background-color: #000000;
	transition: width 0.05s linear;
}

/* Navigation & Counter */
.gsma-nav-controls {
	position: absolute;
	bottom: 30px;
	right: 10vw;
	display: flex;
	align-items: center;
	gap: 20px;
	z-index: 25;
}

.gsma-counter {
	font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 1px;
	color: rgba(0, 0, 0, 0.6);
	display: flex;
	align-items: center;
	gap: 4px;
}

.gsma-counter-current {
	color: #000000;
}

.gsma-nav-arrows {
	display: flex;
	gap: 8px;
}

.gsma-nav-arrow {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid rgba(0, 0, 0, 0.15);
	background: #ffffff;
	color: #000000;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.25s ease;
	outline: none;
}

.gsma-nav-arrow:hover {
	background: #000000;
	color: #ffffff;
	border-color: #000000;
}

/* Card Description & Action Button */
.gsma-item-number {
	font-family: 'Satoshi', sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 1.5px;
	color: rgba(0, 0, 0, 0.4);
	display: block;
	margin-bottom: 4px;
}

.gsma-item-description {
	font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 13.5px;
	line-height: 1.55;
	color: rgba(0, 0, 0, 0.65);
	margin: 6px 0 0;
}

.gsma-card-action {
	margin-top: 10px;
}

.gsma-card-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 13px;
	font-weight: 600;
	color: #000000 !important;
	text-decoration: none !important;
	transition: all 0.25s ease;
	padding: 4px 0;
}

.gsma-card-btn:hover {
	color: #666666 !important;
	transform: translateX(4px);
}

/* Final CTA Card */
.gsma-item-cta {
	display: flex !important;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	visibility: visible !important;
	opacity: 1 !important;
}

.gsma-item-cta .gsma-item-inner {
	background-color: #0a0a0a;
	color: #ffffff;
	justify-content: center;
	align-items: center;
	text-align: center;
	padding: 60px 48px;
	border-radius: 4px;
	min-height: 580px;
	height: 100%;
	display: flex;
	flex-direction: column;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
	box-sizing: border-box;
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.gsma-cta-content {
	max-width: 440px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.gsma-cta-eyebrow {
	font-family: 'Satoshi', sans-serif;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 3px;
	color: rgba(255, 255, 255, 0.6);
	margin-bottom: 16px;
	display: block;
}

.gsma-cta-title {
	font-family: 'Satoshi', sans-serif;
	font-size: 32px;
	font-weight: 600;
	line-height: 1.25;
	color: #ffffff;
	margin: 0 0 16px 0;
	letter-spacing: -0.02em;
}

.gsma-cta-description {
	font-family: 'Satoshi', sans-serif;
	font-size: 14.5px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.7);
	margin: 0 0 28px 0;
}

.gsma-cta-action {
	margin-top: 8px;
	display: flex;
	justify-content: center;
	width: 100%;
}

.gsma-cta-button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	padding: 15px 36px !important;
	background-color: #ffffff;
	color: #0a0a0a !important;
	font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	border-radius: 4px;
	text-decoration: none !important;
	cursor: pointer !important;
	position: relative;
	z-index: 20;
	visibility: visible !important;
	opacity: 1 !important;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gsma-cta-button:hover {
	background-color: #000000;
	color: #ffffff !important;
	border: 1px solid #ffffff;
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   7. Card Clarity & Focus States (No Blur, No Dimming, No Blue Links)
   ========================================================================== */

/* All cards stay fully bright, sharp, and natural by default */
.gsma-item,
.gsma-item--active,
.gsma-item--inactive {
	opacity: 1;
	transform: none;
	filter: none;
}

/* Prevent any default browser blue links, outlines, or underlines */
.gsma-item a,
.gsma-item-link-wrap,
.gsma-item-title a,
.gsma-cta-button {
	color: inherit;
	text-decoration: none !important;
	outline: none !important;
	border: none;
}

.gsma-item a:visited,
.gsma-item-link-wrap:visited,
.gsma-item-title a:visited {
	color: inherit !important;
}

/* Optional Editorial Focus Mode (Only active when editorial mode is chosen) */
.gsma-horizontal-wrapper[data-animation-mode="editorial"] .gsma-item--inactive {
	opacity: 0.85;
	transform: scale(0.98);
}

/* ==========================================================================
   8. Responsive Breakpoints (Matches Inara Elementor JSON)
   ========================================================================== */

/* Laptop / Tablet Extra (<= 1200px) */
@media (max-width: 1200px) {
	.gsma-item-image-wrapper {
		height: 550px;
	}
}

/* Tablet (<= 1024px) */
@media (max-width: 1024px) {
	.gsma-item {
		width: 60% !important;
		min-width: 60% !important;
	}
	.gsma-item-image-wrapper {
		height: 450px;
	}
}

/* Mobile: Grid Layout Mode (<= 767px) - Horizontal Scroll OFF */
@media (max-width: 767px) {
	.gsma-item-image-wrapper {
		height: 320px;
		border-radius: 4px;
	}

	.gsma-cursor-badge {
		display: none !important; /* Hide cursor badge on touchscreens */
	}

	/* Section Wrapper resets: natural document height, no viewport lock or pin, zero default padding */
	.gsma-horizontal-wrapper--mobile-grid {
		height: auto !important;
		min-height: auto !important;
		max-height: none !important;
		overflow: visible !important;
		padding: 0 !important;
	}

	/* Viewport resets: visible, normal block flow */
	.gsma-horizontal-wrapper--mobile-grid .gsma-horizontal-viewport {
		overflow: visible !important;
		width: 100% !important;
		height: auto !important;
		display: block !important;
		padding: 0 !important;
	}

	/* Track transforms into responsive CSS Grid: zero default padding below 767px */
	.gsma-horizontal-wrapper--mobile-grid .gsma-horizontal-track {
		display: grid !important;
		grid-template-columns: 1fr;
		gap: 28px;
		width: 100% !important;
		height: auto !important;
		padding: 0 !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
		box-sizing: border-box !important;
		transform: none !important;
	}

	/* Global 0-padding reset below 767px */
	.gsma-horizontal-wrapper,
	.gsma-horizontal-viewport,
	.gsma-horizontal-track {
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	.gsma-section-header {
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	/* Grid items: occupy grid cell, fully visible, unscaled */
	.gsma-horizontal-wrapper--mobile-grid .gsma-item {
		width: 100% !important;
		min-width: 0 !important;
		max-width: 100% !important;
		opacity: 1 !important;
		transform: none !important;
		visibility: visible !important;
		transition: none !important;
	}

	.gsma-horizontal-wrapper--mobile-grid .gsma-item-inner {
		width: 100% !important;
		height: auto !important;
		display: flex;
		flex-direction: column;
	}

	.gsma-horizontal-wrapper--mobile-grid .gsma-item-image-wrapper {
		width: 100% !important;
		overflow: hidden;
		border-radius: 4px;
	}

	.gsma-horizontal-wrapper--mobile-grid .gsma-item-image-wrapper img {
		transform: none !important;
		transition: none !important;
	}

	.gsma-horizontal-wrapper--mobile-grid .gsma-item-content {
		padding-top: 12px;
	}

	/* Final CTA Card spans full width of grid */
	.gsma-horizontal-wrapper--mobile-grid .gsma-item-cta {
		width: 100% !important;
		min-width: 0 !important;
		max-width: 100% !important;
		grid-column: 1 / -1;
	}
}

/* Mobile: Simplified Touch Carousel Mode (<= 767px) */
@media (max-width: 767px) {
	.gsma-horizontal-wrapper--mobile-simplified {
		height: auto !important;
		min-height: auto !important;
		padding: 0 !important;
	}

	.gsma-horizontal-wrapper--mobile-simplified .gsma-horizontal-viewport {
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
		padding: 0 !important;
	}

	.gsma-horizontal-wrapper--mobile-simplified .gsma-horizontal-viewport::-webkit-scrollbar {
		display: none;
	}

	.gsma-horizontal-wrapper--mobile-simplified .gsma-horizontal-track {
		padding: 0 !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
		gap: 20px;
		transform: none !important;
	}

	.gsma-horizontal-wrapper--mobile-simplified .gsma-item {
		width: 85% !important;
		min-width: 85% !important;
		scroll-snap-align: center;
		opacity: 1 !important;
		transform: none !important;
	}
}

/* Mobile: Vertical Stack Mode (<= 767px) */
@media (max-width: 767px) {
	.gsma-horizontal-wrapper--mobile-vertical {
		height: auto !important;
		min-height: auto !important;
		padding: 0 !important;
	}

	.gsma-horizontal-wrapper--mobile-vertical .gsma-horizontal-viewport {
		overflow: visible;
		padding: 0 !important;
	}

	.gsma-horizontal-wrapper--mobile-vertical .gsma-horizontal-track {
		flex-direction: column;
		height: auto;
		padding: 0 !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
		gap: 36px;
		transform: none !important;
	}

	.gsma-horizontal-wrapper--mobile-vertical .gsma-item {
		width: 100% !important;
		min-width: 100% !important;
		opacity: 1 !important;
		transform: none !important;
	}
}

/* ==========================================================================
   9. Accessibility: Prefers Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	.gsma-horizontal-wrapper {
		height: auto !important;
		min-height: auto !important;
		overflow: visible !important;
		padding: 40px 0;
	}

	.gsma-horizontal-viewport {
		overflow: visible !important;
	}

	.gsma-horizontal-track {
		flex-direction: column !important;
		height: auto !important;
		transform: none !important;
		gap: 32px !important;
		padding: 0 20px !important;
	}

	.gsma-item {
		width: 100% !important;
		min-width: 100% !important;
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}
}
