@charset "UTF-8";
/* 
Theme Name: Kotisairaanhoito Sa-Tu Väisänen Oy
Theme URI: https://www.kotisairaanhoitovaisanen.fi/
Description: Kotisairaanhoito Sa-Tu Väisänen Oy -teema
Version: 1.0
Author: Hurry Oy
Author URI: https://www.hurry.fi/
*/
/* Reset */
html, body, div, h1, h2, h3, h4, h5, h6, ul, ol, dl, li, dt, dd, p, blockquote, pre, form, fieldset, table, th, td {
  margin: 0;
  padding: 0;
}

img {
  border: 0;
  display: block;
}

ol, ul, dl {
  list-style: none;
}

article, aside, canvas, details, figcaption, figure, footer, header, hgroup, menu, nav, section, summary, mark, time {
  display: block;
}

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

input, select, textarea {
  -webkit-appearance: none;
  border-radius: 0;
  font-family: "Josefin Sans", sans-serif;
}

* {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

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

/* Global */
body, html {
  height: 100%;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: "Josefin Sans", sans-serif;
  color: #000;
  font-weight: 300;
}

body {
  position: relative;
  overflow-x: hidden;
}

body.no-scroll {
  height: 100vh;
  overflow: hidden;
}

h1, h2, h3 {
  font-weight: 700;
  margin-bottom: 1em;
  color: #24265a;
}

h1 {
  font-size: 3.75rem;
  line-height: 4.375rem;
}

h2 {
  font-size: 3.125rem;
  line-height: 3.5rem;
}

h3 {
  font-size: 2.5rem;
  line-height: 2.875rem;
}

p,
ol,
ul {
  font-size: 1.25rem;
  line-height: 1.5rem;
  margin-bottom: 1em;
}

ol,
ul {
  margin-left: 1.25rem;
}

ol li {
  list-style-type: decimal;
}

ul li {
  list-style-type: disc;
}

a {
  outline: none;
  color: inherit;
}

b, strong {
  font-weight: 700;
}

.button,
input[type="button"] {
  display: inline-block;
  background: #aa2355;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.25vw;
  border-radius: 10rem;
  padding: 1vw 2vw .875vw 2vw;
  transition-duration: .5s;
  cursor: pointer;
  border: none;
  outline: none;
}

.button:before,
input[type="button"]:before {
  content: "\00BB";
  margin-right: .5ch;
}

.button:hover, .button:focus,
input[type="button"]:hover,
input[type="button"]:focus {
  background: #fff;
  color: #aa2355;
}

.button.large,
input[type="button"].large {
  font-size: 1.5vw;
  text-transform: uppercase;
  padding: 1.5vw 4vw 1.375vw 4vw;
  border: solid 3px #aa2355;
}

.button.large:before,
input[type="button"].large:before {
  display: none;
}

#company .button,
#page-content .button {
  border: solid 3px #aa2355;
}

/* Header */
header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding-top: 3.5vw;
  z-index: 10;
}

header .wrap {
  display: flex;
  justify-content: space-between;
}

header .site-logo {
  position: relative;
  width: 320px;
  height: 70px;
  text-align: left;
  text-indent: -9999px;
  overflow: hidden;
}

header .site-logo a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url(assets/images/logo.svg) no-repeat;
  background-size: 100% auto;
  background-position: top left;
}

/* Menus */
#main-menu > ul {
  display: flex;
  justify-content: flex-end;
  margin: 0;
}

#main-menu > ul > li {
  position: relative;
  list-style-type: none;
  padding: 0;
  margin-left: 4rem;
  outline: none;
}

#main-menu > ul > li a {
  color: #fff;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 300;
  font-size: 1rem;
  border-bottom: solid 2px transparent;
  padding-bottom: 0.5rem;
  user-select: none;
}

#main-menu > ul > li a:hover, #main-menu > ul > li a:focus {
  border-bottom-color: #aa2355;
}

#main-menu > ul > li.current-menu-item > a, #main-menu > ul > li.current-menu-ancestor > a {
  color: #aa2355;
  font-weight: 700;
}

#main-menu > ul > li:first-child {
  margin-left: 0;
}

#main-menu > ul > li ul {
  display: none;
  position: absolute;
  left: 0;
  top: 2.25rem;
  margin: 0;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.85);
}

#main-menu > ul > li ul li {
  list-style-type: none;
  margin-bottom: .5rem;
  outline: none;
}

#main-menu > ul > li ul li a {
  display: inline-block;
  text-transform: none;
  color: #000;
  font-size: 1rem;
  white-space: nowrap;
  border-bottom: solid 2px transparent;
  transition-duration: .2s;
  padding: 0;
  user-select: none;
}

#main-menu > ul > li ul li a:hover, #main-menu > ul > li ul li a:focus {
  border-color: #aa2355;
}

#main-menu > ul > li ul li:focus a {
  color: #aa2355;
  font-weight: 700;
}

#main-menu > ul > li ul li.current-menu-item a {
  color: #aa2355;
  font-weight: 700;
}

#main-menu > ul > li ul li:last-child {
  margin-bottom: 0;
}

#main-menu > ul > li.open > a {
  border-bottom-color: #aa2355;
}

#main-menu > ul > li.open ul {
  display: block;
}

#mobile-menu {
  display: none;
}

#mobile-menu-toggle {
  position: absolute;
  top: .5rem;
  right: 0;
  width: 28px;
  height: 20px;
  z-index: 100;
}

#mobile-menu-toggle .hamburger,
#mobile-menu-toggle .hamburger:before,
#mobile-menu-toggle .hamburger:after {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: #fff;
  display: block;
  transition-duration: .3s;
  border-radius: 100vh;
  opacity: 1;
}

#mobile-menu-toggle .hamburger {
  top: 0;
}

#mobile-menu-toggle .hamburger:before {
  content: "";
  top: 8px;
}

#mobile-menu-toggle .hamburger:after {
  content: "";
  top: 16px;
}

#mobile-menu.open #mobile-menu-toggle {
  position: fixed;
  top: 2.625rem;
  right: 4.5vw;
}

#mobile-menu.open #mobile-menu-toggle .hamburger {
  top: 12px !important;
  right: 0;
}

#mobile-menu.open #mobile-menu-toggle .hamburger,
#mobile-menu.open #mobile-menu-toggle .hamburger:before,
#mobile-menu.open #mobile-menu-toggle .hamburger:after {
  top: 0;
  transform: rotate(45deg);
  background: #fff;
}

#mobile-menu.open #mobile-menu-toggle .hamburger:before,
#mobile-menu.open #mobile-menu-toggle .hamburger:after {
  transform: rotate(-90deg);
}

#mobile-menu.open #mobile-menu-toggle .hamburger:after {
  opacity: 0;
}

#mobile-menu-content {
  position: fixed;
  top: 0;
  right: 0;
  margin-right: -50%;
  width: 50%;
  height: 100vh;
  background: #aa2355;
  z-index: 1;
  overflow-y: auto;
  transition-duration: .5s;
}

#mobile-menu-content ul {
  margin: 2.625rem;
  list-style-type: none;
}

#mobile-menu-content ul li {
  margin-bottom: 1.5rem;
  list-style-type: none;
}

#mobile-menu-content ul li a {
  display: block;
  color: #fff;
  font-family: "Josefin Sans", sans-serif;
  font-weight: 300;
  text-decoration: none;
  font-size: 1.25rem;
}

#mobile-menu-content ul li a:hover,
#mobile-menu-content ul li.current-menu-ancestor > a,
#mobile-menu-content ul li.current-menu-item a {
  text-decoration: underline;
}

#mobile-menu-content ul li ul {
  margin: 1rem;
}

#mobile-menu-content ul li ul li {
  margin-bottom: .625rem;
}

#mobile-menu-content ul li ul li a {
  font-size: 1rem;
  line-height: 1.25rem;
}

#mobile-menu.open #mobile-menu-content {
  margin-right: 0;
}

/* Content */
.wrap {
  position: relative;
  width: 1520px;
  margin: 0 auto;
}

/* Hero */
#hero {
  position: relative;
}

#hero:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(36, 38, 90, 0.25);
  z-index: 3;
  pointer-events: none;
}

#hero .wrap {
  padding-top: 8vw;
  z-index: 5;
}

#hero .rj-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#hero .rj-slideshow .controls {
  z-index: 4;
}

#hero .rj-slideshow .controls .previous,
#hero .rj-slideshow .controls .next {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 0;
  color: #73809c;
  font-size: 6rem;
  line-height: .5;
  padding: .5rem 1rem;
  font-weight: 200;
  transition-duration: .2s;
}

#hero .rj-slideshow .controls .previous:hover, #hero .rj-slideshow .controls .previous:focus,
#hero .rj-slideshow .controls .next:hover,
#hero .rj-slideshow .controls .next:focus {
  background: rgba(255, 255, 255, 0.75);
  color: #aa2355;
}

#hero .rj-slideshow .controls .previous {
  left: 0;
}

#hero .rj-slideshow .controls .next {
  right: 0;
}

#hero .hero-text {
  color: #fff;
  padding: 7vw 0;
}

#hero .hero-text h1, #hero .hero-text h2, #hero .hero-text h3 {
  max-width: 24ch;
  color: #fff;
}

#hero .hero-text p {
  max-width: 43ch;
  margin-bottom: 3em;
}

body.home #hero .hero-text {
  padding-bottom: 12.5vw;
}

/* Services */
#services .wrap {
  text-align: center;
  padding: 5vw 0 4.5vw 0;
}

#services .wrap > *:last-child {
  margin-bottom: 0;
}

#services .service-items {
  position: relative;
}

#services .service-items .item {
  position: relative;
  display: block;
  height: 23vw !important;
}

#services .service-items .item .image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#services .service-items .item .image img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#services .service-items .item .text {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.6);
  text-align: center;
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 700;
  color: #000;
  height: 37%;
  padding: 0 1.75rem;
  min-height: 110px;
  transition-duration: .2s;
}

#services .service-items .item:hover .text, #services .service-items .item:focus .text {
  background: rgba(255, 255, 255, 0.8);
}

#services .service-items .buttons {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 90%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

#services .service-items .buttons button {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 0;
  color: #73809c;
  font-size: 6rem;
  line-height: .5;
  padding: .5rem 1rem;
  font-weight: 200;
  transition-duration: .2s;
  font-family: "Josefin Sans", sans-serif;
  border: none;
  cursor: pointer;
  outline: none;
  pointer-events: initial;
}

#services .service-items .buttons button:hover, #services .service-items .buttons button:focus {
  background: rgba(255, 255, 255, 0.75);
  color: #aa2355;
}

#services .service-items .buttons button.disabled {
  opacity: 0;
}

/* Gallery */
#gallery .wrap {
  padding: 5vw 0 4.5vw 0;
}

#gallery .wrap > *:last-child {
  margin-bottom: 0;
}

#gallery .gallery-items {
  position: relative;
}

#gallery .gallery-items .item {
  position: relative;
  display: block;
  height: 23vw !important;
}

#gallery .gallery-items .item .image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#gallery .gallery-items .item .image img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#gallery .gallery-items .buttons {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 90%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

#gallery .gallery-items .buttons button {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 0;
  color: #73809c;
  font-size: 6rem;
  line-height: .5;
  padding: .5rem 1rem;
  font-weight: 200;
  transition-duration: .2s;
  font-family: "Josefin Sans", sans-serif;
  border: none;
  cursor: pointer;
  outline: none;
  pointer-events: initial;
}

#gallery .gallery-items .buttons button:hover, #gallery .gallery-items .buttons button:focus {
  background: rgba(255, 255, 255, 0.75);
  color: #aa2355;
}

#gallery .gallery-items .buttons button.disabled {
  opacity: 0;
}

/* Prices */
#prices {
  position: relative;
  text-align: center;
}

#prices .wrap {
  padding: 10vw 0;
}

#prices:before {
  content: "";
  position: absolute;
  bottom: 3vw;
  left: 0;
  width: 20vw;
  height: 0;
  padding-bottom: 15vw;
  background: url(assets/images/kukkagrafiikka_pieni.png) no-repeat;
  background-size: contain;
}

/* Helmiais */
#helmiais {
  color: #fff;
  background-color: #b9b4bb;
  background-size: auto 100%;
  background-repeat: no-repeat;
  background-position: center right;
}

#helmiais h1, #helmiais h2, #helmiais h3 {
  color: #fff;
  max-width: 20ch;
}

#helmiais p {
  max-width: 43ch;
  margin-bottom: 3em;
}

#helmiais .wrap {
  padding: 5vw 0;
}

/* Products */
#products .product-items .item {
  display: flex;
  align-items: center;
  margin-bottom: 8rem;
}

#products .product-items .item .text {
  order: 1;
  flex: 0 0 50%;
  padding-right: 6rem;
}

#products .product-items .item .gallery {
  position: relative;
  order: 2;
  flex: 0 0 50%;
  overflow: hidden;
}

#products .product-items .item:nth-child(2n) .text {
  order: 2;
  padding-right: 0;
  padding-left: 6rem;
}

#products .product-items .item:nth-child(2n) .gallery {
  order: 1;
}

#products .product-items .item .gallery .gallery-item {
  position: relative;
  overflow: hidden;
}

#products .product-items .item .gallery .gallery-item img {
  width: 100%;
  height: 40vw;
  max-height: 500px;
  object-fit: cover;
}

#products .product-items .item .gallery .gallery-item .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 6vw;
  max-height: 100px;
  min-height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: rgba(255, 255, 255, .6);
  font-size: 1.125rem;
  line-height: 1.375rem;
  padding: 1rem 2rem;
}

#products .product-items .item .gallery .buttons {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

#products .product-items .item .gallery .buttons button {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 0;
  color: #73809c;
  font-size: 6rem;
  line-height: .5;
  padding: .5rem 1rem;
  font-weight: 200;
  transition-duration: .2s;
  font-family: "Josefin Sans", sans-serif;
  border: none;
  cursor: pointer;
  outline: none;
  pointer-events: initial;
}

#products .product-items .item .gallery .buttons button:hover, #products .product-items .item .gallery .buttons button:focus {
  background: rgba(255, 255, 255, 0.75);
  color: #aa2355;
}

#products .product-items .item .gallery .buttons button.disabled {
  opacity: 0;
}

/* Company & page content */
#company,
#page-content {
  position: relative;
  padding: 6vw 0 8vw 0;
  display: flex;
}

#company .image,
#page-content .image {
  position: relative;
  flex: 0 0 50%;
  max-height: 35vw;
}

#company .image img,
#page-content .image img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#company .video,
#page-content .video {
  position: relative;
  flex: 0 0 50%;
  padding-left: calc((100% - 1520px) / 2);
}

#company .text,
#page-content .text {
  padding-left: calc((100% - 1520px) / 2);
  flex: 0 0 50%;
  position: relative;
}

#company .text h1, #company .text h2, #company .text h3,
#page-content .text h1,
#page-content .text h2,
#page-content .text h3 {
  max-width: 20ch;
}

#company .text p,
#page-content .text p {
  max-width: 33vw;
}

#company .text p:last-of-type,
#page-content .text p:last-of-type {
  margin-bottom: 3em;
}

#company .text > *:last-child,
#page-content .text > *:last-child {
  margin-bottom: 0 !important;
}

#company .text {
  flex-basis: content;
  padding: 0 6vw 5.5vw 6vw;
}

#company .text:after {
  content: "";
  position: absolute;
  bottom: -3vw;
  left: 22vw;
  width: 28vw;
  height: 34vw;
  background: url(assets/images/kukkagrafiikka_iso.png) no-repeat;
  background-size: contain;
}

#company .text h1, #company .text h2, #company .text h3 {
  max-width: 15ch;
}

#company .text p {
  max-width: 28vw;
}

/* Contact form */
#contact-form {
  position: relative;
}

#contact-form .wrap {
  display: flex;
  padding: 5vw 0;
}

#contact-form .form {
  flex: 0 0 50%;
}

#contact-form .form .form-container {
  margin: 4vw 0;
}

#contact-form .form .form-container input[type="text"],
#contact-form .form .form-container input[type="tel"],
#contact-form .form .form-container input[type="number"],
#contact-form .form .form-container input[type="password"],
#contact-form .form .form-container input[type="email"],
#contact-form .form .form-container select,
#contact-form .form .form-container textarea {
  color: #000;
  border-color: #000;
}

#contact-form .form .form-container ::-webkit-input-placeholder {
  color: #000;
}

#contact-form .form .form-container ::-moz-placeholder {
  color: #000;
}

#contact-form .form .form-container :-ms-input-placeholder {
  color: #000;
}

#contact-form .form .form-container :-moz-placeholder {
  color: #000;
}

#contact-form:after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 24vw;
  height: 30vw;
  background: url(assets/images/kukkagrafiikka_iso.png) no-repeat;
  background-size: contain;
}

/* Staff */
#staff {
  position: relative;
}

#staff .staff-items {
  margin: 5vw 0;
  display: flex;
  flex-wrap: wrap;
}

#staff .staff-items .item {
  flex: 0 0 50%;
  display: flex;
  align-items: center;
  margin-bottom: 5vw;
}

#staff .staff-items .item .image {
  flex-shrink: 0;
  flex-grow: 0;
  width: 13vw;
  height: 13vw;
  border-radius: 50%;
  overflow: hidden;
  border: solid .625vw #e5e8e8;
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: auto 90%;
  background-image: url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' width='189.9px' height='211.2px' viewBox='0 0 189.9 211.2' style='overflow:visible;enable-background:new 0 0 189.9 211.2;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%23E5E8E8;%7D%0A%3C/style%3E%3Cdefs%3E%3C/defs%3E%3Cpath class='st0' d='M189.9,164.8l-22-7.8c-12.2-4.2-24.2-8.3-36.3-12.4c-0.5-0.2-0.9-0.3-1.4-0.5c-6.3-2-6.5-2-5.9-8.7 c0.3-3.3,1.5-6.5,2.5-9.8c2-6.6,4.2-13.2,6.3-19.8c0.2-0.6,0.4-1.3,0.8-1.8c5.5-7.5,7.2-16.3,8.3-25.3c0.2-1.7,0.3-3.6-0.2-5.2 c-2.8-8.2-1.2-16.3,0-24.4c3.6-23-10.7-43.7-33.8-47.9C94.9-1,81.8-0.6,69.4,5.5C53.9,13.2,44.3,31.9,47.8,50c1,5.1,1,10.4,1.5,15.6 c0.1,1.1,0,2.4-0.3,3.4c-3.5,12.4,0.3,23.4,6.1,34.1c0.7,1.3,1.3,2.7,1.8,4.2c1.6,5,2.7,10.1,4.6,14.9c2.4,6,2.7,12.2,2.4,18.5 c0,0.9-1.2,2.3-2.1,2.6c-15.4,5.5-30.9,10.9-46.3,16.4L0,165.4v45.8h87.2h15.1h87.6v-45.8h-0.5C189.6,165.2,189.7,165,189.9,164.8z' /%3E%3C/svg%3E%0A");
}

#staff .staff-items .item .image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#staff .staff-items .item .text {
  margin-left: 4vw;
}

#staff .staff-items .item .text > *:last-child {
  margin-bottom: 0;
}

#staff .staff-items .item:nth-last-child(1), #staff .staff-items .item:nth-last-child(2) {
  margin-bottom: 0;
}

/* Map contact */
#map-contact {
  position: relative;
  display: flex;
}

#map-contact .map {
  position: relative;
  flex: 0 0 50%;
  height: 30vw;
  background: #e5e8e8;
}

#map-contact .map iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#map-contact .text {
  flex: 0 0 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 6vw;
}

/* Footer contact */
#footer-contact {
  position: relative;
  padding: 6vw 0;
  color: #fff;
  background-size: cover;
  background-position: center;
}

#footer-contact .wrap {
  display: flex;
}

#footer-contact h1, #footer-contact h2, #footer-contact h3 {
  color: #fff;
}

#footer-contact .text {
  flex: 0 0 50%;
}

#footer-contact .text h1, #footer-contact .text h2, #footer-contact .text h3 {
  max-width: 22ch;
}

#footer-contact .text p {
  max-width: 44ch;
}

#footer-contact .form {
  flex: 0 0 50%;
  padding-left: 6vw;
}

.form-container nf-fields-wrap {
  display: block;
  font-size: 0;
  margin: 0 -2%;
}

.form-container nf-field > div {
  display: inline-block;
  width: 96%;
  margin: 0 2%;
}

.form-container nf-field:nth-child(2) > div,
.form-container nf-field:nth-child(3) > div,
.form-container nf-field:nth-child(4) > div,
.form-container nf-field:nth-child(5) > div,
.form-container nf-field:nth-child(6) > div {
  width: 46%;  
}

/* Otsikko */
.form-container nf-field:nth-child(9) > div,
.form-container nf-field:nth-child(15) > div,
.form-container nf-field:nth-child(21) > div {
  width: 16%;
}

/* Määrä */
.form-container nf-field:nth-child(10) > div,
.form-container nf-field:nth-child(16) > div,
.form-container nf-field:nth-child(22) > div {
  width: 13%;
}

/* Materiaali */
.form-container nf-field:nth-child(11) > div,
.form-container nf-field:nth-child(17) > div,
.form-container nf-field:nth-child(23) > div {
  width: 30%;
}

/* Väri */
.form-container nf-field:nth-child(12) > div,
.form-container nf-field:nth-child(13) > div,
.form-container nf-field:nth-child(18) > div,
.form-container nf-field:nth-child(19) > div,
.form-container nf-field:nth-child(24) > div,
.form-container nf-field:nth-child(25) > div {
  width: 25%;
}

.form-container nf-field > div.hr-container {
  width: 100%;
  opacity: 0;
  height: 0;
  border: none;
}

.form-container nf-field input[type="button"] {
  margin-top: 2rem;
}

input[type="text"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="email"],
select,
textarea {
  display: block !important;
  width: 100%;
  border: none;
  border-bottom: solid 2px #fff;
  background: none;
  outline: none;
  font-family: "Josefin Sans", sans-serif;
  font-size: 1.25rem;
  padding: .5rem 0;
  color: #fff;
  margin-bottom: 1rem !important;
}

textarea {
  border: solid 2px #fff;
  height: 130px !important;
  padding: .75rem;
}

select option {
  color: #000
}

select option:first-child {
  display: none;
}

.list-checkbox-wrap {
  margin-bottom: 1rem;
}

.list-checkbox-wrap input[type="checkbox"] {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.list-checkbox-wrap input[type="checkbox"] + label {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: 0 !important;
  cursor: pointer;
}

.list-checkbox-wrap input[type="checkbox"] + label::before {
  content: "";
  position: relative;
  top: 2px;
  display: inline-block;
  width: 1rem;
  height: 1rem;
  background: transparent;
  border: solid 1px #fff;
  margin-right: 0.5rem;
}

.list-checkbox-wrap input[type="checkbox"]:checked + label::before {
  background: #fff;
}

.list-select-wrap .nf-field-element {
  position: relative;
}

.list-select-wrap .nf-field-element select {
  padding-right: 2.5rem;
  cursor: pointer;
}

.list-select-wrap .nf-field-element::before {
  content: "\203a";
  color: #fff;
  position: absolute;
  top: 0;
  right: 0;
  height: 2rem;
  width: 2rem;
  font-size: 2rem;
  transform: rotate(90deg);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

::-webkit-input-placeholder {
  color: #fff;
}

::-moz-placeholder {
  color: #fff;
}

:-ms-input-placeholder {
  color: #fff;
}

:-moz-placeholder {
  color: #fff;
}

/* Footer */
footer {
  position: relative;
  background: #24265a;
  color: #fff;
  padding: 5rem 0;
}

footer .wrap {
  height: 100%;
}

footer #sitemap {
  position: relative;
  z-index: 2;
}

footer #sitemap-menu ul {
  margin: 0;
}

footer #sitemap-menu ul li {
  list-style-type: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

footer #sitemap-menu ul li a {
  font-size: 1.875rem;
  font-weight: 700;
  text-decoration: none;
  transition-duration: .2s;
  white-space: nowrap;
}

footer #sitemap-menu ul li a:hover, footer #sitemap-menu ul li a:focus {
  color: #aa2355;
}

footer #sitemap-some ul {
  display: flex;
  margin: 0;
}

footer #sitemap-some ul li {
  position: relative;
  list-style-type: none;
  padding: 0;
  margin-right: 1rem;
  width: 2rem;
  height: 2rem;
  text-indent: -9999px;
  overflow: hidden;
}

footer #sitemap-some ul li a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 100% 100%;
  border-radius: 10rem;
  transition-duration: .2s;
}

footer #sitemap-some ul li.facebook a {
  background-image: url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' width='29.6px' height='29.5px' viewBox='0 0 29.6 29.5' style='overflow:visible;enable-background:new 0 0 29.6 29.5;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%23FFFFFF;%7D%0A%3C/style%3E%3Cdefs%3E%3C/defs%3E%3Cg%3E%3Cpath class='st0' d='M29.6,14.8C29.6,6.6,23,0,14.8,0C6.6,0,0,6.6,0,14.8c0,7.4,5.4,13.5,12.5,14.6V19.1H8.7v-4.3h3.8v-3.3 c0-3.7,2.2-5.8,5.6-5.8c1.6,0,3.3,0.3,3.3,0.3v3.6h-1.9c-1.8,0-2.4,1.1-2.4,2.3v2.8h4.1l-0.7,4.3h-3.5v10.4 C24.2,28.4,29.6,22.2,29.6,14.8'/%3E%3C/g%3E%3C/svg%3E%0A");
}

footer #sitemap-some ul li.facebook a:hover, footer #sitemap-some ul li.facebook a:focus {
  background-image: url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' width='29.6px' height='29.5px' viewBox='0 0 29.6 29.5' style='overflow:visible;enable-background:new 0 0 29.6 29.5;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%23aa2355;%7D%0A%3C/style%3E%3Cdefs%3E%3C/defs%3E%3Cg%3E%3Cpath class='st0' d='M29.6,14.8C29.6,6.6,23,0,14.8,0C6.6,0,0,6.6,0,14.8c0,7.4,5.4,13.5,12.5,14.6V19.1H8.7v-4.3h3.8v-3.3 c0-3.7,2.2-5.8,5.6-5.8c1.6,0,3.3,0.3,3.3,0.3v3.6h-1.9c-1.8,0-2.4,1.1-2.4,2.3v2.8h4.1l-0.7,4.3h-3.5v10.4 C24.2,28.4,29.6,22.2,29.6,14.8'/%3E%3C/g%3E%3C/svg%3E%0A");
}

footer #footer-logo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url(assets/images/logo.svg) no-repeat;
  background-position: center center;
  background-size: 28vw auto;
  z-index: 1;
}

footer #footer-copyright {
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 2;
}

/* Misc */
div.clear {
  clear: both;
  height: 0px;
}

.alignleft {
  float: left;
  margin: 0 2.5rem 2.5rem 0;
}

.alignright {
  float: right;
  margin: 0 0 2.5rem 2.5rem;
}

.aligncenter {
  margin: 2.5rem auto;
}

.video-container {
  width: 100%;
}

.video-container .inner {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
}

.video-container .inner iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.gbtn.disabled {
  display: none;
}

/* Ninja forms */
.nf-before-form-content,
.nf-field-label,
.nf-after-field {
  display: none;
}

.nf-field-container {
  margin-bottom: 0 !important;
}

.nf-error .ninja-forms-field {
  border: none !important;
  border-bottom: solid 2px #aa2355 !important;
}

.nf-form-errors .nf-error-msg {
  margin-top: 1rem;
  background: rgba(255, 255, 255, 0.5);
  padding: 1rem .5rem;
  color: #aa2355;
  text-align: center;
  font-weight: 700;
}

/* Media queries */
@media only screen and (min-width: 1920px) {
  .button,
  input[type="button"] {
    font-size: 1.5rem;
    padding: 1.25rem 2.25rem 1.125rem 2.25rem;
  }
  .button.large,
  input[type="button"].large {
    font-size: 1.75rem;
    padding: 1.75rem 5rem 1.5rem 5rem;
  }
  header {
    padding-top: 4.125rem;
  }
  #hero .wrap {
    padding-top: 155px;
  }
  #hero .hero-text {
    padding: 135px 0;
  }
  body.home #hero .hero-text {
    padding-bottom: 240px;
  }
  #services .wrap {
    padding: 6rem 0 5.5rem 0;
  }
  #services .service-items .item {
    height: 440px !important;
  }
  #gallery .wrap {
    padding: 0 0 5.5rem 0;
  }
  #gallery .gallery-items .item {
    height: 440px !important;
  }
  #prices:before {
    bottom: 3.5rem;
    width: 384px;
    padding-bottom: 288px;
  }
  #prices .wrap {
    padding: 12rem 0;
  }
  #helmiais .wrap {
    padding: 6rem 0;
  }
  #company,
  #page-content {
    padding: 7.25rem calc((100% - 1520px) / 2) 14.5rem calc((100% - 1520px) / 2);
  }
  #company .image,
  #page-content .image {
    display: flex;
    justify-content: flex-end;
    max-height: 670px;
  }
  #company .image + .text,
  #page-content .image + .text {
    padding: 6.75rem 7.25rem;
  }
  #company .text p,
  #page-content .text p {
    max-width: 52ch;
  }
  #company .text:after {
    width: 537px;
    height: 652px;
    left: calc((100vw - 1520px) / 2 + 215px);
  }
  #contact-form .wrap {
    padding: 6rem 0;
  }
  #contact-form .form .form-container {
    margin: 4.75rem 0;
  }
  #contact-form:after {
    width: 460px;
    height: 575px;
  }
  #staff .staff-items {
    margin: 6rem 0;
  }
  #staff .staff-items .item {
    margin-bottom: 6rem;
  }
  #staff .staff-items .item .image {
    width: 270px;
    height: 270px;
    border-width: 10px;
  }
  #staff .staff-items .item .text {
    margin-left: 100px;
  }
  #map-contact {
    padding: 0 calc((100% - 1520px) / 2);
    margin-bottom: 6rem;
  }
  #map-contact .map {
    max-height: 576px;
  }
  #map-contact .text {
    padding-left: 7rem;
    padding-right: 0;
  }
  #footer-contact {
    padding: 7.25rem 0;
  }
  #footer-contact .form {
    padding-left: 7.25rem;
  }
  footer #footer-logo {
    background-size: 537px 130px;
  }
}

@media only screen and (max-width: 1700px) {
  h1 {
    font-size: 3.5rem;
    line-height: 3.75rem;
  }
  h2 {
    font-size: 2.75rem;
    line-height: 3rem;
  }
  h3 {
    font-size: 2rem;
    line-height: 2.5rem;
  }
  .wrap {
    width: auto;
    margin: 0 5.5vw;
  }
  #page-content .text {
    padding-left: 5.5vw;
  }
  #company .video,
  #page-content .video {
    padding-left: 5.5vw;
  }
  footer #sitemap-menu ul li a {
    font-size: 1.5rem;
  }
}

@media only screen and (max-width: 1440px) {
  .button,
  input[type="button"] {
    font-size: 1.125rem;
    padding: 1rem 2rem .875rem 2rem;
  }
  .button.large,
  input[type="button"].large {
    font-size: 1.375rem;
    padding: 1.25rem 3.5rem;
  }
  #services .service-items .item {
    height: 400px !important;
  }
  #services .service-items .item .text {
    font-size: 1.75rem;
    padding: 0 1.75rem;
  }
  #gallery .gallery-items .item {
    height: 400px !important;
  }
  footer #footer-logo {
    background-position: top right;
  }
}

@media only screen and (max-width: 1200px) {
  body, html {
    font-size: 15px;
  }
  header .site-logo {
    width: 280px;
  }
  #hero .wrap {
    padding-top: 100px;
  }
  #hero .rj-slideshow .controls .previous,
  #hero .rj-slideshow .controls .next {
    padding: .5rem .25rem;
  }
  #hero .hero-text {
    padding: 5.5rem 0;
  }
  body.home #hero .hero-text {
    padding-bottom: 10rem;
  }
  #services .service-items .buttons button {
    padding: .5rem .25rem;
  }
  #contact-form .form {
    flex-basis: 75%;
  }
  #staff .staff-items .item {
    flex-basis: 100%;
    margin-bottom: 5vw;
  }
  #staff .staff-items .item .image {
    width: 140px;
    height: 140px;
  }
  #staff .staff-items .item:nth-last-child(2) {
    margin-bottom: 5vw;
  }
  #staff .staff-items .item .text {
    margin-left: 3vw;
  }
  #products .product-items .item .text {
    padding-right: 4rem;
  }  
  #products .product-items .item:nth-child(2n) .text {
    padding-right: 0;
    padding-left: 4rem;
  }
  footer {
    padding: 5vw 0;
  }
}

@media only screen and (max-width: 992px) {
  h1 {
    font-size: 3rem;
    line-height: 3.25rem;
  }
  h2 {
    font-size: 2.25rem;
    line-height: 2.75rem;
  }
  h3 {
    font-size: 1.75rem;
    line-height: 2rem;
  }
  header {
    padding-top: 2.25rem;
  }
  #main-menu {
    display: none;
  }
  #mobile-menu {
    display: block;
  }
  .wrap {
    margin: 0 4vw;
  }
  #hero .rj-slideshow .controls {
    display: none;
  }
  body.home #hero .hero-text {
    padding-bottom: 7rem;
  }
  #services .service-items .item {
    height: 350px !important;
  }
  #services .service-items .item .text {
    height: 25%;
    font-size: 1.5rem;
    line-height: 2rem;
    padding: 0 1rem;
  }
  #services .service-items .buttons {
    display: none;
  }
  #gallery .gallery-items .item {
    height: 350px !important;
  }
  #gallery .gallery-items .buttons {
    display: none;
  }
  #prices:before {
    width: 24vw;
    padding-bottom: 19vw;
  }
  #company,
  #page-content {
    flex-wrap: wrap;
    padding: 0 0 5vw 0;
  }
  #company .image,
  #page-content .image {
    flex-basis: calc(100% - 8vw);
    margin-left: 4vw;
    height: 40vw;
    order: 2;
  }
  #company .video,
  #page-content .video {
    flex-basis: calc(100% - 8vw);
    padding-left: 4vw;
    order: 2;
  }
  #company .video .video-container,
  #page-content .video .video-container {
    max-width: 500px;
  }
  #company .text,
  #page-content .text {
    flex-basis: 100%;
    order: 1;
    padding: 5vw 17vw 5vw 4vw;
  }
  #company .text h1, #company .text h2, #company .text h3, #company .text p,
  #page-content .text h1,
  #page-content .text h2,
  #page-content .text h3,
  #page-content .text p {
    max-width: none;
  }
  #company .text:after {
    left: auto;
    right: 0;
    bottom: 2rem;
  }
  #map-contact {
    flex-wrap: wrap;
  }
  #map-contact .map {
    flex-basis: 100%;
    height: 40vw;
  }
  #map-contact .text {
    flex-basis: 100%;
    padding-top: 5vw;
    padding-bottom: 5vw;
  }
  #products .product-items .item {
    flex-wrap: wrap;
    margin-bottom: 4rem;
  }
  #products .product-items .item .text {
    padding: 0;
    flex-basis: 100%;
    order: 1;
  }  
  #products .product-items .item:nth-child(2n) .text {
    order: 1;
    padding-left: 0;
  }
  #products .product-items .item .gallery {
    flex-basis: 100%;
  }
  #products .product-items .item .gallery .gallery-item img {
    height: 260px;
  }
  #footer-contact .wrap {
    flex-wrap: wrap;
  }
  #footer-contact .wrap .text {
    flex-basis: 100%;
    margin-bottom: 4vw;
  }
  #footer-contact .wrap .form {
    flex-basis: 100%;
    padding-left: 0;
  }
  footer #footer-logo {
    background-size: 275px auto;
  }
}

@media only screen and (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
    line-height: 2.75rem;
  }
  h2 {
    font-size: 2rem;
    line-height: 2.25rem;
  }
  h3 {
    font-size: 1.5rem;
    line-height: 1.75rem;
  }
  #hero .hero-text {
    padding: 4rem 0;
  }
  body.home #hero .hero-text {
    padding-bottom: 5rem;
  }
  #company .text p:last-of-type,
  #page-content .text p:last-of-type {
    margin-bottom: 2rem;
  }
  #staff .staff-items .item .image {
    border-width: 1vw;
  }
}

@media only screen and (max-width: 600px) {
  #wpadminbar {
    position: fixed;
  }
}

@media only screen and (max-width: 576px) {
  body, html {
    font-size: 14px;
  }
  h1 {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }
  h2 {
    font-size: 1.75rem;
    line-height: 2rem;
  }
  h3 {
    font-size: 1.375rem;
    line-height: 1.5rem;
  }
  header .site-logo {
    width: 220px;
  }
  #mobile-menu-content {
    width: 100%;
    margin-right: -100%;
  }
  #hero .wrap {
    padding-top: 60px;
  }
  #hero .hero-text {
    padding: 4rem 0;
  }
  body.home #hero .hero-text {
    padding-bottom: 4rem;
  }
  #services .service-items .item {
    height: 60vw !important;
  }
  #services .service-items .item .text {
    min-height: 80px;
  }
  #gallery .gallery-items .item {
    height: 60vw !important;
  }
  #prices:before {
    display: none;
  }
  #helmiais .wrap {
    padding: 7vw 0;
  }
  #company .text {
    padding-top: 7vw;
    padding-bottom: 7vw;
  }
  #contact-form .wrap {
    padding-top: 7vw;
    padding-bottom: 7vw;
  }
  #contact-form .form {
    flex-basis: 100%;
  }
  #contact-form:after {
    display: none;
  }
  #staff .staff-items .item .image {
    width: 90px;
    height: 90px;
  }
  #map-contact .text {
    padding-top: 7vw;
    padding-bottom: 7vw;
  }
  #footer-contact {
    padding-top: 7vw;
    padding-bottom: 7vw;
  }
  .form-container {
    display: flex;
    flex-direction: column;
  }
  .form-container nf-field {
    float: none !important;
    order: 1;
    flex-basis: 100%;
    width: 100%;
  }
  .form-container nf-field:first-child {
    order: 2;
  }
  .form-container nf-field:last-child {
    order: 3;
  }
  .form-container nf-field:last-child input[type="button"] {
    margin: 1rem 0 2rem 0;
  }
  footer {
    padding: 2.5rem 0;
  }
  footer #sitemap {
    padding-top: 6rem;
    text-align: center;
  }
  footer #sitemap #sitemap-some ul {
    justify-content: center;
  }
  footer #footer-logo {
    background-position: top center;
    background-size: 250px auto;
  }
  footer #footer-copyright {
    position: relative;
    bottom: auto;
    right: auto;
    text-align: center;
    margin-top: 4rem;
  }

  /* Otsikko */
  .form-container nf-field:nth-child(9) > div,
  .form-container nf-field:nth-child(15) > div,
  .form-container nf-field:nth-child(21) > div {
    width: 100%;
    margin-top: 1rem;
  }

  .form-container nf-field:nth-child(9) p,
  .form-container nf-field:nth-child(15) p,
  .form-container nf-field:nth-child(21) p {
    margin-bottom: 0;
  }

  /* Määrä */
  .form-container nf-field:nth-child(10) > div,
  .form-container nf-field:nth-child(16) > div,
  .form-container nf-field:nth-child(22) > div {
    width: 14%;
  }

  /* Materiaali */
  .form-container nf-field:nth-child(11) > div,
  .form-container nf-field:nth-child(17) > div,
  .form-container nf-field:nth-child(23) > div {
    width: 37%;
  }

  /* Väri */
  .form-container nf-field:nth-child(12) > div,
  .form-container nf-field:nth-child(13) > div,
  .form-container nf-field:nth-child(18) > div,
  .form-container nf-field:nth-child(19) > div,
  .form-container nf-field:nth-child(24) > div,
  .form-container nf-field:nth-child(25) > div {
    width: 37%;
  }
}
