/*
Theme Name: GeneratePress Child
Theme URI: https://generatepress.com
Description: GeneratePress child theme for allrootsolutions.
Author: Mike
Template: generatepress
Version: 1.0.0
Text Domain: generatepress-child
*/

/* GeneratePress ships content-box; GenerateBlocks' compiled styles assume border-box. */
*,
*::before,
*::after {
	box-sizing: border-box;
}

/* Root Review form dialog (opened from the landing page CTA).
   The dialog is a transparent full-viewport scroll layer; the white card inside
   grows to natural height, so the popup scrolls as a whole and the card's
   corners never meet a scrollbar. Elevation modeled on the Figma form frame. */
.ars-form-dialog {
	width: 100vw;
	max-width: 100vw;
	height: 100dvh;
	max-height: none;
	margin: 0;
	border: 0;
	padding: 48px 16px;
	background: transparent;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.ars-form-dialog__inner {
	position: relative;
	width: min(920px, 100%);
	margin: 0 auto;
	padding: 48px;
	background: #ffffff;
	border-radius: 16px;
	box-shadow:
		0 40px 96px rgba(17, 17, 17, 0.35),
		0 12px 32px rgba(17, 17, 17, 0.22),
		0 2px 8px rgba(17, 17, 17, 0.12);
}

.ars-form-dialog[open] .ars-form-dialog__inner {
	opacity: 1;
	transform: none;
	transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Entrance animation in browsers with @starting-style; others show the dialog instantly. */
@starting-style {
	.ars-form-dialog[open] .ars-form-dialog__inner {
		opacity: 0;
		transform: translateY(16px) scale(0.97);
	}
}

.ars-form-dialog::backdrop {
	background: rgba(17, 17, 17, 0.72);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	transition: background 0.28s ease;
}

@starting-style {
	.ars-form-dialog[open]::backdrop {
		background: rgba(17, 17, 17, 0);
	}
}

/* Keep the page from scrolling behind the open dialog. */
html:has(.ars-form-dialog[open]) {
	overflow: hidden;
}

.ars-form-dialog__close {
	position: absolute;
	top: 14px;
	right: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: none;
	padding: 0;
	font-size: 26px;
	line-height: 1;
	color: var(--ars-ink, #111111);
	cursor: pointer;
	transition: background-color 0.15s ease;
}

/* GeneratePress paints button:hover/:focus dark; the dialog opens with this button focused. */
.ars-form-dialog__close:hover,
.ars-form-dialog__close:focus {
	background: rgba(17, 17, 17, 0.07);
	color: var(--ars-ink, #111111);
}

.ars-form-dialog__close:focus-visible {
	outline: 2px solid var(--ars-gold-btn, #cca34f);
	outline-offset: 2px;
}

@media (max-width: 767px) {
	.ars-form-dialog {
		padding: 24px 12px;
	}

	.ars-form-dialog__inner {
		padding: 32px 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ars-form-dialog[open] .ars-form-dialog__inner,
	.ars-form-dialog::backdrop {
		transition: none;
	}
}
