@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
	--primary: black;
	--secondary: #444040;
	--text-light: #959595;
	--text-dark: #171717;
	--bg-light: #F8F1EE;
	--spacing-1: 1rem;
	--spacing-2: 2rem;
	--spacing-3: 4rem;
	--spacing-4: 8rem;
}

/* Fluid font size variables, for browsers that support clamp */
@supports (font-size: clamp(1rem, 1vw, 1rem)) {
	:root {
		--small: clamp(0.8rem, 0.18vw + 0.74rem, 1.2rem);
		--text: clamp(1rem, 1.5vw + 0.91rem, 1.6rem);
		--button: clamp(1.25rem, 0.39vw + 1.12rem, 2.13rem);
		--subtitle: clamp(1.56rem, 1.4vw + 1.38rem, 2.84rem);
		--title: clamp(1.95rem, 1.5vw + 1.69rem, 3.79rem);
		--subheading: clamp(2.44rem, 2vw + 2.07rem, 5.05rem);
		--heading: clamp(3.25rem, 2.2vw + 2.23rem, 5.23rem);
	}
}

/* Fallback variables for browsers that don't support clamp */
@supports not (font-size: clamp(1rem, 1vw, 1rem)) {
	:root {
		--small: 0.8rem;
		--text: 1rem;
		--button: 1.25rem;
		--subtitle: 1.56rem;
		--title: 1.95rem;
		--subheading: 2.44rem;
		--heading: 3.05rem;
	}

	@media screen and (min-width: 2560px) {
		:root {
			--small: 1.2rem;
			--text: 1.6rem;
			--button: 2.13rem;
			--subtitle: 2.84rem;
			--title: 3.79rem;
			--subheading: 5.05rem;
			--heading: 6.73rem;
		}
	}
}

@media only screen and (max-width: 1280px) {
	:root {
		--spacing-1: 1rem;
		--spacing-2: 2rem;
		--spacing-3: 4rem;
		--spacing-4: 4rem;
	}
}

@media only screen and (max-width: 991px) {
	:root {
		--spacing-1: 0.5rem;
		--spacing-2: 1rem;
		--spacing-3: 3rem;
		--spacing-4: 3rem;
	}
}

@media only screen and (max-width: 767px) {
	:root {
		--spacing-1: 0.5rem;
		--spacing-2: 1rem;
		--spacing-3: 2rem;
		--spacing-4: 4rem;
	}

	body::before {
		content: "";
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background-color: transparent;
		transition-property: all;
		transition-duration: 0.3s;
		transition-timing-function: ease;
		z-index: 1;
		pointer-events: none;
	}

	body.active {
		overflow: hidden;
	}

	body.active::before {
		background-color: rgba(0, 0, 0, 0.5);
	}
}

@media only screen and (max-width: 424px) {
	:root {
		--spacing-1: 0.5rem;
		--spacing-2: 1rem;
		--spacing-3: 2rem;
		--spacing-4: 2rem;
	}
}

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

html {
	font-size: 62.5%;
	font-family: 'Poppins', sans-serif;
	font-weight: 300;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
	scroll-behavior: smooth;
	scroll-padding: var(--scroll-padding, 5rem);
}

body {
	position: relative;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	overflow-x: hidden;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	color: var(--text-light);
}

h1, h2, h3, h4 {
	color: var(--text-dark);
}

h1, h2 {
	font-weight: 600;
}

h3, h4 {
	font-weight: 40;
}

h1 {
	font-size: var(--heading);
}

h2 {
	font-size: var(--subheading);
}

h3 {
	font-size: var(--title);
}

h4 {
	font-size: var(--subtitle);
}

p,
a,
b,
i,
strong {
	font-size: var(--text);
}

small {
	font-size: var(--small);
}

a {
	text-decoration: none;
	transition: all .3s ease-in-out;
	color: inherit;
}

a:hover {
	transition-property: background-color,border-color,color,fill,stroke,opacity,box-shadow,transform;
    transition-timing-function: cubic-bezier(.4,0,.2,1);
    transition-duration: .15s;
    transition-duration: .3s;
	-ms-transform: scale(1.1);
	-moz-transform: scale(1.1);
	-webkit-transform: scale(1.1);
	-o-transform: scale(1.1);
	transform: scale(1.1);
}

a>img {
	/* anchor adds extra pixels below img if vertical align not set. */
	vertical-align: bottom;
}

header,
footer {
	flex-shrink: 0;
}

header {
	position: sticky;
	top: 0;
	width: 100%;
	background: black;
	z-index: 2;
	-webkit-transition: box-shadow 0.3s ease-in-out 0.3s, opacity 0.3s ease-in-out;
	-moz-transition: box-shadow 0.3s ease-in-out 0.3s, opacity 0.3s ease-in-out;
	-ms-transition: box-shadow 0.3s ease-in-out 0.3s, opacity 0.3s ease-in-out;
	transition: box-shadow 0.3s ease-in-out 0.3s, opacity 0.3s ease-in-out;
}

header.hide-header {
	opacity: 0;
	pointer-events: none;
}

header.shadow {
	-webkit-box-shadow: 0 3px 5px rgba(57, 63, 72, 0.3);
	-moz-box-shadow: 0 3px 5px rgba(57, 63, 72, 0.3);
	box-shadow: 0 3px 5px rgba(57, 63, 72, 0.3);
	-webkit-transition: all 0.3s ease-in-out 0.1s;
	-moz-transition: all 0.3s ease-in-out 0.1s;
	-ms-transition: all 0.3s ease-in-out 0.1s;
	transition: all 0.3s ease-in-out 0.1s;
}

.header {
	background-color: var(--secondary);
}

.content {
	position: relative;
	flex-grow: 1;
	background-color: var(--bg-light);
	transition-property: all;
	transition-duration: 0.3s;
	transition-timing-function: ease;
}

.content > :not(.full-width, .banner) {
	max-width: 1440px;
	margin: auto;
}


::-webkit-scrollbar {
	width: 1.6rem;
}

::-webkit-scrollbar-thumb {
	background-color: var(--text-light);
}

::-webkit-scrollbar-track {
	background-color: #eaeaea;
	border-left: 1px solid var(--text-light);
}

::selection {
	color: #fff;
	background: rgba(0, 0, 0, 0.5);
}

.bg-grey{
	background-color: var(--secondary);
}