/* ================================================================
   Skinmedics Diagnostic Gateway — Homepage Promo (banner + modal)
   Brand tokens match consent-modal.css: #22a4d3 primary, #272527 text
   Prefix: skg-
   ================================================================ */

:root {
	--skg-promo-teal:      #22a4d3;
	--skg-promo-teal-dark: #1a8ab4;
	--skg-promo-text:      #272527;
	--skg-promo-muted:     #6b7a8d;
	--skg-promo-bg-light:  #e7f0f3;
	--skg-promo-border:    #d4e4ea;
	--skg-promo-radius:    8px;
}

[hidden] { display: none !important; }

/* ── Banner (below nav) ──────────────────────────────────────── */
.skg-promo-banner {
	position: relative;
	/* This theme's homepage uses Astra's transparent overlay header
	   (body class ast-inherit-site-logo-transparent), which is positioned to
	   float over whatever follows it in the DOM — without its own stacking
	   context here, the header sits on top of this banner and swallows
	   clicks even though the banner renders visually. */
	z-index: 999;
	background: var(--skg-promo-teal);
	color: #fff;
}

.skg-promo-banner__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 10px 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	flex-wrap: wrap;
	position: relative;
}

.skg-promo-banner__text {
	font-size: 14px;
	font-weight: 500;
}

.skg-promo-banner__cta {
	display: inline-block;
	background: #fff;
	color: var(--skg-promo-teal-dark);
	font-size: 13px;
	font-weight: 600;
	padding: 6px 14px;
	border-radius: 999px;
	text-decoration: none;
	white-space: nowrap;
}

.skg-promo-banner__cta:hover,
.skg-promo-banner__cta:focus {
	background: var(--skg-promo-bg-light);
	color: var(--skg-promo-teal-dark);
}

.skg-promo-banner__close {
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
	background: transparent;
	border: 0;
	color: #fff;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	padding: 4px 8px;
	opacity: 0.85;
}

.skg-promo-banner__close:hover,
.skg-promo-banner__close:focus {
	opacity: 1;
}

/* ── Modal ────────────────────────────────────────────────────── */
.skg-promo-modal-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(39, 37, 39, .55);
	z-index: 9990;
}

.skg-promo-modal {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 9991;
	width: 100%;
	max-width: 440px;
	background: #fff;
	border-radius: var(--skg-promo-radius);
	padding: 40px 32px 32px;
}

.skg-promo-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	background: transparent;
	border: 0;
	border-radius: 50%;
	font-size: 22px;
	line-height: 1;
	color: var(--skg-promo-muted);
	cursor: pointer;
	padding: 8px;
	min-width: 44px;
	min-height: 44px;
	transition: background-color .15s ease, color .15s ease;
}

.skg-promo-modal__close:hover,
.skg-promo-modal__close:focus {
	color: var(--skg-promo-text);
	background-color: var(--skg-promo-bg-light);
}

.skg-promo-modal__body {
	text-align: center;
}

.skg-promo-modal__logo {
	text-align: center;
	margin-bottom: 12px;
}

.skg-promo-modal__logo-img {
	width: 80%;
	height: auto;
}

.skg-promo-modal__eyebrow {
	font-size: 18px;
	font-weight: 700;
	letter-spacing: .08em;
	color: var(--skg-promo-teal);
	margin: 0 0 8px;
}

.skg-promo-modal__heading {
	font-size: 22px;
	font-weight: 700;
	color: var(--skg-promo-text);
	margin: 0 0 12px;
}

.skg-promo-modal__copy {
	font-size: 14px;
	line-height: 1.5;
	color: var(--skg-promo-text);
	margin: 0 0 20px;
}

.skg-promo-modal__cta {
	display: inline-block;
	background: var(--skg-promo-teal);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	padding: 12px 28px;
	border-radius: var(--skg-promo-radius);
	text-decoration: none;
}

.skg-promo-modal__cta:hover,
.skg-promo-modal__cta:focus {
	background: var(--skg-promo-teal-dark);
	color: #fff;
}

.skg-promo-modal__footnote {
	font-size: 11px;
	color: var(--skg-promo-muted);
	margin: 16px 0 0;
}

/* ── Mobile ───────────────────────────────────────────────────── */
@media (max-width: 600px) {
	.skg-promo-banner__inner {
		padding: 10px 40px 10px 16px;
	}
	.skg-promo-modal {
		max-width: calc(100% - 32px);
		padding: 36px 24px 28px;
	}
}
