/**
 * QTech Distribution Website v2
 * Brands Page
 *
 * Enterprise, minimal and responsive styling.
 */

/* ----------------------------------------------------------
   Variables
---------------------------------------------------------- */

:root {
	--qtech-green: #2f8f46;
	--qtech-green-dark: #246f36;
	--qtech-text: #1f2933;
	--qtech-text-light: #697386;
	--qtech-border: #e4e7eb;
	--qtech-background: #ffffff;
	--qtech-background-light: #f6f7f8;
	--qtech-radius: 8px;
	--qtech-radius-large: 16px;
	--qtech-container: 1280px;
	--qtech-transition: 0.3s ease;
	--qtech-shadow: 0 12px 35px rgba(31, 41, 51, 0.08);
}

/* ----------------------------------------------------------
   Base
---------------------------------------------------------- */

.qtech-brands,
.qtech-brands *,
.qtech-brands *::before,
.qtech-brands *::after {
	box-sizing: border-box;
}

.qtech-brands {
	background: var(--qtech-background);
	color: var(--qtech-text);
}

.qtech-brands img {
	display: block;
	max-width: 100%;
	height: auto;
}

.qtech-container {
	width: calc(100% - 48px);
	max-width: var(--qtech-container);
	margin-right: auto;
	margin-left: auto;
}

.qtech-brands section {
	padding: 100px 0;
}

.qtech-section-header {
	max-width: 760px;
	margin: 0 auto 60px;
	text-align: center;
}

.qtech-section-header h2 {
	margin: 0 0 18px;
	color: var(--qtech-text);
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 700;
	line-height: 1.2;
}

.qtech-section-header p {
	margin: 0;
	color: var(--qtech-text-light);
	font-size: 1.05rem;
	line-height: 1.8;
}

/* ----------------------------------------------------------
   Buttons
---------------------------------------------------------- */

.qtech-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 26px;
	border: 1px solid var(--qtech-green);
	border-radius: var(--qtech-radius);
	background: var(--qtech-green);
	color: #ffffff;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition:
		background-color var(--qtech-transition),
		border-color var(--qtech-transition),
		color var(--qtech-transition),
		transform var(--qtech-transition);
}

.qtech-btn:hover,
.qtech-btn:focus {
	border-color: var(--qtech-green-dark);
	background: var(--qtech-green-dark);
	color: #ffffff;
	text-decoration: none;
	transform: translateY(-2px);
}

.qtech-btn-outline {
	background: transparent;
	color: var(--qtech-green);
}

.qtech-btn-outline:hover,
.qtech-btn-outline:focus {
	color: #ffffff;
}

/* ----------------------------------------------------------
   Hero
---------------------------------------------------------- */

.qtech-brands-hero {
	background: var(--qtech-background-light);
}

.qtech-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
	gap: 80px;
}

.qtech-eyebrow {
	margin: 0 0 18px;
	color: var(--qtech-green);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.4;
	text-transform: uppercase;
}

.qtech-page-title {
	max-width: 680px;
	margin: 0 0 24px;
	color: var(--qtech-text);
	font-size: clamp(2.8rem, 5vw, 4.6rem);
	font-weight: 700;
	line-height: 1.08;
}

.qtech-page-description {
	max-width: 620px;
	margin: 0 0 36px;
	color: var(--qtech-text-light);
	font-size: 1.1rem;
	line-height: 1.85;
}

.qtech-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.qtech-hero-image {
	overflow: hidden;
	border: 1px solid var(--qtech-border);
	border-radius: var(--qtech-radius-large);
	background: #ffffff;
	box-shadow: var(--qtech-shadow);
}

.qtech-hero-image img {
	width: 100%;
	min-height: 420px;
	object-fit: cover;
}

/* ----------------------------------------------------------
   Technology Domains
---------------------------------------------------------- */

.qtech-technology-domains {
	background: #ffffff;
}

.qtech-domain-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
}

.qtech-domain-card {
	display: flex;
	flex-direction: column;
	min-height: 280px;
	padding: 32px;
	border: 1px solid var(--qtech-border);
	border-radius: var(--qtech-radius-large);
	background: #ffffff;
	transition:
		border-color var(--qtech-transition),
		box-shadow var(--qtech-transition),
		transform var(--qtech-transition);
}

.qtech-domain-card:hover {
	border-color: #cfd4d9;
	box-shadow: var(--qtech-shadow);
	transform: translateY(-5px);
}

.qtech-domain-card h3 {
	margin: 0 0 18px;
	color: var(--qtech-text);
	font-size: 1.25rem;
	line-height: 1.35;
}

.qtech-domain-card p {
	margin: 0 0 28px;
	color: var(--qtech-text-light);
	font-size: 0.95rem;
	line-height: 1.75;
}

.qtech-domain-count {
	display: inline-flex;
	align-self: flex-start;
	margin-top: auto;
	padding: 7px 13px;
	border: 1px solid #d8e8dc;
	border-radius: 999px;
	background: #f2f8f3;
	color: var(--qtech-green);
	font-size: 0.82rem;
	font-weight: 600;
}

/* ----------------------------------------------------------
   Search and Filters
---------------------------------------------------------- */

.qtech-brand-controls {
	padding: 70px 0 !important;
	border-top: 1px solid var(--qtech-border);
	border-bottom: 1px solid var(--qtech-border);
	background: var(--qtech-background-light);
}

.qtech-brands-search {
	max-width: 640px;
	margin: 0 auto 28px;
}

.qtech-brand-search-input {
	width: 100%;
	min-height: 54px;
	padding: 14px 20px;
	border: 1px solid var(--qtech-border);
	border-radius: var(--qtech-radius);
	outline: none;
	background: #ffffff;
	color: var(--qtech-text);
	font-size: 1rem;
	transition:
		border-color var(--qtech-transition),
		box-shadow var(--qtech-transition);
}

.qtech-brand-search-input::placeholder {
	color: #9aa2ac;
}

.qtech-brand-search-input:focus {
	border-color: var(--qtech-green);
	box-shadow: 0 0 0 3px rgba(47, 143, 70, 0.12);
}

.qtech-brand-filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}

.qtech-filter {
	min-height: 44px;
	padding: 10px 18px;
	border: 1px solid var(--qtech-border);
	border-radius: 999px;
	background: #ffffff;
	color: var(--qtech-text);
	cursor: pointer;
	font-size: 0.9rem;
	font-weight: 600;
	transition:
		border-color var(--qtech-transition),
		background-color var(--qtech-transition),
		color var(--qtech-transition);
}

.qtech-filter:hover {
	border-color: var(--qtech-green);
	color: var(--qtech-green);
}

.qtech-filter.active {
	border-color: var(--qtech-green);
	background: var(--qtech-green);
	color: #ffffff;
}

/* ----------------------------------------------------------
   Brand Cards
---------------------------------------------------------- */

.qtech-brand-list {
	background: #ffffff;
}

.qtech-brands-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
}

.qtech-brand-item {
	display: flex;
	min-width: 0;
}

.qtech-brand-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	overflow: hidden;
	border: 1px solid var(--qtech-border);
	border-radius: var(--qtech-radius-large);
	background: #ffffff;
	transition:
		border-color var(--qtech-transition),
		box-shadow var(--qtech-transition),
		transform var(--qtech-transition);
}

.qtech-brand-card:hover {
	border-color: #cfd4d9;
	box-shadow: var(--qtech-shadow);
	transform: translateY(-6px);
}

.qtech-brand-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 180px;
	padding: 35px;
	border-bottom: 1px solid var(--qtech-border);
	background: #ffffff;
}

.qtech-brand-logo img {
	width: auto;
	max-width: 190px;
	max-height: 82px;
	object-fit: contain;
}

.qtech-brand-content {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 30px;
}

.qtech-brand-badge {
	display: inline-flex;
	align-self: flex-start;
	margin-bottom: 18px;
	padding: 6px 12px;
	border-radius: 999px;
	background: #f2f8f3;
	color: var(--qtech-green);
	font-size: 0.76rem;
	font-weight: 600;
	line-height: 1.4;
}

.qtech-brand-title {
	margin: 0 0 14px;
	color: var(--qtech-text);
	font-size: 1.45rem;
	font-weight: 700;
	line-height: 1.3;
}

.qtech-brand-description {
	margin: 0 0 28px;
	color: var(--qtech-text-light);
	font-size: 0.95rem;
	line-height: 1.8;
}

.qtech-brand-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: flex-start;
	min-height: 44px;
	margin-top: auto;
	padding: 10px 18px;
	border: 1px solid var(--qtech-green);
	border-radius: var(--qtech-radius);
	background: var(--qtech-green);
	color: #ffffff;
	font-size: 0.88rem;
	font-weight: 600;
	text-decoration: none;
	transition:
		background-color var(--qtech-transition),
		border-color var(--qtech-transition),
		transform var(--qtech-transition);
}

.qtech-brand-button:hover,
.qtech-brand-button:focus {
	border-color: var(--qtech-green-dark);
	background: var(--qtech-green-dark);
	color: #ffffff;
	text-decoration: none;
	transform: translateY(-2px);
}

/* ----------------------------------------------------------
   Empty Search State
---------------------------------------------------------- */

.qtech-empty-state {
	grid-column: 1 / -1;
	padding: 70px 30px;
	border: 1px dashed #cfd4d9;
	border-radius: var(--qtech-radius-large);
	background: var(--qtech-background-light);
	text-align: center;
}

.qtech-empty-state[hidden] {
	display: none;
}

.qtech-empty-state h3 {
	margin: 0 0 12px;
	color: var(--qtech-text);
	font-size: 1.5rem;
}

.qtech-empty-state p {
	max-width: 560px;
	margin: 0 auto;
	color: var(--qtech-text-light);
	line-height: 1.8;
}

/* ----------------------------------------------------------
   CTA
---------------------------------------------------------- */

.qtech-brands-cta {
	background: var(--qtech-background-light);
}

.qtech-cta-box {
	max-width: 1000px;
	margin: 0 auto;
	padding: 72px 50px;
	border: 1px solid var(--qtech-border);
	border-radius: var(--qtech-radius-large);
	background: #ffffff;
	box-shadow: var(--qtech-shadow);
	text-align: center;
}

.qtech-cta-box h2 {
	margin: 0 0 18px;
	color: var(--qtech-text);
	font-size: clamp(2rem, 4vw, 3rem);
	line-height: 1.2;
}

.qtech-cta-box p {
	max-width: 680px;
	margin: 0 auto 32px;
	color: var(--qtech-text-light);
	font-size: 1.05rem;
	line-height: 1.8;
}

/* ----------------------------------------------------------
   Accessibility
---------------------------------------------------------- */

.qtech-brands .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.qtech-brands a:focus-visible,
.qtech-brands button:focus-visible,
.qtech-brands input:focus-visible {
	outline: 3px solid rgba(47, 143, 70, 0.35);
	outline-offset: 3px;
}

/* ----------------------------------------------------------
   Tablet
---------------------------------------------------------- */

@media screen and (max-width: 1100px) {

	.qtech-brands section {
		padding: 80px 0;
	}

	.qtech-hero-grid {
		grid-template-columns: 1fr;
		gap: 50px;
	}

	.qtech-hero-content {
		max-width: 760px;
	}

	.qtech-hero-image img {
		min-height: 360px;
	}

	.qtech-domain-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.qtech-brands-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* ----------------------------------------------------------
   Mobile
---------------------------------------------------------- */

@media screen and (max-width: 767px) {

	.qtech-container {
		width: calc(100% - 32px);
	}

	.qtech-brands section {
		padding: 60px 0;
	}

	.qtech-section-header {
		margin-bottom: 40px;
	}

	.qtech-section-header h2 {
		font-size: 2rem;
	}

	.qtech-page-title {
		font-size: 2.6rem;
	}

	.qtech-page-description {
		font-size: 1rem;
	}

	.qtech-hero-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.qtech-btn {
		width: 100%;
	}

	.qtech-hero-image img {
		min-height: 260px;
	}

	.qtech-domain-grid,
	.qtech-brands-grid {
		grid-template-columns: 1fr;
	}

	.qtech-domain-card {
		min-height: auto;
		padding: 28px;
	}

	.qtech-brand-controls {
		padding: 50px 0 !important;
	}

	.qtech-brand-filters {
		flex-wrap: nowrap;
		justify-content: flex-start;
		padding-bottom: 8px;
		overflow-x: auto;
		scrollbar-width: thin;
	}

	.qtech-filter {
		flex: 0 0 auto;
		white-space: nowrap;
	}

	.qtech-brand-content {
		padding: 26px;
	}

	.qtech-brand-button {
		width: 100%;
	}

	.qtech-cta-box {
		padding: 48px 24px;
	}

	.qtech-cta-box .qtech-btn {
		width: 100%;
	}
}

/* ----------------------------------------------------------
   Reduced Motion
---------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

	.qtech-brands *,
	.qtech-brands *::before,
	.qtech-brands *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}