/*
Theme Name: Crydet
Theme URI: https://www.crydet.com/
Description: Crydet theme
Author: Vili Maunula
Version: 1.1
*/

/* CSS Reset */
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
body {
  line-height: 1;
}
ol,
ul {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* ---------- */
/* Crydet    */
/* ---------- */
body {
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
  background: #fff;
  line-height: 160%;
  color: #000;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Lato", sans-serif;
  font-weight: bold;
  margin-bottom: 20px;
}
strong {
  font-weight: 800;
}
em {
  font-style: italic;
}
p {
  margin-bottom: 20px;
}
a[href^="tel"] {
  text-decoration: inherit;
  color: inherit;
}
a {
  color: #0e4e96;
}
a:hover {
  color: #111;
}
a.button {
  display: inline-block;
  background: #0e4e96;
  color: #fff;
  padding: 8px 25px;
  border: none;
  text-decoration: none;
  cursor: pointer;
  margin-bottom: 10px;
  border-radius: 4px;
}
a.button:hover {
  opacity: 0.7;
}
figcaption {
  text-align: center;
  font-size: 100%;
  font-style: italic;
  line-height: 120%;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
.wp-block-table table {
  margin-bottom: 20px;
}
.wp-block-table table td {
  padding: 10px 15px 10px 15px;
  border-color: #ccc;
}

/* Header */
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header {
  background: #0e4e96;
  color: #fff;
}
.header-main {
  display: flex;
  align-items: center;
}
.header-logo {
  width: 250px;
  height: auto;
  vertical-align: middle;
}
.header-name {
  font-size: 50px;
  font-variant: small-caps;
}

/* Menu */
ul.sub-menu {
  border-width: 1px 1px 1px 1px;
  border-style: solid;
  border-color: #0e4e96;
}

/* Front Page */
.fp-hero {
  background-repeat: no-repeat;
  background-color: #f2f5fa;
  color: #111;
  font-size: 18px;
  border-top: 2px solid #fff;
  background-size: cover;
}
.fp-hero .fp-section h1 {
  font-size: 40px;
  text-transform: uppercase;
}
.fp-hero .fp-section h1 span {
  display: inline;
  background: #0e4e96;
  color: #fff;
  box-decoration-break: clone;
  box-shadow: 20px 0 0 #0e4e96, -20px 0 0 #0e4e96;
  border-radius: 8px;
}
.fp-hero-lead,
.fp-hero-after {
  color: #fff;
  font-weight: 400;
  text-shadow: #000000 1px 0 6px;
}
.fp-hero-lead {
  margin-bottom: 10px;
}
.fp-hero-after {
  margin-top: 20px;
}
.page-hero h1,
.page-content h1 {
  font-size: 36px;
  line-height: 40px;
  margin-bottom: 30px;
}
.fp-dark-bg {
  background: #eee;
}
.fp-white-bg {
  background: #fff;
}
.fp-color-bg {
  background: #0e4e96;
  color: #fff;
}
.fp-section {
  padding: 100px 40px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}
.fp-section h1,
.fp-section h2,
.fp-section h3,
.page-content h2 {
  font-size: 30px;
}
.fp-section h2 a {
  color: #111;
  text-decoration: none;
}
.fp-image img {
  border-radius: 3px;
}
.fp-center,
.page-center {
  max-width: 750px;
  margin: 0 auto;
  text-align: center;
}
.fp-center h3 {
  margin-bottom: 25px;
}
.fp-contact p {
  font-size: 130%;
}
.fp-company-details {
  text-align: center;
}
.fp-company-details h4 {
  font-size: 130%;
  color: #0e4e96;
  margin: 0;
}
.fp-company-details hr {
  width: 20%;
  height: 3px;
  background: #0e4e96;
  margin: 20px auto 30px auto;
  border: none;
}
.fp-company-details .fp-detail-large {
  font-size: 150%;
  font-weight: 800;
  margin: 40px 0 20px 0;
}
.fp-company-details p.fp-detail-text {
  width: 75%;
  margin: 0 auto;
}
.fp-company-details p.fp-detail-img {
  margin-bottom: 10px;
}
.fp-company-details p.fp-detail-img img {
  max-width: 50%;
  height: auto;
  margin: 0 auto;
}

/* Page */
.page-content h2 {
  font-size: 140%;
  margin-top: 40px;
}
.page-contact-button {
  margin-top: 30px;
}
.product-page-contact-button {
  text-align: center;
  padding-bottom: 80px;
}
.product-page-contact-button .button {
  font-size: 24px;
  padding: 20px 40px;
}
.page-products {
  background: #efefef;
  padding: 100px 5%;
  text-align: center;
}
.page-products h3 {
  font-size: 150%;
  color: #0e4e96;
  margin: 0;
}
.page-products hr {
  width: 40px;
  height: 3px;
  background: #0e4e96;
  margin: 20px auto 60px auto;
  border: none;
}
.page-products-menu a {
  box-sizing: border-box;
  padding: 0 30px;
  text-decoration: none;
  font-size: 110%;
  font-weight: 800;
}
.page-products-menu a img {
  width: 100%;
  height: auto;
  margin-bottom: 15px;
}
.page-products-menu a:hover {
  text-decoration: underline;
}

/* Contact */
.contact-container {
  text-align: center;
  width: 100%;
}
.contact-container h1 {
  font-size: 36px;
  margin-bottom: 50px;
}
.contact-container h2 {
  font-size: 30px;
  margin-bottom: 50px;
}
.contact-section {
  display: inline-block;
  vertical-align: top;
  font-size: 18px;
}
.contact-section i {
  line-height: 80px;
  font-size: 50px;
  color: #333;
}
.team-header {
  margin-top: 80px;
}

/* Footer */
.footer {
  background: #333;
  padding: 100px 0;
  color: #fff;
  border-top: 4px solid #fff;
}
.footer a {
  color: #fff;
  text-decoration: none;
}
.footer a:hover {
  text-decoration: underline;
}
.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: top;
  flex-direction: row;
  flex-wrap: wrap;
}
.footer-logo .logo {
  width: 200px;
  height: auto;
  margin-bottom: 10px;
}
.footer-menu div {
  width: 100%;
}

/* Quote floater */
#quote-floater {
  position: fixed;
  bottom: 10px;
  min-width: 200px;
  background: #fff;
  border-radius: 10px;
}

.quote-floater-content {
  padding: 12px 20px;
  text-align: center;
  cursor: pointer;
  border-radius: 10px;
  -webkit-mask: linear-gradient(-60deg, #000 30%, #0005, #000 70%) right/300%
    100%;
  background-repeat: no-repeat;
  animation: quote-floater-bg 10s infinite;
  background: #0e4e96;
  color: #fff;
  border: 3px solid #fff;
}

@keyframes quote-floater-bg {
  50% {
    -webkit-mask-position: left;
  }
  100% {
    -webkit-mask-position: left;
  }
}

#quote-form-wrapper {
  display: none;
  width: 100%;
  height: 100%;
  position: fixed;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
}

.quote-form-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  -webkit-transform: translateX(-50%) translateY(-50%);
  -moz-transform: translateX(-50%) translateY(-50%);
  -ms-transform: translateX(-50%) translateY(-50%);
  transform: translateX(-50%) translateY(-50%);
  background: #fff;
  border: 10px solid #0e4e96;
  width: 800px;
  max-width: 100%;
  height: 90%;
  border-radius: 6px;
}

.quote-form-dialog-header {
  position: absolute;
  height: 100px;
  left: 0;
  top: 0;
  width: 100%;
  background: #eee;
}

.quote-form-dialog-header h2 {
  font-size: 200%;
  padding-left: 50px;
  line-height: 100px;
}

.quote-form-dialog-close {
  position: fixed;
  top: 0px;
  right: 0px;
  width: 40px;
  height: 40px;
  line-height: 40px;
  background: #0e4e96;
  color: #fff;
  text-align: center;
  font-weight: 800;
  cursor: pointer;
  border-radius: 0 0 0 6px;
}

.quote-form-dialog-content {
  box-sizing: border-box;
  width: calc(100%);
  height: calc(100% - 100px);
  padding: 50px;
  position: absolute;
  top: 100px;
  overflow: auto;
}

.quote-form-dialog label {
  font-weight: 600;
}

.quote-form-dialog input,
.quote-form-dialog textarea,
.quote-form-dialog select {
  border-radius: 4px;
}

/* Cookie consent */
#cookie-consent {
  z-index: 999;
  min-height: 20px;
  padding: 10px 20px;
  background: #3d71ad;
  overflow: hidden;
  position: fixed;
  color: #fff;
  bottom: 0px;
  right: 0px;
  display: none;
  left: 0;
  text-align: center;
  font-size: 15px;
}
#cookie-consent div {
  padding: 5px 0 0;
}
#cookie-consent a {
  color: #fff;
  display: inline-block;
  padding: 0 5px;
}
#cookie-consent a:hover {
  color: #ddd;
}
#cookie-consent a#cookie-button {
  display: inline-block;
  color: #0e4e96;
  font-size: 1em;
  font-weight: bold;
  background: #fff;
  text-decoration: none;
  cursor: pointer;
  padding: 2px 20px;
  border-radius: 4px;
}
#cookie-consent a#cookie-button:hover {
  background: #0e4e96;
  color: #fff;
}

/* Contact Form 7 */

.grecaptcha-badge {
  visibility: hidden;
}

h2.requestQuote {
  padding-top: 40px;
  padding-bottom: 10px;
  border-top: 1px solid #ccc;
}

.quoteForm {
  display: none;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="number"],
.wpcf7 textarea,
.wpcf7 select {
  background-color: #fafafa;
  color: #000;
  border: 1px solid #666;
  padding: 8px 8px;
  font-size: 100%;
  width: 300px;
  max-width: 100%;
  margin-top: 3px;
}

.wpcf7 select {
  width: auto;
  padding-right: 30px;
}

.wpcf7 textarea {
  width: 500px;
  max-width: 100%;
  font-family: Tahoma, sans-serif;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="number"]:focus,
.wpcf7 textarea:focus .wpcf7 select:focus {
  border: 1px solid #0e4e96;
  background: #e3edf9;
}

.wpcf7 input[type="submit"] {
  background: #0e4e96;
  border: none;
  color: #fff;
  padding: 10px 40px;
  font-size: 100%;
  font-weight: 800;
}

.wpcf7 input[type="submit"]:hover {
  opacity: 0.7;
}

.wpcf7 input.narrowInput {
  width: 100px;
  max-width: 100%;
  margin-right: 3px;
}

/* Mobile */
@media only screen and (max-width: 800px) {
  .desktop-menu {
    display: none;
  }
  .mobile-menu-button {
    display: block;
    height: 90px;
  }
  .mobile-menu-button i {
    font-size: 30px;
    line-height: 90px;
  }
  .mobile-menu-button a {
    color: #fff;
  }
  #mobile-menu {
    display: none;
    border-top: 2px solid #fff;
    padding: 30px 40px;
    background: #0e4e96;
  }
  #mobile-menu div ul li.dropdown > a {
    display: none;
  }
  #mobile-menu a {
    display: block;
    text-align: center;
    color: #fff;
    text-decoration: none;
    padding: 20px 0;
  }
  .page-container p {
    hyphens: auto;
  }

  /* Front page */
  .fp-hero {
    background-attachment: scroll;
    background-position: bottom center;
  }
  .fp-hero .fp-section h1 {
    line-height: 70px;
  }
  .fp-hero .fp-section h1 span {
    padding: 7px 0 7px 0;
  }
  .fp-left,
  .fp-right {
    width: 100%;
    text-align: center;
  }
  .fp-image {
    order: -1;
    margin-bottom: 40px;
    padding: 0 5%;
    text-align: center;
  }
  .fp-image img {
    max-width: 100%;
    height: auto;
  }
  .fp-company-details {
    width: 100%;
    padding-bottom: 60px;
  }

  /* Quote */
  #quote-floater {
    left: 50%;
    transform: translate(-50%, 0);
  }
  .quote-form-dialog {
    height: 100%;
  }

  /* Page */
  .page-hero-container {
    padding-bottom: 20px;
    border-bottom: 1px solid #ccc;
  }
  .page-hero-image {
    text-align: center;
    padding: 30px 0;
  }
  .page-hero-image img {
    width: 100%;
    height: auto;
  }
  .page-hero-text {
    text-align: center;
  }
  .page-hero-text p {
    font-weight: 800;
    font-style: italic;
  }
  .page-container h1 {
    margin-top: 40px;
  }
  .page-container {
    padding: 40px 0 0 0;
  }
  .page-content {
    padding: 0 40px;
  }
  .page-mobile-image {
    width: 100%;
    margin: 0 auto;
    text-align: center;
  }
  .page-mobile-image img {
    max-width: 100%;
    height: auto;
  }
  .page-sidebar {
    padding: 80px 40px 0 40px;
    text-align: center;
  }
  .page-sidebar img {
    width: 50%;
    height: auto;
  }
  .page-products-menu a {
    display: block;
    width: 100%;
    margin-bottom: 40px;
  }
  .page-company-details {
    display: none;
  }

  /* Contact */
  .contact-section {
    width: 100%;
    margin-bottom: 40px;
  }
  .team-member {
    box-sizing: border-box;
    width: 80%;
    margin: 0 auto 40px auto;
  }
  .team-image img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
  }

  /* Footer */
  .footer-container div {
    width: 100%;
    text-align: center;
  }
  .footer-menu,
  .footer-crydet {
    margin-top: 40px;
  }

  .footer-menu a {
    display: block;
    padding: 5px 0;
  }
}

/* Desktop */
@media only screen and (min-width: 801px) {
  #mobile-menu,
  .mobile-menu-button {
    display: none;
  }
  .desktop-menu div {
    display: block;
    line-height: 90px;
  }
  .desktop-menu div ul li {
    display: inline-block;
    vertical-align: middle;
  }
  .desktop-menu div ul li a {
    display: inline-block;
    height: 90px;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    padding: 0 30px;
    margin: 0;
  }
  .desktop-menu div ul li a:hover {
    background: #fff;
    color: #0e4e96;
  }
  .desktop-menu div ul li.dropdown:hover a {
    background: #fff;
    color: #0e4e96;
  }
  .desktop-menu div ul ul {
    display: none;
  }
  .desktop-menu div ul li:hover > ul {
    display: block;
    position: absolute;
    background-color: #fff;
    width: 450px;
    z-index: 1;
  }
  .desktop-menu div ul ul li {
    display: block;
  }
  .desktop-menu div ul ul li a {
    color: #0e4e96;
    display: block;
    height: 70px;
    line-height: 70px;
  }
  .desktop-menu div ul ul li a:hover {
    background: #eee !important;
  }

  /* Front page */
  .fp-hero {
    background-attachment: fixed;
    background-position: center right;
  }
  .fp-hero .fp-section h1 {
    line-height: 70px;
  }
  .fp-hero .fp-section h1 span {
    padding: 10px 0 7px 0;
  }
  .fp-left {
    width: 50%;
    display: flex;
    align-items: center;
  }
  .fp-right {
    width: 50%;
    display: flex;
    align-items: center;
  }
  .fp-company-details {
    width: 33%;
  }
  .fp-image img {
    width: 90%;
    height: auto;
  }
  .fp-right.fp-image img {
    margin-left: auto;
  }

  /* Quote */
  #quote-floater {
    right: 10px;
  }

  /* Page */
  .page-hero {
    background: linear-gradient(#ffffff, #eeeeee);
    padding: 50px 0 50px 0;
  }
  .page-hero-container {
    display: flex;
  }
  .page-hero-image {
    width: 40%;
  }
  .page-hero-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
  }
  .page-hero-text {
    width: 60%;
    padding-top: 40px;
    padding-left: 60px;
  }
  .page-hero-text h1 {
    font-size: 38px;
  }
  .page-hero-text p {
    font-size: 18px;
    line-height: 150%;
  }
  .page-container {
    padding: 80px 40px;
  }
  .page-mobile-image {
    display: none;
  }
  .page-container {
    display: flex;
  }
  .page-content {
    width: 75%;
    padding-left: 60px;
    order: 2;
  }
  .page-sidebar {
    width: 25%;
    order: 1;
  }
  .page-sidebar p {
    text-align: center;
  }
  .page-sidebar h4 {
    font-size: 130%;
    color: #0e4e96;
    margin: 0;
    text-align: center;
  }
  .page-sidebar hr {
    width: 20%;
    height: 3px;
    background: #0e4e96;
    margin: 20px auto 10px auto;
    border: none;
  }
  .page-sidebar img {
    max-width: 100%;
    margin-bottom: 40px;
  }
  .page-company-details {
    margin-bottom: 40px;
    padding-top: 0px;
    border: none;
  }
  .page-detail-img img {
    margin-bottom: 0;
    max-width: 50%;
    height: auto;
  }
  .product-page {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
    order: 1;
  }
  .page-hero-text p {
    width: 80%;
  }
  .product-page .page-certificate {
    display: block;
    margin: 100px auto 0 auto;
    max-width: 250px;
    height: auto;
  }
  .page-products-menu a {
    display: inline-block;
    width: 20%;
    vertical-align: top;
  }
  .about-sidebar p {
    text-align: left;
    margin-bottom: 10px;
  }
  .about-sidebar img {
    width: 80%;
    height: auto;
  }

  /* Contact */
  .contact-section {
    width: 250px;
  }
  .team-member {
    display: inline-block;
    margin: 0 10px 30px 10px;
  }
  .team-image {
    width: 200px;
    margin-bottom: 20px;
  }
  .team-image img {
    width: 100%;
    height: auto;
  }

  /* Footer */
  .footer-container > div {
    width: 33%;
  }
}

/* iOS touch devices */
@supports (-webkit-touch-callout: none) {
  .fp-hero {
    background-attachment: scroll !important;
  }
}
