/**
 * Why HPMSM Matters Section Styles
 * Section with video in center and 4 cards around
 */

/* ============================================
   WHY HPMSM SECTION
   ============================================ */

.why-hpmsm-section {
	position: relative;
	padding: clamp(80px, 12vw, 160px) 0;
	background-color: var(--color-true-black);
	color: var(--color-pure-white);
	overflow: hidden;
}

.why-hpmsm-container {
	position: relative;
	width: 100%;
	max-width: 1300px;
	margin: 0 auto;
	padding: 0;
}

/* ============================================
   HEADER
   ============================================ */

.why-hpmsm-header {
	display: flex;
	justify-content: space-between;
	align-items: end;
	gap: 40px;
	margin-bottom: 60px;
}

.why-hpmsm-header-left {
	flex: 1;
	max-width: 700px;
}

.why-hpmsm-header-right {
	flex-shrink: 0;
}

.why-hpmsm-title {
	font-family: var(--font-heading);
	font-size: var(--font-size-h2);
	font-weight: var(--font-weight-h2);
	line-height: var(--line-height-h2);
	color: var(--color-pure-white);
	margin: 0 0 24px 0;
}

.why-hpmsm-title .title-accent {
	color: var(--color-sky-pulse);
}

.why-hpmsm-subtitle {
	font-family: var(--font-body);
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	color: var(--color-pure-white);
	margin: 0;
}

/* ============================================
   CONTENT (Cards Grid + Video)
   ============================================ */

.why-hpmsm-content {
	position: relative;
	width: 100%;
}

.why-hpmsm-cards-grid {
	display: grid;
	grid-template-columns: 1fr 417px 1fr;
	gap: 24px;
	align-items: stretch;
}

/* ============================================
   COLUMNS
   ============================================ */

.why-hpmsm-column {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.why-hpmsm-column--left {
	/* First column with two cards */
}

.why-hpmsm-column--center {
	/* Second column with video */
	align-items: center;
	justify-content: center;
	height: 100%;
}

.why-hpmsm-column--right {
	/* Third column with two cards */
	height: 100%;
}

.why-hpmsm-column--right .why-hpmsm-card {
	flex: 1;
}

/* ============================================
   CARDS
   ============================================ */

.why-hpmsm-card {
	background-color: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 20px;
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: 100%;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	cursor: default;
}

.why-hpmsm-card:hover {
	background-color: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.2);
	transform: translateY(-4px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.why-hpmsm-card__icon {
	width: 32px;
	height: 32px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ensure icon container is not a link */
.why-hpmsm-card__icon a {
	display: contents;
	text-decoration: none;
	color: inherit;
}

.why-hpmsm-card__icon a:hover,
.why-hpmsm-card__icon a:focus {
	text-decoration: none;
	color: inherit;
}

.why-hpmsm-card:hover .why-hpmsm-card__icon {
	transform: scale(1.1) rotate(5deg);
}

.why-hpmsm-card__icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	filter: brightness(0) invert(1);
}

.why-hpmsm-card__icon .material-icons-outlined {
	font-size: 32px;
	color: var(--color-pure-white);
	line-height: 1;
}

.why-hpmsm-card__title {
	font-family: var(--font-heading);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--color-pure-white);
	margin: 0;
}

.why-hpmsm-card__description {
	font-family: var(--font-body);
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	color: rgba(255, 255, 255, 0.8);
	margin: 0;
}

.why-hpmsm-card__badge {
	display: inline-block;
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--color-sky-pulse);
	margin-top: 16px;
	padding: 8px 16px;
	background-color: rgba(7, 179, 241, 0.2);
	border: none;
	border-radius: 4px;
	text-decoration: none;
}

.why-hpmsm-card__button {
	margin-top: 0;
	width: auto;
	align-self: flex-start;
	font-size: 14px;
	padding: 8px 16px;
}

/* ============================================
   VIDEO
   ============================================ */

.why-hpmsm-video {
	width: 417px;
	height: 100%;
	min-height: 420px;
	border-radius: 20px;
	overflow: hidden;
	background-color: #212B3B;
	position: relative;
	flex-shrink: 0;
}

.why-hpmsm-video__player {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.why-hpmsm-video__overlay {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	width: 294px;
	height: 72px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 50px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.why-hpmsm-video__overlay-text {
	font-family: var(--font-heading);
	font-size: 32px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--color-pure-white);
	white-space: nowrap;
}

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

@media (max-width: 1024px) {
	.why-hpmsm-container {
		position: relative;
		width: 100%;
		max-width: 1300px;
		margin: 0 auto;
		padding: 0;
		max-width: var(--container-max-width);
	}
	
	.why-hpmsm-video {
		width: 100%;
		height: 300px;
	}
}

@media (max-width: 1200px) {
	.why-hpmsm-cards-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}
	
	.why-hpmsm-column {
		width: 100%;
	}
	
	.why-hpmsm-video {
		width: 100%;
		max-width: 100%;
		height: 300px;
		aspect-ratio: 347 / 290;
		margin: 0 auto;
	}
}

@media (max-width: 768px) {
	.why-hpmsm-section {
		padding: clamp(60px, 10vw, 120px) 0;
	}
	
	.why-hpmsm-header {
		flex-direction: column;
		gap: 32px;
		margin-bottom: 40px;
		align-items: flex-start;
	}
	
	.why-hpmsm-header-right {
		width: 100%;
	}
	
	.why-hpmsm-header-right .btn {
		width: auto;
		max-width: 100%;
		align-self: flex-start;
		justify-content: center;
	}
	
	.why-hpmsm-video {
		width: 100%;
		max-width: 100%;
	}
}

@media (max-width: 456px) {
	.why-hpmsm-section {
		padding: clamp(40px, 8vw, 80px) 0;
	}
	
	.why-hpmsm-container {
		padding: 0;
	}
	
	.why-hpmsm-header {
		gap: 24px;
		margin-bottom: 32px;
	}
	
	.why-hpmsm-header-left {
		flex: 1;
		max-width: 700px;
		text-align: center;
	}
	
	.why-hpmsm-title {
		font-size: clamp(24px, 6vw, 32px);
		line-height: clamp(30px, 7vw, 40px);
		margin-bottom: 16px;
	}
	
	.why-hpmsm-subtitle {
		font-size: clamp(14px, 3.5vw, 16px);
		line-height: clamp(20px, 5vw, 24px);
	}
	
	.why-hpmsm-cards-grid {
		gap: 16px;
	}
	
	.why-hpmsm-column {
		gap: 16px;
	}
	
	.why-hpmsm-card {
		padding: 20px;
		gap: 12px;
		border-radius: 16px;
	}
	
	.why-hpmsm-card__icon {
		width: 28px;
		height: 28px;
	}
	
	.why-hpmsm-card__title {
		font-size: clamp(16px, 4vw, 18px);
		line-height: clamp(22px, 5vw, 24px);
	}
	
	.why-hpmsm-card__description {
		font-size: clamp(14px, 3.5vw, 16px);
		line-height: clamp(20px, 5vw, 22px);
	}
	
	.why-hpmsm-video {
		min-height: 280px;
		border-radius: 16px;
	}
	
	.why-hpmsm-video__overlay {
		width: calc(100% - 32px);
		max-width: 260px;
		height: 60px;
		bottom: 16px;
	}
	
	.why-hpmsm-video__overlay-text {
		font-size: clamp(20px, 5vw, 24px);
	}
	
	.why-hpmsm-header-right .btn {
		width: 100%;
		justify-content: center;
	}
}

@media (max-width: 320px) {
	.why-hpmsm-section {
		padding: 60px 0;
	}
	
	.why-hpmsm-container {
		padding: 0 16px;
	}
	
	.why-hpmsm-cards-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}
	
	.why-hpmsm-column,
	.why-hpmsm-column--left,
	.why-hpmsm-column--center,
	.why-hpmsm-column--right {
		width: 80%;
		max-width: 100%;
	}
	
	.why-hpmsm-video {
		width: 100%;
		max-width: 100%;
	}
}

