/* 
  Quadrex Corporate Website Styles
  Theme: Artistic, Premium, Non-Minimal, Large Typography
*/

:root {
	/* Color Palette */
	--primary: #af8553;
	/* Accent Gold/Brown */
	--primary-light: #cfa878;
	--secondary: #8c683e;
	--dark: #1f1f1f;
	/* Deep gray/black */
	--darker: #111111;
	--light: #F9F9F9;
	--white: #FFFFFF;
	--text-main: #333333;
	--text-muted: #666666;

	/* Typography */
	--font-main: 'Outfit', sans-serif;
	--text-base-size: 18px;
	--title-size-hero: clamp(3rem, 8vw, 6rem);
	--title-size-h2: clamp(2.5rem, 5vw, 4rem);
	--title-size-h3: 1.8rem;

	/* Spacing & Layout */
	--container-width: 1200px;
	--spacing-sm: 1rem;
	--spacing-md: 2rem;
	--spacing-lg: 4rem;
	--spacing-xl: 8rem;

	/* Effects */
	--transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	--border-color: rgba(0, 0, 0, 0.08);
}

/* Reset & Base */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: var(--font-main);
	font-size: var(--text-base-size);
	line-height: 1.6;
	color: var(--text-main);
	background-color: var(--light);
	overflow-x: hidden;
}

ul {
	list-style: none;
}

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

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

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

/* Typography */
h1,
h2,
h3,
h4 {
	color: var(--darker);
	line-height: 1.1;
	font-weight: 800;
}

.highlight {
	color: var(--primary);
	display: inline-block;
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 1rem 2rem;
	border-radius: 50px;
	font-weight: 600;
	cursor: pointer;
	border: none;
	font-size: 1.1rem;
	position: relative;
	overflow: hidden;
	z-index: 1;
}

.btn::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(255, 255, 255, 0.2);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.4s ease;
	z-index: -1;
}

.btn:hover::before {
	transform: scaleX(1);
}

.btn-primary {
	background: var(--primary);
	color: var(--white) !important;
}

.btn-primary:hover {
	transform: translateY(-2px);
	background: var(--secondary);
	color: var(--white) !important;
}

.btn-secondary {
	background: var(--light);
	color: var(--darker);
	border: 1px solid var(--border-color);
}

.btn-secondary:hover {
	transform: translateY(-2px);
	background: var(--border-color);
}

.btn-light {
	background: var(--white);
	color: var(--primary);
}

.btn-large {
	padding: 1.2rem 3rem;
	font-size: 1.2rem;
}

.btn-block {
	width: 100%;
	display: block;
}

/* Header */
.site-header {
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 1000;
	padding: 1.5rem 0;
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
	transition: var(--transition);
}

.site-header.scrolled {
	padding: 1rem 0;
	background: rgba(255, 255, 255, 0.98);
	border-bottom: 1px solid var(--border-color);
}

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

.logo {
	height: 55px;
	/* Increased for better legibility */
	width: auto;
}

.main-nav ul {
	display: flex;
	gap: 2rem;
	align-items: center;
}

.main-nav a {
	font-weight: 600;
	color: var(--text-main);
	position: relative;
}

.main-nav a.active {
	color: var(--primary);
}

.main-nav a:not(.btn):hover {
	color: var(--primary);
}

.main-nav a:not(.btn)::after {
	content: '';
	position: absolute;
	bottom: -5px;
	left: 0;
	width: 0%;
	height: 2px;
	background: var(--primary);
	transition: var(--transition);
}

.main-nav a:not(.btn):hover::after,
.main-nav a.active::after {
	width: 100%;
}

.mobile-menu-toggle {
	display: none;
	flex-direction: column;
	gap: 6px;
	cursor: pointer;
}

.mobile-menu-toggle span {
	width: 30px;
	height: 3px;
	background: var(--darker);
	border-radius: 3px;
	transition: var(--transition);
}

/* Hero Section */
.hero-section {
	padding-top: 15rem;
	padding-bottom: 8rem;
	min-height: 100vh;
	display: flex;
	align-items: center;
	background-color: var(--light);
}

.hero-container {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 4rem;
	align-items: center;
}

.hero-title {
	font-size: var(--title-size-hero);
	margin-bottom: 2rem;
	letter-spacing: -2px;
}

.hero-subtitle {
	font-size: 1.4rem;
	color: var(--text-muted);
	margin-bottom: 3rem;
	max-width: 90%;
}

.hero-actions {
	display: flex;
	gap: 1.5rem;
}

.hero-visuals {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: 500px;
	display: flex;
	justify-content: flex-end;
	align-items: center;
}

.hero-shape {
	position: absolute;
	right: 0;
	top: 5%;
	width: 80%;
	height: 90%;
	background-color: var(--primary);
	opacity: 0.1;
	border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
	z-index: 1;
}

.hero-img-main {
	width: 80%;
	height: 500px;
	border-radius: 12px;
	overflow: hidden;
	position: relative;
	z-index: 2;
	border: 1px solid var(--border-color);
}

.hero-img-main img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hero-img-secondary {
	position: absolute;
	bottom: 5%;
	left: -10%;
	width: 60%;
	height: 250px;
	border-radius: 12px;
	overflow: hidden;
	z-index: 3;
	border: 8px solid var(--light);
	/* Creates cutout effect against background */
}

.hero-img-secondary img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hero-stats-badge {
	position: absolute;
	top: 15%;
	left: -5%;
	background: var(--primary);
	color: var(--white);
	padding: 1.5rem 2rem;
	border-radius: 8px;
	z-index: 4;
	text-align: center;
	border: 4px solid var(--light);
}

.hero-stats-badge .metric {
	font-size: 2.5rem;
	font-weight: 800;
	line-height: 1;
	margin-bottom: 0.5rem;
}

.hero-stats-badge .metric-label {
	font-size: 0.9rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.hero-floating-card {
	position: absolute;
	bottom: -30px;
	left: -30px;
	background: var(--white);
	padding: 2rem;
	border-radius: 12px;
	border: 1px solid var(--border-color);
	z-index: 10;
	animation: float 6s ease-in-out infinite;
}

/* Animations */
@keyframes float {
	0% {
		transform: translateY(0px);
	}

	50% {
		transform: translateY(-20px);
	}

	100% {
		transform: translateY(0);
	}
}

.reveal-up {
	opacity: 0;
	transform: translateY(50px);
	transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.active {
	opacity: 1;
	transform: translateY(0);
}

/* Services Section */
.services-section {
	padding: var(--spacing-xl) 0;
	background: var(--white);
}

.section-title {
	font-size: var(--title-size-h2);
	margin-bottom: var(--spacing-lg);
}

.services-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 3rem;
}

.service-card {
	background: var(--white);
	padding: 4rem 3rem;
	border-radius: 12px;
	border: 1px solid var(--border-color);
	transition: var(--transition);
	position: relative;
	overflow: hidden;
	z-index: 1;
}

.service-card:hover {
	transform: translateY(-5px);
	border-color: var(--primary-light);
}

.service-icon {
	width: 60px;
	height: 60px;
	margin-bottom: 2rem;
	color: var(--primary);
}

.service-icon svg {
	width: 100%;
	height: 100%;
	fill: currentColor;
}

.service-title {
	font-size: var(--title-size-h3);
	margin-bottom: 1.5rem;
}

/* CTA Section */
.cta-section {
	padding: var(--spacing-xl) 0;
	background-color: var(--dark);
	color: var(--white);
	position: relative;
	overflow: hidden;
}

.cta-container {
	position: relative;
	z-index: 1;
	text-align: center;
	max-width: 800px;
}

.cta-title {
	color: var(--white);
	font-size: var(--title-size-h2);
	margin-bottom: 1.5rem;
}

.cta-text {
	font-size: 1.4rem;
	color: rgba(255, 255, 255, 0.8);
	margin-bottom: 3rem;
}

/* Page Header (Internal Pages) */
.page-header {
	padding-top: 12rem;
	padding-bottom: 6rem;
	background-color: var(--light);
}

.page-header h1 {
	font-size: var(--title-size-hero);
	margin-bottom: 1rem;
}

.page-header p {
	font-size: 1.4rem;
	color: var(--text-muted);
}

/* Forms */
.contact-section,
.demo-section {
	padding: 0 0 var(--spacing-xl) 0;
	background: var(--light);
}

.contact-container {
	display: grid;
	grid-template-columns: 1fr 1.5fr;
	gap: 4rem;
	margin-top: -3rem;
	position: relative;
	z-index: 10;
}

.demo-container {
	margin-top: -3rem;
	position: relative;
	z-index: 10;
}

.contact-info-panel,
.contact-form-panel {
	background: var(--white);
	padding: 4rem;
	border-radius: 12px;
	border: 1px solid var(--border-color);
}

.contact-form-panel.full-width {
	max-width: 900px;
	margin: 0 auto;
}

.info-item {
	display: flex;
	gap: 1.5rem;
	margin-bottom: 2rem;
	font-size: 1.2rem;
}

.info-item .icon {
	font-size: 2rem;
}

.quadrex-form .form-group {
	margin-bottom: 2rem;
}

.quadrex-form .form-row {
	display: flex;
	gap: 2rem;
}

.quadrex-form .half {
	flex: 1;
}

.quadrex-form label {
	display: block;
	margin-bottom: 0.8rem;
	font-weight: 600;
	color: var(--darker);
}

.quadrex-form input,
.quadrex-form select,
.quadrex-form textarea {
	width: 100%;
	padding: 1.2rem;
	border: 1px solid var(--border-color);
	border-radius: 8px;
	font-family: inherit;
	font-size: 1.1rem;
	transition: var(--transition);
	background: var(--light);
}

.quadrex-form input:focus,
.quadrex-form select:focus,
.quadrex-form textarea:focus {
	outline: none;
	border-color: var(--primary);
	background: var(--white);
}

.success-message {
	background: #10B981;
	color: white;
	padding: 1.5rem;
	border-radius: 15px;
	margin-bottom: 2rem;
	font-weight: 600;
	font-size: 1.1rem;
	animation: revealIn 0.5s ease;
}

@keyframes revealIn {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Footer */
.site-footer {
	background: var(--darker);
	color: rgba(255, 255, 255, 0.7);
	padding: 6rem 0 2rem;
}

.footer-container {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 4rem;
	margin-bottom: 4rem;
}

.footer-col h3 {
	color: var(--white);
	margin-bottom: 1.5rem;
	font-size: 1.4rem;
}

.footer-logo {
	height: 70px;
	/* Increased to emphasize branding */
	filter: brightness(0) invert(1);
	margin-bottom: 1.5rem;
}

.footer-col a {
	color: rgba(255, 255, 255, 0.7);
}

.footer-col a:hover {
	color: var(--white);
	text-decoration: underline;
}

.footer-col ul {
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
}

.footer-bottom {
	text-align: center;
	padding-top: 2rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 992px) {

	.hero-container,
	.contact-container,
	.footer-container {
		grid-template-columns: 1fr;
	}

	.hero-visuals {
		grid-row: 1;
		margin-left: 10%;
		/* Make room for the absolute positioned images */
		margin-bottom: 3rem;
	}

	.hero-section {
		padding-top: 10rem;
	}

	.hero-img-secondary {
		left: -5%;
		border-width: 4px;
		height: 200px;
	}

	.hero-stats-badge {
		left: 0;
		top: 0;
	}

	.quadrex-form .form-row {
		flex-direction: column;
		gap: 0;
	}

	.site-header nav {
		position: absolute;
		top: 100%;
		left: 0;
		width: 100%;
		background: var(--white);
		padding: 2rem;
		box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
		transform: translateY(-10px);
		opacity: 0;
		visibility: hidden;
		transition: var(--transition);
	}

	.site-header nav.open {
		transform: translateY(0);
		opacity: 1;
		visibility: visible;
	}

	.site-header nav ul {
		flex-direction: column;
		gap: 1.5rem;
	}

	.mobile-menu-toggle {
		display: flex;
	}
}