/*FONTIT*/

@font-face {
    font-family: "Arial Nova";
    font-weight: 700;
    src: url("../fonts/arialnova-bold.ttf");
}

@font-face {
    font-family: "Arial Nova";
    font-weight: 300;
    src: url("../fonts/arialnova-light.ttf");
}

@font-face {
    font-family: "Arial Nova";
    font-weight: 400;
    src: url("../fonts/arialnova.ttf");
}

@font-face {
    font-family: "Arial Nova Condenced";
    font-weight: 700;
    src: url("../fonts/arialnovacond-bold.ttf ");
}

h1, h2, h3, h4, h5, body {
	font-family: "Arial Nova", Arial, sans-serif;
}

h1, h2 {
	font-weight: 700;
}


/*.fast-form-phone {
	background-color: grey;
}*/
/*
.site-footer {
	background-color: lightgrey;
	background-image: url('../../janx-footer-skyline.png');
}*/
/*
.hero-section {
	border-top: 40px solid red;
}
*/
#showcase {
	position: relative;
}
/*
#showcase:before {
	content: '';
    position: absolute;
    z-index: 2;
    background-image: url('../../triangle-down.png');
    bottom: -250px;
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: bottom;
}
*//*
#showcase::before {
  content: '';
  position: absolute;
  z-index: 2;
  background-color: var(--color3);
  -webkit-mask-image: url('../../triangle-down.png');
  -webkit-mask-size: cover;
  -webkit-mask-position: bottom;
  -webkit-mask-repeat: no-repeat;
  mask-image: url('../../triangle-down.png');
  mask-size: cover;
  mask-position: bottom;
  mask-repeat: no-repeat;
  bottom: -250px;
  width: 100%;
  height: 250px;
}*/

#showcase::before {
	content: '';
	position: absolute;
	z-index: 2;
	bottom: -50px;
	left: 0;
	width: 100%;
	height: 50px;
	background-color: var(--color3);
	clip-path: polygon(0px 0px, 100% 0px, 100% 20px, 50.00% 50px, 0px 20px);
}

.hero-slider__item.height-60 .hero-slider__text-content {
    padding: 0rem 0rem 10rem 0rem;
    align-self: end;
}

#main-content {
	margin-top: 120px;
}
/*
#main-after {
	margin-bottom: 200px;
}
*/
#main-content {
	position: relative;
}
/*
#main-content:before {
	content: '';
    position: absolute;
    z-index: 2;
    background-image: url('../../triangle-up.png');
    bottom: -200px;
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: bottom;
}

#main-after {
	position: relative;
}

#main-after:before {
	content: '';
    position: absolute;
    z-index: 2;
    background-image: url('../../triangle-up.png');
    bottom: -200px;
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: bottom;
}*/

/*fix*/
/*ff1605*/

/*navi*/

.site-header__top {
	display: none;
}

#header nav {
	display: flex;
	align-items: center;
}

.navi-btn {
	background: transparent!important;
	color: var(--color3)!important;
	border: none!important;
	font-size: 1.5rem;
}
/*
.navi-btn.rengas {
	border: 2px solid var(--color3)!important;
	border-radius: 50%;
}
*/

.flags {
	align-content: center;
	background: var(--color3);
    padding: 1rem 1rem 1rem 2rem;
    border-radius: 35px 0 0 35px;
}

.site-header__bottom {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/*showcase*/

.hero-slider__item.height-100 {
    height: calc(100vh - 88px) !important;
}

.showcase2 .hero-slider__text-content {
    max-width: 100%;
}

.hero-slider__item.height-100 .hero-slider__text-content {
    padding: 0rem 2rem;
}

#header {
	position: fixed;
}

#header:after {
	content:'';
	width: 100%;
	height: 20px;
	background: var(--color3);
	position: absolute;
	top: auto;
	bottom: -20px;
	left:0;
	z-index: 2;
}

#showcase h2, #showcase h1 {
    font-size: 5.5rem!important;
}

/*main-content*/

#main-content h1,
#main-content h2,
#main-content h3,
#main-content h4,
#main-after h1,
#main-after h2,
#main-after h3,
#main-after h4{
	color: var(--color5);
}

form:has(.fastform) {
	margin: 0rem 3rem;
}

.fast-form-phone {
	padding: 2rem 2rem;
	background: var(--color3);
}

#main-content .fast-form-phone h2,
.fast-form-phone p {
	color: var(--color1);
}

.fast-form-phone .btn:hover {
	background: var(--color4);
	color: var(--color3);
	border-color: var(--color4);
}

/*site-footer*/

.site-footer {
	position: relative;
	background: #d9d9d9;
	color: var(--color1);
	background-image: url('../../janx-footer-skyline.png');
	background-size: contain;
  	background-position: bottom;
 	background-repeat: repeat-x;
	margin-top: 120px;
}
/*
.site-footer:before {
	content: '';
    position: absolute;
    z-index: 2;
    background-image: url('../../triangle-up.png');
    top: -250px;
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: bottom;
}*/

.site-footer::before {
	content: '';
	position: absolute;
	z-index: 2;
	top: -50px;
	left: 0;
	width: 100%;
	height: 50px;
	background-color: var(--color3);
	clip-path: polygon(0px 50px, 100% 50px, 100% 30px, 50% 0, 0px 30px);
}

.site-footer a,
.site-footer p,
.desktop-top-menu li a {
	color: var(--color1);
}

.serti img {
	max-width: 140px;
	width: 100%;
	max-height: 150px;
    object-fit: contain;
	object-position: left;
}

.serti ul {
	padding: 0!important;
	display: flex;
	flex-flow: row wrap;
	gap: 1rem 0;
}

.serti ul li {
	flex: 0 0 100%;
	max-width: 100%;
	list-style: none;
}

.site-footer__social-icons a {
	font-size: 2rem;
}

/*numerovälilhti komennot*/

.sivu49 form:has(.fastform),
.sivu71 form:has(.fastform){
    padding-top: 5rem;
}
body:not(.sivu1, .sivu62) #showcase .hero-slider__text-content {
	max-width: none;
	padding: 0rem 2rem;
}
.sivu31 .site-footer,
.sivu73 .site-footer{
	margin-top: 0;
}

.sivu31 .site-footer:before,
.sivu73 .site-footer:before{
	display: none;
}

/*media*/

@media (max-width: 1199.98px) {
  	.desktop-main-menu a {
    	font-size: 1rem;
  	}
	#main-content {
		margin-top: 120px;
	}
	.site-footer {
		margin-top: 120px;
	}
}

@media (max-width: 991.98px) {
  	#mobile-buttons {
		display: none;
	}
	#showcase h2, #showcase h1 {
	    font-size: 4rem!important;
	}
	#showcase::before {
		bottom: -90px;
	    height: 90px;
	    clip-path: polygon(0 0, 100% 0, 100% 40px, 50% 90px, 0 40px);
	}
	#main-content {
		margin-top: 90px;
	}
	.site-footer {
		margin-top: 90px;
	}
	.site-footer::before {
	    top: -90px; 
	    height: 90px; 
	    clip-path: polygon(0 90px, 100% 90px, 100% 50px, 50% 0, 0 50px);
	}
	form:has(.fastform) {
	    margin: 0rem 1rem;
	}
	
	/*numerovälilhti komennot*/

	.sivu49 form:has(.fastform),
	.sivu71 form:has(.fastform){
		padding-top: 3rem;
	}
	
}

@media (max-width: 767.98px) {
	.hero-slider__item.height-100 {
		height: 100vh !important;
	}
	.hero-slider__item.height-100.md-height-60 {
		height: 60vh !important;
	}
	.mobile-menu__bars {
		position: fixed;
  		bottom: 0; /*3rem*/
  		right: 0; /*8.33%*/
		padding-right: 0.75rem;
		background: var(--color3);
		color: var(--color4);
		border-radius: 0;
	}
	#showcase h2, #showcase h1 {
	    font-size: 3rem!important;
	}
	#showcase::after {
		top: 72.75px;
	}
	#showcase::before {
		bottom: -70px;
	    height: 70px;
	    clip-path: polygon(0 0, 100% 0, 100% 40px, 50% 70px, 0 40px);
	}
	#main-content {
		margin-top: 70px;
	}
	.site-footer {
		margin-top: 70px;
	}
	.site-footer::before {
	    top: -70px; 
	    height: 70px; 
	    clip-path: polygon(0 70px, 100% 70px, 100% 30px, 50% 0, 0 30px);
	}
	.site-header #header.sticky, .site-header__bottom  {
		top: 0!important;
		bottom: auto!important;
		position: fixed;
	}
}

@media (max-width: 575.98px) {
	.flags li.current {
		display: none;
	}
	.flags {
  		padding: 0;
		background: transparent;
		border-radius: 0;
  	}
	.historia h1,
	.historia h2,
	.historia h3,
	.historia h4,
	.historia p {
		text-align: left!important;
	}
	#main-content {
		margin-top: 60px;
	}
	.site-footer {
		margin-top: 60px;
	}
	.site-footer:before {
		top: -60px;
		height: 60px;
	}
	#showcase h2, #showcase h1 {
	    font-size: 2.5rem!important;
	}
	#showcase::after {
		top: 64px;
	}
	#showcase::before {
		bottom: -60px;
	    height: 60px;
	    clip-path: polygon(0 0, 100% 0, 100% 40px, 50% 60px, 0 40px);
	}
	#main-content {
		margin-top: 60px;
	}
	.site-footer {
		margin-top: 60px;
	}
	.site-footer::before {
	    top: -60px; 
	    height: 60px; 
	    clip-path: polygon(0 60px, 100% 60px, 100% 20px, 50% 0, 0 20px);
	}
	#header::after {
  		height: 10px;
  		bottom: -10px;
  	}
}

@media (max-width: 450.98px) {
	#showcase h2, #showcase h1 {
	    font-size: 2rem!important;
	}
	.navi-btn {
		font-size: 1.25rem;
	}
	#showcase::before {
		bottom: -50px;
	    height: 50px;
	    clip-path: polygon(0 0, 100% 0, 100% 30px, 50% 50px, 0 30px);
	}
	#main-content {
		margin-top: 50px;
	}
	#showcase::after {
		top: 58px;
		height: 30px;
	}
	.site-footer {
		margin-top: 50px;
	}
	.site-footer::before {
	    top: -50px; 
	    height: 50px; 
	    clip-path: polygon(0 50px, 100% 50px, 100% 20px, 50% 0, 0 20px);
	}
}
