/*!
Theme Name: Uber contracts
Text Domain: uc
Description: Uber Contracts wordpress theme
Author: tomtl
Version: 1.0
*/

/*----------------------------------*
 | Fonts
 *----------------------------------*/

@font-face {
    font-family: 'pp_fragmentsans_regular';
    src: url('fonts/ppfragment-sansregular-webfont.woff2') format('woff2'),
         url('fonts/ppfragment-sansregular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'pp_fragmentserif_regular';
    src: url('fonts/ppfragment-serifregular-webfont.woff2') format('woff2'),
         url('fonts/ppfragment-serifregular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/*----------------------------------*
 | Variables
 *----------------------------------*/

:root {
	/* Colours ---------------------*/
	--cream: #C9C1B8;
	--lightcream: #E4E1DB;
	--grey: #323232;
	--lightgrey: #656565;
	--yellow: #E0FF82;

	/* Type ------------------------*/
	--sans-font: 'pp_fragmentsans_regular';
	--serif-font: 'pp_fragmentserif_regular';

    /* Units ------------------------*/
    --site-padding: clamp(18px, 2.3vw, 45px);
    --main-column: 1540px;
    --header-height: 150px;
    --admin-bar: 32px;
    
}

@media (max-width: 782px) {
	:root {
		--admin-bar: 46px;
	}
}


/*----------------------------------*
 | Reset
 *----------------------------------*/

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

* {
    margin: 0;
}

body {
	font-family: var(--sans-font);
    line-height: 1.3;
    -webkit-font-smoothing: antialiased;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

input,
button,
textarea,
select {
    font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

p {
    text-wrap: pretty;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-weight: normal;
    text-wrap: balance;
}

a,
a:visited {
    color: inherit;
}

address {
	font-style: normal;
}

/*----------------------------------*
 | Utility classes
 *----------------------------------*/

.flex-apart {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.flex-center {
	display: flex;
	justify-content: center;
	align-items: center;
}

.fill-viewport {
	height: 100dvh;
}

.space-for-header {
	padding-top: var(--header-height);
}

.fill-viewport.space-for-header {
/*	height: calc(100dvh - var(--header-height));*/
}

.mb-0 { margin-bottom: 0 !important }
.mb-l { margin-bottom: 150px !important }

/*----------------------------------*
 | Global
 *----------------------------------*/

html {
	background: var(--lightcream);
}

body {
	font-size: 22px;
}

.main-column {
	padding: 0 var(--site-padding);	
}

.site {
/*	padding-top: var(--header-height);*/
}

/*----------------------------------*
 | Typography
 *----------------------------------*/

h1, h2, h3 {
	font-family: var(--serif-font);
}

h2 {
	font-size: 50px;
	margin-bottom: 130px;
}

ul.plain {
	list-style: none;
	padding: 0;
	margin: 0;
}

.post-content p {
	max-width: 700px;
	margin: 80px 0;
}

.post-content p a {
	color: var(--lightgrey);
	text-decoration: none;
}

.post-content p a.arrow {
	position: relative;
	display: inline-block;
	font-family: var(--serif-font);
	text-decoration: none;
	color: black;
}

.post-content p a.arrow:after {
	content: "";
	display: inline-block;
	width: 40px;
	height: 40px;
	background-image: url(img/arrow-right.svg);
	background-size: cover;
	margin-left: 15px;
	transform: translateY(11px);
}

blockquote {
	color: var(--lightgrey);
	font-family: var(--serif-font);
}

@media (hover: hover) and (pointer: fine) {
	.post-content p a.arrow:hover {
		color: var(--grey);
	}

	.post-content p a:hover {
		color: var(--yellow);
	}
}

/*----------------------------------*
 | Drop down list
 *----------------------------------*/

.drop-down-list {
	font-size: 22px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.drop-down-list li {
	margin-bottom: 3px;
}

.drop-down-list li:not(:first-child) {
	color: var(--grey);
/*	opacity: 0;*/
}

.drop-down-list li:first-child {

}

.drop-down-list a {
	color: var(--lightgrey);
	text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
	.drop-down-list a:hover {
		color: var(--yellow);
	}
}

/*----------------------------------*
 | Site emblem
 *----------------------------------*/

.site-emblem {
	position: fixed;
	width: 104px;
	top: var(--site-padding);
	left: var(--site-padding);
/*	mix-blend-mode: difference;*/
	z-index: 3;
	fill: var(--grey);
}

.home .site-emblem {
	fill: white;
}

.admin-bar .site-emblem {
	top: calc(var(--site-padding) + var(--admin-bar));
}

.nav-open .site-emblem {
	fill: var(--lightgrey);
}

@media (hover: hover) and (pointer: fine) {
	.nav-open .site-emblem:hover {
		fill: var(--grey);
	}
}


/*----------------------------------*
 | Menu toggle
 *----------------------------------*/

.menu-toggle {
	position: fixed;
	top: var(--site-padding);
	right: var(--site-padding);
	z-index: 3;
}

.admin-bar .menu-toggle {
	top: calc(var(--site-padding) + var(--admin-bar));
}

@media (max-width: 1024px) {
	.menu-toggle,
	.admin-bar .menu-toggle {
		top: auto;
		right: auto;
		bottom: var(--site-padding);
		left: var(--site-padding);
	}
}

/*----------------------------------*
 | Header bar
 *----------------------------------*/

.header-bar {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: var(--header-height);
	background: var(--lightcream);
	z-index: 1;
}

.admin-bar .header-bar {
	top: var(--admin-bar);
}

/*----------------------------------*
 | Main nav
 *----------------------------------*/

.main-nav {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: var(--yellow);
	padding-top: var(--header-height);
	padding-bottom: calc(var(--site-padding) * 2);
	z-index: 2;
	opacity: 0;
	transform: translateX(-100%);
	pointer-events: none;
	transition: 0.25s opacity;
}

.admin-bar .main-nav {
	padding-top: calc(var(--header-height) + var(--admin-bar));
}

.main-nav ul {
	list-style: none;
	margin: 0;
	padding: 0 var(--site-padding);
	font-family: var(--serif-font);
	font-size: 70px;
	line-height: 100%;
	text-decoration
}

.main-nav li {
	height: 70px;
	opacity: 0;
	transform: translateX(-50px);
	transition: transform 0.35s ease, opacity 0.35s ease;
}

.main-nav li + li {
	margin-top: 10px;
}

.main-nav a {
	text-decoration: none;
	color: var(--lightgrey);
	transition: color 0.3s;
}

@media (hover: hover) and (pointer: fine) {
	.main-nav a:hover {
		color: black;
	}
}

/* Nav open */

.nav-open .main-nav {
	transform: translateX(0);
	pointer-events: all;
	opacity: 1;
	transition: 0.4s opacity;
}

.nav-open .main-nav li {
	opacity: 1;
	transform: translateX(0);
}

.nav-open .main-nav li:nth-child(1) { transition-delay: 0.05s; }
.nav-open .main-nav li:nth-child(2) { transition-delay: 0.1s; }
.nav-open .main-nav li:nth-child(3) { transition-delay: 0.15s; }
.nav-open .main-nav li:nth-child(4) { transition-delay: 0.2s; }
.nav-open .main-nav li:nth-child(5) { transition-delay: 0.25s; }
.nav-open .main-nav li:nth-child(6) { transition-delay: 0.3s; }
.nav-open .main-nav li:nth-child(7) { transition-delay: 0.35s; }
.nav-open .main-nav li:nth-child(8) { transition-delay: 0.4s; }

@media (max-width: 768px) {
	.main-nav ul {
		font-size: 12vw;
	}

	.main-nav li {
		height: 12vw;
	}
}


/*----------------------------------*
 | Buttons
 *----------------------------------*/

.button {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 190px;
	height: 50px;
	border: 1px solid var(--grey);
	color: var(--grey);
	border-radius: 24px;
	font-size: 24px;
	background: none;
	font-family: var(--serif-font);
	text-decoration: none;
}

.button-bottom-right {
	position: absolute;
	bottom: var(--site-padding);
	right: var(--site-padding);
}

@media (hover: hover) and (pointer: fine) {
	.button:hover {
		color: var(--lightgrey);
		border-color: var(--light-grey);
		cursor: pointer;
	}
}

/*----------------------------------*
 | Post navigation
 *----------------------------------*/

.post-navigation {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 80px;
	stroke: var(--grey);
}

@media (hover: hover) and (pointer: fine) {
	.post-navigation .top {
		transition: stroke 0.3s;
	}

	.post-navigation .top:hover {
		cursor: pointer;
		stroke: var(--yellow) !important;
	}
}

/*----------------------------------*
 | Footer
 *----------------------------------*/

.footer {
	font-size: 16px;
	background: var(--cream);
	padding: var(--site-padding) 0 calc(var(--site-padding) * 2) 0;
}

.footer .main-column {
  display: grid;
  grid-template-columns: 12% 12% 1fr 12% 12%;
  align-items: flex-start;
  gap: 75px;
}

.footer .main-column > div {
/*	outline: 1px dashed blue;*/
}

.footer h4 {
	color: white;
	margin-bottom: 0px;
}

.footer a {
	text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
	.footer a:hover {
		color: var(--yellow);
	}
}


@media (max-width: 1024px) {
	.footer .main-column {
		grid-template-columns: 1fr 1fr 1fr 1fr;
	}

	.footer .main-column .spacer {
		display: none;
	}
}

@media (max-width: 780px) {
	.footer .main-column {
		grid-template-columns: 1fr 1fr;
		gap: 40px;
	}
}

/*----------------------------------*
 | Page hero
 *----------------------------------*/

.page-hero {
	display: grid;
	grid-template-columns: 1fr 1fr;
	width: 100dvw;
	height: 100dvh;
	font-family: var(--serif-font);
	font-size: 36px;
}

.admin-bar .page-hero {
	height: calc(100dvh - var(--admin-bar));
}

.page-hero-content {
	margin-top: var(--header-height);
	padding: var(--site-padding);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.page-hero-image {
	background-size: cover;
}

/*----------------------------------*
 | Home hero
 *----------------------------------*/

.home-hero {
	display: grid;
	grid-template-columns: 1fr 1fr;
	width: 100dvw;
	height: 100dvh;
	background: var(--cream);
}

.admin-bar .home-hero {
	height: calc(100dvh - var(--admin-bar));
}

.home-hero-image {
	background-image: url(img/home-stairwell.jpg);
	background-size: cover;
	background-repeat: no-repeat;
}

.home-hero-content {
	padding-left: 100px;
	padding-right: var(--site-padding);
}

.home-hero-content h1 {
	font-size: 50px;
	color: var(--grey);
	margin-bottom: 20px;
}

.home-hero-content .drop-down-list {
	margin-left: 30px;
}

@media (max-width: 1024px) {
	.home-hero {
		grid-template-columns: auto;
		grid-template-rows: 4fr 3fr;
	}

	.home-hero-content {
		text-align: center;
		padding: var(--site-padding) var(--site-padding) 80px var(--site-padding);
	}

	.home-hero-content h1 {
		font-size: 6vw;
	}
}

/*----------------------------------*
 | Featured
 *----------------------------------*/

.featured-projects {
	height: 100%;
	padding-bottom: calc(var(--site-padding) * 2);
}

.featured-project {
	position: relative;
	display: block;
	height: 100%;
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;
}

.featured-project h2 {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	background: var(--lightcream);
	font-size: 22px;
	padding-top: 12px;
	margin-bottom: 0;
}

/*----------------------------------*
 | Carousel
 *----------------------------------*/

.carousel-shell {
	position: relative;
	height: 100%;
}

.carousel {
	display: flex;
	height: 100%;
	transform: translateX(0);
	transition: transform var(--carousel-duration, 600ms) ease;
	will-change: transform;
}

.carousel-item {
	width: 100%;
	height: 100%;
	padding: 0 var(--site-padding);
	flex: 0 0 100%;
}

.carousel-button {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: transparent;
	border: none;
	color: var(--grey);
	font-family: var(--serif-font);
	font-size: 16px;
	padding: 8px 14px;
	cursor: pointer;
	stroke: white;
}

.carousel-button.prev {
	left: var(--site-padding);
}

.carousel-button.next {
	right: var(--site-padding);
}

@media (hover: hover) and (pointer: fine) {
	.carousel-button:hover {
		stroke: var(--yellow);
	}
}


/*----------------------------------*
 | Projects grid
 *----------------------------------*/

.projects-grid {
	position: relative;
	display: grid;
	grid-template-columns: repeat(9, 1fr);
	gap: 24px;
	row-gap: 9vw;
	margin-bottom: 180px;
}

.projects-thumb {
	width: 100%;
	aspect-ratio: 4 / 3;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.projects-title {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.projects-thumb {
	height: 30vw;
}

.projects-item {
	filter: grayscale(1);
	transition: filter 0.3s ease-out;
}

.projects-item:hover {
	filter: grayscale(0);
}

.projects-item:nth-of-type(1) {
	grid-column: 1 / 6;
	grid-row: 1;
}

.projects-item:nth-of-type(2) {
	grid-column: 7 / 10;
	grid-row: 1;
}

.projects-insert {
	grid-column: 1 / 3;
	grid-row: 2;
	padding: 16px;
	background: var(--lightcream);
	color: var(--grey);
}

.projects-item:nth-of-type(3) {
	grid-column: 3 / 8;
	grid-row: 2;
}

.projects-item:nth-of-type(4) {
	grid-column: 1 / 4;
	grid-row: 3;
}

.projects-item:nth-of-type(5) {
	grid-column: 5 / 10;
	grid-row: 3;
}

.projects-item:nth-of-type(6) {
	grid-column: 1 / 6;
	grid-row: 4;
}

.projects-item:nth-of-type(7) {
	grid-column: 7 / 10;
	grid-row: 4;
}


/*----------------------------------*
 | Projects insert
 *----------------------------------*/

.projects-insert {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.projects-highlight {
	text-align: center;
}

.projects-highlight .figure {
	font-family: var(--serif-font);
	font-size: 70px;
	line-height: 1;
}

.projects-highlight .label {
	font-size: 18px;
}

/*----------------------------------*
 | Projects overlay
 *----------------------------------*/

.projects-overlay {
	position: fixed;
	width: calc(100% - (var(--site-padding) * 2));
	height: calc(100dvh - var(--header-height) - (var(--site-padding) * 2));
	top: calc(var(--header-height) + var(--site-padding));
	left: var(--site-padding);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 1;
	pointer-events: none;
}

.projects-overlay h2 {
	text-transform: uppercase;
	font-size: 70px;
	color: var(--yellow);
	text-align: center;
	opacity: 0;
	transition: opacity 0.25s ease;
}

.projects-overlay.is-visible h2 {
	opacity: 1;
}

/*----------------------------------*
 | Team grid
 *----------------------------------*/


.team-grid p {
	margin: 30px 0;
}

/*----------------------------------*
 | Debug
 *----------------------------------*/

/** {
	outline: 1px dashed magenta;
}*/
