
/*=====
Theme Name: PerezOchando
Author: weco.digital
Author URI: https://weco.digital/
Version: 1.0
Description:
=======*/

/* Lenis smooth scroll */
html.lenis,
html.lenis body {
	height: auto;
}
.lenis.lenis-smooth {
	scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
	overscroll-behavior: contain;
}
.lenis.lenis-stopped {
	overflow: hidden;
}
.lenis.lenis-scrolling iframe {
	pointer-events: none;
}

@font-face {
	font-family: 'Helvetica Neue';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src:
	  local("Helvetica Neue"),
	  url("/wp-content/themes/perezochando/assets/fonts/helveticaneue-bold.woff2") format("woff2"),
	  url("/wp-content/themes/perezochando/assets/fonts/helveticaneue-bold.woff") format("woff"),
	  url("/wp-content/themes/perezochando/assets/fonts/helveticaneue-bold.ttf") format("truetype");
}

@font-face {
	font-family: 'Helvetica Neue';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src:
	  local("Helvetica Neue"),
	  url("/wp-content/themes/perezochando/assets/fonts/helveticaneue.woff2") format("woff2"),
	  url("/wp-content/themes/perezochando/assets/fonts/helveticaneue.woff") format("woff"),
	  url("/wp-content/themes/perezochando/assets/fonts/helveticaneue.ttf") format("truetype");
}

@font-face {
	font-family: 'Helvetica Neue';
	font-style: normal;
	font-weight: 300;
	font-display: swap;
	src:
	  local("Helvetica Neue"),
	  url("/wp-content/themes/perezochando/assets/fonts/helveticaneue-light.woff2") format("woff2"),
	  url("/wp-content/themes/perezochando/assets/fonts/helveticaneue-light.woff") format("woff"),
	  url("/wp-content/themes/perezochando/assets/fonts/helveticaneue-light.ttf") format("truetype");
}


/* BASIC */

:root {
	--black: #1B1B1A;
	--white: #F8F6F3;
	--gray: #BFBBB2;
	--light-gray: #e2dfda;
}

::-moz-selection {
	color: var(--white);
	background: var(--black);
}
  
::selection {
	color: var(--white);
	background: var(--black);
}

::-webkit-scrollbar {
    width: 0;
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #FF0000;
}

* {
	/* border: 1px solid blue; */
	margin: 0;
	padding: 0;
	-webkit-tap-highlight-color: rgba(0,0,0,0);
}

body,
html {
	overflow-x:hidden;
}

body {
	width: 100%;
	height: 100%;
	font-family: 'Helvetica Neue', sans-serif;
	color: var(--black);
	background-color: var(--white);
	font-size: 15px;
	font-weight: 400;
	margin: 0;
	padding: 0;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	transition: background-color .3s;

	@media (max-width:900px) {
		& {
			font-size: 14px;
		}
	}
}

.creamTheme {
	background-color: var(--gray);

	header {
		background-color: rgba(191, 187, 178, 0.9);
	}
}

a {
	text-decoration: none;
	color: var(--black);
	position: relative;
	padding: .3rem 0;

	@media (max-width:900px) {
		& {
			padding: 0;
		}
	}
}

.link::before {
	content: " ";
	display: block;
	position: absolute;
	transform: scaleX(0);
	transform-origin: bottom right;
	top: 0; right: 0; bottom: 0; left: 0;
	inset: calc(100% - 1px) 0 0 0;
	background: var(--black);
	z-index: -1;
	transition: transform .3s ease;
}

.dark .link::before {
	background: var(--white);
}

@media (min-width:900px) {
	.link:hover::before {
		transform: scaleX(1);
		transform-origin: bottom left;
	}
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-weight: 400;
	line-height: 105%;
	text-wrap: pretty;
}

h1 {
	font-size: 42px;
}

h2 {
	font-size: 18px;
}

h3 {  
	font-size: 26px;  
}

h4 {  
	font-size: 22px;  
}

h5 {  
	font-size: 20px;  
}

h6 {  
	font-size: 18px;  
}

b {
	font-weight: 700;
}

img,
video {
	display: block;
	object-fit: cover;
	width: 100%;
}

.nojq {
	display: none;
}

.error {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	padding: 15svh 2rem;
	text-align: center;

	img {
		max-width: 18rem;
		border-radius: 30px;
	}
}

.button {
	padding: .6rem 1.25rem;
	border: 1px solid var(--black);
	border-radius: 0px;
	transition: all .3s ease-out;

	@media (min-width:900px) {
		&:hover {
			background-color: var(--black);
			color: var(--white);
			border-radius: 30px;
		}
	}
}

header {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	padding: 1.5rem 1.5rem 1.5rem 2.5rem;
	position: fixed;
	inset: 0 0 auto 0;
	background-color: rgba(248, 246, 243, 0.9);
	backdrop-filter: blur(30px);
	-webkit-backdrop-filter: blur(30px);
	z-index: 10;
	transition: background-color .3s;

	.linkHome {
		text-decoration: none;
		color: var(--black);
		font-size: 30px;
		z-index: 1;
		transition: color .3s;
	}

	.desktop {
		display: flex;
		flex-direction: row;
		align-items: center;
		position: relative;

		li {
			font-size: 15px;
			list-style: none;
			position: relative;

			a {
				display: block;
				padding: 8px 15px;
				position: relative;
				z-index: 1;
				transition: all .3s;
			}

			.active {
				font-weight: 700;
			}
		}

		@media (max-width:900px) {
			& {
				display: none;
			}
		}

		#hoverSpan {
			position: absolute;
			height: 1px;
			width: 0;
			background-color: var(--black);
			transition: all 0.3s ease;
			z-index: 0;
		}
	}

	.burgerMenu {
		display: none;

		@media (max-width:900px) {
			& {
				z-index: 1;
				display: block;
				width: 18px;
                height: 18px;

				line {
					transition: all .3s;
				}
			}
		}
	}

	.burgerMenu.open {
		line:nth-of-type(1) {
			transform: rotate(45deg) translate(2px, -2px);
		}
		line:nth-of-type(2) {
			transform: scaleX(0);
		}
		line:nth-of-type(3) {
			transform: rotate(-45deg) translate(-7px, 0px);
		}
	}

	@media (max-width:900px) {
		& {
			padding: 1rem;

			.linkHome {
				font-size: 22px;
			}
		}
	}
}

.headerWithFilter {
	.filter {
		position: relative;
		cursor: pointer;
		border: 1px solid var(--black);
		border-radius: 50px;
		animation: main .5s;

		.toggle {
			display: flex;
			flex-direction: row;
			align-items: center;
			padding: .35rem 1rem;
			gap: .5rem;

			svg {
				transition: transform .2s;
			}
		}

		&.active {
			svg {
				transform: scaleY(-1);
			}
		}
	}

	.clientList {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: flex-start;
		width: calc(100% - 5rem);
		position: absolute;
		top: 93px;
		left: 0;
		padding: 3rem 2.5rem;
		opacity: 0;
		clip-path: polygon(0% 0%, 100% 0%, 100% 0%, 0% 0%);
		transform: translateY(-15px);
		overflow: hidden;
		background-color: var(--light-gray);
		pointer-events: none;
		transition: opacity .3s 0s cubic-bezier(0,0,.15,1), clip-path 0s .3s cubic-bezier(0,0,.15,1), transform 0s .3s  cubic-bezier(0,0,.15,1);

		@media (max-width:900px) {
			& {
				padding: 2rem 1rem;
				width: calc(100% - 2rem);
			}
		}

		li {
			list-style: none;
			padding-right: .5rem;
			text-align: center;
			text-wrap: nowrap;
			font-size: 25px;
			font-weight: 300;
			/* border-right: .5px solid var(--white); */
			transition: all .2s;

			&:last-of-type {
				border-right: none;
			}

			&.active {
				font-weight: 600;
			}

			@media (max-width:900px) {
				& {
					font-size: 20px;
				}
			}

			@media (min-width:900px) {
				&:hover {
					text-decoration: underline;
					cursor: pointer;
				}
			}
		}
	}

	.clientList.active {
		pointer-events: all;
		opacity: 1;
		transform: translateY(0);
		clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
		transition: opacity .3s 0s ease, clip-path .5s 0s cubic-bezier(0,0,.15,1), transform .5s 0s  cubic-bezier(0,0,.15,1);
	}
	
	.category {
		display: none;
	}

	@media (max-width:900px) {
		& {
			display: grid;
			grid-template-columns: repeat(2, 1fr);
			grid-template-areas: "a b";
			gap: 0.5rem 0;

			.linkHome { order: 1; }

			.burgerMenu {
				order: 2;
				align-self: center;
				justify-self: end;
			}

			.category {
				display: block;
				order: 3;
				transition: opacity .2s;
				animation: main .5s;
			}

			.filter {
				order: 4;
				justify-self: end;
				padding-right: 0;
				transition: opacity .2s;
			}

			.clientList {
				top: 96px;
			}
		}
	}
}

.mobileMenu {
	display: none;

	@media (max-width:900px) {
		& {
			z-index: 9;
			display: flex;
			flex-direction: column;
			justify-content: flex-end;
			position: fixed;
			inset: 0;
			max-height: 0;
			overflow: hidden;
			background-color: var(--gray);
			padding: 0 1rem;
			gap: calc(40% - 100px);
			transition: all .7s cubic-bezier(.8,0,.4,1);

			ul {
				display: flex;
				flex-direction: column;
				align-items: flex-end;

				li {
					list-style: none;
					font-size: 45px;
					font-weight: 400;
					text-align: right;
					transition: opacity .3s;
				}
			}
		}
	}

	.menuFooter,
	.firstRow {
		display: flex;
	}

	.menuFooter {
		flex-direction: column;
		gap: .5rem;
		font-size: 13px;
		text-transform: uppercase;
	}

	.firstRow{
		flex-direction: column;
		align-items: flex-start;
		justify-content: space-between;
		gap: .25rem;

		.email {
			max-width: 11rem;
		}
	}
}

.mobileMenu.open {
	max-height: 100%;
	padding: 1rem 1rem;
	transition: max-height .9s cubic-bezier(.6,0,.2,1), background-color .3s;
}

main {
	transition: opacity .5s;
	animation: main .5s;
}

@keyframes main {
	from { opacity: 0; }
	to { opacity: 1; }
}

footer {
    display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 4rem;
	padding: 4rem 2.5rem;
	transition: opacity .5s;
	animation: main .5s;

	.instagram {
		width: 100%;
		display: flex;
		flex-direction: column;
		gap: 1rem;

		.linkRow {
			display: flex;
			justify-content: space-between;
			text-transform: uppercase;
		}

		#sb_instagram {
			#sbi_images {
				display: grid;
				grid-template-columns: repeat(6, 1fr);
				gap: 15px;
			
				.sbi_item {
					.sbi_photo {	
						display: block;

						img {
							aspect-ratio: 1;
						}
	
						.sbi-screenreader,
						.svg-inline--fa {
							display: none;
						}
					}
				}
			}
		}
	}

	.contactInfo {
		display: flex;
		flex-direction: column;
		gap: 1rem;

		.links {
			width: 100%;
			display: flex;
			flex-direction: row;
			justify-content: space-between;
			text-transform: uppercase;
		}

		.logo {
			display: flex;
			flex-direction: row;
			align-items: flex-end;
			justify-content: space-between;

			.name,
			.ambit {
				font-size: 6.5vw;
				font-weight: 300;
				overflow: hidden;

				.char {
					opacity: 0;
				}
			}

			@media (max-width:900px) {
				& {
					.name,
					.ambit {
						font-size: 22px;
						font-weight: 400;
					}
				}
			}
		}
	}

	.firma {
		text-align: center;
		
		a {
			text-decoration: underline;
		}
	}
	
	@media (max-width:900px) {
		& {
			padding: 2rem 1rem;
			gap: 2rem;

			.instagram {
				#sb_instagram {
					#sbi_images {
						grid-template-columns: repeat(3, 1fr);
						gap: 10px;
		
						.sbi_item:nth-of-type(4),
						.sbi_item:nth-of-type(5),
						.sbi_item:nth-of-type(6) {
							display: none;
						}
					}
				}
			}

			.contactInfo {
				gap: 2rem;

				.links {
					display: grid;
					grid-template-columns: repeat(2, 1fr);
					gap: 5px;

					a:nth-child(even) {
						align-self: end;
						justify-self: end;
						text-align: right;
					}
				}
			}
		}
	}
}
