/*
Theme Name: Halminen.net
Author: Mainostoimisto Halminen Oy
Author URI: https://halminen.net
Version: 2.0
*/

@import url('https://use.fontawesome.com/releases/v6.2.0/css/all.css');

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  background-color: #FAFAFA!important;
  font-family: var(--wp--preset--font-family--primary)!important;
  margin: 0;
  padding: 0;
  color: black;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--wp--preset--font-family--header);
}

.highlight {
  color: var(--wp--preset--color--primary);
}

.hnet-notice-bar {
  align-items: center;
  background-color: var(--hnet-notice-background, #2376BC);
  color: var(--hnet-notice-text, #FFFFFF);
  display: flex;
  gap: 16px;
  justify-content: center;
  padding: 12px 20px;
  position: relative;
  z-index: 1000;
}

.hnet-notice-bar[hidden] {
  display: none !important;
}

.hnet-notice-bar-dismissed .hnet-notice-bar {
  display: none !important;
}

.hnet-notice-bar__message {
  flex: 0 1 auto;
  line-height: 1.4;
  text-align: center;
}

.hnet-notice-bar__close {
  align-items: center;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 30px;
  font: inherit;
  font-size: 22px;
  height: 30px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 30px;
}

.hnet-notice-bar__close:hover,
.hnet-notice-bar__close:focus-visible {
  background: rgba(255, 255, 255, 0.18);
}

@media (max-width: 600px) {
  .hnet-notice-bar {
    gap: 10px;
    padding: 10px 12px;
  }
}

.top {
  max-width: 1400px;
  width: 90%;
  margin: auto;
  display: flex;
  flex-direction: row;
  align-content: center;
  flex-wrap: wrap;
  padding: 75px 10px;
  align-items: center;
}

.top #left #sitelogo {
  width: 250px;
  height: auto;
}

.top #right {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.top .mega-header {
  font-size: 17px;
  padding-bottom: 15px;
  text-wrap: nowrap;
}

#mega-menu-wrap-ylapalkki #mega-menu-ylapalkki > li.mega-servicemenu > ul.mega-sub-menu {
  background-image: url("/wp-content/themes/halminenv2/assets/img/Kenno.svg");
  background-repeat: no-repeat;
  background-size: 350px auto;
  background-position: right -60px top -50px;
}

.hero {
  align-items: center!important;
}

.hero-texts {
  padding-right: 10%;
}


/* BANNERI SISÄLTÖSIVUILLE */
.banner {
  max-width: 1400px;
  width: 90%;
  padding: 10px;
  height: 450px;
  margin: auto;
  background-size: cover!important;
  color: white;
  position: relative;
  margin-bottom: 75px;
}

.banner #bannerimg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.banner h1 {
  font-size: 60px;
  margin: 15px 0;
}

.banner #bannertexts .overline {
  text-transform: uppercase;
  font-weight: bold;
  font-family: var(--wp--preset--font-family--header);
  margin: 0;
}

.banner #bannertexts {
  max-width: 900px;
  width: 90%;
  padding: 20px 80px;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: center;
}

main {
  max-width: 1400px;
  width: 90%;
  padding: 10px;
  margin: auto;
  margin-bottom: 50px;
  min-height: 200px;
}

/* SIVUN PÄÄSISÄLTÖ */

.main .services .wp-block-column {
  border-radius: 7px;
  border: 1px solid #DDDDDD;
}

.services {
  margin: auto;
  justify-content: center;
  align-items: stretch;
}

.services > .wp-block-column {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  align-self: stretch !important; /* ohittaa editorin pystytasauksen */
  padding: 40px !important;
  min-height: 390px;
  overflow: hidden;
}

.services .wp-block-column > * {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: 0;
}

.services .wp-block-column .wp-block-image {
  margin: 0 0 40px;
}

.services .wp-block-column > h2,
.services .wp-block-column > h3,
.services .wp-block-column > h4 {
  margin: 0 0 20px;
}

.services .wp-block-column > p {
  margin: 0;
  hyphens: auto; /* tavuttaa pitkät sanat siististi */
}

.services .wp-block-column .wp-block-buttons {
  margin-top: auto;   /* napit aina kortin alareunaan */
  padding-top: 30px;  /* vähimmäisväli tekstiin */
  width: 100%;
  display: flex;
}

.main .custombox {
  border-radius: 7px;
  border: 1px solid #DDDDDD;
}

footer {
  max-width: 1400px;
  width: 90%;
  margin: auto;
  padding: 50px 10px;
}

.footer_content {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-top: 40px;
  gap: 40px;
}

.footer_content h3 {
  font-size: 17px;
  margin-bottom: 15px;
}

.footer_content nav ul {
  list-style-type: none;
  padding: 0;
}

.footer_content nav ul li a {
  text-decoration: none;
  color: black;
}

.footerlogos {
  margin-top: 75px;
  display: flex;
  justify-content: center;
  align-content: center;
  gap: 30px;
}

.footerlogos img {
  height: 100px;
  width: auto;
}

/* MOBIILIKÄYTTÖ */


@media (max-width: 1400px) {
  .services .wp-block-column {
    padding: 20px!important;
  }
}

@media (max-width: 1000px) {
  .hero-img {
    flex-basis: 30%;
  }

  .hero-texts {
    padding-right: 30px;
  }

  .hero-texts h1 {
    font-size: 50px!important;
  }

  .hero {
    align-items: baseline!important;
  }

  .mobile-columns {
    gap: 3rem!important;
  }

  .footer_content {
    flex-direction: column;
  }

  .services {
    flex-direction: column;
  }

  #mega-menu-wrap-ylapalkki #mega-menu-ylapalkki > li.mega-servicemenu > ul.mega-sub-menu {
    background-image: none;
  }

  .banner #bannertexts {
    width: 90%;
    padding: 30px;
  }

  .top #right {
    flex-direction: row-reverse;
    justify-content: flex-start;
    gap: 40px;
  }

  .mega-menu {
    padding: 15px!important;
  }

  .top .mega-header {
    margin-bottom: 0;
  }

  .mega-servicemenu .mega-menu-column {
    margin: 12px 0!important;
  }

  .mega-servicemenu .mega-menu-row {
    margin-left: -40px!important;
  }
}

@media (max-width: 800px) {
  .hero {
    flex-direction: column-reverse;
  }

  .hero-img {
    display: none;
  }

  .hero-texts {
    padding-right: 0px;
  }

  .mobile-columns {
    flex-direction: column;
  }

  .mobileimg {
    width: 60%;
    margin: 15px auto 25px auto!important;
  }

  .hidemobile {
    display: none;
    flex-basis: 0;
  }
}

@media (max-width: 660px) {
  .cta-button {
    display: none;
  }

  .top #left #sitelogo {
    width: 175px;
  }

  .top {
    padding: 50px 10px;
  }

  .hero-texts h1 {
    font-size: 40px!important;
  }
}