/* ==========================================================================
   Fowler Age Gate
   ========================================================================== */

body.fowler-age-gate-active {
	overflow: hidden !important;
}

.fowler-ag {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 1;
	transition: opacity 0.3s ease;
}

.fowler-ag--hidden {
	opacity: 0;
	pointer-events: none;
}

/* ---- Backdrop ---- */

.fowler-ag__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 10, 10, 0.88);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

/* ---- Dialog ---- */

.fowler-ag__dialog {
	position: relative;
	z-index: 1;
	max-width: 480px;
	width: 90%;
	padding: clamp(2.5rem, 5vw, 3.5rem);
	background: #fff;
	text-align: center;
}

/* ---- Logo ---- */

.fowler-ag__logo {
	margin-bottom: 2rem;
}

.fowler-ag__logo-img {
	max-height: 48px;
	width: auto;
}

.fowler-ag__logo-text {
	font-family: "Barlow Semi Condensed", "Helvetica Neue", sans-serif;
	font-size: 1.5rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: #0a0a0a;
}

/* ---- Typography ---- */

.fowler-ag__title {
	font-family: "Barlow Semi Condensed", "Helvetica Neue", sans-serif;
	font-size: clamp(1.25rem, 2vw + 0.5rem, 1.5rem);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #0a0a0a;
	margin: 0 0 1rem;
}

.fowler-ag__text {
	font-family: "Barlow Semi Condensed", "Helvetica Neue", sans-serif;
	font-size: clamp(0.9375rem, 0.5vw + 0.75rem, 1.0625rem);
	font-weight: 400;
	line-height: 1.6;
	color: #2d2d2d;
	margin: 0 0 2rem;
}

/* ---- Buttons ---- */

.fowler-ag__actions {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

@media (min-width: 480px) {
	.fowler-ag__actions {
		flex-direction: row;
		gap: 1rem;
	}
}

/* Use .fowler-ag ancestor to bump specificity above Hello Elementor's
   [type="button"] reset selector (0,0,1,0). Without the ancestor we'd be at
   equal specificity and would lose on source order, leaving buttons fuchsia. */
.fowler-ag .fowler-ag__btn {
	flex: 1;
	padding: 0.875rem 2rem;
	font-family: "Barlow Semi Condensed", "Helvetica Neue", sans-serif;
	font-size: 0.875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	border: 1px solid #0a0a0a;
	border-radius: 0;
	cursor: pointer;
	transition: background 0.25s ease, color 0.25s ease;
}

.fowler-ag .fowler-ag__btn--confirm {
	background: #0a0a0a;
	color: #fff;
}

.fowler-ag .fowler-ag__btn--confirm:hover,
.fowler-ag .fowler-ag__btn--confirm:focus-visible {
	background: #2d2d2d;
	border-color: #2d2d2d;
}

.fowler-ag .fowler-ag__btn--deny {
	background: transparent;
	color: #0a0a0a;
}

.fowler-ag .fowler-ag__btn--deny:hover,
.fowler-ag .fowler-ag__btn--deny:focus-visible {
	background: #0a0a0a;
	color: #fff;
}

/* ---- Focus visible ---- */

.fowler-ag .fowler-ag__btn:focus-visible {
	outline: 2px solid #6b6b6b;
	outline-offset: 2px;
}

/* ---- Reduced motion ---- */

@media (prefers-reduced-motion: reduce) {
	.fowler-ag {
		transition: none;
	}
}
