/*
Theme Name: Climate 4 People
Theme URI: 
Author: Javier Bianchet
Author URI: 
Description: 
Requires at least: 6.9
Tested up to: 6.9
Requires PHP: 5.7
Version: 
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: climate4people
Tags: 
*/

:root {
	--content-width: clamp(1080px, 80vw, 1150px);
	--content-wide: clamp(1280px, 90vw, 1440px);
	
	/* Fonts */
	--fonts-2xs: var(--wp--custom--fonts--xxs);
	--fonts-xs:  var(--wp--custom--fonts--xs);
	--fonts-s:   var(--wp--custom--fonts--s);
	--fonts-m:   var(--wp--custom--fonts--m);
	--fonts-l:   var(--wp--custom--fonts--l);
	--fonts-xl:  var(--wp--custom--fonts--xl);
	--fonts-2xl: var(--wp--custom--fonts--xxl);
	--fonts-3xl: var(--wp--custom--fonts--xxxl);
	--fonts-4xl: var(--wp--custom--fonts--xxxxl);
	
	/* Color Variables */
	--color-primary:   var(--wp--preset--color--primary);
	--color-secondary: var(--wp--preset--color--secondary);
	--color-tertiary:  var(--wp--preset--color--tertiary);
	--color-green:     var(--wp--preset--color--green);
	--color-white:     var(--wp--preset--color--white);
	--color-black:     var(--wp--preset--color--black);


	/* Spacing */
	--space-xs:  var(--wp--custom--space--xs);
	--space-s:   var(--wp--custom--space--s);
	--space-m:   var(--wp--custom--space--m);
	--space-l:   var(--wp--custom--space--l);
	--space-xl:  var(--wp--custom--space--xl);
	--space-2xl: var(--wp--custom--space--xxl);
	--space-3xl: var(--wp--custom--space--xxxl);
}


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

html {
	scroll-behavior: smooth;
}


header {
	position: sticky;
	top: 0;
	padding-top: var(--space-s);
	padding-bottom: var(--space-s);
	z-index: 9999;
}

footer {
	margin-top: 0 !important;
}

mark {
	padding: 1px 6px;
}

/* HOME */
body.home header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	width: 100vw;
	opacity: 0;
}

body.home .header__logo,
body:not(.home):not(.scrolled) .header__logo-white,
body.scrolled .header__logo {
	display: none;
}

body.scrolled header nav a,
body.home:not(.scrolled) header nav a {
	color: var(--color-white) !important;
}

body.scrolled header nav a:hover,
body.home:not(.scrolled) header nav a:hover,
header nav a:hover {
	color: var(--color-green) !important;
}

body.scrolled header {
	background-color: var(--color-black);
	padding-top: var(--space-xs);
	padding-bottom: var(--space-xs);
}


.home--banner {
	position: relative;
	overflow: hidden;
}

.home--banner__video {
	position: absolute;
	bottom: 0;
	right: 0;
	aspect-ratio: 1;
	z-index: 0;
	background-color: #1b232e;
}

.home--banner::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.0);
	z-index: 1;
}

.home--banner > *:not(.home--banner__video):not(.scroll-indicator) {
	position: relative;
	z-index: 2;
}

.home__banner--title,
.home__banner--title-2 {
	opacity: 0;
}

.home__banner--description {
	opacity: 0;
	will-change: opacity, transform, filter;
}

.home__banner--cta {
	opacity: 0;
}

.home__banner--description mark {
	background-color: transparent !important;
		background-image: linear-gradient(var(--wp--preset--color--tertiary), var(--wp--preset--color--tertiary)) !important;
	background-size: 0% 100%;
	background-repeat: no-repeat !important;
	background-position: left center !important;
	color: inherit;
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
}

/* DIVIDER */
.home__section--divider {
	position: relative;
}

.home__section--divider::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 1;
}

.home__section--divider > * {
	position: relative;
	z-index: 2;
}

.scroll-indicator {
	position: absolute;
	bottom: var(--space-xl);
	left: 50%;
	translate: -50% 0;
	z-index: 2;
	color: var(--color-white);
	opacity: 0.7;
	line-height: 0;
}

/* SCROLL ANIMATIONS
========================================================= */

.fade-up {
	opacity: 0;
	translate: 0 40px;
}

.fade-in {
	opacity: 0;
}

@media (max-width: 600px) {
	.is-layout-grid {
		grid-template-columns: repeat(1, minmax(0, 1fr));
	}
}

@media (min-width: 600px) {
	.home--banner__video {
		height: 100vh;
		max-width: 70vw;
	}
}