/**
 * Main Stylesheet
 *
 * @package Blank_Canvas
 * @since 1.0.0
 */

/* ============================================
   Global Styles
   ============================================ */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	padding: 0;
	background-color: #060606;
	color: #D9D9D9;
	font-family: var(--font-body);
	font-size: 24px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

.site {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.site-main {
	flex: 1;
}

a {
	color: var(--color-gold);
	text-decoration: none;
	transition: color var(--transition-base);
}

a:hover,
a:focus {
	color: var(--color-primary);
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* ============================================
   Header & Navigation
   ============================================ */

.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: var(--z-header);
	background-color: transparent;
	transition: background-color var(--transition-base);
}

/* Header background when scrolled */
.site-header.scrolled {
	background-color: #060606;
	backdrop-filter: blur(10px);
}

.nav-container {
	max-width: var(--container-max-width);
	margin: 0 auto;
	padding: var(--spacing-md) var(--container-padding);
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.site-branding {
	z-index: 10;
}

.site-title {
	margin: 0 !important;
	padding: 0 !important;
	text-align: left !important; /* Override h1 center alignment from design-system.css */
	opacity: 0; /* Hidden by default on homepage hero */
	transition: opacity 0.6s ease-in-out;
}

/* Show site title/logo on internal pages (not homepage) */
body:not(.home) .site-title,
body:not(.home) .site-branding {
	opacity: 1;
}

/* Show site title when scrolled on homepage */
.site-header.scrolled .site-title {
	opacity: 1;
}

/* Site title link - override .main-navigation a from design-system.css */
.main-navigation .site-title a,
.main-navigation .site-title a:visited,
.main-navigation .site-title a:link,
.site-title a,
.site-title a:visited,
.site-title a:link {
	color: #D9D9D9 !important;
	font-family: 'GT America Trial', -apple-system, BlinkMacSystemFont, sans-serif !important;
	font-size: 32px !important;
	font-style: normal !important;
	font-weight: 700 !important;
	line-height: normal !important;
	text-decoration: none !important;
}

.main-navigation .site-title a:hover,
.main-navigation .site-title a:focus,
.site-title a:hover,
.site-title a:focus {
	color: #D9D9D9 !important;
}

.custom-logo {
	max-height: 60px;
	width: auto;
}

.primary-menu-container {
	display: flex;
}

#primary-menu {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: var(--spacing-lg);
}

#primary-menu li {
	margin: 0;
}

/* Navigation Link Hover Effects */
#primary-menu a {
	position: relative;
	display: inline-block;
	transition: color 0.3s ease;
}

#primary-menu a:hover {
	color: var(--color-gold) !important;
}

#primary-menu a::before,
#primary-menu a::after {
	content: '';
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	width: 100px;
	height: 20px;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	opacity: 0;
	transition: opacity 0.3s ease;
}

#primary-menu a::before {
	top: -25px;
	background-image: url('../images/rollover-upper.svg');
}

#primary-menu a::after {
	bottom: -25px;
	background-image: url('../images/rollover-lower.svg');
}

#primary-menu a:hover::before,
#primary-menu a:hover::after {
	opacity: 1;
}

/* Mobile Menu Toggle */
.menu-toggle {
	display: none;
	flex-direction: column;
	gap: 6px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 10px;
	z-index: 10;
}

.menu-toggle-icon {
	width: 30px;
	height: 2px;
	background-color: var(--color-primary);
	transition: all var(--transition-base);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon:nth-child(1) {
	transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon:nth-child(2) {
	opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon:nth-child(3) {
	transform: rotate(-45deg) translate(7px, -7px);
}

@media screen and (max-width: 768px) {
	.menu-toggle {
		display: flex;
	}

	.primary-menu-container {
		position: fixed;
		top: 0;
		right: -100%;
		width: 80%;
		max-width: 400px;
		height: 100vh;
		background-color: var(--color-black);
		transition: right var(--transition-base);
		padding: 100px var(--spacing-lg) var(--spacing-lg);
	}

	.primary-menu-container.active {
		right: 0;
	}

	#primary-menu {
		flex-direction: column;
		gap: var(--spacing-md);
	}

	/* Mobile Hero */
	.hero-section {
		height: 100vh;
		min-height: 500px;
		margin-top: -65px !important;
		padding-bottom: 0 !important;
		background-color: #060606;
		position: relative;
		overflow: visible !important;
		opacity: 1 !important;
	}

	.hero-container {
		height: 100vh;
		position: relative;
		width: 100%;
		opacity: 1 !important;
		overflow: visible !important;
		margin-top: -65px !important;
	}
	
	.hero-content {
		position: relative;
		width: 100%;
		height: 100%;
		opacity: 1 !important;
		overflow: visible !important;
	}
	
	.hero-visual {
		height: 100vh !important;
		min-height: 500px;
		position: absolute !important;
		top: 0 !important;
		left: 0 !important;
		right: 0 !important;
		bottom: 0 !important;
		width: 100% !important;
		z-index: 1 !important;
		opacity: 1 !important;
		overflow: visible !important;
	}
	
	.hero-image-wrapper,
	.hero-video-wrapper {
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		width: 100%;
		height: 100%;
		opacity: 1 !important;
		overflow: visible !important;
	}

	.hero-overlay {
		display: flex !important;
		align-items: flex-start !important; /* Changed from center to flex-start */
		justify-content: center !important;
		padding-top: 35vh !important; /* Position logo 35% down the viewport */
		padding-bottom: 0 !important;
		position: absolute !important;
		top: 0 !important;
		left: 0 !important;
		right: 0 !important;
		bottom: 0 !important;
		z-index: 2 !important;
		width: 100% !important;
		height: 100% !important;
		opacity: 1 !important;
	}

	.hero-video,
	.hero-image {
		position: absolute !important;
		top: 0 !important;
		left: 0 !important;
		width: 100% !important;
		height: 100% !important;
		max-width: 100% !important;
		max-height: 100% !important;
		object-fit: cover !important;
		object-position: center center !important;
		display: block !important;
		opacity: 0.5 !important;
		visibility: visible !important;
	}

	.hero-logo {
		width: clamp(200px, 60vw, 279px) !important;
		height: auto !important;
		max-width: 90vw !important;
		aspect-ratio: 279/173;
		position: relative !important;
		top: auto !important;
		left: auto !important;
		transform: none !important;
		z-index: 10 !important;
		display: block !important;
		opacity: 1 !important;
		visibility: visible !important;
		margin: 0 auto !important;
		flex-shrink: 0 !important; /* Prevent flexbox from shrinking it */
	}
	
	.hero-logo-image {
		width: 100% !important;
		height: auto !important;
		display: block !important;
		opacity: 1 !important;
		visibility: visible !important;
		max-width: 100% !important;
	}
}

/* ============================================
   Loading Screen
   ============================================ */

.loading-screen {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	background-color: var(--color-black);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: var(--z-loading);
	transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

.loading-screen.hidden {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.loading-logo {
	max-width: 300px;
}

/* ============================================
   Homepage Sections
   ============================================ */

.homepage {
	/* Removed max-width to prevent gutters on large screens */
	margin: 0;
	padding: 0;
	background-color: #060606;
	width: 100%; /* Ensure homepage spans full width */
}

.homepage section {
	position: relative;
	width: 100%;
	opacity: 1; /* Ensure visibility by default */
}

/* Ensure section-animate elements are visible by default */
.section-animate {
	opacity: 1;
}

/* Fallback: Ensure content is visible if JS fails */
.no-js .section-animate {
	opacity: 1 !important;
	transform: none !important;
}

/* Page fade-in animation for internal pages */
.page-fade-in {
	animation: pageFadeIn 0.8s ease-out forwards;
}

@keyframes pageFadeIn {
	0% {
		opacity: 0;
		transform: translateY(20px);
	}
	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Hero Section */
.hero-section {
	position: relative;
	padding: 0;
	overflow: hidden;
	height: 965px;
	margin-top: -65px; /* Figma: top: -65px - extends above fold */
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #060606;
}

.hero-container {
	width: 100%;
	height: 965px;
	position: relative;
	margin: 0 auto;
}

.hero-visual {
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
}

.hero-video,
.hero-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	mix-blend-mode: hard-light;
	opacity: 0.5; /* Figma: opacity 50% on background image */
}

.hero-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent; /* Removed overlay, image opacity handles it */
	z-index: 2;
}

.hero-logo {
	position: absolute;
	top: 293px; /* Figma: exact logo position from container top */
	left: 50%;
	transform: translateX(-50%);
	max-width: 500px;
	width: 500px; /* Figma: exact width */
	height: 310px; /* Figma: exact height */
	z-index: 10;
}

.hero-logo-image {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: contain;
}

.hero-tagline {
	font-size: clamp(32px, 6vw, 60px);
	text-align: center;
	padding: 0 var(--spacing-md);
	color: #FFFFFF;
	z-index: 10;
	text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

/* About Section */
.about-section {
	background-color: #060606;
	padding-top: 50px;
	padding-bottom: 0; /* Removed bottom padding */
}

.about-container {
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 var(--spacing-lg);
}

.about-content {
	margin-bottom: 55px;
	text-align: center;
}

.about-content h2 {
	color: #D9D9D9 !important;
	font-family: 'GT America Trial', -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 40px !important;
	font-weight: 700 !important;
	font-style: normal;
	line-height: normal !important;
	text-align: center;
	margin: 0 0 55px 0 !important;
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
}

.about-text {
	max-width: 1239px;
	height: auto;
	min-height: 86px;
	margin: 0 auto;
	color: #D9D9D9 !important;
	font-family: 'Test Tiempos Text', Georgia, serif;
	font-size: 24px !important;
	font-weight: 500;
	font-style: normal;
	line-height: normal !important;
	text-align: left; /* Left-align text */
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
}

.about-text p {
	color: #D9D9D9 !important;
	margin: 0;
}

.about-read-more {
	display: block;
	margin-top: 15px;
	color: #FFFFFF !important; /* White, not gray - per Figma specs */
	font-family: 'Test Tiempos Text', Georgia, serif;
	font-size: 12px;
	font-style: italic;
	font-weight: 300;
	text-align: center;
	text-decoration: none;
	transition: opacity 0.3s ease;
}

.about-read-more:hover {
	opacity: 0.7;
}

/* Awards Grid */
.awards-grid {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 146px; /* Updated from 92px to match Figma spacing */
	margin-top: 55px;
	max-width: calc((150px * 4) + (146px * 3)); /* 4 items + 3 gaps */
	margin-left: auto;
	margin-right: auto;
}

.award-item {
	display: flex;
	align-items: center;
	justify-content: center;
	transition: filter 0.3s ease;
}

.award-item img {
	width: 100%; /* Force full width to reduce whitespace */
	height: auto;
	max-width: 150px; /* Larger than original 108.793px */
	object-fit: contain;
}

.award-item:hover img {
	filter: brightness(0) saturate(100%) invert(70%) sepia(64%) saturate(515%) hue-rotate(6deg) brightness(91%) contrast(87%);
}

/* Services Section */
.services-section {
	background-color: #060606;
	padding-top: 134px; /* Adjusted to position "Services" heading at ~1504px from page top */
	padding-bottom: 45px; /* Reduced by 25% from 60px (60 * 0.75 = 45px) */
}

.services-container {
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 var(--spacing-lg);
}

.services-section h2 {
	color: #D9D9D9;
	font-family: 'GT America Trial', -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 40px;
	font-weight: 700;
	font-style: normal;
	line-height: normal;
	text-align: center;
	margin: 0 0 55px 0; /* Updated from 80px to 55px per Figma specs */
}

.services-grid {
	display: grid;
	grid-template-columns: repeat(3, 400px);
	gap: 18px; /* Updated from 55px to match Figma spacing (Corporate to Narrative = 520-102-400 = 18px) */
	justify-content: center; /* Center the 1236px grid within 1440px container */
	align-items: start; /* Align all cards to top edge to prevent vertical offset */
	max-width: 1440px;
	margin: 0 auto;
}

.service-item {
	width: 400px;
	height: 250px;
	background-color: transparent;
	border: 2px solid #D9D9D9; /* Updated from gold to light gray per Figma specs */
	padding: 40px 20px;
	text-align: center;
	transition: transform 0.3s ease, border-color 0.3s ease;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	justify-content: flex-start; /* Changed from space-between to prevent vertical shifting */
	align-items: center;
	gap: 20px; /* Add gap between title, description, and arrow */
	position: relative; /* For absolute positioning of arrow */
}

.service-item:hover {
	transform: translateY(-5px);
	border-color: #D4AF37; /* Gold border on hover per Figma specs */
}

.service-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
}

.service-title {
	color: #D9D9D9;
	font-family: 'GT America Trial', -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 32px;
	font-weight: 500;
	font-style: normal;
	line-height: normal;
	text-align: center;
	margin: 0 0 20px 0;
}

.service-description {
	width: 324px;
	min-height: 86px;
	color: #D9D9D9;
	font-family: 'Test Tiempos Text', Georgia, serif;
	font-size: 24px;
	font-weight: 500;
	font-style: normal;
	line-height: normal;
	margin: 0;
	flex: 1;
	text-align: left; /* Left-align service description text */
}

.service-arrow-wrapper {
	position: absolute;
	bottom: 3.33px; /* 3.33px from bottom per Figma */
	right: 3.33px; /* 3.33px from right per Figma */
	width: 15px; /* Increased from 13.333px for better visibility */
	height: 15px; /* Increased from 13.333px for better visibility */
	display: block;
	line-height: 0; /* Prevent extra space around image */
	transition: opacity 0.3s ease;
	pointer-events: none; /* Allow clicks to pass through to parent */
}

.service-item:hover .service-arrow-wrapper {
	opacity: 0.8;
}

.service-arrow {
	width: 15px; /* Increased from 13.333px for better visibility */
	height: 15px; /* Increased from 13.333px for better visibility */
	opacity: 1; /* Removed 0.5 opacity - now full opacity for better visibility */
	display: block; /* Remove any inline spacing */
}

/* Clients Section */
.clients-section {
	background-color: #060606;
	overflow: hidden;
	padding: 0; /* Removed spacing to connect with services section */
}

.clients-container {
	padding: 0;
	margin: 0;
}

.clients-container h2 {
	display: none; /* Hide clients title */
}

.clients-carousel-wrapper {
	width: 100%;
	overflow: hidden;
	margin-top: var(--spacing-xl);
}

.clients-carousel {
	display: flex;
	gap: var(--spacing-lg);
	animation: scroll 70s linear infinite;
	-webkit-animation: scroll 70s linear infinite;
	will-change: transform; /* Optimize animation performance */
}

.client-item {
	flex-shrink: 0;
	width: 200px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--spacing-md);
}

.client-item img {
	max-width: 100%;
	height: auto;
	opacity: 0.7;
	transition: all var(--transition-base);
}

/* ORIGINAL GOLD ROLLOVER - Active */
.client-item:hover {
	filter: brightness(0) saturate(100%) invert(70%) sepia(64%) saturate(515%) hue-rotate(6deg) brightness(91%) contrast(87%);
}
/* ALTERNATIVE: Subtle gold glow version (commented out - discuss with design team/client):
.client-item:hover img {
	filter: brightness(1.15)
		   drop-shadow(0 0 1px var(--color-gold))
		   drop-shadow(0 0 1px var(--color-gold));
	opacity: 1;
}
*/

.clients-carousel:hover {
	animation-play-state: paused; /* Pause animation on hover */
}

@keyframes scroll {
	0% {
		transform: translateX(0);
	}
	100% {
		/* Calculate exact distance: (item width + gap) × number of logos */
		/* 200px item width + 32px gap (--spacing-lg) = 232px per item */
		/* Multiply by 15 logos to scroll through all before reset */
		transform: translateX(calc(-232px * 15));
	}
}

@-webkit-keyframes scroll {
	0% {
		-webkit-transform: translateX(0);
		transform: translateX(0);
	}
	100% {
		-webkit-transform: translateX(calc(-232px * 15));
		transform: translateX(calc(-232px * 15));
	}
}

/* Contact Section */
.contact-section {
	background-color: #060606; /* Updated to exact Figma color */
	padding: 0; /* No padding - position directly below clients */
	min-height: 300px; /* Ensure section is always visible */
	display: flex;
	align-items: center;
}

.contact-container {
	text-align: center;
	width: 100%;
	position: relative;
	z-index: 1;
}

.contact-headline {
	font-size: clamp(32px, 5vw, 48px);
	margin-bottom: var(--spacing-md);
	color: #D9D9D9;
}

.contact-pitch {
	max-width: 600px;
	margin: 0 auto var(--spacing-lg);
	color: #D9D9D9;
}

.contact-cta {
	display: flex;
	gap: var(--spacing-md);
	justify-content: center;
	flex-wrap: wrap;
	margin: 0; /* Remove margin - position directly below clients */
	position: relative;
	z-index: 50;
	min-height: 100px; /* Ensure button area is always visible */
	padding: 0; /* Remove padding */
}

/* Contact Button - Figma Specs */
.contact-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 250px;
	height: 75px;
	background: transparent;
	border: 1px solid #D4AF37; /* Gold border */
	color: #D9D9D9;
	font-family: 'GT America Trial', -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 28px;
	font-weight: 500; /* Medium */
	font-style: normal;
	line-height: 100.055%; /* 32.018px */
	text-align: center;
	text-decoration: none;
	transition: all 0.3s ease;
	cursor: pointer;
	position: relative;
	z-index: 100;
	opacity: 1 !important; /* Force full opacity */
}

.contact-button:hover {
	background-color: #D4AF37; /* Gold background on hover */
	color: #000000; /* Black text on hover */
	opacity: 1 !important;
}

/* Buttons */
.btn {
	display: inline-block;
	padding: var(--spacing-sm) var(--spacing-lg);
	font-family: var(--font-heading);
	font-size: var(--font-size-nav);
	text-decoration: none;
	border-radius: 4px;
	transition: all var(--transition-base);
	cursor: pointer;
	border: 2px solid transparent;
}

.btn-primary {
	background-color: var(--color-gold);
	color: var(--color-black);
	border-color: var(--color-gold);
}

.btn-primary:hover {
	background-color: transparent;
	color: var(--color-gold);
}

.btn-secondary {
	background-color: transparent;
	color: var(--color-primary);
	border-color: var(--color-primary);
}

.btn-secondary:hover {
	background-color: var(--color-primary);
	color: var(--color-black);
}

/* Social Links - Figma Specs */
.social-links {
	display: flex;
	gap: 35px; /* Figma: ~34.78-34.79px gaps */
	justify-content: center;
	align-items: center; /* Vertically center icons of different sizes */
	margin-top: 56.74px; /* Figma: 56.74px from contact button */
}

.social-link {
	width: 17.391px; /* Figma: exact icon size */
	height: 17.391px; /* Figma: exact icon size */
	aspect-ratio: 17.39 / 17.39;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all var(--transition-base);
}

.social-link svg {
	width: 100%;
	height: 100%;
	display: block;
}

.social-link svg path {
	transition: fill var(--transition-base);
	fill: #FFFFFF; /* White per Figma specs */
}

.social-link.social-imdb {
	width: 40px; /* Larger size for IMDB to ensure legibility */
	height: 40px;
	margin-left: -11px; /* Compensate for larger size to maintain consistent visual spacing */
	margin-right: -11px;
}

.social-link:hover svg path {
	fill: var(--color-gold); /* Gold hover effect */
}

/* ============================================
   Modal Styles - Following Lobal Orning Pattern
   ============================================ */

/* Modal wrapper - scrolls to keep content centered */
.service-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.85); /* 85% black like Lobal Orning */
	z-index: 10000;
	overflow-y: scroll; /* Entire modal scrolls, not just content */
	-webkit-overflow-scrolling: touch; /* Smooth iOS scrolling */
}

.service-modal.active {
	display: flex;
	align-items: center;
	justify-content: center;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

/* Modal dialog - handles centering and margins */
.modal-content {
	background-color: var(--color-black);
	max-width: 900px;
	width: 90%;
	margin: 20px auto 60px; /* 20px top, 60px bottom, centered horizontally */
	position: relative;
	border: none;
	box-shadow: none;
}

/* Close button - positioned absolutely, outside content flow */
.modal-close {
	position: absolute;
	top: 15px;
	right: 20px;
	background: none;
	border: none;
	color: #FFF;
	text-align: center;
	font-family: "GT America Trial", var(--font-body);
	font-size: 36px;
	font-style: normal;
	font-weight: 250;
	line-height: normal;
	cursor: pointer;
	transition: color var(--transition-base);
	z-index: 10;
	opacity: 1;
	outline: none;
	box-shadow: none;
}

.modal-close:hover {
	color: var(--color-gold);
	opacity: 1;
}

/* Modal body - actual content container with padding */
.modal-body {
	padding: 50px;
	display: flex;
	flex-direction: column;
	gap: var(--spacing-md);
}

.modal-video {
	width: 100%;
	height: 532px; /* Match Figma design height */
	overflow: hidden;
	position: relative;
	flex-shrink: 0;
}

.modal-video iframe {
	width: 100%;
	height: 100%;
	display: block;
	border: none;
}

.modal-title {
	width: 100%;
	color: #D9D9D9;
	text-align: center;
	font-family: "GT America Trial", var(--font-heading);
	font-size: 32px;
	font-style: normal;
	font-weight: 500;
	line-height: normal;
	margin: 0;
}

.modal-description {
	text-align: left;
	color: #D9D9D9;
	font-family: "Test Tiempos Text", var(--font-body);
	font-size: 24px;
	font-style: normal;
	font-weight: 500;
	line-height: normal;
	margin: 0;
}

.modal-details {
	text-align: left;
	color: #D9D9D9;
	font-family: "Test Tiempos Text", var(--font-body);
	font-size: 24px; /* Match description */
	font-style: normal;
	font-weight: 500; /* Match description */
	line-height: normal;
	margin-top: var(--spacing-sm);
}

.modal-links {
	margin-top: var(--spacing-sm);
}

.modal-links ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: var(--spacing-sm);
}

.modal-links li {
	margin: 0;
}

.modal-links a {
	display: flex;
	align-items: center;
	padding: var(--spacing-sm) var(--spacing-md);
	color: #FFF;
	font-family: "Test Tiempos Text", var(--font-body);
	font-size: 24px;
	font-style: normal;
	font-weight: 500;
	line-height: normal;
	border: none;
	transition: all var(--transition-base);
}

.modal-links a::before {
	content: '□';
	margin-right: var(--spacing-sm);
	font-size: 14px;
	border: 2px solid #D4AF37;
	background: rgba(212, 175, 55, 0.00);
	color: transparent;
	width: 20px;
	height: 20px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.modal-links a:hover {
	color: var(--color-gold);
}

/* Modal responsive adjustments for smaller screens */
@media screen and (max-height: 900px) {
	.modal-content {
		max-height: 95vh;
		width: 95%;
	}
	
	.modal-description {
		padding: 12px var(--spacing-md);
		font-size: 24px;
		line-height: 1.2;
	}
	
	.modal-links {
		padding: 0 var(--spacing-md) 12px;
	}
	
	.modal-links a {
		padding: 8px 12px;
		font-size: 24px;
	}
	
	.modal-close {
		top: 10px;
		right: 10px;
		font-size: 24px;
		width: 30px;
		height: 30px;
	}
}

@media screen and (max-height: 800px) {
	.modal-content {
		max-height: 98vh;
	}
	
	.modal-description {
		padding: 8px var(--spacing-sm);
		font-size: 24px;
	}
	
	.modal-links {
		padding: 0 var(--spacing-sm) 8px;
	}
	
	.modal-links ul {
		gap: 8px;
	}
	
	.modal-links a {
		padding: 6px 10px;
		font-size: 24px;
	}
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
	background-color: #060606;
	padding: var(--spacing-xl) 0 var(--spacing-lg);
}

.footer-container {
	max-width: var(--container-max-width);
	margin: 0 auto;
	padding: 0 var(--container-padding);
}

.footer-content {
	display: flex;
	justify-content: center;
	align-items: center;
}

.footer-info {
	text-align: center;
}

.footer-info p {
	color: #D9D9D9;
	font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 12px;
	font-style: normal;
	font-weight: 300;
	line-height: normal;
	margin: 0;
}

.footer-info a {
	color: #D9D9D9;
	text-decoration: none;
	transition: color var(--transition-base);
}

.footer-info a:hover {
	color: var(--color-gold);
}

/* Large Desktop Hero Height Fix - for MacBook Pro 16" and larger screens */
@media screen and (min-width: 1400px) {
	.hero-section {
		height: calc(100vh + 65px);
	}
	
	.hero-container {
		height: 100%;
	}
}

@media screen and (max-width: 768px) {
	.footer-content {
		flex-direction: column;
		text-align: center;
	}
}

/* ============================================
   Contact & Projects Pages
   ============================================ */

/* 1. Base container */
.container {
	max-width: 1440px;
	margin-inline: auto;
	padding-inline: 24px;
}

.contact-page,
.projects-page,
.page-content {
	padding: 120px 0 var(--spacing-xxl);
	width: 100%;
	background-color: #060606;
}

.entry-header {
	margin-bottom: var(--spacing-xl);
	text-align: center;
	max-width: 1440px;
	margin-left: auto;
	margin-right: auto;
	background-color: #060606;
}

.entry-content {
	margin-bottom: var(--spacing-xl);
	width: 100%;
	background-color: #060606;
}

/* Ensure all WordPress/Gutenberg content blocks have consistent background */
article,
.entry,
.post,
.page,
.wp-block,
.wp-block-group,
.wp-block-cover,
.wp-site-blocks {
	background-color: #060606;
}

/* 2. Contact-specific wrapper */
.contact__wrap {
	max-width: 1140px;
	margin-inline: auto;
	padding-inline: 24px;
}

/* Hide contact info (email/phone) */
.contact-info {
	display: none;
}

/* 3. Gravity Forms wrapper - centered */
.section.contact .gform_wrapper,
.contact-page .gform_wrapper {
	margin-inline: auto;
	padding: 0;
	width: 100%;
}

/* Form Body - Let Gravity Forms handle default layout */
.gform_wrapper .gform_body {
	margin: 0 auto 80px auto;
}

.gform_wrapper .gform_body ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

/* Field Labels */
.gform_wrapper .gfield_label,
.gform_wrapper label {
	color: #FFF !important;
	font-family: "GT America Trial", -apple-system, BlinkMacSystemFont, sans-serif !important;
	font-size: 20px !important;
	font-style: normal !important;
	font-weight: 400 !important;
	line-height: normal !important;
	margin-bottom: 35px; /* Figma: 35px between label and field */
	display: block;
}

/* Individual Fields */
.gform_wrapper .gfield {
	margin: 0;
	padding: 0;
}

/* Form Fields */
.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="tel"],
.gform_wrapper input[type="url"],
.gform_wrapper input[type="number"],
.gform_wrapper textarea,
.gform_wrapper select {
	width: 587px;
	max-width: 100%;
	height: 75px !important;
	padding: 20px;
	border: 2px solid #D9D9D9;
	background: #060606 !important;
	background-color: #060606 !important;
	color: #D9D9D9 !important;
	font-family: "Test Tiempos Text", Georgia, serif;
	font-size: 20px !important;
	font-style: normal;
	font-weight: 400;
	line-height: normal;
	border-radius: 0;
	transition: border-color 0.3s ease;
	box-sizing: border-box;
}

/* Message/Textarea Field - Full Width */
.gform_wrapper .gfield--type-textarea,
.gform_wrapper .gfield.large {
	grid-column: 1 / -1; /* Spans both columns */
}

.gform_wrapper .gfield--type-textarea textarea,
.gform_wrapper .gfield.large textarea {
	width: 1196px; /* Full width: 587 + 22 + 587 */
	height: 279px; /* Figma height */
	max-width: 100%;
	resize: vertical;
	min-height: 279px;
}

/* Regular textarea (if not full width) */
.gform_wrapper textarea {
	height: 107px;
	resize: vertical;
	min-height: 107px;
}

/* Field Hover State */
.gform_wrapper input[type="text"]:hover,
.gform_wrapper input[type="email"]:hover,
.gform_wrapper input[type="tel"]:hover,
.gform_wrapper input[type="url"]:hover,
.gform_wrapper input[type="number"]:hover,
.gform_wrapper textarea:hover,
.gform_wrapper select:hover {
	border-color: #D4AF37;
}

/* Field Focus State */
.gform_wrapper input[type="text"]:focus,
.gform_wrapper input[type="email"]:focus,
.gform_wrapper input[type="tel"]:focus,
.gform_wrapper input[type="url"]:focus,
.gform_wrapper input[type="number"]:focus,
.gform_wrapper textarea:focus,
.gform_wrapper select:focus {
	border-color: #D4AF37;
	outline: none;
}

/* Placeholder Text */
.gform_wrapper input::placeholder,
.gform_wrapper textarea::placeholder {
	color: rgba(255, 255, 255, 0.5);
}

/* Submit Button - Figma Specs (161px x 62px) */
.gform_wrapper .gform_footer {
	margin-top: 0 !important;
	padding: 0 !important;
	text-align: center !important;
	display: flex !important;
	justify-content: center !important;
	width: 100% !important;
}

.gform_wrapper input[type="submit"],
.gform_wrapper .gform_button {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 161px !important;
	height: 62px !important;
	background: rgba(6, 6, 6, 0.00) !important;
	border: 1px solid #D4AF37 !important;
	color: #D9D9D9 !important;
	font-family: "GT America Trial", -apple-system, BlinkMacSystemFont, sans-serif !important;
	font-size: 24px !important;
	font-weight: 500 !important;
	font-style: normal !important;
	line-height: normal !important;
	text-align: center !important;
	text-decoration: none !important;
	transition: all 0.3s ease !important;
	cursor: pointer !important;
	border-radius: 0 !important;
	padding: 0 !important;
}

.gform_wrapper input[type="submit"]:hover,
.gform_wrapper .gform_button:hover {
	background-color: #D4AF37 !important;
	color: #060606 !important;
}

/* Remove Gravity Forms default styling */
.gform_wrapper ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.gform_wrapper li {
	list-style: none;
}

/* Required Field Indicator */
.gform_wrapper .gfield_required {
	color: #D4AF37;
	margin-left: 4px;
}

.gform_wrapper .gfield_required_asterisk {
	color: #D4AF37;
}

/* Validation Errors */
.gform_wrapper .gfield_error {
	background-color: transparent !important;
	border: none !important;
	padding: 0 !important;
	margin-bottom: 30px !important;
}

.gform_wrapper .gfield_error input[type="text"],
.gform_wrapper .gfield_error input[type="email"],
.gform_wrapper .gfield_error input[type="tel"],
.gform_wrapper .gfield_error input[type="url"],
.gform_wrapper .gfield_error input[type="number"],
.gform_wrapper .gfield_error textarea,
.gform_wrapper .gfield_error select {
	border-color: #D4AF37 !important;
	background: rgba(212, 175, 55, 0.05) !important;
}

.gform_wrapper .gfield_error .gfield_label {
	color: #D4AF37 !important;
}

.gform_wrapper .validation_message {
	color: #D4AF37;
	font-family: "GT America Trial", -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 14px;
	font-weight: 400;
	margin-top: 8px;
	padding: 8px 12px;
	background: rgba(212, 175, 55, 0.1);
	border-left: 3px solid #D4AF37;
}

/* Form Validation Error Message (Top of Form) */
.gform_wrapper .validation_error {
	color: #D4AF37;
	font-family: "GT America Trial", -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 18px;
	font-weight: 500;
	background: rgba(212, 175, 55, 0.1);
	border: 2px solid #D4AF37;
	border-radius: 0;
	padding: 16px 20px;
	margin-bottom: 30px;
	text-align: center;
}

/* Success Message (Confirmation) */
.gform_confirmation_wrapper {
	text-align: center;
	padding: 40px 20px;
}

.gform_confirmation_message {
	color: #FFF;
	font-family: "GT America Trial", -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 24px;
	font-weight: 500;
	background: rgba(212, 175, 55, 0.1);
	border: 2px solid #D4AF37;
	border-radius: 0;
	padding: 30px;
	margin: 0 auto;
	max-width: 800px;
}

/* Field Description Text */
.gform_wrapper .gfield_description {
	color: rgba(255, 255, 255, 0.7);
	font-family: "Test Tiempos Text", Georgia, serif;
	font-size: 14px;
	font-weight: 400;
	margin-top: 8px;
	line-height: 1.4;
}

/* Remove Gravity Forms Default Borders/Backgrounds */
.gform_wrapper .gform_page_footer {
	border-top: none;
	padding: 0;
	margin-top: 40px;
}

.gform_wrapper .gf_progressbar_wrapper {
	margin-bottom: 30px;
}

.gform_wrapper .gf_progressbar {
	background-color: rgba(217, 217, 217, 0.2);
	border-radius: 0;
	height: 8px;
}

.gform_wrapper .gf_progressbar_percentage {
	background-color: #D4AF37;
	border-radius: 0;
	height: 8px;
	text-align: right;
	padding-right: 10px;
	line-height: 8px;
	color: #FFF;
	font-size: 12px;
}

/* Accessibility: Focus Visible States */
.gform_wrapper input:focus-visible,
.gform_wrapper textarea:focus-visible,
.gform_wrapper select:focus-visible {
	outline: 2px solid #D4AF37;
	outline-offset: 2px;
}

.gform_wrapper input[type="submit"]:focus-visible,
.gform_wrapper .gform_button:focus-visible {
	outline: 2px solid #D4AF37;
	outline-offset: 4px;
}

/* ============================================
   Responsive Adjustments
   ============================================ */

@media screen and (max-width: 1024px) {
	.homepage section {
		padding: var(--spacing-xl) 0;
	}
}

@media screen and (max-width: 768px) {
	/* Remove padding between services and clients */
	.services-section {
		padding-bottom: 0 !important;
		margin-bottom: 0 !important;
	}
	
	.services-container {
		padding-bottom: 0 !important;
		margin-bottom: 0 !important;
	}
	
	.services-grid {
		grid-template-columns: 1fr;
		margin-bottom: 0 !important;
		gap: 18px !important;
		padding-bottom: 0 !important;
	}
	
	/* Mobile-specific service card sizing */
	.service-item {
		width: 306px;
		height: 177px;
		margin: 0 auto !important; /* Center the card */
		padding: 20px 15px; /* Reduce padding on mobile */
	}
	
	.service-item:last-child {
		margin-bottom: 0 !important;
	}
	
	/* Mobile-specific service description typography */
	.service-description {
		width: auto !important; /* Allow it to fit container */
		max-width: 276px; /* 306px - 30px padding */
		font-size: 16px !important;
		font-weight: 500;
		line-height: normal;
		min-height: auto; /* Remove min-height constraint */
	}
	
	.service-title {
		font-size: 24px !important; /* Scale down title too */
		margin: 0 0 10px 0 !important;
	}

	/* Mobile: Two-column awards grid */
	.awards-grid {
		display: grid !important;
		grid-template-columns: repeat(2, 1fr);
		gap: var(--spacing-md);
		max-width: none;
	}
	
	.award-item {
		width: 100%;
	}
	
	/* Center last award item if odd number */
	.award-item:last-child:nth-child(odd) {
		grid-column: 1 / -1;
		justify-self: center;
	}
	
	/* Mobile: Negative margin pulls section up to close 100vh gap + overlay padding, then adds 36px */
	.about-section {
		margin-top: -150px !important; /* Increased to compensate for 35vh overlay padding */
		padding-top: 36px !important; /* Then add 36px for desired spacing */
	}
	
	/* Mobile: Fix floating footer on Chrome */
	.site {
		min-height: 100vh;
		min-height: -webkit-fill-available;
		display: flex;
		flex-direction: column;
	}
	
	.site-main {
		flex: 1 0 auto;
	}
	
	.site-footer {
		flex-shrink: 0;
	}
	
	/* Mobile: Left justify about text */
	.about-section .about-content .about-text {
		color: #D9D9D9 !important;
		text-align: left !important;
		font-family: 'Test Tiempos Text', Georgia, serif !important;
		font-size: 16px !important;
		font-style: normal !important;
		font-weight: 500 !important;
		line-height: normal !important;
		max-width: 100% !important;
		padding: 0 var(--spacing-md) !important;
	}
	
	.about-section .about-content .about-text p {
		font-size: 16px !important;
		text-align: left !important;
		color: #D9D9D9 !important;
	}
	
	/* Mobile: Remove spacing between services and client logos */
	.clients-section {
		margin-top: 0 !important; /* Reset margin - using services padding instead */
	}
	
	.services-section {
		padding-bottom: 40px !important; /* Add 40px padding between services and clients */
		margin-bottom: 0 !important;
	}
	
	.clients-carousel-wrapper {
		margin-top: 0 !important;
	}

	.contact-cta {
		flex-direction: column;
		align-items: center;
	}

	.btn {
		width: 100%;
		max-width: 300px;
	}

	/* Mobile: Client logo carousel */
	.client-item {
		width: 120px !important;
		padding: var(--spacing-sm) !important;
	}
	
	.clients-carousel {
		gap: var(--spacing-sm) !important;
		animation: scrollMobile 50s linear infinite !important;
		-webkit-animation: scrollMobile 50s linear infinite !important;
		will-change: auto;
	}
	
	@keyframes scrollMobile {
		0% {
			transform: translateX(0);
		}
		100% {
			transform: translateX(calc(-120px * 13 - var(--spacing-sm) * 13));
		}
	}
	
	.clients-carousel:hover {
		animation-play-state: running !important; /* Keep it running on mobile (no hover) */
		-webkit-animation-play-state: running !important;
	}
	
	/* Mobile: Service Modal Adjustments */
	.modal-content {
		width: 95% !important;
		margin: 10px auto 40px !important;
	}
	
	.modal-body {
		padding: 20px !important;
	}
	
	.modal-video {
		width: 100% !important;
		height: auto !important; /* Remove fixed height */
		aspect-ratio: 16 / 9 !important; /* Force 16:9 landscape ratio */
	}
	
	.modal-close {
		top: 10px !important;
		right: 10px !important;
		font-size: 28px !important;
		z-index: 10001 !important; /* Ensure it stays on top */
	}
	
	.modal-title {
		font-size: 24px !important;
		margin-bottom: var(--spacing-sm) !important;
	}
	
	.modal-description,
	.modal-details {
		font-size: 16px !important;
		line-height: 1.4 !important;
	}
	
	.modal-links a {
		font-size: 16px !important;
		padding: var(--spacing-xs) var(--spacing-sm) !important;
	}
	
	/* Mobile: Contact Form Adjustments */
	.gform_wrapper input[type="text"],
	.gform_wrapper input[type="email"],
	.gform_wrapper input[type="tel"],
	.gform_wrapper input[type="url"],
	.gform_wrapper input[type="number"],
	.gform_wrapper textarea,
	.gform_wrapper select {
		width: 450px !important;
		height: 75px !important;
	}
}

/* ============================================
   Gutenberg Block Spacing Utilities
   ============================================ */

/* Add these classes to blocks via "Additional CSS class(es)" in the Advanced panel */

/* Margin Top Utilities */
.mt-0 { margin-top: 0 !important; }
.mt-xs { margin-top: var(--spacing-xs) !important; } /* 8px */
.mt-sm { margin-top: var(--spacing-sm) !important; } /* 16px */
.mt-md { margin-top: var(--spacing-md) !important; } /* 24px */
.mt-lg { margin-top: var(--spacing-lg) !important; } /* 32px */
.mt-xl { margin-top: var(--spacing-xl) !important; } /* 48px */
.mt-xxl { margin-top: var(--spacing-xxl) !important; } /* 96px */

/* Margin Bottom Utilities */
.mb-0 { margin-bottom: 0 !important; }
.mb-xs { margin-bottom: var(--spacing-xs) !important; }
.mb-sm { margin-bottom: var(--spacing-sm) !important; }
.mb-md { margin-bottom: var(--spacing-md) !important; }
.mb-lg { margin-bottom: var(--spacing-lg) !important; }
.mb-xl { margin-bottom: var(--spacing-xl) !important; }
.mb-xxl { margin-bottom: var(--spacing-xxl) !important; }

/* Margin Y (Top and Bottom) Utilities */
.my-0 { margin-top: 0 !important; margin-bottom: 0 !important; }
.my-xs { margin-top: var(--spacing-xs) !important; margin-bottom: var(--spacing-xs) !important; }
.my-sm { margin-top: var(--spacing-sm) !important; margin-bottom: var(--spacing-sm) !important; }
.my-md { margin-top: var(--spacing-md) !important; margin-bottom: var(--spacing-md) !important; }
.my-lg { margin-top: var(--spacing-lg) !important; margin-bottom: var(--spacing-lg) !important; }
.my-xl { margin-top: var(--spacing-xl) !important; margin-bottom: var(--spacing-xl) !important; }
.my-xxl { margin-top: var(--spacing-xxl) !important; margin-bottom: var(--spacing-xxl) !important; }

/* Padding Top Utilities */
.pt-0 { padding-top: 0 !important; }
.pt-xs { padding-top: var(--spacing-xs) !important; }
.pt-sm { padding-top: var(--spacing-sm) !important; }
.pt-md { padding-top: var(--spacing-md) !important; }
.pt-lg { padding-top: var(--spacing-lg) !important; }
.pt-xl { padding-top: var(--spacing-xl) !important; }
.pt-xxl { padding-top: var(--spacing-xxl) !important; }

/* Padding Bottom Utilities */
.pb-0 { padding-bottom: 0 !important; }
.pb-xs { padding-bottom: var(--spacing-xs) !important; }
.pb-sm { padding-bottom: var(--spacing-sm) !important; }
.pb-md { padding-bottom: var(--spacing-md) !important; }
.pb-lg { padding-bottom: var(--spacing-lg) !important; }
.pb-xl { padding-bottom: var(--spacing-xl) !important; }
.pb-xxl { padding-bottom: var(--spacing-xxl) !important; }

/* Padding Y (Top and Bottom) Utilities */
.py-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
.py-xs { padding-top: var(--spacing-xs) !important; padding-bottom: var(--spacing-xs) !important; }
.py-sm { padding-top: var(--spacing-sm) !important; padding-bottom: var(--spacing-sm) !important; }
.py-md { padding-top: var(--spacing-md) !important; padding-bottom: var(--spacing-md) !important; }
.py-lg { padding-top: var(--spacing-lg) !important; padding-bottom: var(--spacing-lg) !important; }
.py-xl { padding-top: var(--spacing-xl) !important; padding-bottom: var(--spacing-xl) !important; }
.py-xxl { padding-top: var(--spacing-xxl) !important; padding-bottom: var(--spacing-xxl) !important; }

/* Width Utilities */
.w-25 { width: 25% !important; }
.w-50 { width: 50% !important; }
.w-75 { width: 75% !important; }
.w-100 { width: 100% !important; }
.w-auto { width: auto !important; }

/* Max Width Utilities */
.max-w-sm { max-width: 400px !important; }
.max-w-md { max-width: 600px !important; }
.max-w-lg { max-width: 800px !important; }
.max-w-xl { max-width: 1000px !important; }
.max-w-full { max-width: 100% !important; }

/* Height Utilities */
.h-auto { height: auto !important; }
.h-300 { height: 300px !important; }
.h-400 { height: 400px !important; }
.h-500 { height: 500px !important; }
.h-600 { height: 600px !important; }

/* Aspect Ratio Utilities (for video embeds) */
.aspect-16-9 { aspect-ratio: 16 / 9 !important; }
.aspect-4-3 { aspect-ratio: 4 / 3 !important; }
.aspect-1-1 { aspect-ratio: 1 / 1 !important; }

/* Center Block */
.mx-auto { margin-left: auto !important; margin-right: auto !important; }

