/**
 * GPS Hero 2 widget styles.
 * Loaded in <head> by gps-necessery.php (handle: gps-necessery-hero2).
 */

.gps-hero2-section {
	padding: 64px 20px;
	background-color: #FFFFFF;
	box-sizing: border-box;
	width: 100%;
}
.gps-hero2-container {
	max-width: 1150px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 40px;
}
.gps-hero2-left {
	flex: 1;
	min-width: 280px;
	display: flex;
	justify-content: center;
}
.gps-hero2-img {
	width: 100%;
	max-width: 320px;
	height: auto;
	object-fit: contain;
}
.gps-hero2-right {
	flex: 1.4;
	min-width: 280px;
}
.gps-h2-subtitle {
	color: #DC2626;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	display: block;
	margin-bottom: 8px;
}
.gps-h2-title {
	font-size: 28px;
	font-weight: 700;
	color: #111827;
	margin: 0 0 16px 0;
	line-height: 1.3;
}
.gps-h2-desc {
	font-size: 14px;
	color: #4B5563;
	line-height: 1.7;
	margin: 0 0 20px 0;
	max-width: 520px;
}
.gps-h2-checklist {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 24px;
}
.gps-h2-check-item {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	font-weight: 600;
	color: #374151;
}
.gps-h2-check-icon {
	color: #DC2626;
	font-size: 16px;
	font-weight: bold;
}
.gps-h2-btn {
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	color: #111827;
	padding: 10px 24px;
	border: 1px solid #D1D5DB;
	border-radius: 9999px;
	text-decoration: none !important;
	background-color: transparent;
	transition: all 0.3s ease;
}
.gps-h2-btn:hover {
	background-color: #F9FAFB;
	border-color: #9CA3AF;
}

@media (min-width: 768px) {
	.gps-h2-title {
		font-size: 32px;
	}
}

/* ---------- Certificate: hover reveal + click to open ---------- */
.gps-cert-trigger {
	position: relative;
	display: block;
	width: 100%;
	max-width: 420px;
	padding: 0;
	margin: 0 auto;
	border: 0;
	background: transparent;
	cursor: zoom-in;
	border-radius: 16px;
	font: inherit;
	color: inherit;
	text-transform: none;
	letter-spacing: normal;
	box-shadow: none;
}
.gps-cert-trigger:focus-visible {
	outline: 3px solid #DC2626;
	outline-offset: 4px;
}
.gps-cert-trigger__front {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 260px;
	transition: opacity 0.35s ease, transform 0.35s ease;
}
.gps-cert-trigger__front .gps-hero2-img {
	max-width: 100%;
}
.gps-cert-trigger__back {
	position: absolute;
	inset: -8px 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px;
	border-radius: 16px;
	background: #F3F4F6;
	box-shadow: 0 18px 40px rgba(17, 24, 39, 0.18);
	opacity: 0;
	transform: scale(0.94);
	pointer-events: none;
	transition: opacity 0.35s ease, transform 0.35s ease;
}
.gps-cert-trigger__img {
	max-width: 100%;
	max-height: 100%;
	width: auto !important;
	height: 100% !important;
	object-fit: contain;
	border-radius: 8px;
	background: #fff;
}
.gps-cert-trigger__hint {
	position: absolute;
	left: 50%;
	bottom: 14px;
	transform: translateX(-50%);
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	border-radius: 999px;
	background: #DC2626;
	color: #FFFFFF;
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
	box-shadow: 0 8px 20px rgba(220, 38, 38, 0.35);
}
.gps-cert-trigger:hover .gps-cert-trigger__back,
.gps-cert-trigger:focus-visible .gps-cert-trigger__back {
	opacity: 1;
	transform: none;
}
.gps-cert-trigger:hover .gps-cert-trigger__front,
.gps-cert-trigger:focus-visible .gps-cert-trigger__front {
	opacity: 0;
	transform: scale(0.96);
}

/* Popup */
html.gps-cert-lock { overflow: hidden; }
.gps-cert-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
}
.gps-cert-modal[hidden] { display: none; }
.gps-cert-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(17, 24, 39, 0.72);
	backdrop-filter: blur(3px);
	opacity: 0;
	transition: opacity 0.2s ease;
}
.gps-cert-modal__dialog {
	position: relative;
	width: 100%;
	max-width: 440px;
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	padding-top: 22px;
	opacity: 0;
	transform: translateY(16px) scale(0.97);
	transition: opacity 0.2s ease, transform 0.25s ease;
}
.gps-cert-modal.is-open .gps-cert-modal__backdrop { opacity: 1; }
.gps-cert-modal.is-open .gps-cert-modal__dialog { opacity: 1; transform: none; }
.gps-cert-modal__close {
	position: absolute;
	top: 26px;
	right: 6px;
	z-index: 3;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #FFFFFF;
	color: #111827;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.gps-cert-modal__close:hover { background: #DC2626; color: #FFFFFF; }
.gps-cert-card {
	position: relative;
	padding: 34px 16px 16px;
	border-radius: 20px;
	background: #F3F4F6;
}
.gps-cert-card__badge {
	position: absolute;
	top: -18px;
	left: 50%;
	transform: translateX(-50%);
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 22px;
	border-radius: 999px;
	background: #DC2626;
	color: #FFFFFF;
	font-size: 15px;
	font-weight: 800;
	white-space: nowrap;
	box-shadow: 0 10px 24px rgba(220, 38, 38, 0.35);
}
.gps-cert-card__img { display: block; cursor: zoom-in; }
.gps-cert-card__img img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 8px;
}
.gps-cert-license {
	margin-top: 14px;
	padding: 18px 20px;
	border-radius: 16px;
	background: #1F1F23;
	color: #FFFFFF;
}
.gps-cert-license span {
	display: block;
	font-size: 12px;
	color: #9CA3AF;
	margin-bottom: 6px;
}
.gps-cert-license strong {
	font-size: 18px;
	font-weight: 800;
	letter-spacing: 0.3px;
	word-break: break-all;
}

/* Touch screens have no hover: tapping opens the popup directly. */
@media (hover: none) {
	.gps-cert-trigger__back { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.gps-cert-trigger__front, .gps-cert-trigger__back,
	.gps-cert-modal__backdrop, .gps-cert-modal__dialog { transition: none; }
}
