/*
Theme Name: Komi theme
Theme URI: https://them.es/starter-fse
Author: Marta Torre
Author URI: https://martatorre.dev/
Description: FSE custom theme.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.8
Requires PHP: 7.2
License: GPL version 2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0
Text Domain: komi-theme
Tags: full-site-editing, one-column, flexible-header, accessibility-ready, custom-colors, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, rtl-language-support, sticky-post, threaded-comments, translation-ready
*/

/* Don't overwrite this file. Compile "/assets/main.scss" to "/build/main.css" */


:root {
	--content-width: clamp(780px, 80vw, 1080px);
	--content-wide: clamp(1080px, 90vw, 1280px);

	/* Fonts */
	--fonts-xs: clamp(0.8rem, 0.7rem + 0.25vw, 0.9rem);
	--fonts-s: clamp(0.95rem, 0.92rem + 0.34vw, 1rem);
	--fonts-m: clamp(1.2rem, 1rem + 0.45vw, 1.25rem);
	--fonts-l: clamp(1.4rem, 1rem + 0.6vw, 1.625rem);
	--fonts-xl: clamp(1.6rem, 1rem + 0.8vw, 2rem);
	--fonts-xxl: clamp(2rem, 1rem + 0.8vw, 2.6rem);

	/* Color Variables */
	--color-primary: #4f56a2 !important;
	--color-secondary: #f3f3f8 !important;
	--color-black: #000000;
	--color-white: #ffffff;
	--light-gray: #ededed;

	/* Spacing */
	--space-xs: clamp(0.4rem, 0.5vw + 0.25rem, 0.5rem);
	/* 6-8px */
	--space-s: clamp(0.75rem, 1vw + 0.5rem, 1rem);
	/* 12-16px */
	--space-m: clamp(1.2rem, 2vw + 0.5rem, 1.5rem);
	/* 16-24px */
	--space-l: clamp(1.5rem, 3vw + 0.5rem, 2rem);
	/* 20-32px */
	--space-xl: clamp(2.5rem, 4vw + 1rem, 3rem);
	/* 32-48px */
	--space-2xl: clamp(3rem, 6vw + 1rem, 4rem);
	/* 40-64px */
	--space-3xl: clamp(4rem, 8vw + 1.5rem, 6rem);
	/* 56-96px */
}


/* GLOBAL
========================================================= */

html {
	scroll-behavior: smooth;
	height: 100%;
}

body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

p strong {
	font-weight: bold;
}

.wp-site-blocks {
	display: flex;
	flex-direction: column;
	flex: 1 0 auto;
}

main {
	flex: 1 0 auto;
}

header {
	flex-shrink: 0;
}

img {
	object-fit: contain;
}

/* CLASSES 
========================================================= */
.width--40 {
	width: 40%;
}

.width--30 {
	width: 30%;
}

.column__content {
	max-width: calc(560px - 1.5em);
}

/* HEADER
========================================================= */
a {
	transition: all .2s ease;
}

a:not(.wp-block-button__link):hover {
	color: var(--color-primary) !important;
}

header .wp-block-navigation-item.current-menu-item a {
	font-weight: bold;
}

/* Custom mobile menu icon */
.wp-block-navigation__responsive-container-open {
	position: relative;
}

.wp-block-navigation__responsive-container-open svg {
	display: none;
}

.wp-block-navigation__responsive-container-open::before {
	content: '';
	display: block;
	width: 30px;
	height: 30px;
	background-image: url("data:image/svg+xml,%3Csvg width='30' height='30' viewBox='0 0 30 30' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.9351 1.5L14.9351 28.3701' stroke='%234F56A2' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='M28.3701 14.935L1.50006 14.935' stroke='%234F56A2' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}

/* FOOTEr
========================================================= */
footer {
	margin-top: 0 !important;
	flex-shrink: 0;
}

footer #get-in-touch {
	width: 70px;
}

footer #social img {
	width: 27px;
}

/* HOME
========================================================= */
.banner,
.page-title {
	position: relative;
	background: linear-gradient(215deg, #EDEDED 0%, #4F56A2 100%) !important;
}

.banner::before,
.page-title::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(215deg, #6b6e90 0%, #4F56A2 100%) !important;
	opacity: 0;
	transition: opacity 1s ease;
	pointer-events: none;
}

.banner:hover::before,
.page-title:hover::before {
	opacity: 1;
}

.banner>*,
.page-title>* {
	position: relative;
	z-index: 1;
}

.banner img,
.banner p,
.page-title h1 {
	transition: filter 1s ease;
}

.banner:hover img,
.banner:hover p,
.page-title:hover h1 {
	filter: drop-shadow(0 0 12px #FFF);
}

/* BLOCKS
========================================================= */
.wp-block-button__link,
.gform_button.button {
	position: relative;
	color: var(--color-primary);
	border-radius: 2322.585px;
	background: rgba(214, 214, 214, 0.30) !important;
	box-shadow: 0 1006.686px 281.314px 0 rgba(0, 0, 0, 0.00), 0 644px 258.065px 0 rgba(0, 0, 0, 0.01), 0 362.686px 218.542px 0 rgba(0, 0, 0, 0.05), 0 160.419px 160.419px 0 rgba(0, 0, 0, 0.09), 0 7px 88.347px 0 rgba(0, 0, 0, 0.10);
	backdrop-filter: blur(20.92418670654297px);
	transition: all 1s ease;
	letter-spacing: -0.32px;
}

.gform_button.button {
	padding: var(--space-xs) var(--space-m);
	cursor: pointer;
}

.wp-block-button__link::before,
.gform_button.button::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 2322.585px;
	padding: 3px 5px;
	background: linear-gradient(180deg, #FFFFFF 0%, #777 30%, #FFFFFF 100%);
	-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	mask-composite: exclude;
	pointer-events: none;
	transition: all 1s ease;
}

.wp-block-button__link:hover,
.gform_button.button:hover {
	color: white;
	background: #c7c8db !important;
}

.wp-block-button__link:hover::before,
.gform_button.button:hover::before {
	background: linear-gradient(180deg, #FFFFFF 0%, #4f56a2 30%, #FFFFFF 100%);
	-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	mask-composite: exclude;
	pointer-events: none;
}

.gform-footer {
	padding-top: var(--space-s);
	text-align: center;
}


summary {
	position: relative;
	cursor: pointer;
	font-weight: bold;
	font-size: var(--fonts-m);
	color: var(--color-primary);
	padding: .2rem;
}

summary::marker {
	content: '';
}

summary::before {
	position: absolute;
	content: '';
	width: var(--wp--preset--font-size--l);
	height: var(--wp--preset--font-size--l);
	background-image: url(/wp-content/uploads/2025/12/faq-plus.svg);
	background-size: var(--wp--preset--font-size--l);
	background-repeat: no-repeat;
	right: var(--wp--preset--spacing--s);
	top: 50%;
	transform: translateY(-50%);
	transition: all .2s ease;
}

details {
	color: var(--color-primary) !important;
}

details p {
	padding-left: 1rem;
}

details[open] summary::before {
	background-image: url(/wp-content/uploads/2025/12/faq-minus.svg);
	background-size: var(--wp--preset--font-size--m);
	width: var(--wp--preset--font-size--m);
	height: var(--wp--preset--font-size--m);
	transform: translate(-3px, -50%);
}

.komi-position {
	color: var(--color-primary);
}

.komi-social-icons {
	gap: var(--space-xs);
	display: flex;
	align-items: center;
	justify-content: center;
}

.komi-social-icons img {
	width: 50px;
}

.single-team .komi-position {
	color: white !important;
}

/* FORMS */
label {
	color: var(--color-primary);
	font-size: var(--fonts-s);
	font-style: normal;
	font-weight: 400;
}

input,
textarea {
	border-radius: 10px;
	border: 1px solid rgba(79, 85, 162, 0.20);
	background: #F4F4F4;
	padding: .5rem;
	margin-top: .5rem;
}

.ginput_container_consent .gform-field-label {
	color: #8D8D8D;
	font-size: var(--fonts-xs);
	font-weight: 500;
}

.ginput_container_consent .gform-field-label a {
	color: var(--color-primary);
	text-decoration-line: underline;
}

.gfield_required.gfield_required_text {
	font-size: var(--fonts-xs);
	padding-left: var(--space-xs);
}

/* PAGES
========================================================= */
#why-choose img {
	height: 80px !important;
	width: 80px !important;
}

#solution {
	position: relative;
}

#float--parented {
	position: absolute;
	top: 0;
	right: 1rem;
	max-width: 50px;
}

#electricy-content {
	background: linear-gradient(215deg, #EDEDED 0%, #4F56A266 100%) !important;
}

#tecno--graphic {
	position: relative;
}

#tecno--graphic #graphic--title1 {
	position: absolute;
	top: 0;
	left: 5%;
}

#tecno--graphic #graphic--title2 {
	position: absolute;
	bottom: 0;
	left: 5%;
}

#tecno--graphic #graphic--title3 {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	right: 0;
}

/* SCROLL ANIMATIONS
========================================================= */
.scroll-animate {
	opacity: 0;
	transition: opacity 1s ease-out, transform 1s ease-out;
	will-change: opacity, transform;
}

/* Fade Up */
.scroll-animate.fade-up {
	transform: translateY(40px);
}

/* Fade In */
.scroll-animate.fade-in {
	/* No initial transform */
}

/* Trigger State */
.scroll-animate.in-view {
	opacity: 1;
	transform: none;
}


/* MEDIA QUERIES
========================================================= */

@media (max-width: 600px) {
	.stack-in-mobile {
		grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
	}

	.mobile-two-column {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: var(--space-m) !important;
	}

	.mobile-flex-column {
		flex-direction: column;
		align-items: center;
	}

	.hide-mobile {
		display: none !important;
	}

	header {
		position: sticky;
		top: 0;
		z-index: 999;
	}

	header .custom-logo {
		width: 32px !important;
	}

	footer .wp-block-group {
		justify-content: center !important;
	}

	footer .wp-block-buttons {
		flex-direction: column !important;
		margin: 0 auto;
	}

	#footer-bottom,
	#footer-bottom p {
		text-align: center;
		padding: 1rem;
	}

	#get-in-touch {
		width: 80px;
	}

	#banner--komi {
		padding-top: 60px !important;
		padding-bottom: 60px !important;
	}

	#home-production {
		flex-direction: column !important;
		align-items: center;
	}

	#home-production .wp-block-group {
		width: 100%;
	}

	#banner--komi img {
		width: 150px !important;
	}

	.banner p {
		font-size: var(--fonts-s) !important;
	}

	#banner--komi p {
		font-size: var(--fonts-xs) !important;
	}

	#home--companies {
		flex-wrap: wrap;
		align-items: center;
		justify-content: center;
		gap: 1% !important;
	}

	#home--companies figure {
		width: 30%;
		margin: var(--space-s) 0;
	}

	header #modal-1-content .wp-block-navigation-item__content {
		font-size: var(--fonts-m) !important;
	}

	#modal-1 {
		bottom: inherit !important;
		padding-bottom: var(--space-2xl);
		left: 25% !important;
		background-color: #ededed !important;
		border-radius: 20px;
	}
}

@media (min-width: 780px) {
	.hide-desktop {
		display: none !important;
	}
}