/*
 * TEMPORARY — Google LSA pricing blackout (Jul 2026).
 * Styles the "Looking for a deal?" block that stands in for the coupon
 * sections while they are hidden. Delete alongside inc/lsa-pricing-hide.php
 * once the appeal is approved.
 *
 * Every selector here is scoped to .sgd-deal-* so nothing can affect the rest
 * of the site. The only theme class referenced is .container, and it is
 * scoped inside .sgd-deal-section.
 */

/* ---------- Full-width section variant ---------- */
.sgd-deal-section {
	position: relative;
	padding: 100px 0;
	background-color: #0f2f5c;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	text-align: center;
	overflow: hidden;
}

/* Dark wash so the copy stays legible over any photo. */
.sgd-deal-section::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: linear-gradient(180deg, rgba(8, 26, 51, 0.90) 0%, rgba(8, 26, 51, 0.82) 100%);
}

.sgd-deal-section > .container {
	position: relative;
	z-index: 1;
}

.sgd-deal-section .sgd-deal-inner {
	max-width: 860px;
	margin-left: auto;
	margin-right: auto;
}

.sgd-deal-title {
	margin: 0 0 18px;
	font-size: 46px;
	line-height: 1.15;
	font-weight: 700;
	color: #ffffff;
	overflow-wrap: break-word;
	/* Evens out the two lines instead of leaving one orphaned word.
	   Ignored by browsers that don't support it — no fallback needed. */
	text-wrap: balance;
}

.sgd-deal-text {
	margin: 0;
	font-size: 28px;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.92);
	overflow-wrap: break-word;
}

/* Links: brand red at rest, reversing to white on hover. No underline. */
.sgd-deal-text a,
.sgd-deal-link {
	color: #F12424;
	font-weight: 700;
	text-decoration: none;
	transition: color 0.3s ease;
}

.sgd-deal-text a:hover,
.sgd-deal-text a:focus-visible,
.sgd-deal-link:hover,
.sgd-deal-link:focus-visible {
	color: #ffffff;
	text-decoration: none;
}

/* Visible focus ring for keyboard users — colour change alone isn't enough. */
.sgd-deal-text a:focus-visible,
.sgd-deal-link:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 3px;
	border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.sgd-deal-text a,
	.sgd-deal-link {
		transition: none;
	}
}

/*
 * The estimate-request trigger is a <button> sitting inside a sentence.
 * display:inline is required — the browser default of inline-block prevents
 * the label wrapping across lines and overflows narrow screens.
 */
.sgd-deal-link {
	display: inline;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	line-height: inherit;
	white-space: normal;
	text-align: inherit;
	cursor: pointer;
}

.sgd-deal-actions {
	margin-top: 34px;
}

/* ---------- Sidebar box variant (narrow column) ---------- */
.sgd-deal-box {
	padding: 28px 26px;
	background: #0f2f5c;
	border-radius: 10px;
	text-align: left;
}

.sgd-deal-box .sgd-deal-title {
	font-size: 23px;
	margin-bottom: 12px;
}

.sgd-deal-box .sgd-deal-text {
	font-size: 16px;
	line-height: 1.6;
}

.sgd-deal-box .sgd-deal-actions {
	margin-top: 20px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
	.sgd-deal-section {
		padding: 85px 0;
	}

	.sgd-deal-title {
		font-size: 42px;
	}

	.sgd-deal-text {
		font-size: 25px;
	}
}

@media (max-width: 991px) {
	.sgd-deal-section {
		padding: 70px 0;
	}

	.sgd-deal-section .sgd-deal-inner {
		max-width: 640px;
	}

	.sgd-deal-title {
		font-size: 36px;
	}

	.sgd-deal-text {
		font-size: 22px;
		line-height: 1.6;
	}

	.sgd-deal-actions {
		margin-top: 28px;
	}
}

@media (max-width: 767px) {
	.sgd-deal-section {
		padding: 55px 0;
	}

	.sgd-deal-title {
		font-size: 30px;
		margin-bottom: 14px;
	}

	.sgd-deal-text {
		font-size: 19px;
		line-height: 1.55;
	}

	/*
	 * Below this size the copy is no longer "large text" under WCAG, so the
	 * brand red (#F12424, ~4:1 on this background) falls short of the 4.5:1
	 * requirement. This lifts it just enough to pass while still reading as
	 * the same red. Desktop and tablet keep the exact brand colour.
	 */
	.sgd-deal-text a,
	.sgd-deal-link {
		color: #FF4A3D;
	}

	.sgd-deal-actions {
		margin-top: 24px;
	}
}

@media (max-width: 479px) {
	.sgd-deal-section {
		padding: 45px 0;
	}

	.sgd-deal-title {
		font-size: 25px;
	}

	.sgd-deal-text {
		font-size: 17px;
	}

	.sgd-deal-box {
		padding: 22px 20px;
	}

	/* Full-width tap target on the smallest screens. */
	.sgd-deal-actions .theme-btn {
		width: 100%;
		min-width: 0;
		margin-left: 0;
	}
}

/* ---------- Admin-bar warning badge ---------- */
#wpadminbar #wp-admin-bar-sgd-pricing-blackout > .ab-item {
	background: #b32d2e;
	color: #fff;
	font-weight: 600;
}

#wpadminbar #wp-admin-bar-sgd-pricing-blackout:hover > .ab-item {
	background: #8c2324;
	color: #fff;
}
