/* JSM Storm Alert Popup — Holston Tree Service */

.jsm-sa[hidden] { display: none !important; }

.jsm-sa {
	position: fixed;
	inset: 0;
	z-index: 100000; /* above the header logo (z-index 4000) and sticky elements */
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	opacity: 0;
	transition: opacity .25s ease;
}
.jsm-sa.is-open { opacity: 1; }

.jsm-sa__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .75);
	cursor: pointer;
}

.jsm-sa__dialog {
	position: relative;
	width: 100%;
	max-width: 560px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	background: #fff;
	color: #212529;
	border: 3px solid #000;
	border-radius: 6px;
	box-shadow: 0 10px 0 0 #14ba1466, 0 20px 50px rgba(0, 0, 0, .5);
	transform: translateY(20px) scale(.97);
	transition: transform .25s ease;
	outline: none;
}
.jsm-sa.is-open .jsm-sa__dialog { transform: none; }

/* hazard stripe across the top */
.jsm-sa__stripe {
	height: 10px;
	background: repeating-linear-gradient(-45deg, #000 0 14px, #52b248 14px 28px);
}

.jsm-sa__body { padding: 28px 32px 32px; text-align: center; }

.jsm-sa__close {
	position: absolute;
	top: 16px;
	right: 10px;
	width: 38px;
	height: 38px;
	border: 0;
	border-radius: 50%;
	background: #000;
	color: #fff;
	font-size: 26px;
	line-height: 38px;
	padding: 0;
	cursor: pointer;
	z-index: 1;
}
.jsm-sa__close:hover,
.jsm-sa__close:focus-visible { background: #d62828; }

.jsm-sa__label {
	display: inline-block;
	background: #d62828;
	color: #fff;
	font-family: 'Bebas Neue', sans-serif;
	font-size: 20px;
	letter-spacing: 1px;
	line-height: 1;
	padding: 7px 14px 5px;
	border-radius: 3px;
	margin-bottom: 14px;
}
.jsm-sa__label .fas { font-size: 15px; vertical-align: 1px; margin-right: 4px; }

.jsm-sa__title {
	font-family: 'Bebas Neue', sans-serif;
	font-size: 44px;
	font-weight: 400;
	line-height: 1.05;
	color: #000;
	margin: 0 0 14px;
}

.jsm-sa__content { font-size: 18px; line-height: 1.5; }
.jsm-sa__content p { margin: 0 0 12px; }
.jsm-sa__content p:last-child { margin-bottom: 0; }
.jsm-sa__content a { color: #3d8f35; text-decoration: underline; }
.jsm-sa__content img { max-width: 100%; height: auto; }
.jsm-sa__content ul, .jsm-sa__content ol { text-align: left; display: inline-block; margin: 0 0 12px; }

.jsm-sa__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	margin-top: 22px;
}

.jsm-sa__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: 'Bebas Neue', sans-serif;
	font-size: 24px;
	letter-spacing: .5px;
	line-height: 1;
	padding: 13px 24px 11px;
	border-radius: 6px;
	text-decoration: none !important;
	transition: filter .15s ease, transform .15s ease;
}
.jsm-sa__btn:hover, .jsm-sa__btn:focus-visible { filter: brightness(1.1); transform: translateY(-1px); }
.jsm-sa__btn--primary { background: #d62828; color: #fff !important; }
.jsm-sa__btn--call { background: #52b248; color: #fff !important; }
.jsm-sa__btn--call .fas { font-size: 18px; }

body.jsm-sa-locked { overflow: hidden; }

@media (max-width: 575px) {
	.jsm-sa__body { padding: 22px 20px 24px; }
	.jsm-sa__title { font-size: 34px; padding: 0 20px; }
	.jsm-sa__content { font-size: 16px; }
	.jsm-sa__btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
	.jsm-sa, .jsm-sa__dialog, .jsm-sa__btn { transition: none; }
}
