/* hotica web design */

/*
 *	Nicolas Gallagher normalize solution
 *	https://necolas.github.io/normalize.css/
 */
@import "normalize.css";

/*
 *	imports all font configuration
 */
@import "./font/font.css";

/*
 *	imports common, global variables
 */
@import "var.css";

/*
 * Font Awesome
 * v.4.7.0 (always refer to version in linked file)
 */
@import "./fontawesome/css/font-awesome.min.css";

/*
 *	imports style of timetable for classes timings
 */
@import "timetable.css";

/*
 *	imports style of topmost navbar
 */
@import "navbar.css";

/*
 *	helper library for parallax effect
 *  DEPRECATED
 */
/*@import "parallax.css";*/

/*
 *	all base typographic rules	
 */
@import "typography.css";

/*
 *	all structure and pagination rules, including columns, full-widths, etc...
 */
@import "struct.css";





/*
 *	All base definition follow
 *	keep this file to a minimum size, to improve readability
 */

/* define nominal colors, to be inherited */
body {
	background-color: #e5e5e5;
}

html {
	scroll-behavior: smooth;	
}

/* invert colors, not accents */
.color-inverted {
	background-color: var(--color-fg);
	color: var(--color-bg);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

.padded-extra {
    padding-bottom: 50px;
    @media (min-width: 768px) {
        padding-bottom: 0;
    }
}


/* main container area, everything is flex element */
.container {
	display: flex;
	flex-wrap: wrap;
	align-content: flex-start;
	width: 100%;
}

/* full page landing special rules */

.landing-banner {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	flex-direction: column;
	height: calc(100vh - var(--navbar-h) + 5vh);		/* 50px is consistent with height of trimmed sections */
	width: 100%;
	/*background-color: var(--color-fg);*/
	color: var(--color-bg);
	margin-top: var(--navbar-h);
	position: relative;
	/*overflow: hidden;*/
	background-size: cover;
	box-sizing: content-box;
	/*clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 5vh));*/
}

.landing-banner:before {
	content:"";
	background-color: var(--color-fg);
	background-image: url("./img/png/holdout-land-bg.png");
	background-image: image-set( url("./img/webp/holdout-land-bg.webp") type("image/webp"));
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	position: absolute;
	height: 100%;
	width: 100%;
	z-index: -2;
}

.landing-banner:after {
	content:"";
	background-color: var(--color-fg);
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	opacity: 0.5;
	position: absolute;
	height: 100%;
	width: 100%;
	z-index: -1;
}

.landing-banner h2 {
	font-family: "BlenderPro", sans-serif;
	color: var(--color-bg);
	font-weight: 800;
	font-size: 4rem;
}

#landing-banner-bg {
	width: 100vw;
	height: 100%;
	object-fit: cover;
	-webkit-object-fit: cover;
	z-index: -1;
	position: absolute;
	top: 0;
	left: 0;
}

.trim-top:before {			/*
							 * Defines rules for the diagonal cut at the end of inverted divs
							 * Should be put at the top of the non-inverted section
							 */
	content: "";
	position: relative;
	top: 0;
	left: 0;
	height: 5vh;									/* defines the height of the triangle */
	width: 100vw;
	background: var(--color-fg);
	display:block;
	clip-path: polygon(0 -1%, 100% -1%, 100% 100%); 	/* this will draw the tringle
														 *	https://stackoverflow.com/questions/51542919/clip-path-on-chrome-leaves-a-strange-line-on-the-edge applies the patch for whiteborder
														 */
	border: none;
}

.trim-bottom:after {		/*
							 * Defines rules for the diagonal cut at the end of inverted divs
							 * Should be put at the top of the non-inverted section
							 */
	content: "";
	position: relative;
	top: 0;
	left: 0;
	height: 5vh;									/* defines the height of the triangle */
	width: 100vw;
	background: var(--color-fg);
	display:block;
	clip-path: polygon(0 0, 0 101%, 100% 101%); 	/* this will draw the tringle  
													 *	https://stackoverflow.com/questions/51542919/clip-path-on-chrome-leaves-a-strange-line-on-the-edge applies the patch for whiteborder
													 */
	border: none;
}



.nav-anchor {				/* snaps in place when click from menu */
	scroll-margin-top: calc( var(--navbar-h) + 20px );
	scroll-snap-margin-top: calc( var(--navbar-h) + 20px );		/* exception for safari and safari iOS v11.14 */
}




/* --- TO BE CLEANED UP --- */
/* TYPOGRAPHY */




.apex {
	font-size: 10rem;
    font-weight: 800;
    position: relative;
    left: -0.3rem;
    order: 2;
    line-height: 1rem;
}

#wants p {
	margin: 0;
}


.extra-space p {
	margin-bottom: 15px;
}

a, a:hover, a:visited, a:focus {
	color: inherit;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}


.flex-align-center {
	align-self: center;
}

.flex-align-bottom {
	align-self: flex-end;
}

.flex-align-end {
	justify-self: end;
}

h1.flex-align-bottom,
h2.flex-align-bottom {
	text-align: left;
}

.flex-align-top {
	align-self: flex-start;
}

.flex-align-items-start {
	align-items: flex-start !important;
}

.flex-justify-center {
	justify-self: center;
}

.tight {
	margin: 0;
}

/* COLUMNS */

.column {
	display: flex;
	width: 100%;
	align-items: start;
	justify-content: flex-end;
	flex-direction: column-reverse;
}

.column-mobile {

	display: flex;
	width: 100%;
	align-items: start;
	justify-content: flex-start;
	flex-wrap: wrap;
	align-items: center;

}

.column h1,
.column h2 {
	order: 1;
}

.half-column {
	width: 100%;
}

.half-column-mobile {
	width: 45%;
}

.half-column img {
	max-width: 100%;
}

.reduce-img img {
	width: 70%;
	margin: 0 15%;
}

.no-margin-top {
	margin-top: 0 !important;
}

.half-column img.resp-resize {
	max-height: 60vh;
	width: 100%;
	object-fit: cover;
}

.resp-order__1 {
	order: 1;
}

.resp-order__2 {
	order: 2;
}

.fa-ul, .fa-ul span {
	line-height: 1.75em;
}

.logo {
	max-width: 80vw;
	width: auto;
	height: auto;
	z-index: 1;
}

.cutout {
	color: #000;
	background-color: #FFF;
	mix-blend-mode: screen;
	padding: 0 7px;
}

.onramp {
	max-width: 70px !important;
	width: auto;
	height: auto;
	display: block;
	margin: auto;
}

.map{
	text-align: center;
}

	.map a, .map picture, .map img, .map source {
	max-height: 450px;
	}

@media (max-width: 550px) { 
/* should only target iPhone mini */
	.map a, .map picture, .map img, .map source {
		display: inline-block;
		width: inherit;
		max-height: none;
	}
}

.row-flex {
    display: flex;
    justify-content: flex-start;
    flex-basis: 100%;
    width: calc( 100vw - 20px );
    align-content: center;
    align-items: center;
}


.col-flex {
	min-width: 33%;
	display:block;
}

button.call-to-action {
	background: var(--accent1);
	border: none;
	font-family: "BlenderPro", sans-serif;
	font-size: 2.5rem;
	line-height: 2.5rem;
	text-transform: uppercase;
	font-weight: 800;
	min-width: 55vw;
	-ms-transform: skewX(-20deg);
	-webkit-transform: skewX(-20deg);
	transform: skewX(-20deg);
    color: var(--color-bg);
    margin-top: 20px;
}

	@media (min-width: 768px) {
	button.call-to-action  {
		min-width: 35vw;
		max-width: 400px;
        color:var(--color-bg);
	}
}

span.call-to-action-content {
	-ms-transform: skewX(20deg);
	-webkit-transform: skewX(20deg);
	transform: skewX(20deg);
	display: inline-block;
}

button.call-to-action:hover {
	color: var(--color-fg);
}

/*button.call-to-action:after {
	content:"";
	clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
	background-color: blue;
	display: block;
	position: relative;
	top: 0;
	left: 0;
	width: 120%;
}*/



/* Responsiveness */
@media (max-width: 767.8px) {


.no-padding-bottom {
	padding-bottom: 0 !important;
}

.no-padding-top {
	padding-top: 0 !important;
}
}

@media (min-width: 1201px) {
	.smallest-desktop-only {
		font-size: 1rem;
	}
}


@media (min-width: 768px) {

	html {
		font-size: 16px;
	}

	h1, h2 {
		text-align: left;
	}

	.resp-order__1 {
		order: 0;
	}

	
	.resp-order__2 {
		order: 0;
	}

	.row-flex {
		width: calc( 100vw - 240px );
	}

	.text-space {
		padding: 28px 0;
	}

	
	.onramp {
		max-width: 100px !important;
	}

	.logo {
		max-width: 600px;
	}

	.apex {
		order: 0;
		position: absolute;
		left:1rem;
	}

	h1 br, h2 br {
		display: inline;
	}

	#hero2 {
		height: 50vh;
	}

	#hero3 {
		height: 72vh;
	}

	#hero4 {
		height: 75vh;
	}

	.column,
	.column-mobile {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		flex-wrap: wrap;
	}

	.column h1,
	.column h2 {
		order: 0;
		width: 100%;
	}

	.col-flex {
		min-width: 30%;
	}

	.row-flex .col-flex:nth-child(1) {
		min-width: 40%;
	}

	.fa-ul {
		padding-left: 28px;
	}

	.fa-li {
		top: 0;
	}

	.picture-right {
		height: auto;
	}

	.hero-banner {
		height: 50vh;
	}

	.smallest {
		font-size: 1rem;
	}
}
}