/*
Theme Name: Cognify
Template: neve-fse
Author: Yorick Brown
Author URI: https://whybedigital.com/
Description: Cognify theme
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 6.8
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cognify
Tags: custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns
*/

body {
	background: url("./assets/images/corner_top.svg") no-repeat top right;
	background-size: contain;
}

main {
	position: relative;
}

main:after {
	content: "";
	background: url("./assets/images/corner_top.svg") no-repeat top right;
	-moz-transform: scaleX(-1) scaleY(-1);
	-o-transform: scaleX(-1) scaleY(-1);
	-webkit-transform: scaleX(-1) scaleY(-1);
	transform: scaleX(-1) scaleY(-1);
	filter: FlipH;
	-ms-filter: "FlipH";
	background-size: contain;
	height: 100%;
	width: 100%;
	position: absolute;
	bottom: 0;
	left: -47px;
	z-index: -1;
}

.wp-block-site-logo img {
	width: 100%;
	height: 100%;
	max-width: 200px;
}

.wp-block-heading {
	color: var(--wp--preset--color--dark-grey);
	margin-bottom: 1rem;
}

.wp-block-media-text > .wp-block-media-text__content {
	padding: 0;
}

.wp-block-button__link:hover {
	transform: scale(1.1);
	transition: 120ms;
}

/* Gravity forms */
.gfield input.medium {
	inline-size: 100%;
}

.gform_title {
	margin-block-start: 0;
}

.gform-theme--foundation .gform_fields {
	row-gap: 0.75rem;
}

/* Footer */
footer .gform-field-label {
	filter: invert(1);
}

footer p {
	margin-block-start: 0.5rem;
}

footer input:read-write:not([type="search"]) {
	font-size: var(--wp--preset--font-size--small);
	padding: 9px 12px 11px;
	width: 100%;
	color: white;
	background-color: rgba(255, 255, 255, 0.2);
	border: none;
}

/* Company icons */
.wp-block-group.has-primary-background-color.has-background {
	margin-left: calc(var(--wp--custom--spacing--inner-horizontal) * -1);
	margin-right: calc(var(--wp--custom--spacing--inner-horizontal) * -1);
}

.company-icons img {
	max-height: 180px;
	max-width: 200px;
}

.responsive-columns {
	justify-content: center;
}

.responsive-columns > .wp-block-column {
	max-width: 320px;
}

.wp-site-blocks .alignfull.section-flipcards {
	width: 100%;
	margin: 0 !important;
}

.section-flipcards .responsive-columns > .wp-block-column {
	--flipcard-width: 368px;
	min-width: var(--flipcard-width);
	max-width: var(--flipcard-width);
}

.section-flipcards .responsive-columns .o-flip-content .o-img {
	height: 200px;
	width: auto;
}

.section-flipcards .o-flip-front,
.section-flipcards .o-flip-back {
	border-radius: 1rem;
	background-color: var(--wp--preset--color--primary);
	padding: 1.5rem;
	line-height: 1.4;
}

.section-flipcards .o-flip-back {
	background-color: var(--wp--preset--color--dark-green);
	color: white;
}

.section-flipcards p {
	margin-block-start: 0;
}

.header-media-text .wp-block-media-text__content {
	justify-items: center;
}

.entry-content {
	padding: var(--wp--custom--spacing--inner-horizontal);
}

@media (min-width: 601px) {
	.responsive-columns > .wp-block-column > figure img {
		max-height: 77px;
	}

	.wp-block-media-text {
		gap: var(--wp--style--block-gap);
	}

	.header-media-text .wp-block-media-text__content {
		justify-items: left;
	}
}

@media (min-width: 782px) and (max-width: 1151px) {
	.wp-block-columns:not(.is-not-stacked-on-mobile) {
		flex-wrap: wrap !important;
	}

	.wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
		flex-basis: 50% !important;
		flex-grow: 0;
	}
}

@media (min-width: 1152px) {
	.wp-block-columns:not(.is-not-stacked-on-mobile) {
		flex-wrap: wrap !important;
	}

	.wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
		flex-basis: 33.34% !important;
	}
}

@media (min-width: 1440px) {
	.entry-content {
		padding: 0;
	}
}
