
/*  
Theme Name: Optimest AB 2020
Theme URI: https://www.optimest.se/
Description: WordPress-tema av Optimest AB
Version: 1.1
Author: Optimest AB
Author URI: https://www.optimest.se/
*/
:root{
--primary-color: #C0D8E0;
--gray: #C0D8E0;	
--blue: #3A7DD5;
--lightblue: #88CCF1;
--lightgray: #fafaff;	
--green: #47833a;
--red: #F06543;
--red: #70163C;
--textondark: #fff;
--textonlight: darkslategray;
--light:#fafafa;
--breakpoint-sm: 576px;
}

html {
  font-family: sans-serif;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
    font-size: 14px;
}

body {
  background: white;
  color: #111;
  font-family: "Nunito", Arial, sans-serif;
  font-weight: 400;
  line-height: 1.6rem;
  font-size: 14px;
  text-rendering: optimizeLegibility;
}
@media screen and (max-width:576px){
.container{
	padding: 0 30px;
}
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section,
summary {
  display: block;
}

audio,
canvas,
progress,
video {
  display: inline-block;
  vertical-align: baseline;
}

audio:not([controls]) {
  display: none;
  height: 0;
}

[hidden],
template {
  display: none;
}
.grecaptcha-badge {display: none;}

a {
  background: transparent; color: inherit;
  text-decoration: underline;
}

a:active,
a:hover {
  outline: 0;
}

abbr[title] {
  border-bottom: 1px dotted;
}

b,
strong {
  font-weight: bold;
}

dfn {
  font-style: italic;
}


mark {
  background: #ff0;
  color: #000;
}

small {
  font-size: 80%;
}

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sup {
  top: -0.5em;
}

sub {
  bottom: -0.25em;
}

img {
  border: 0;
}

svg:not(:root) {
  overflow: hidden;
}

hr {
  -moz-box-sizing: content-box;
  box-sizing: content-box;
  height: 0;
}

pre {
  overflow: auto;
}

code,
kbd,
pre,
samp {
  font-family: monospace, monospace;
  font-size: 1em;
}

button,
input,
optgroup,
select,
textarea {
  color: inherit;
  font: inherit;
  margin: 0;
}

button {
  overflow: visible;
}

button,
select {
  text-transform: none;
}

button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
  -webkit-appearance: button;
  cursor: pointer;
}

button[disabled],
html input[disabled] {
  cursor: default;
}

button::-moz-focus-inner,
input::-moz-focus-inner {
  border: 0;
  padding: 0;
}

input {
  line-height: normal;
}

input[type="checkbox"],
input[type="radio"] {
  box-sizing: border-box;
  padding: 0;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

input[type="search"] {
  -webkit-appearance: textfield;
  -moz-box-sizing: content-box;
  -webkit-box-sizing: content-box;
  box-sizing: content-box;
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

fieldset {
  border: 1px solid #c0c0c0;
  margin: 0 2px;
  padding: 0.35em 0.625em 0.75em;
}

legend {
  border: 0;
  padding: 0;
}

textarea {
  overflow: auto;
}

optgroup {
  font-weight: bold;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

td,
th {
  padding: 0;
}

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

a:hover, a:focus, a:active {
text-decoration: none;
color: inherit;
}

::-moz-selection {
  background-color: #050071;
  color: #fff;
}

::selection {
  background-color: #050071;
  color: #fff;
}

img,
canvas,
iframe,
video,
svg,
select,
textarea {
  max-width: 100%;
}

img {
  height: auto;
  vertical-align: middle;
}

video {
  width: 100%    !important;
  height: auto   !important;
  vertical-align: middle;
}

.clearfix:after,.clear:after {
  content: "";
  display: table;
  clear: both;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

@media screen and (min-width: 720px) {
  html {
    font-size: 17px;
  }
  
  .page-header{
	/*   margin-top: 50px; */
	margin: 1rem 0;
  }
  
}
@media screen and (min-width: 1100px) {
  html {
    font-size: 17px;
  }
}

p, .p {
  font-size: 1rem;
  margin-bottom: 1rem;
}

h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5 {
font-family: Titillium Web, Montserrat;
  line-height: 1.42;
  margin: 0 0 .5rem;
  color: black;
}

h1, .h1 {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 1rem;
}

h2, .h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2rem 0 0.8rem;
}

h3, .h3, .schema-faq-question {
display: block;
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: .5rem;
  margin-top: 1.75rem;
  line-height: initial;
}

h4, .h4 {
  font-size: 1.1rem;
  font-weight: 400;
}

h5, .h5 {
  font-size: 1.75rem;
  font-weight: 400;
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

h6, .h6 {
  font-size: .95rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 .25rem;
  padding: 0;
}

.italic {
  font-style: italic;
}

.uppercase {
  text-transform: uppercase;
}

.txt-center {
  text-align: center;
}

#top-contact{
	padding-top: 10px; 
}
#top-contact a{
color: inherit;
	
}
img.logga{
margin-top: 5px;
margin-right: 5px;
width: 300px;
float:left;

}

@media screen and (max-width: 480px) {
.home img.bild-i-fullbreddsyta{
		display: none;
	}

img.logga {
	margin-left: auto;
	margin-right: auto;
	display: block;
}

.lead.blog-description{
	display: block;
	display: none;
	font-size: 14px;
	text-align: center;
	margin-top: 0px;
	margin-bottom: 0;
}
.blog-nav li{
	
	font-size: 0.7rem;
	padding: 9px 5px;
}
.top-contact{
	text-align: center;
	display: block;
}

input.wpcf7-form-control{
	max-width: 100%;
	
}
span.phone{
	font-weight: bold;
}
span.email{
	float: right;
	font-weight: bold; 
}


}

@media screen and (max-width: 370px) {

/*
nav ul li:last-child{
	display: none;
}
*/
}



/* Nav links */
.blog-nav-item {
  position: relative;
  display: inline-block;
  padding: 10px;
  font-weight: 500;
  color: #cdddeb;
}
.blog-nav-item:hover,
.blog-nav-item:focus {
  color: #fff;
  text-decoration: none;
}




/* Active state gets a caret at the bottom */
.blog-nav .active {
  color: #fff;
}
.blog-nav .active:after {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 0;
  margin-left: -5px;
  vertical-align: middle;
  content: " ";
  border-right: 5px solid transparent;
  border-bottom: 5px solid;
  border-left: 5px solid transparent;
}



.breadcrumbs{
	font-size: 0.75rem;
	color: var(--dimgray);
	
}

/*
 * h1 och beskrivning
 */

header{
width: 100%;
}



.page-title {
  margin-top: 0.7rem;
  margin-bottom: 0.7rem;
  font-size: 2.2rem;
}
.page-title a{
text-decoration: none;
}
.blog-description {
  font-size: 20px;
  margin-bottom: 0;
 
}


.menyrad{

	margin: 10px 0 0 0;
}
/*
 * Main column and sidebar layout
 */

.blog-main {
}
.sidebar{
}
.sidebar ul{
	padding-left: 0;
}
.sidebar ul li{
	list-style: none;
}


/* Sidebar modules for boxing content */
.sidebar-module {
  padding: 15px;
  margin: 0 -15px 15px;
}
.sidebar-module-inset {
  padding: 15px;
  background-color: #f5f5f5;
  border-radius: 4px;
}
.sidebar-module-inset p:last-child,
.sidebar-module-inset ul:last-child,
.sidebar-module-inset ol:last-child {
  margin-bottom: 0;
}


/* Pagination */
.pager {
  margin-bottom: 60px;
  text-align: left;
}
.pager > li > a {
  width: 140px;
  padding: 10px 20px;
  text-align: center;
  border-radius: 30px;
}


/*
 * Blog posts
 */

.blog-post {
  margin-bottom: 60px;
}
.blog-post-title,.page-title {
margin-top: 1rem;
margin-bottom: 0.5rem;
font-size: 1.8rem;
}
.blog-post-title a {
text-decoration: inherit;
}
.blog-post-meta {
  margin: 0 0 0.5rem 0;
  color: #999;
}

.comment-form-comment label{
	display: block;
}
.comment-form label{
	display: block;
	font-size: 0.8rem;
}

input[type=submit]{
	background: var(--green);
color: #fff;
transition: .3s;
border: 1px solid var(--green);
border-radius: 3px;
padding: 0.5rem 1rem;
}

form.comment-form textarea, form.comment-form input:not([type='submit']){
background: rgba(0,0,0,.07);
	color: black;
	border: 0;
	padding: 0.5rem;
	width: 100%;
	border-radius: 3px;
}


/*
 * Footer
 */


.sidfot p:last-child {
  margin-bottom: 0;
}



footer{

  background: var(--green);
  font-weight: bold;
color: var(--textondark);
	text-align: left;
	padding: 3rem 0;

-webkit-clip-path: polygon(0 3vw,100% 0,100% 100%,0 100%);
clip-path: polygon(0 0,100% 3vw,100% 100%,0 calc(100% - 0vw));


}

/*
footer .container{
	
	transform: rotate(-2deg) scale(1.1);
}
footer .container .row{
	transform: rotate(2deg) scale(0.9);	
}
*/
footer h1, footer h2, footer h3
{
color: inherit;
}

footer a{
	text-decoration: none;
}
footer a:hover{
	color: black;
	
}
footer h3{
	font-weight: bold;
	
}
footer i.fab{ font-size: 2rem;}


label{
	font-weight: 300;
}
footer ul{
	margin: 0;padding:0;
}
footer ul li{
margin: 5px 10px 5px 0;
list-style: none;
display: inline-block;
}

.footer-social img{
	width: 40px;height: 40px;
	object-fit:cover;
	margin: 0 0.8rem 0 0;
}




#bildspel,#kontaktformular{
	margin: 0 -15px 0 -15px;
	}
#kontaktformular::before {
  content: "";
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%; 
  height: 100%;  
  opacity: .4; 
  z-index: -1;
}

	#kontaktformular{
    position: relative;
border-top: 3px solid #fcfcfc;
background: /* #f5f5f5; */ #fcfaff;

		padding:15px;
	}

.btn{border-radius: 4px;
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: bold;
	box-sizing: border-box;
	border: 2px solid currentcolor;
}
.btn:hover{
opacity: 0.7;
transition: opacity 0.3s;
}

.cta{width: 100%;}

/*
CV	+ Tjanster
*/
.tjanster a.btn{
	text-decoration: none;
	background: inherit;
	border: 2px solid currentcolor;
	color: inherit;
}


.cv-sektion{
	padding: 3rem 2rem;
	
}
.tjanste-sektion h2::before { 
  display: block; 
  content: " "; 
  margin-top: -100px; 
  height: 100px; 
  visibility: hidden; 
  pointer-events: none;
}

.tjanste-sektion{
	
	margin: 1rem 0rem 4rem 0;
	border-left: 5px solid black;	
}



/*
	Fullbreddsyta
*/
section.fullbreddsyta{
padding: 2rem 0;
color: var(--textonlight);
background: var(--lightgray);
font-size: 2rem;
-webkit-clip-path: polygon(0 0,100% 3vw,100% 100%,0 calc(100% - 3vw));
clip-path: polygon(0 0,100% 3vw,100% 100%,0 calc(100% - 3vw));
}

@media screen and (max-width: 576px) {
section.fullbreddsyta{
padding: 0.8rem 0;
}

}



/*Tjanster – Start*/
.tjanster h2{
font-size:1.3rem;
font-weight:600;
margin: 1rem 0;
}



.tjanst h2{
font-size:1.45rem;
/* font-size:1.2rem; */
font-weight:600;
margin: 1rem 0;
	
	
}

.tjanst{
display: flex;
flex-direction:column;
}
.tjanst a.btn{
margin-top: auto;
}



/*Footer Contact*/

.footer_contact{

	border-top: 5px solid white;
	
}
.footer_contact h3{
	font-weight: 600;
	font-size: 1.8rem;
	
}
.footer_contact p{
font-size: 0.9rem;	
font-weight: bold;
}
.footer_contact input, .footer_contact textarea{
width: 100%;
background: rgba(0,0,0,0.07);
color: var(--textonlight);
font-weight: bold;
border: 1px solid white;
padding: 1rem;
font-size: 0.95rem;
	
}
.footer_contact input[type=submit]{
background: var(--green);
color: white;
transition:0.3s;	
}
.footer_contact input[type=submit]:hover{
	background: #fafafa;
	color: var(--green);
}

.footer_contact ::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: #bbb;
  opacity: 1; /* Firefox */
}

.footer_contact :-ms-input-placeholder { /* Internet Explorer 10-11 */
  color: #bbb;
}

.footer_contact ::-ms-input-placeholder { /* Microsoft Edge */
  color: #bbb;
}

.footer_contact span.wpcf7-not-valid-tip{
	color: inherit;
	font-weight: bold;
}
.footer_contact div.wpcf7-validation-errors, .footer_contact div.wpcf7-acceptance-missing{
	
	border: 2px solid currentcolor;
}

/*Referens*/

.referens-text{
	background: var(--green); 
	color: var(--textondark);
	padding: 2rem;
}
.referens-bild img{
	width: 100%;
	object-fit:cover;
}

/*
	Hero-banner
	
*/
.hero{
/* 	min-height: 150px; */
/* 	margin-top: 1rem; */
	position: relative;
}
.hero img{
	width: 100%;
	max-height: 40vh;
	min-height: 150px;
	object-fit:cover;
	object-position: center 45%;
	
}

.hero .gradient{
	    position:absolute;
    z-index:2;
    right:0; bottom:0; left:0;
    min-height:150px;
    background: none;
    background: -moz-linear-gradient(top,  rgba(255,255,255,0) 0%, rgba(255,255,255,1) 80%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,0)), color-stop(80%,rgba(255,255,255,1)));
    background: -webkit-linear-gradient(top,  rgba(255,255,255,0) 0%,rgba(255,255,255,1) 80%);
    background: -o-linear-gradient(top,  rgba(255,255,255,0) 0%,rgba(255,255,255,1) 80%);
    background: -ms-linear-gradient(top,  rgba(255,255,255,0) 0%,rgba(255,255,255,1) 80%);
    background: linear-gradient(to bottom,  rgba(255,255,255,0) 0%,rgba(255,255,255,1) 80%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#ffffff',GradientType=0 );
}


/*Tjänsteboxar*/

.tjanstebild{
	position: relative;
	overflow: hidden;
	padding-top: 65%;
	
}

.tjanstebild img{
	
	position: absolute;
  top: 0;
  left: 0;
  width: 100%;
min-height: 100%;
object-fit: cover;	
transition:0.4s;
}
.tjanstebild img:hover{
transform: scale(1.02);
}

@media screen and (max-width: 576px) {

.tjanste-sektion h2
{
font-size: 1.8rem;
}


h1, .h1 {

font-size: 1.8rem;
line-height: 1.5;
}

h2, .h2 {
	font-size: 2rem;
	
}

	.page-title{
		
/* 		font-size: calc( 1.45rem ); */
		
	}
	img.logga{
		
		width: 250px;
margin: 1rem;
	}
	
	.cv-rad div:nth-child(2) p:nth-child(1){
		margin: 1.5rem 0 0.5rem 0;
		font-size: 1rem;
		
	}
		.cv-rad div:nth-child(2) strong{
			font-size: 1rem;
		}
}

@media screen and (max-width: 400px) {

.cv-sektion h2, .tjanste-sektion h2
{
font-size: 1.4rem;
}



h2, .h2 {
	font-size: 1.7rem;
	
}



	.page-title{
		
		font-size: calc( 1.45rem );
/* 		font-weight: 500; */
		
	}
		img.logga{
		
/* 		width: 50px; */
	}


}


//--breakpoint-sm = 576
@media screen and (max-width: 576px) {
	
	.cv-rad div:nth-child(2) p:nth-child(1){
		margin-top: 1rem;
		
	}
	
	
	
}



[style*="--aspect-ratio"] > :first-child {
  width: 100%;
}
[style*="--aspect-ratio"] > img {  
  height: auto;
  position: absolute;
  object-fit:cover;
} 
@supports (--custom:property) {
  [style*="--aspect-ratio"] {
    position: relative;
  }
  [style*="--aspect-ratio"]::before {
    content: "";
    display: block;
    padding-bottom: calc(100% / (var(--aspect-ratio)));
    overflow: hidden; /**/
  }  
  [style*="--aspect-ratio"] > :first-child {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
  }  
}

.wp-block-image figcaption{
	text-align: center;
}
.fadeIn{
opacity: 0;
animation: fadeIn 3s;
animation-delay: 0.2s;
animation-fill-mode: forwards;

}
.fadeIn2{
opacity: 0;
animation: fadeIn 2s;
animation-delay: 1s;
animation-fill-mode: forwards;

}


blockquote{
border-left: 4px solid black;
padding-left: 1rem;
}


#fixed_footer{
	opacity: .9;
position: fixed;
bottom: 0;
left: 0;
z-index: 3;
opacity: 0;
/* height: 25px; */
font-size: 0.9rem;
padding: 6px;
background-color: var(--green);
color: #fff;
width: 100%;
	    animation: fadeIn 2s;
    animation-delay: 1s;
    animation-fill-mode: forwards;

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

.row.no-gutter > [class*='col-'], .no-gutter {
    padding-right:0;
    padding-left:0;
}


.question-block{
margin: 3rem 0 1rem;
	padding: 1rem;
background: var(--green);
color: var(--textondark);

}
.searchform{
	margin: 0.5rem 0 1rem;
}

.searchform input[type=text]{
	width: 75%;
}
.searchform input[type=submit]{
	width: 19%;
	padding: 0.2rem 0.5rem;
}

.readable-width{
	max-width: 700px;
	margin: auto;
}

/**/
