@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

:root {
	/* Color Palette */
	--color-primary: #ff830f; /* Orange from QT logo */
	--color-secondary: #004a99; /* Deep blue from banner */
	--color-bg-dark: #23222d; /* Form background blue/black */
	--color-bg-light: #f8f9fa;
	--color-text-main: #333333;
	--color-text-muted: #666666;
	--color-white: #ffffff;
	--color-accent: #6d6e71; /* Gray */
	--color-blue-accent: #29abe2;

	/* Spacing */
	--spacing-xs: 0.5rem;
	--spacing-sm: 1rem;
	--spacing-md: 2rem;
	--spacing-lg: 4rem;
	--spacing-xl: 6rem;

	/* Layout */
	--container-max-width: 1200px;
	--border-radius-sm: 4px;
	--border-radius-md: 12px;
	--transition-speed: 0.3s;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: "Inter", sans-serif;
	color: var(--color-text-main);
	line-height: 1.6;
	overflow-x: hidden;
	background-color: var(--color-white);
}

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

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

ul {
	list-style: none;
}

.p {
	font-weight: 500;
}

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

/* Typography Extensions */
h1,
h2,
h3,
h4 {
	font-weight: 700;
	line-height: 1.2;
}

.section-title {
	text-align: center;
	font-size: 2rem;
	margin-bottom: var(--spacing-md);
	position: relative;
	padding-top: 1.5rem;
}

.section-title::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 30px;
	height: 4px;
	background-color: var(--color-primary);
}

/* Buttons */
.btn {
	display: inline-block;
	padding: 0.8rem 2.5rem;
	border-radius: 50px;
	font-weight: 400;
	text-align: center;
	cursor: pointer;
	transition: all var(--transition-speed);
	font-size: 0.9rem;
	border: none;
}

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

.btn-primary:hover {
	background-color: #d15115;
	transform: translateY(-2px);
	box-shadow: 0 4px 15px rgba(242, 101, 34, 0.3);
}

.btn-blue {
	background-color: #70a1ff;
	color: var(--color-white);
}

.btn-blue:hover {
	background-color: #5352ed;
}

.btn-yellow {
	background-color: #ffcf37;
	color: var(--color-white);
}

.btn-yellow:hover {
	background-color: #ffcf37;
}

/* Placeholder Utility */
.placeholder-img {
	background-color: rgba(255, 255, 255, 0.1);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #999;
	border: 1px dashed #ccc;
	font-style: italic;
	width: 100%;
	height: 100%;
	min-height: 150px;
}

.placeholder-icon {
	width: 80px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: start;
	color: var(--color-primary);
}

/* Header & Hero */
.hero {
	position: relative;
	color: var(--color-white);
	padding: var(--spacing-md) 0 4rem;
	text-align: center;
	background:
		url("images/header-backdrop-blue.png"),
		url("images/fabrica-header.png");
	background-size: cover;
	background-position: top;
}

.hero-logo-top {
	max-width: 200px;
	margin-bottom: 50px;
	filter: brightness(0) invert(1);
	display: block;
}

.hero-content {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.hero-main-display {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 2rem;
	margin-bottom: 2rem;
}

.hero-products {
	display: flex;
	justify-content: center;
	gap: var(--spacing-md);
}

.hero-product-img {
	max-width: 600px;
	transition: transform var(--transition-speed);
}

.hero-logo-cw-aside {
	max-width: 250px;
}

.cw-logo-header {
	width: 150px;
}

.hero-section-title {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
}

.orange-dash {
	width: 30px;
	height: 4px;
	background-color: var(--color-primary);
	margin: 0;
}

.hero-section-title h1 {
	font-size: 2.2rem;
	color: var(--color-white);
}

/* Features inside Hero */
.features-grid {
	width: 100%;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	background: var(--color-white);
	padding: 0 1.5rem;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
	border-radius: var(--border-radius-sm);
	transform: translateY(2rem);
}

.feature-card {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 0.3rem;
	text-align: left;
	gap: 0.3rem;
}

.feature-card:last-child {
	border-right: none;
}

.feature-card h3 {
	font-size: 1.1rem;
	margin-bottom: var(--spacing-xs);
	color: #333;
}

.feature-card p {
	font-size: 0.8rem;
	color: var(--color-text-muted);
}

/* Characteristics */
.characteristics {
	padding: 2rem 0 var(--spacing-xl);
}

.char-content {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--spacing-xl);
	font-size: 0.82rem;
}

.char-column h3 {
	font-size: 1rem;
	margin-bottom: 0.5rem;
	color: #333;
}

.char-list {
	margin-bottom: var(--spacing-md);
	line-height: 1;
}

.char-list li {
	margin-bottom: 0.25rem;
}

.char-highlight {
	font-weight: 800;
}

.char-footer-link {
	text-align: center;
	margin-top: var(--spacing-lg);
}

.link-small {
	font-size: 0.75rem;
	font-weight: 700;
	display: inline-block;
}

/* Banner Table Section */
.banner-section {
	padding: 0 0 15px;
	position: relative;
	background:
		linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
		url("assets/images/shed.png");
	background-size: cover;
	background-position: center;
	color: var(--color-white);
	max-height: 450px;
	overflow: visible;
}

.banner-grid {
	display: flex;
	flex-direction: row;
	align-items: flex-end;
	justify-content: center;
	position: relative;
	max-height: 450px;
}

.banner-item-worker {
	position: relative;
	z-index: 1;
}

.worker-img-container {
	border: none;
	background: transparent;
}

.worker-img {
	transform: translateY(28px) translateX(-100px) scale(0.89);
	display: block;
}

.banner-item-structure {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	z-index: 2;
	margin: 0 -50px; /* Pull items closer if needed, adjusting for scale */
}

.structure-img {
	transform: translateY(25px) translateX(-90px) scale(0.8);
	display: block;
}

.banner-table-container {
	transform: translateY(-220px) scale(0.8);
	border: 10px solid #ffcf37;
	overflow: hidden;
	background: white; /* Ensure table placeholder has background */
}

.table-img {
	width: 100%;
	height: 100%;
	display: block;
	transform: translateY(-15px) translateX(-70px) scale(0.8);
	border: 10px solid #ffcf37;
}

.banner-item-cta {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	z-index: 1;
	margin-bottom: 150px; /* Lift up to match visual baseline of images */
	margin-left: 20px; /* Add some spacing from the structure/table */
}

.banner-item-cta h2 {
	font-size: 2rem;
	font-weight: 700;
	text-align: center;
	color: var(--color-white);
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
	margin-bottom: 1rem;
	line-height: 1.2;
}

/* Responsive adjustments */
@media (max-width: 992px) {
	.banner-section {
		max-height: none;
		padding: 2rem 0;
		background-color: var(
			--color-secondary
		); /* Solid background if image looks bad alone? or keep image */
	}

	.banner-grid {
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 1rem;
	}

	.banner-item-worker,
	.banner-item-structure {
		display: none;
	}

	.banner-item-cta {
		width: 100%;
		text-align: center;
		margin: 0;
		order: 1;
	}
}

@media (min-width: 768px) and (max-width: 992px) {
	/* Tablet specific: still hide images as per "mobile" request usually covering tablets too in this context, 
       or ask user. User said "mobile", implies small screen. 
       Let's stick to hiding on all < 992px for now based on "mobile" often meaning "responsive view".
       If they want tablet to show, they will say. */
}

/* CTA & Form */
.cta-form-section {
	padding: 1rem;
	text-align: center;
}

.cta-header h2 {
	font-size: 2rem;
	margin-bottom: var(--spacing-sm);
}

.form-wrapper {
	width: 100%;
	background-color: #383a45;
	padding: var(--spacing-lg) var(--spacing-xl);
	border-radius: var(--border-radius-md);
	margin: 3rem auto 0;
	color: var(--color-white);
	position: relative;
}

.form-wrapper:after {
	width: 100%;
	height: 100%;
	border-radius: 10px;
	content: "";
	position: absolute;
	background: #ff830f;
	right: -20px;
	z-index: -1;
	bottom: -20px;
}

.form-wrapper::before {
	content: "";
	position: absolute;
	top: 15px;
	left: 50%;
	width: 30px;
	height: 8px;
	background-color: #fff;
}

.form-wrapper h3 {
	margin-bottom: 1rem;
	font-weight: 800;
	font-size: 1.2rem;
}

.form-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--spacing-md);
	margin-bottom: var(--spacing-md);
}

.form-group {
	display: flex;
	flex-direction: column;
	text-align: left;
}

.form-group label {
	font-size: 0.9rem;
	margin-bottom: 0.4rem;
	font-weight: 800;
}

.form-group input {
	height: 45px;
	border-radius: 5px;
	padding: 0.5rem 1rem;
}

.form-footer a.btn {
	background-color: #4b00ff;
}

/* Footer */
footer {
	padding: var(--spacing-xl) 0;
	background-color: var(--color-white);
	text-align: center;
	font-size: 0.7rem;
	border-top: 1px solid #eee;
}

.footer-logo {
	max-width: 120px;
	margin-bottom: var(--spacing-md);
}

.footer-disclaimer {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	margin-bottom: 1rem;
	font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 992px) {
	.banner-grid {
		grid-template-columns: 1fr;
	}
	.banner-person {
		display: none;
	}
	.form-grid {
		grid-template-columns: 1fr;
	}
	.feature-card {
		border-right: none;
		border-bottom: 1px solid #eee;
	}
}

@media (max-width: 768px) {
	.hero-main-display {
		flex-direction: column;
		gap: 2rem;
	}
	.char-content {
		grid-template-columns: 1fr;
	}
	.form-wrapper {
		padding: 2rem;
	}
}
