/*
Theme Name: FAMPMC Theme
Theme URI: https://fam-pmc.com/
Author: FAMPMC
Author URI: https://fam-pmc.com/
Description: A custom theme for FAMPMC.
Version: 1.0
Requires at least: 5.0
Tested up to: 6.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fam-pmc
*/

/* ============================================
   CSS VARIABLES & CUSTOM PROPERTIES
   ============================================ */
:root {
	/* Colors */
	--color-primary: #2563eb;
	--color-secondary: #64748b;
	--color-accent: #f59e0b;
	--color-text: #1e293b;
	--color-text-light: #64748b;
	--color-bg: #ffffff;
	--color-bg-alt: #f8fafc;
	--color-border: #e2e8f0;

	/* Typography Scale - Fluid */
	--font-size-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
	--font-size-sm: clamp(0.875rem, 0.825rem + 0.25vw, 1rem);
	--font-size-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
	--font-size-lg: clamp(1.125rem, 1.05rem + 0.375vw, 1.25rem);
	--font-size-xl: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
	--font-size-2xl: clamp(1.5rem, 1.35rem + 0.75vw, 2rem);
	--font-size-3xl: clamp(1.875rem, 1.65rem + 1.125vw, 2.5rem);
	--font-size-4xl: clamp(2.25rem, 1.95rem + 1.5vw, 3rem);

	/* Font Weights */
	--font-weight-light: 300;
	--font-weight-normal: 400;
	--font-weight-medium: 500;
	--font-weight-semibold: 600;
	--font-weight-bold: 700;

	/* Spacing Scale - Fluid */
	--space-xs: clamp(0.5rem, 0.45rem + 0.25vw, 0.625rem);
	--space-sm: clamp(0.75rem, 0.675rem + 0.375vw, 1rem);
	--space-md: clamp(1rem, 0.9rem + 0.5vw, 1.5rem);
	--space-lg: clamp(1.5rem, 1.35rem + 0.75vw, 2rem);
	--space-xl: clamp(2rem, 1.8rem + 1vw, 3rem);
	--space-2xl: clamp(3rem, 2.7rem + 1.5vw, 4rem);
	--space-3xl: clamp(4rem, 3.6rem + 2vw, 6rem);

	/* Layout */
	--max-width-content: 1400px;
	--max-width-text: 65ch;
	--container-padding: clamp(1rem, 5vw, 3rem);
	/* Shared page spacing tokens */
	--breadcrumb-offset-top: calc(var(--space-3xl) / 2); /* distance from header to first breadcrumb */
	--grid-gutter-col-desktop: 96px; /* desktop column gutter for 2-col and 3-col grids */
	--grid-gutter-row-desktop: 24px; /* desktop row gutter baseline */

	/* Transitions */
	--transition-fast: 150ms ease-in-out;
	--transition-base: 250ms ease-in-out;
	--transition-slow: 350ms ease-in-out;

	/* Border Radius */
	--radius-sm: 0.25rem;
	--radius-md: 0.5rem;
	--radius-lg: 1rem;
	--radius-full: 9999px;

	/* Shadows */
	--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
	--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
	--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* Global mobile page padding: 24px on both sides across all pages */
@media (max-width: 767px) {
	:root {
		--container-padding: 24px;
	}
}

/* ============================================
   RESET & NORMALIZE
   ============================================ */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	font-size: 16px;
}

body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	font-size: var(--font-size-base);
	line-height: 1.6;
	color: var(--color-text);
	background-color: rgba(244, 244, 244, 1);
	overflow-x: hidden;
	width: 100%;
	max-width: 100vw;
}

html {
	overflow-x: hidden;
	width: 100%;
	max-width: 100vw;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
	font-weight: var(--font-weight-bold);
	line-height: 1.2;
	margin-bottom: var(--space-md);
}

h1 {
	font-family: 'Aboreto', serif;
	font-weight: 400;
	font-style: normal;
	font-size: clamp(40px, 5vw, 80px);
	line-height: 1.2;
	letter-spacing: 0%;
}

h2 {
	font-size: var(--font-size-3xl);
}

h3 {
	font-size: var(--font-size-2xl);
}

h4 {
	font-size: var(--font-size-xl);
}

h5 {
	font-size: var(--font-size-lg);
}

h6 {
	font-size: var(--font-size-base);
}

p {
	margin-bottom: var(--space-md);
}

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

a:hover,
a:focus {
	color: var(--color-accent);
	text-decoration: underline;
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */

/* Max-width container for content alignment */
.container,
.max-width-container {
	max-width: var(--max-width-content);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--container-padding);
	padding-right: var(--container-padding);
	width: 100%;
	box-sizing: border-box;
}

/* Header and footer containers inherit global max width via .container */

/* Full-bleed utility for sections that need to break out */
.full-bleed {
	width: 100vw;
	margin-left: 50%;
	transform: translateX(-50%);
}

/* Text container for optimal reading width */
.text-container {
	max-width: var(--max-width-text);
	margin-left: auto;
	margin-right: auto;
}

/* Section spacing */
.section {
	padding-top: var(--space-2xl);
	padding-bottom: var(--space-2xl);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Spacing utilities */
.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

.pt-xs { padding-top: var(--space-xs); }
.pt-sm { padding-top: var(--space-sm); }
.pt-md { padding-top: var(--space-md); }
.pt-lg { padding-top: var(--space-lg); }
.pt-xl { padding-top: var(--space-xl); }
.pt-2xl { padding-top: var(--space-2xl); }

.pb-xs { padding-bottom: var(--space-xs); }
.pb-sm { padding-bottom: var(--space-sm); }
.pb-md { padding-bottom: var(--space-md); }
.pb-lg { padding-bottom: var(--space-lg); }
.pb-xl { padding-bottom: var(--space-xl); }
.pb-2xl { padding-bottom: var(--space-2xl); }

/* Text alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Display utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

/* ============================================
   COMPONENTS
   ============================================ */

/* Buttons - Reusable CTA */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 203px;
	height: 48px;
	padding: 8px 24px;
	gap: 8px;
	font-family: 'Reddit Sans', sans-serif;
	font-weight: 400;
	font-style: normal;
	font-size: 16px;
	line-height: 24px;
	letter-spacing: 0%;
	text-align: center;
	text-decoration: none;
	background-color: rgba(101, 150, 153, 1);
	color: rgba(244, 244, 244, 1);
	border: 1px solid rgba(244, 244, 244, 1);
	border-radius: 0;
	cursor: pointer;
	transition: all var(--transition-base);
	white-space: nowrap;
	opacity: 1;
}

.btn:hover,
.btn:focus {
	background-color: rgba(101, 150, 153, 1);
	border-color: rgba(244, 244, 244, 1);
	transform: translateY(-2px);
	text-decoration: none;
	color: rgba(244, 244, 244, 1);
}

.btn:active {
	transform: translateY(0);
}

/* Cards */
.card {
	background-color: var(--color-bg);
	border: 1px solid var(--color-border);
	border-radius: 0;
	padding: var(--space-lg);
	box-shadow: var(--shadow-sm);
	transition: all var(--transition-base);
}

.card:hover {
	box-shadow: var(--shadow-lg);
	transform: translateY(-4px);
}

/* ============================================
   HEADER STYLES
   ============================================ */
.site-header {
	background: rgba(244, 244, 244, 1);
	box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.2);
	padding: var(--space-md) 0;
	position: sticky;
	top: 0;
	z-index: 1000;
}

.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

/* Ensure header/footer containers match global section width across all pages */
.site-header .container,
.site-footer .container {
	max-width: var(--max-width-content);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--container-padding);
	padding-right: var(--container-padding);
}

.site-branding {
	display: flex;
	align-items: center;
}

.site-logo {
	display: flex;
	align-items: center;
}

.site-logo img {
	height: auto;
	max-height: 60px;
	width: auto;
	display: block;
}

.header-menu-toggle {
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity var(--transition-base);
}

.header-menu-toggle:hover,
.header-menu-toggle:focus {
	opacity: 0.7;
}

.header-menu-toggle,
.header-menu-toggle:focus {
	outline: none;
	box-shadow: none;
	-webkit-tap-highlight-color: transparent;
}

.header-menu-toggle img {
	height: 12px;
	width: 60px;
	display: block;
}

/* Tablet and Mobile adjustments */
@media (max-width: 1023px) {
	.site-logo img {
		max-height: 50px;
	}
	
	.header-menu-toggle img {
		height: 10px;
		width: 50px;
	}
}

@media (max-width: 767px) {
	.site-header {
		padding: var(--space-sm) 0;
	}
	
	.site-logo img {
		max-height: 40px;
	}
	
	.header-menu-toggle img {
		height: 8px;
		width: 40px;
	}

	/* Mobile-specific close icon sizing/position */
	.mobile-menu-close {
		right: 24px;
	}

	.mobile-menu-close img {
		width: 32px !important;
		height: 24px !important;
	}

	/* Mobile overlay menu item text size */
	.mobile-menu a {
		font-size: 32px;
		line-height: 40px;
	}

	/* Ensure overlay menu items stay visually centered on mobile */
	.mobile-menu ul {
		justify-content: center;
	}
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
	margin: var(--space-md) 0 var(--space-lg);
}

.breadcrumb-list {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
	text-transform: uppercase;
}

.breadcrumb-item {
	font-family: 'Reddit Sans', sans-serif;
	font-weight: 300; /* Light */
	font-size: 16px;
	line-height: 24px;
	letter-spacing: 0;
	color: rgba(32, 33, 38, 1);
}

.breadcrumb-item.current .breadcrumb-label {
	font-weight: 500; /* Medium */
	color: rgba(101, 150, 153, 1);
}

.breadcrumb-link {
	color: inherit;
	text-decoration: none;
}

.breadcrumb-link:hover,
.breadcrumb-link:focus {
	text-decoration: underline;
}

.breadcrumb-sep {
	width: 24px;
	height: 24px;
	display: inline-block;
	vertical-align: middle;
}

/* Primary navigation (desktop) */
.primary-navigation {
	display: none;
}

@media (min-width: 992px) {
	.primary-navigation {
		display: block;
	}

	.primary-navigation ul {
		display: flex;
		gap: var(--space-lg);
		list-style: none;
		margin: 0;
		padding: 0;
	}

	.primary-navigation a {
		color: var(--color-text);
		text-decoration: none;
		font-weight: var(--font-weight-medium);
	}
}

/* Mobile menu drawer */
.mobile-menu {
	position: fixed;
	inset: 0;
	background: rgba(255, 255, 255, 1);
	z-index: 1200;
	padding: var(--space-lg);
	overflow-y: auto;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mobile-menu[hidden] {
	display: none !important;
}

.mobile-menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--space-xl);
	align-items: center;
}

.mobile-menu a {
	color: rgba(32, 33, 38, 1);
	font-family: 'Aboreto', serif;
	font-weight: 400;
	font-size: 50px;
	line-height: 60px;
	letter-spacing: 0;
	text-transform: uppercase;
	text-align: center;
	text-decoration: none;
	position: relative;
	transition: color var(--transition-base);
}

.mobile-menu a::after {
	content: '';
	position: absolute;
	left: 50%;
	transform: translateX(-50%) scaleX(0);
	transform-origin: center;
	bottom: -8px;
	width: 100%;
	height: 3px;
	background: rgba(101, 150, 153, 1);
	transition: transform var(--transition-base);
}

.mobile-menu a:hover,
.mobile-menu a:focus {
	color: rgba(101, 150, 153, 1);
}

.mobile-menu a:hover::after,
.mobile-menu a:focus::after {
	transform: translateX(-50%) scaleX(1);
}

.mobile-menu-close {
	position: absolute;
	top: 64px;
	right: 96px;
	background: none;
	border: none;
	font-size: 0;
	line-height: 1;
	cursor: pointer;
	z-index: 1;
}

.mobile-menu-close,
.mobile-menu-close:focus {
	outline: none;
	box-shadow: none;
	-webkit-tap-highlight-color: transparent;
}

.mobile-menu-close img {
	width: 64px;
	height: 48px;
	display: block;
}

/* Prevent background scroll when menu is open */
.mobile-menu-open {
	overflow: hidden !important;
	position: fixed;
	width: 100%;
}

/* ============================================
   FOOTER STYLES
   ============================================ */
.site-footer {
	background: rgba(244, 244, 244, 1);
	border-top: 1px solid rgba(175, 178, 178, 1);
	padding: var(--space-lg) 0;
	margin-top: 0;
}

.site-footer .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: var(--space-md);
}

.footer-copyright {
	font-family: 'Reddit Sans', sans-serif;
	font-weight: 300;
	font-size: 14px;
	line-height: 100%;
	letter-spacing: 2%;
	text-align: center;
	color: rgba(32, 33, 38, 1);
	margin: 0;
}

.footer-social {
	display: flex;
	align-items: center;
	gap: var(--space-sm);
}

.footer-social-text {
	font-family: 'Reddit Sans', sans-serif;
	font-weight: 300;
	font-size: 14px;
	line-height: 100%;
	letter-spacing: 2%;
	text-align: center;
	color: rgba(32, 33, 38, 1);
	margin: 0;
}

.footer-social-icons {
	display: flex;
	align-items: center;
	gap: 12px;
}

.footer-social-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	transition: opacity var(--transition-base);
}

.footer-social-icon:hover {
	opacity: 0.7;
	text-decoration: none;
}

.footer-social-icon img {
	width: 24px;
	height: 24px;
	display: block;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.site-content {
	min-height: 60vh;
	width: 100%;
	overflow-x: hidden;
}

.site-main {
	padding: var(--space-2xl) 0;
}

/* ============================================
   HOMEPAGE SECTIONS
   ============================================ */

.video-section {
	position: relative;
	width: 100%;
	height: 100vh; /* or any container height */
	background-color: #000;
	overflow: hidden; /* hides any vertical overflow if video height > container */
}

.video-section .section-video {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 100%;       /* match container width */
	height: auto;      /* height scales automatically */
	transform: translate(-50%, -50%);
	object-fit: cover; /* fills container, may crop vertically */
}


/* Responsive adjustments for video section */
@media (max-width: 1023px) {
	.video-section {
		height: 80vh;
	}
}

@media (max-width: 767px) {
	.video-section {
		height: 60vh;
	}
}

/* Hero Section */
.hero-section {
	background-image: url('./assets/images/homepage_1.jpeg');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	min-height: 100vh;
	display: flex;
	align-items: center;
	position: relative;
	width: 100%;
	overflow: hidden;
}

.hero-content {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-2xl);
	align-items: center;
	width: 100%;
}

.hero-text {
	display: flex;
	flex-direction: column;
	gap: 48px;
}

.hero-text h1 {
	color: white;
	margin: 0;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-cta {
	display: flex;
	justify-content: flex-start;
}

/* About Section */
.about-section {
	background: transparent;
	padding: var(--space-3xl) 0;
	width: 100%;
	overflow: hidden;
}

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

.about-image img {
	width: 100%;
	height: auto;
	border-radius: 0;
}

.about-text {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.about-text h2 {
	font-family: 'Aboreto', serif;
	font-weight: 400;
	font-style: normal;
	font-size: clamp(30px, 4vw, 50px);
	line-height: 1.2;
	letter-spacing: 0px;
	text-transform: uppercase;
	color: rgba(32, 33, 38, 1);
	margin: 0;
}

.about-text p {
	color: rgba(32, 33, 38, 1);
	font-family: 'Reddit Sans', sans-serif;
	font-weight: 300;
	font-style: normal;
	font-size: 16px;
	line-height: 24px;
	letter-spacing: 2%;
	margin: 0;
}

.about-cta {
	display: flex;
}

/* About Statistics Section */
.about-statistics-wrapper {
	width: 100%;
	background: rgba(101, 150, 153, 0.1);
	padding: var(--space-3xl) 0;
	margin-top: var(--space-3xl);
	border-top: 1px solid rgba(32, 33, 38, 0.1);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.about-statistics {
	display: grid;
	grid-template-columns: repeat(3, minmax(min-content, 1fr));
	gap: var(--space-3xl);
	max-width: 100%;
	margin: 0 auto;
	padding: 0 var(--container-padding);
	align-items: center;
	width: 100%;
}

.stat-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 8px;
	min-width: 0;
	width: 100%;
}

.stat-number {
	font-family: 'Reddit Sans', sans-serif;
	font-weight: 700;
	font-size: clamp(40px, 5vw, 64px);
	line-height: 1.2;
	color: rgba(101, 150, 153, 1);
	margin: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-wrap: nowrap;
}

.stat-number .stat-suffix {
	font-size: 50%;
	display: inline-flex;
	align-items: center;
	line-height: 1;
	margin-left: 0.3em;
	color: rgba(32, 33, 38, 1);
}

.stat-label {
	font-family: 'Reddit Sans', sans-serif;
	font-weight: 700;
	font-style: normal;
	font-size: clamp(20px, 2.5vw, 32px);
	line-height: 1;
	letter-spacing: 2%;
	color: rgba(32, 33, 38, 1);
	margin: 0;
	white-space: nowrap;
	width: 100%;
}

.stat-subtext {
	font-family: 'Reddit Sans', sans-serif;
	font-weight: 300;
	font-style: normal;
	font-size: 16px;
	line-height: 24px;
	letter-spacing: 2%;
	color: rgba(32, 33, 38, 1);
	margin: 0;
}

/* Solutions Section */
.solutions-section {
	background: rgba(101, 150, 153, 0.2);
	padding: var(--space-3xl) 0;
	width: 100%;
	overflow: hidden;
}

.solutions-content {
	display: grid;
	grid-template-columns: 40% 60%;
	gap: var(--space-2xl);
	align-items: center;
}

.solutions-text {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.solutions-text h2 {
	font-family: 'Aboreto', serif;
	font-weight: 400;
	font-style: normal;
	font-size: clamp(30px, 4vw, 50px);
	line-height: 1.2;
	letter-spacing: 0px;
	text-transform: uppercase;
	color: rgba(32, 33, 38, 1);
	margin: 0;
}

.solutions-text p {
	color: rgba(32, 33, 38, 1);
	font-family: 'Reddit Sans', sans-serif;
	font-weight: 300;
	font-style: normal;
	font-size: 16px;
	line-height: 24px;
	letter-spacing: 2%;
	margin: 0;
}

.solutions-cta {
	display: flex;
}

/* Solutions Taglines */
.solutions-taglines {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 48px;
}

.solutions-tagline {
	font-family: 'Aboreto', serif;
	font-weight: 400;
	font-style: normal;
	font-size: clamp(30px, 4vw, 50px);
	line-height: 1.2;
	letter-spacing: 0px;
	text-transform: uppercase;
	color: rgba(32, 33, 38, 1);
	opacity: 0;
	transform: translateX(-100px);
	transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.solutions-tagline.animate-in {
	opacity: 1;
	transform: translateX(0);
}

.solutions-tagline.solutions-tagline-item {
	font-size: clamp(22.5px, 3vw, 37.5px);
}

/* Solution Cards */
.solutions-cards-wrapper {
	position: relative;
}

.solutions-cards-container {
	display: flex;
	gap: 24px;
	overflow-x: auto;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-ms-overflow-style: none;
	padding: 20px 0;
	width: 100%;
}

.solutions-cards-container::-webkit-scrollbar {
	display: none;
}

.solution-card {
	flex: 0 0 292px;
	width: 292px;
	height: 371px;
	background-color: rgba(244, 244, 244, 1);
	padding: 32px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	text-decoration: none;
	transition: all var(--transition-base);
	border-radius: 0;
	border: none;
}

.solution-card:hover {
	background-color: rgba(101, 150, 153, 1);
	text-decoration: none;
	transform: translateY(-2px);
	box-shadow: 0px 10px 15px 0px rgba(0, 0, 0, 0.15);
}

.solution-card:focus {
	outline: none;
	text-decoration: none;
}

.solution-card:active {
	transform: translateY(0);
}

.solution-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background-color: rgba(101, 150, 153, 1);
	transition: background-color var(--transition-base);
}

.solution-logo img {
	width: 32px;
	height: 32px;
	object-fit: contain;
	/* Default icon color: rgba(244, 244, 244, 1) (white) */
	filter: brightness(0) saturate(100%) invert(100%);
}

.solution-card:hover .solution-logo {
	background-color: rgba(244, 244, 244, 1);
}

/* Hover icon color: rgba(101, 150, 153, 1) approximated via CSS filters */
.solution-card:hover .solution-logo img {
	/* Approximate #659699 */
	filter: invert(61%) sepia(13%) saturate(936%) hue-rotate(138deg) brightness(88%) contrast(88%);
}

.solution-logo-placeholder {
	width: 80px;
	height: 80px;
	background-color: rgba(101, 150, 153, 0.3);
	border-radius: 0;
}

.solution-title {
	font-family: 'Reddit Sans', sans-serif;
	font-weight: 600;
	font-size: 18px;
	line-height: 28px;
	letter-spacing: 2%;
	text-transform: uppercase;
	color: rgba(32, 33, 38, 1);
	margin: 0;
	align-self: flex-start;
	text-decoration: none;
	/* Ensure consistent two-line block: clamp to 2 lines and reserve space */
	display: -webkit-box;
	line-clamp: 2;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 56px; /* 2 * 28px line-height */
	max-height: 56px;
}

.solution-card:hover .solution-title {
	color: rgba(244, 244, 244, 1);
	text-decoration: none;
}

/* Navigation Arrows */
.solutions-navigation {
	display: flex;
	gap: 16px;
	justify-content: flex-end;
	margin-top: 24px;
}

.solution-nav-btn {
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity var(--transition-base);
	opacity: 1;
}

.solution-nav-btn:hover:not(.disabled) {
	opacity: 0.7;
}

.solution-nav-btn.disabled {
	opacity: 0.3;
	cursor: not-allowed;
	pointer-events: none;
}

.solution-nav-btn img {
	width: 40px;
	height: 40px;
	display: block;
}

/* Responsive Design for Homepage */
@media (max-width: 1023px) {
	.hero-content,
	.about-content,
	.procore-content {
		grid-template-columns: 1fr;
		gap: var(--space-xl);
		text-align: center;
	}
	
	.hero-cta {
		justify-content: center;
	}
	
	.about-text,
	.procore-text {
		align-items: center;
		max-width: 640px;
		margin: 0 auto;
	}
	
	.about-text h2,
	.procore-text h2 {
		text-align: center;
	}
	
	.about-text p,
	.procore-text p {
		text-align: center;
	}
	
	.about-cta,
	.procore-cta {
		justify-content: center;
	}
	
	.about-statistics-wrapper {
		padding: var(--space-2xl) 0;
		margin-top: var(--space-2xl);
	}
	
	.about-statistics {
		grid-template-columns: repeat(3, 1fr);
		gap: var(--space-2xl);
	}
	
	.stat-item {
		align-items: center;
		text-align: center;
	}
	
	.solutions-content {
		grid-template-columns: 1fr;
		gap: var(--space-lg);
		text-align: center;
	}
	
	.solutions-text {
		order: 1;
	}

	.solutions-taglines {
		align-items: center;
		text-align: center;
	}
	
	.solutions-cards-wrapper {
		order: 2;
		margin: 0 calc(-1 * var(--container-padding));
		width: calc(100% + (2 * var(--container-padding)));
	}
	
	.solutions-cards-container {
		padding-left: var(--container-padding);
		padding-right: var(--container-padding);
		margin: 0;
		width: 100%;
	}
	
	.projects-header {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
	
	.projects-cards-container {
		justify-content: flex-start;
	}
	
	.projects-navigation {
		justify-content: center;
	}
	
	.hero-section {
		min-height: 80vh;
		padding: var(--space-xl) 0;
	}
	
	.solutions-cards-container {
		justify-content: flex-start;
	}
	
	.solutions-navigation {
		justify-content: center;
	}
}

@media (max-width: 767px) {
	body {
		overflow-x: hidden;
	}
	
	.hero-section {
		min-height: 70vh;
		padding: var(--space-lg) 0;
	}
	
	.hero-text {
		gap: 32px;
	}
	
	.hero-content {
		padding: 0;
	}
	
	.about-text,
	.solutions-text,
	.procore-text {
		gap: 16px;
		align-items: center;
	}
	
	.about-text h2,
	.solutions-text h2,
	.procore-text h2,
	.projects-header h2 {
		font-size: clamp(24px, 6vw, 35px);
	}

	.solutions-tagline {
		font-size: clamp(24px, 6vw, 35px);
	}
	
	.about-image img {
		width: 100%;
		max-width: 100%;
		height: auto;
	}
	
	.about-statistics-wrapper {
		padding: var(--space-2xl) 0;
		margin-top: var(--space-2xl);
	}
	
	.about-statistics {
		grid-template-columns: 1fr;
		gap: var(--space-xl);
		text-align: center;
	}
	
	.stat-item {
		align-items: center;
	}
	
	.solution-card {
		flex: 0 0 calc(100% - (2 * var(--container-padding)) - 16px);
		width: calc(100% - (2 * var(--container-padding)) - 16px);
		height: 320px;
		padding: 24px;
		scroll-snap-align: center;
	}
	
	.solutions-section {
		overflow: hidden;
	}
	
	.solutions-cards-wrapper {
		width: 100%;
		margin: 0;
		overflow: hidden;
	}
	
	.solutions-cards-container {
		-webkit-overflow-scrolling: touch;
		overflow-x: auto;
		scrollbar-width: none;
		-ms-overflow-style: none;
		padding: 20px var(--container-padding);
		margin: 0;
		width: 100%;
		display: flex;
		gap: 16px;
		scroll-snap-type: x mandatory;
	}
	
	.solutions-cards-container::-webkit-scrollbar {
		display: none;
	}
	
	.solutions-cta .btn {
		width: auto;
		min-width: 203px;
		justify-content: center;
		align-self: center;
	}
	
	.project-card {
		flex: 0 0 320px;
		width: 320px;
		height: 360px;
	}
	
	.projects-cards-container {
		padding-left: var(--container-padding);
		padding-right: var(--container-padding);
	}
	
	.projects-header-cta .btn {
		width: 100%;
		justify-content: center;
	}
	
	.hero-cta .btn,
	.about-cta .btn,
	.procore-cta .btn {
		width: auto;
		min-width: 203px;
		justify-content: center;
		align-self: center;
	}
}

/* Procore Section */
.procore-section {
	background: transparent;
	padding: var(--space-3xl) 0;
	width: 100%;
	overflow: hidden;
}

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

/* Stack Procore content on small screens similar to About section */
@media (max-width: 767px) {
	.procore-content {
		display: flex;
		flex-direction: column;
		gap: var(--space-xl);
		text-align: center;
	}
	
	.procore-text {
		align-items: center;
		gap: 24px;
	}
	
	.procore-text h2,
	.procore-text p {
		text-align: center;
	}
}

.procore-image img {
	width: 100%;
	height: auto;
	border-radius: 0;
}

.procore-text {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.procore-text h2 {
	font-family: 'Aboreto', serif;
	font-weight: 400;
	font-style: normal;
	font-size: clamp(30px, 4vw, 50px);
	line-height: 1.2;
	letter-spacing: 0px;
	text-transform: uppercase;
	color: rgba(32, 33, 38, 1);
	margin: 0;
}

.procore-text p {
	color: rgba(32, 33, 38, 1);
	font-family: 'Reddit Sans', sans-serif;
	font-weight: 300;
	font-style: normal;
	font-size: 16px;
	line-height: 24px;
	letter-spacing: 2%;
	margin: 0;
}

.procore-cta {
	display: flex;
}

/* Projects Section */
.projects-section {
	background: rgba(101, 150, 153, 0.2);
	padding: var(--space-3xl) 0;
	width: 100%;
	overflow: hidden;
}

.projects-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 48px;
	flex-wrap: wrap;
	gap: var(--space-md);
}

.projects-header h2 {
	font-family: 'Aboreto', serif;
	font-weight: 400;
	font-style: normal;
	font-size: clamp(30px, 4vw, 50px);
	line-height: 1.2;
	letter-spacing: 0px;
	text-transform: uppercase;
	color: rgba(32, 33, 38, 1);
	margin: 0;
}

/* Mobile: standardize section titles to 32px */
@media (max-width: 767px) {
	.solutions-text h2,
	.projects-header h2,
	.procore-text h2,
	.about-text h2,
	.services-title {
		font-size: 32px;
		line-height: 1.2;
	}
}

.projects-header-cta {
	display: flex;
}

/* Project Cards */
.projects-cards-wrapper {
	position: relative;
}

.projects-cards-container {
	display: flex;
	gap: 24px;
	overflow-x: auto;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-ms-overflow-style: none;
	padding: 20px 0;
	width: 100%;
}

.projects-cards-container::-webkit-scrollbar {
	display: none;
}

.project-card {
	flex: 0 0 392px;
	width: 392px;
	height: 419px;
	position: relative;
	text-decoration: none;
	transition: all var(--transition-base);
	border-radius: 0;
	overflow: hidden;
	background: none;
}

.project-card::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(194.43deg, rgba(101, 150, 153, 0) 60%, #659699 100%);
	z-index: 2;
	pointer-events: none;
}
.project-card:hover {
	transform: translateY(-2px);
	box-shadow: 0px 10px 15px 0px rgba(0, 0, 0, 0.15);
	text-decoration: none;
}

.project-card:focus {
	outline: none;
	text-decoration: none;
}

.project-card:active {
	transform: translateY(0);
}

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

.project-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.project-image-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, rgba(101, 150, 153, 0.3) 0%, rgba(101, 150, 153, 0.6) 100%);
}

.project-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 32px;
	background: none;
	z-index: 3;
}

.project-title {
	font-family: 'Reddit Sans', sans-serif;
	font-weight: 600;
	font-style: normal;
	font-size: 18px;
	line-height: 28px;
	letter-spacing: 2%;
	text-transform: uppercase;
	color: rgba(244, 244, 244, 1);
	margin: 0;
	text-decoration: none;
}

/* Project Navigation Arrows */
.projects-navigation {
	display: flex;
	gap: 16px;
	justify-content: flex-end;
	margin-top: 24px;
}

.project-nav-btn {
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity var(--transition-base);
	opacity: 1;
}

.project-nav-btn:hover:not(.disabled) {
	opacity: 0.7;
}

.project-nav-btn.disabled {
	opacity: 0.3;
	cursor: not-allowed;
	pointer-events: none;
}

.project-nav-btn img {
	width: 40px;
	height: 40px;
	display: block;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
	:root {
		--container-padding: clamp(1rem, 4vw, 2rem);
	}

	.site-header .container {
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
	}

	.site-footer .container {
		flex-direction: column;
		align-items: flex-start;
		gap: var(--space-sm);
	}

	.site-branding {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* Mobile (320px - 767px) */
@media (max-width: 767px) {
	:root {
		--container-padding: 1rem;
		--space-2xl: clamp(2rem, 5vw, 3rem);
		--space-3xl: clamp(3rem, 7vw, 4rem);
	}

	.site-header {
		padding: var(--space-sm) 0;
	}

	.site-title {
		font-size: var(--font-size-lg);
	}

	.site-description {
		font-size: var(--font-size-xs);
	}

	.site-footer {
		padding: var(--space-lg) 0;
		text-align: center;
	}

	.site-footer .container {
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: var(--space-md);
	}

	.footer-copyright,
	.footer-social {
		text-align: center;
	}

	.footer-social {
		flex-direction: column;
		gap: var(--space-sm);
	}

	/* Stack utility classes for mobile */
	.mobile-stack {
		flex-direction: column;
	}
}

/* High Resolution Displays (2K+) */
@media (min-width: 1920px) {
	:root {
		--max-width-content: 1440px;
	}
}

/* Desktop - Ensure 2.5 cards are visible */
@media (min-width: 1024px) {
	.solutions-content {
		grid-template-columns: 35% 65%;
	}
	
	.solutions-cards-wrapper {
		min-width: 0; /* Allow flex shrinking */
	}
}

/* Ultra-wide Displays (3K+) */
@media (min-width: 2560px) {
	:root {
		--max-width-content: 1600px;
	}
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* Skip to content link */
.skip-link {
	position: absolute;
	top: -40px;
	left: 0;
	background: var(--color-primary);
	color: white;
	padding: var(--space-sm) var(--space-md);
	text-decoration: none;
	z-index: 100;
}
.skip-link:focus {
	top: 0;
}
/* Remove default focus ring / blue border on CTAs */
.btn,
.btn:focus,
.btn:active {
	outline: none;
	box-shadow: none;
}

/* Firefox inner focus fix */
.btn::-moz-focus-inner {
	border: 0;
}

/* Screen reader only content */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border-width: 0;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ============================================
   404 ERROR PAGE
   ============================================ */
.error-404-page {
	min-height: calc(100vh - var(--header-height, 100px) - var(--footer-height, 100px));
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
}

.error-404-section {
	width: 100%;
	padding: var(--space-3xl) 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.error-404-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 16.8px; /* 84px - 80% = 16.8px */
	max-width: 800px;
	margin: 0 auto;
}

.error-404-title {
	font-family: 'Aboreto', serif;
	font-weight: 400;
	font-style: normal;
	font-size: 275.51px;
	line-height: 275.51px;
	letter-spacing: 0;
	color: rgba(101, 150, 153, 1);
	margin: 0;
}

.error-404-subtitle {
	font-family: 'Reddit Sans', sans-serif;
	font-weight: 600;
	font-size: 24px;
	line-height: 36px;
	letter-spacing: 2%;
	text-transform: uppercase;
	color: rgba(32, 33, 38, 1);
	margin: 0;
}

.error-404-description {
	font-family: 'Reddit Sans', sans-serif;
	font-weight: 300;
	font-size: 16px;
	line-height: 24px;
	letter-spacing: 2%;
	text-align: center;
	color: rgba(32, 33, 38, 1);
	margin: 0;
	max-width: 600px;
}

.error-404-cta {
	display: flex;
	justify-content: center;
}

/* Mobile adjustments for 404 */
@media (max-width: 767px) {
	.error-404-title {
		font-size: 120px;
		line-height: 120px;
	}

	.error-404-content {
		gap: 9.6px; /* 48px - 80% = 9.6px */
	}

	.error-404-subtitle {
		font-size: 20px;
		line-height: 30px;
	}
}

