@charset "UTF-8";

:root {
  --font-size-small: 10pt;
	--font-size-medium: 13pt;
	--font-size-large: 18pt;

	--primary-color: white;
	--primary-color-with-opacity: rgba(255, 255, 255, .5);
	--secondary-color: #ececec;
	--third-color: #0a0a0a;
	--forth-color: #484848;
	--fifth-color: #575757;
	--text-color: black;
	--text-color-with-opacity: rgba(0, 0, 0, .55);

	--text-font: "Helvetica Neue";

	--radius-medium: 15px;
	--gap-super-medium: 15px;
	--gap-small: 10px;
	--gap-medium: 20px;
	--gap-large: 40px;
	--gap-extra-large: 80px;
	
}



/***********************
 *  GENERAL STYLES
 ***********************/

.blue-box {
	background-color: blue;
	width: 100%;
	height: 300px;
	margin-bottom: var(--gap-small);
}

.blue-box__big {
	height: 800px;
}

* {
	box-sizing: border-box;
	font-family: var(--text-font);
}

body {
	margin: 0%;
	padding: 0%;
}

body a {
	color: var(--text-color);
	text-decoration: underline;
}

body p {
	margin: 0;
}

.loader {
	display: none;
}

body.loading {
	overflow: hidden;
}

body.loading .loader {
	height: 65vh;
	width: 100%;
	position: absolute;
	z-index: 5;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: var(--font-size-medium);
	background-color: var(--primary-color);
}

html {
  scroll-behavior: smooth;
}

/* Classes for width */
.w-33, .w-25, .w-50, .w-66, .w-100 {
	width: 100%;
}

.button {
	background-color: var(--primary-color-with-opacity);
	position: absolute;
  z-index: 2;
  top: var(--gap-small);
  left: var(--gap-small);
	border-radius: var(--radius-medium);

	padding: var(--gap-small) var(--gap-super-medium);
	font-size: var(--font-size-medium);
	box-shadow: 0px 4px 4px var(--text-color-with-opacity);
}

.button a {
	text-decoration: none;
}

.hidden {
	display: none;
}

.muted {
	text-decoration: line-through;
}

.desktop-only {
	display: none;
}



.one {
	letter-spacing: -0.05em
}

.oneone {
	letter-spacing: -0.08em
}


/***********************
 *  HEADER STYLES
 ***********************/

.header-container {
	position: fixed;
	left: 0;
	top: 0;
	width: 100%;
	background-color: var(--primary-color);
	box-shadow: 5px 10px 8px var(--primary-color);
	z-index: 3;
}

.header-fixed {
	position: fixed;
	left: 0;
	top: 0;
}

.header {
	position: relative;
	width: 100%;
	padding: var(--gap-small);
	padding-top: 90px;
	background-color: var(--primary-color);
	font-size: var(--font-size-large);
	z-index: 1;
}



/***********************
 *  MENU STYLES
 ***********************/

.wrapper-menu {
	display: flex;
	flex-direction: column;
	position: fixed;
	right: calc(var(--gap-small));
	top: var(--gap-small);
	width: calc(100% - var(--gap-small) * 2);
	z-index: 2;
}

.menu, .menu-case-studies {
	display: flex;
	padding: var(--gap-small);
	box-shadow: 0px 4px 4px var(--text-color-with-opacity);
	border-radius: var(--radius-medium);
	font-size: var(--font-size-medium);
}

.menu {
	justify-content: space-between;
	gap: var(--gap-small);
	background-color: var(--secondary-color);
}

.menu-case-studies {
	justify-content: flex-start;
	background-color: var(--text-color);
	margin-top: var(--gap-small);
	display: none;
}

.menu-case-studies a {
	color: var(--secondary-color);
	text-decoration: none;
	padding-right: var(--gap-small);
}

.menu-case-studies__submenu__preview-image {
	height: 25px;
	width: 100%;
	background-image: url("../img/submenu/dot-sub-v3.gif");
	background-repeat: no-repeat;
	background-position: left;
}


.menu-case-studies .menu__item:hover ~ .menu__item a,
.menu-case-studies .menu__item:has(~ .menu__item:hover) a {
	color: var(--forth-color);
}

.menu-case-studies .menu__item,
.menu-case-studies .menu__item__images {
	width: 25%;
}

.menu-case-studies__submenu {
	margin-top: var(--gap-small);
	min-height: 250px;
	display: none;
}

.menu-case-studies__submenu a {
	white-space: nowrap;
	display: block;
	line-height: 1;
}

.menu-case-studies .menu__item:hover > .menu-case-studies__submenu {
	display: block;
}

.menu-case-studies .menu__item:hover ~ .menu__item__images .menu-case-studies__image-wrapper {
	display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}

.menu-case-studies .menu__item:hover ~ .menu__item__images .menu-case-studies__submenu__preview-image {
	display: none;
}

.menu-case-studies .menu__item__images {
	display: flex;
	align-items: flex-end;
}

.menu-case-studies__image-wrapper {
	display: none;
	position: relative;
	width: 100%;
	overflow: hidden;
}

.menu-case-studies__image-wrapper img {
	width: 100%;
  display: none;
}

.menu-case-studies__image-wrapper img.show {
	display: block;
}

.menu__item__nav {
	width: 60%;
	display: grid;
	grid-template-columns: 49% 49%;
	z-index: 4;
}

.menu__item__title--mobile {
	display: block;
}

.menu__item__title--mobile a {
	text-decoration: none;
}

.menu__item__title--desktop {
	display: none;
}

.menu__item__title--desktop a {
	text-decoration: none;
}

.menu__item__cell a {
	text-decoration: none;
}



/***********************
 *  PAGE STYLES
 ***********************/

.page {
	display: flex;
	flex-direction: column;
	font-size: var(--font-size-medium);
	padding-top: var(--gap-extra-large);
}

.page__container {
	display: flex;
	justify-content: space-between;
	flex-direction: column;
	padding: var(	--gap-small);
	margin-bottom: var(--gap-large);
	gap: var(--gap-small);
}

.page__container img {
	display: block;
	width: 100%;
	height: auto;
	margin-bottom: var(--gap-small);
}

.page__container img:last-of-type {
	margin-bottom: 0;
}

.page__container__col {
	flex-direction: column;
}

.page__container__row {
	width: 100%;
	overflow-x: auto;
  display: flex;
  align-items: flex-end;
}

.page__container__row img:last-of-type {
	margin-bottom: var(--gap-small);
}

.page__container__row .card__video {
	flex-shrink: 0;
}

.page__container__row .card__video:last-of-type {
	margin-bottom: var(--gap-small);
}

.page__section .page__section__title {
	font-size: var(--font-size-medium);
}

.page__section p {
	font-size: var(--font-size-large);
}

#wrappage {
	width: 100%;
	padding-left: var(--gap-small);
	margin-top: var(--gap-large);
}

#wrappage .grid-col {
	border-right: none;
	padding: 0;
}

/***********************
 *  VIDEO IN BORED BOARD PAGE
 ***********************/

.video--600-400 {
	width: 600px;
	height: 400px;
}

.video--1200-675 {
	width: 1200px;
	height: 675px;
}

.video--400-400 {
	width: 400px;
	height: 400px;
}

.video--450-800 {
	width: 450px;
	height: 800px;
}

.video--400-500 {
	width: 400px;
	height: 500px;
}

@media (max-width: 1280px) {
  .page__container__row .card__video {
		height: auto;
		width: 100%;
		max-width: 100%;
		height: auto;
  }

  .page__container__row .card__video iframe {
    height: 100%;
  }

	.video--600-400 {
		aspect-ratio: 3 / 2;
	}

	.video--1200-675 {
		aspect-ratio: 16 / 9;
	}
	
	.video--400-400 {
		aspect-ratio: 1 / 1;
	}
	
	.video--450-800 {
		aspect-ratio: 9 / 16;
	}	
	
	.video--400-500 {
		aspect-ratio: 4 / 5;
	}		
}



/***********************
 *  ABOUT REEL STYLES
 ***********************/

.video-with-controls__container {
	position: relative;
	padding: 56.25% 0 0 0;
	overflow: hidden;
}

#video-with-controls {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

#video-with-controls__controller {
	display: none;
	justify-content: center;
  gap: var(--gap-small);
	align-items: center;
	position: absolute;
	bottom: 80px;
	z-index: 100;
	width: 100%;
}

#video-with-controls__play, #video-with-controls__pause, #video-with-controls__volume {
	position: relative;
	cursor: pointer;
}

.about__services-image {
	background-image: url(../img/about/clients-and-services/01.png);
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	min-height: 300px;
}


/***********************
 *  CARD STYLES
 ***********************/

.card {
	border-radius: var(--radius-medium);
	background-color: var(--secondary-color);
	margin-bottom: var(--gap-small);
	overflow: hidden;
}

.card__header {
	font-size: var(--font-size-large);
	padding: var(--gap-small);
	/* 8px to have the same gap (10px) when adding the 2 additional pixel in the card content */
	padding-bottom: 8px;
	box-shadow: 0px 2px 2px var(--secondary-color);
  position: relative;
	z-index: 1;
}

.card__content {
	/* 2px added to not show the light shadow at the beginning of the card content */
	padding: 2px var(--gap-small) var(--gap-small);
}

.card__scrollable {
	overflow-y: auto;
	height: 65vh;
}

.card__scrollable--25 {
	overflow-y: auto;
	height: 25vh;
}

.card p {
	margin-bottom: var(--gap-small);
}

.card p:last-of-type {
	margin-bottom: 0;
}

.card table {
	width: 100%;
}

.card table td {
	padding-right: var(--gap-small);
}

.card__video {
	position: relative;
	overflow: hidden;
	margin-bottom: var(--gap-small);
}

.card__video:last-of-type {
	margin-bottom: 0;
}

.card__video__16-9 {
	padding-bottom: 56.25%;
}

.card__video__9-16 {
	padding-bottom: 177.7%;
}

.card__video__3-2 {
	padding-bottom: 66.66%;
}

.card__video__2-3 {
	padding-bottom: 150%;
}

.card__video__4-3 {
	padding-bottom: 75%;
}

.card__video__4-5 {
	padding-bottom: 125%;
}

.card__video__5-4 {
	padding-bottom: 80%;
}

.card__video__3-4 {
	padding-bottom: 133.33%;
}

.card__video__1-1 {
	padding-bottom: 100%;
}

.card__video__5-8 {
	padding-bottom: 176%;
}

.card__video__7-8 {
	padding-bottom: 114.28%;
}

.card__video__21-29 {
	padding-bottom: 141.4%;
}

.card__video__x-y {
	padding-bottom: 117.69%;
}

.card__video__y-x {
	padding-bottom: 131.44%;
}



.card__video iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}




/***********************
 *  HOME PAGE STYLES
 ***********************/

#wrap {
	width: 100%;
	padding-left: var(--gap-small);
	margin-top: 45vh;
}

.caption {
	z-index: 10;
}

.grid {
	display: flex;
	gap: var(--gap-small);
}

.grid:after {
  display: block;
  content: '';
  clear: both;
}

.grid-col {
	display: flex;
  flex-direction: column;
  float: left;
  width: 100%;
	padding-right: var(--gap-small);
	border-right: 1px solid var(--text-color);
}

.grid-col--1 {
	padding-right: 0;
	border-right: none;
}

.grid-col--4 {
	margin-right: 0;
	padding-right: 0;
	border-right: none;
}

/* hide two middle */
.grid-col--2, .grid-col--3, .grid-col--4 {
	display: none;
}

.grid-item {
	font-size: var(--font-size-small);
	border-bottom: 1px solid var(--text-color);
	margin-bottom: 10px;
	padding-bottom: 10px;
	position: relative;
}

.grid-item img {
	width: 100%;
	height: auto;
	display: block;
}

.grid-item iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.grid-item__caption {
	margin-top: var(--gap-small);
}

.grid-item-footer {
	min-height: 100px;
	background-color: var(--secondary-color);
	display: flex;
	justify-content: center;
	align-items: center;
	flex-grow: 1;
	border-bottom: none;
	text-align: center;
	font-size: var(--font-size-large);
	border-radius: var(--radius-medium);
}

.grid-item-footer a {
	text-decoration: none;
	display: flex;
	gap: 10px;
}

.grid-item-trigger-for-iframe {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	z-index: 1;
}

.modal {
	height: 100vh;
  width: 100%;
  position: fixed;
  z-index: 10;
  top: 0;
	left: 0;
  background: var(--primary-color);
  display: none;
}

.modal.is-open {
  display: block;
}

.modal .modal-close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 50px;
	height: 50px;
	cursor: pointer;
	z-index: 3;
	background: url(../img/close.png) no-repeat center 50%;
}

.modal .modal-content {
	width: calc(100% - 40px);
	height: calc(100vh - 40px);
	margin-top: 20px;
	margin-left: 20px;
}

.modal .modal-content img {
	width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal .modal-content iframe {
	width: 100%;
  height: 100%;
}

.modal .modal-content .loading {
	font-size: var(--font-size-medium);
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: -1;
}

.grid-item-footer a span:last-of-type {
  margin-top: 10px;
}




/***********************
 *  BORED BOARD PAGE STYLES
 ***********************/

body.bored-board-page {
	background-color: var(--third-color);
	color: var(--primary-color);
}

.bored-board-page .header {
	background-color: var(--third-color);
}

.bored-board-page .card,
.bored-board-page .menu-case-studies a {
	color: var(--text-color);
}

.bored-board-page .menu-case-studies {
	background-color: var(--fifth-color);
}

.bored-board-page .menu-case-studies .menu__item:hover ~ .menu__item a,
.bored-board-page .menu-case-studies .menu__item:has(~ .menu__item:hover) a {
	color: var(--primary-color)
}




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

@media (min-width: 1280px) {
	:root {
		--font-size-medium: 15pt;
		--font-size-large: 22pt;
	}

	.header {
		font-size: var(--font-size-large);
		width: 66%;
		padding-top: var(--gap-small);
	}

	.header-fixed {
		top: 0;
	}

  .grid-col {
		width: 25%;
	}
  .grid-col--2, .grid-col--3, .grid-col--4 {
		display: flex;
	}
	.grid-col--1 {
		border-right: 1px solid var(--text-color);
		padding-right: var(--gap-small);
	}

	.modal .modal-content {
		width: calc(100% - 60px);
		height: calc(100vh - 60px);
		margin-top: 30px;
		margin-left: 30px;
	}

	.card{
		margin-bottom: 0;
	}

	.page__container {
		flex-direction: row;
	}

	.page__container__col {
		flex-direction: column;
	}

	.w-25 {
		width: calc(25% - var(--gap-small));
	}

	.w-33 {
		width: 33%;
	}
	
	.w-50 {
		width: 50%;
	}

	.w-66 {
		width: 66%;
	}

	.desktop-only {
		display: block;
	}
	
	#video-with-controls__controller {
		display: flex;
	}

		.menu__item__nav {
		width: 50%;
	}

	.menu__item__title--mobile {
		display: none;
	}
	
	.menu__item__title--mobile a {
		text-decoration: none;
	}	
	
	.menu__item__title--desktop {
		display: block;
	}
	
	.menu__item__title--desktop a {
		text-decoration: none;
	}	

	.wrapper-menu {
		width: calc(33% - var(--gap-small) + 2px);
	}

	.menu-case-studies {
		display: flex;
	}
}

/* To make herder and menus with the same background size */
@media (min-width: 1310px) and (max-width: 1611px) {
	.header {
		padding-bottom: 45px;
	}
}

@media (min-width: 1612px) and (max-width: 1859px) {
	.header {
		padding-bottom: 20px;
	}
}

@media (min-width: 1860px) {
	.header {
		padding-bottom: 60px;
	}
}
