/*
Theme Name: GX-Easy Flow
Theme URI: https://generaxion.com/
Author: Generaxion
Description: An editable, café-inspired GX-Easy full-site editing theme.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.0
Text Domain: flow
*/

:root {
	--flow-header-height: 7.25rem;
	--flow-shadow: 0 1.25rem 3.75rem rgba(70, 29, 20, 0.12);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html { scroll-behavior: smooth; }
body { overflow-x: clip; }

.wp-site-blocks > main {
	margin-block-start: 0;
}

.wp-site-blocks > footer {
	margin-block-start: 0;
}

html:has(.wp-lightbox-overlay.active),
body:has(.wp-lightbox-overlay.active) {
	overflow: hidden !important;
}

a,
button,
input,
textarea,
select {
	transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

:where(a, button, input, textarea, select, [tabindex]):focus-visible {
	outline: 3px solid var(--wp--preset--color--action);
	outline-offset: 4px;
}

.flow-site-header {
	left: 0;
	position: absolute;
	right: 0;
	top: 0;
	z-index: 20;
}

.flow-site-header__inner { min-height: var(--flow-header-height); }
.flow-site-header--light { position: relative; }
.flow-brand { flex-shrink: 0; }

.flow-brand .wp-block-site-logo img {
	height: auto;
	max-height: 4.5rem;
	width: auto;
}

.flow-site-header:not(.flow-site-header--light) .wp-block-site-logo img {
	filter: brightness(0) invert(1);
}

.flow-brand .wp-block-site-title {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.5rem, 3vw, 2.25rem);
	font-weight: 700;
	line-height: 1;
}

.flow-site-header:not(.flow-site-header--light) .flow-brand,
.flow-site-header:not(.flow-site-header--light) .wp-block-navigation-item__content {
	color: var(--wp--preset--color--white);
}

.flow-site-header .wp-block-navigation-item__content { font-size: 1.125rem; }
.flow-mobile-nav-link { display: none !important; }

.flow-site-header .wp-block-navigation__responsive-container-open,
.flow-site-header .wp-block-navigation__responsive-container-close {
	min-height: 2.75rem;
	min-width: 2.75rem;
}

.flow-site-header:not(.flow-site-header--light) .wp-block-navigation__responsive-container-open svg {
	fill: var(--wp--preset--color--white);
}

.flow-header-cta > .wp-block-button__link { white-space: nowrap; }

.flow-hero { min-height: 50.625rem; }

.flow-hero .wp-block-cover__inner-container {
	display: flex;
	justify-content: center;
}

.flow-hero__content {
	max-width: 48rem;
	padding-top: var(--flow-header-height);
}

.flow-hero__content p { text-wrap: balance; }

.flow-section {
	padding-bottom: clamp(4.5rem, 8vw, 8rem);
	padding-top: clamp(4.5rem, 8vw, 8rem);
}

.flow-intro {
	max-width: 52rem;
	text-align: center;
}

.flow-feature {
	border-radius: 0.375rem;
	overflow: hidden;
}

.flow-feature > .wp-block-column { margin: 0; }

.flow-feature .wp-block-image,
.flow-feature .wp-block-image img {
	height: 100%;
	margin: 0;
	min-height: 34rem;
	object-fit: cover;
	width: 100%;
}

.flow-feature__copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(2.5rem, 6vw, 5rem);
}

.flow-cta {
	padding-bottom: clamp(4.5rem, 7vw, 7rem);
	padding-top: clamp(4.5rem, 7vw, 7rem);
}

.flow-legal-page .wp-block-post-content > :where(h2, h3) {
	margin-block-start: clamp(2.5rem, 5vw, 4rem);
}

.flow-menu-nav .wp-block-button__link {
	background: transparent;
	border: 1px solid currentColor;
	color: var(--wp--preset--color--action);
}

.flow-menu-section { margin-top: 3rem; }

.flow-menu-heading {
	border-radius: 0.375rem;
	padding: 1.25rem 1.5rem;
}

.flow-menu-row {
	align-items: stretch;
	display: grid;
	gap: 1.5rem;
	grid-template-columns: minmax(0, 1fr) 15rem;
	margin-top: 1rem;
}

.flow-menu-row > * {
	background: var(--wp--preset--color--surface);
	border-radius: 0.375rem;
	margin: 0;
	padding: 1.25rem 1.5rem;
}

.flow-gallery-grid {
	display: grid !important;
	gap: 2rem !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.flow-gallery-grid > .wp-block-image {
	aspect-ratio: 1 / 1;
	margin: 0 !important;
	width: 100% !important;
}

.flow-gallery-grid > .wp-block-image img {
	border-radius: 0.375rem;
	height: 100% !important;
	object-fit: cover;
	width: 100%;
}

.flow-gallery-grid figcaption {
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.flow-contact-card {
	border-radius: 0.375rem;
	box-shadow: var(--flow-shadow);
	padding: clamp(2rem, 5vw, 4rem);
}

.flow-form-section {
	border-radius: 0.375rem;
	padding: clamp(2rem, 6vw, 5rem);
}

.flow-form-section .gform_wrapper.gravity-theme,
.flow-form-section .gform-theme--framework {
	--gf-color-primary: var(--wp--preset--color--action);
	--gf-color-danger: var(--wp--custom--form--danger);
	font-family: var(--wp--preset--font-family--body);
}

.flow-form-section .gfield_label,
.flow-form-section .gform-field-label {
	color: var(--wp--preset--color--brown);
	font-size: 1.125rem !important;
	font-weight: 600 !important;
}

.flow-form-section :where(input:not([type="checkbox"]):not([type="radio"]), textarea, select) {
	background: var(--wp--preset--color--white) !important;
	border: 1px solid rgba(111, 47, 35, 0.28) !important;
	border-radius: 0.2rem !important;
	color: var(--wp--preset--color--brown) !important;
	min-height: 3.5rem;
}

.flow-form-section :where(input, textarea, select):focus {
	border-color: var(--wp--preset--color--action) !important;
	box-shadow: 0 0 0 3px rgba(177, 83, 30, 0.2) !important;
}

.flow-form-section .gform_validation_errors,
.flow-form-section .gfield_validation_message {
	background: var(--wp--preset--color--white) !important;
	border-color: var(--wp--custom--form--danger) !important;
	color: var(--wp--custom--form--danger) !important;
}

.flow-form-section .gfield_error :where(input, textarea, select) {
	border-color: var(--wp--custom--form--danger) !important;
}

.flow-form-section .gform_confirmation_wrapper {
	background: var(--wp--preset--color--white);
	border-left: 0.35rem solid var(--wp--custom--form--success);
	border-radius: 0.25rem;
	color: var(--wp--preset--color--brown);
	font-size: 1.125rem;
	padding: 1.5rem;
}

.flow-form-section .gform_footer {
	display: flex;
	justify-content: center;
}

.flow-form-section :where(.gform_button, input[type="submit"]) {
	background: var(--wp--preset--color--action) !important;
	border: 0 !important;
	border-radius: 999px !important;
	color: var(--wp--preset--color--white) !important;
	cursor: pointer;
	font-weight: 700 !important;
	letter-spacing: 0.12em;
	padding: 1.1rem 2.5rem !important;
	text-transform: uppercase;
}

.flow-site-footer a { color: inherit; }
.flow-site-footer .wp-block-social-link { background: transparent; }

@media (max-width: 1199px) {
	.flow-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 781px) {
	:root { --flow-header-height: 5.75rem; }
	.flow-site-header__inner { min-height: var(--flow-header-height); }

	.flow-site-header .wp-block-navigation__responsive-container.is-menu-open {
		background: var(--wp--preset--color--brown) !important;
		color: var(--wp--preset--color--white) !important;
		padding: 2rem;
	}

	.flow-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
		color: var(--wp--preset--color--white);
	}

	.flow-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
		align-items: center;
		justify-content: center;
	}

	.flow-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
		align-items: center;
		font-family: var(--wp--preset--font-family--display);
		font-size: 1.75rem;
	}

	.flow-site-header .wp-block-navigation__responsive-container.is-menu-open .flow-mobile-nav-link {
		display: flex !important;
	}

	.flow-header-cta { display: none !important; }
	.flow-hero { min-height: 35.625rem; }

	.flow-hero__content {
		padding-left: 1.5rem;
		padding-right: 1.5rem;
	}

	.flow-feature { gap: 0; }

	.flow-feature .wp-block-image,
	.flow-feature .wp-block-image img { min-height: 24rem; }

	.flow-feature__copy { padding: 2.5rem 1.5rem; }
	.flow-menu-row { grid-template-columns: minmax(0, 1fr) 7rem; }
	.flow-menu-row > * { padding: 1rem; }
	.flow-gallery-grid { grid-template-columns: 1fr; }

	.flow-site-footer .wp-block-columns { gap: 2.5rem; }
}

@media (max-width: 380px) {
	.flow-brand .wp-block-site-title { font-size: 1.3rem; }
	.flow-menu-row { grid-template-columns: minmax(0, 1fr) 5.5rem; }
	.flow-menu-row > * { font-size: 0.9rem; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
