/*
Theme Name: Green Closet Creative Blocks
Author: Green Closet Creative
Author URI: https://greenclosetcreative.com

Text Domain: gcc-blocks
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.1.1
Version: 1.0.1
*/

/* Styles intended only for the front.*/
html,
body {
	display: block;
	width: 100%;
    overflow-x: hidden;
}

html {
	scroll-behavior: smooth;
}

@media screen and (prefers-reduced-motion: reduce) {

	html {
		scroll-behavior: auto;
	}
}

body {
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
}


/* Header Styles ------------------------------------- */
.site-header #header-buttons .wp-block-button__link {
	font-weight: 400;
}
.site-header #header-buttons .wp-block-search__inside-wrapper {
	border: none;
	padding: 0;
}
.site-header #header-buttons .wp-block-search__input {
	min-width: 0;
	width: 0;
	padding: 0;
	transition: all 0.3s ease-in-out;
}
.site-header #header-buttons .wp-block-search__button {
	background-color: var(--wp--preset--color--theme-primary);
	font-size: 0;
	display: block;
	padding: 12px;
	margin-left: 0;
	width: 47px;
	height: 47px;
	transition: all 0.3s ease-in-out;
}
.site-header #header-buttons .wp-block-search__button:hover,
.site-header #header-buttons .wp-block-search__button:active,
.site-header #header-buttons .wp-block-search__button:focus {
	background-color: var(--wp--preset--color--theme-primary);
}
.site-header #header-buttons .wp-block-search__button:before {
	content: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path fill="%23ffffff" d="M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"/></svg>');
}

#header-buttons .wp-block-search {
	position: relative;
}
#header-buttons .wp-block-search:after {
	content: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path fill="%23a7cf38" d="M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"/></svg>');
	position: absolute;
	width: 24px;
    height: 24px;
	background-color: #fff;
	padding: 12px;
	z-index: 10;
	right: 0;
	top: 0;
	opacity: 1;
	cursor: pointer;
	transition: all 0.3s ease-in-out;
}
.fade-out:after {
    opacity: 0 !important;
    transition: opacity 0.3s ease;
}
.site-header #header-buttons .fade-out .wp-block-search__input {
	min-width: 300px;
	width: 300px;
	padding: 5px 15px;
}
.site-header #header-buttons .fade-out .wp-block-search__button {
	z-index: 20;
}

.site-header .wp-block-search__button-inside p {
	display: none !important;
}

.home .site-header.header-transparent {
	position: absolute;
    width: 100%;
    z-index: 99;
}
.home .site-header.header-transparent > .wp-block-group {
	background-color: transparent !important;
}

/* Header styles - Header Transparent ----------------------------------------- */
.site-header.header-transparent {
    background-color: var(--wp--preset--color--custom-new-light-grey);
}
.site-header.header-transparent {
    position: absolute;
    z-index: 99;
    width: 100%;
    height: 100px;
    background-color: transparent;
}
.site-header.header-transparent + main > .entry-content > .wp-block-cover,
.site-header.header-transparent + .wp-block-cover {
    padding-top: 100px; /* equal to height above */
}

@media screen and (max-width: 1199px) {
	header .wp-block-site-logo {
		max-width: 200px !important;
	}
}
@media screen and (max-width: 781px) {
	.site-header .is-content-justification-space-between {
		display: block;
		width: 100%;
		padding-top: 75px !important;
	}
	.site-header .is-content-justification-space-between .wp-block-site-logo {
		width: 100%;
		max-width: 200px;
	}
	.site-header .is-content-justification-space-between .is-content-justification-right {
		position: absolute;
		top: 0;
		width: calc(100% - 2rem);
	}
	.site-header #header-buttons {
		padding-top: 1rem !important;
	}
}
@media screen and (max-width: 567px) {
	.site-header #header-buttons .fade-out .wp-block-search__input {
		min-width: 200px;
		width: 200px;
	}
	.site-header #header-buttons {
		flex-wrap: wrap !important;
	}
}
@media screen and (max-width: 479px) {
	#header-buttons .wp-block-search:after {
		display: none;
	}
}

/* Footer Styles ------------------------------------- */
.site-footer .gcc-logo img {
	width: 140px;
	height: auto;
	vertical-align: middle;
}

.site-footer .gform-theme--framework {
	text-align: left;
}
.site-footer .gform-theme--foundation .gform_fields {
	row-gap: var(--gf-form-gap-x);
}
.site-footer .gform-theme--framework .gform_validation_errors {
	background-color: var(--gf-form-validation-bg-color);
    border: var(--gf-form-validation-border-width) var(--gf-form-validation-border-style) rgb(244 169 152 / 25%);
}
.site-footer .gform-theme--framework .gform_validation_errors .gform_submission_error,
.site-footer .gform-theme--framework .gform_validation_errors .gform-icon,
.site-footer .gform-theme--framework .gfield_validation_message {
	color: #e98c78;
}
.site-footer .gform-theme--framework .gfield_error input[type]:where(:not(.gform-text-input-reset):not([type="hidden"])):where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)),
.site-footer .gform-theme--framework .gform_validation_errors .gform-icon {
	border-color: #e98c78;
}

@media screen and (max-width: 781px) {
	.site-footer {
		text-align: center;
	}
	.site-footer .wp-block-social-links {
		justify-content: center;
	}
}


/* pagination numbers */
.wp-block-query-pagination-numbers > * {
	padding: 4px;
	font-weight: 700;
}