/*
Theme Name: Automatic Solution
Theme URI: https://wordpress.org/themes/twentytwenty/
Author: Lena Sędkiewicz
Author URI: https://msedkiewicz.pl/
Description: Theme for Automatic Solution coded based on previous theme graphical design.
Version: 1.0
Requires PHP: 8.0.26
*/

/* Basic styles */

@import url("https://fonts.googleapis.com/css?family=Lato:300,400,700&subset=latin-ext");

* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  color: #212433;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Lato", sans-serif;
  word-wrap: break-word;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-transform: uppercase;
}
h1 {
  font-size: 48px;
}
h2 {
  font-size: 36px;
}
h3 {
  font-size: 30px;
}
h4 {
  font-size: 24px;
}
h5 {
  font-size: 20px;
}
h6 {
  font-size: 18px;
}
p {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
  margin: 10px 0;
}

body.mobile-nav-open {
  height: 100vh;
  overflow: hidden;
}

.clearfix::before {
  content: "";
  display: table;
}

.clearfix::after {
  content: "";
  display: block;
  clear: both;
}

/* Containers */

.container-small {
  max-width: 721px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-big {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-full {
  max-width: 100%;
}

/* Main reusable elements styles*/

.title {
  color: #000;
  letter-spacing: 0.2em;
}

.page-header {
  display: flex;
  width: 100%;
  background-color: #000000;
  align-items: center;
  background-image: url("./assets/img/slaid-bg.png");
  background-repeat: no-repeat;
  background-position: right top;
  background-size: 600px;
}

.page-header h1 {
  max-width: 530px;
  color: #fff;
  margin: 60px 250px;
  font-weight: 300;
  font-size: 43px;
  text-transform: uppercase;
}

.page-content {
  margin-top: 25px;
}

ul {
  padding: 0;
  list-style-type: none;
  text-align: left;
}

ol {
  padding: 0 0 0 25px;
  text-align: left;
}

ul li {
  padding-left: 35px;
  position: relative;
  font-size: 18px;
  margin: 25px 0;
}

ol li {
  padding-left: 20px;
  position: relative;
  font-size: 18px;
  margin: 25px 0;
}

ul li::before {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent #f6a600;
  position: absolute;
  top: 50%;
  margin-top: -6px;
  left: 6px;
}

a {
  color: #212433;
}
a:hover {
  color: #f6a600;
  font-weight: 600;
}

blockquote {
  font-size: 18px;
  font-style: italic;
  width: 600px;
  max-width: 90%;
  margin: 0.25em auto;
  padding: 0.25em 40px;
  line-height: 1.45;
  position: relative;
  background: #f2f1f0;
}

blockquote:before {
  display: block;
  content: "\201C";
  font-size: 80px;
  position: absolute;
  left: -10px;
  top: -10px;
  color: #7a7a7a;
}

blockquote cite:before {
  content: "\2014 \2009";
}

@media screen and (max-width: 996px) {
  .page-header h1 {
    text-align: center;
    font-size: 30px;
    margin: 60px 0;
    width: 100%;
  }
}

@media screen and (max-width: 500px) {
  .title {
    font-size: 26px;
  }
}

.button {
  background-color: #f6a600;
  border: none;
  color: white;
  font-weight: 500;
  padding: 15px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  border-radius: 8px;
}

.button:hover {
  font-weight: 700;
  background-color: #000;
}

/* Header */
.logo-wrapper {
  width: 200px;
  float: left;
  text-align: right;
  height: 75px;
  position: relative;
}

.logo-wrapper > a {
  display: block;
  position: absolute;
  z-index: 3;
  top: -39px;
}

.logo-wrapper img {
  width: 100%;
}

.logo-wrapper .nav-btn-toggle {
  cursor: pointer;
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
}

.logo-wrapper .nav-btn-toggle div.bar {
  width: 35px;
  height: 4px;
  background: #000000;
  transition: 0.4s;
}

.logo-wrapper .nav-btn-toggle div.bar:nth-child(2) {
  margin: 5px 0;
}

.logo-wrapper .nav-btn-toggle.open .bar:nth-child(2) {
  opacity: 0;
}

.logo-wrapper .nav-btn-toggle.open .bar:first-child {
  transform: rotate(-45deg) translate(-5px, 5px);
}

.logo-wrapper .nav-btn-toggle.open .bar:last-child {
  transform: rotate(45deg) translate(-8px, -7px);
}

.logo-wrapper .mobile-nav {
  height: 100%;
  background: #f6a600;
  width: 100%;
  position: fixed;
  top: 0;
  display: none;
  z-index: 5;
  overflow-y: scroll;
}

.logo-wrapper .mobile-nav ul {
  position: absolute;
  top: 30vh;
  left: 45%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 0;
  text-align: center;
}

.logo-wrapper .mobile-nav ul#menu-language-switcher {
  top: 60vh;
}

.logo-wrapper .mobile-nav ul li {
  display: block;
}

.logo-wrapper .mobile-nav ul li.active a {
  font-weight: normal;
}

.logo-wrapper .mobile-nav ul li a {
  color: #fff;
  font-size: 25px;
  padding: 30px 0;
  text-decoration: none;
  display: block;
  font-weight: 300;
}

.logo-wrapper .mobile-nav .close {
  position: absolute;
  width: 60px;
  height: 60px;
  cursor: pointer;
  margin: 5px 5px 0 0;
  transition: transform 0.5s;
  top: 0;
  transform: rotate(45deg);
  z-index: 2;
  right: 20px;
}

.logo-wrapper .mobile-nav .close::before {
  content: " ";
  height: 30px;
  position: absolute;
  width: 2px;
  background: #fff;
  top: 50%;
  left: 50%;
  margin-top: -15px;
  margin-left: -1px;
}

.logo-wrapper .mobile-nav .close::after {
  content: " ";
  width: 30px;
  position: absolute;
  height: 2px;
  background: #fff;
  top: 50%;
  left: 50%;
  margin-top: -1px;
  margin-left: -15px;
}

.nav-wrapper {
  /* width: calc((100% - 200px) - 146px); */
  float: left;
}

.nav-wrapper ul {
  margin: 0;
  padding: 0;
}

.nav-wrapper ul li {
  display: inline-block;
  max-width: 160px;
  vertical-align: middle;
  text-align: center;
  margin: 0;
  padding: 0 6px;
}

.nav-wrapper ul li.active a,
.nav-wrapper ul li:hover a {
  color: #f6a600;
}

.nav-wrapper ul li a {
  padding: 25px 0;
  display: block;
  font-size: 12px;
  text-decoration: none;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  transition: color 0.2s ease-in-out;
}

.nav-wrapper ul li:last-of-type {
  background-color: #f6a600;
  border: none;
  color: white;
  margin-left: 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  border-radius: 8px;
  padding: 0 7px;
}

.nav-wrapper ul li:last-of-type a:hover {
  color: #000;
  font-weight: 700;
}

.lang-switch {
  float: right;
}

.lang-switch ul {
  padding: 0;
  margin: 0;
}

.lang-switch ul li {
  display: inline-block;
  margin: 0;
}

.lang-switch ul li a {
  padding: 34px 0;
  display: block;
  white-space: nowrap;
  font-size: 13px;
  text-decoration: none;
  text-transform: uppercase;
  margin-right: 40px;
  font-weight: 400;
  color: #ceced0;
  letter-spacing: 0.3em;
  transition: color 0.2s ease-in-out;
}

.lang-switch ul li:hover a {
  color: #f6a600;
}

.nav-wrapper ul li::before,
.lang-switch ul li::before {
  display: none;
}

@media screen and (max-width: 1115px) {
  .nav-wrapper ul li {
    margin-left: 30px;
  }
}

@media screen and (max-width: 996px) {
  .nav-wrapper,
  .lang-switch {
    display: none;
  }

  .nav-wrapper ul li a {
    display: none;
  }

  .logo-wrapper {
    text-align: left;
    width: 100%;
  }

  .logo-wrapper > a {
    position: relative;
    overflow: hidden;
    top: auto;
    max-width: 121px;
  }

  .logo-wrapper .nav-btn-toggle {
    display: block;
  }
}

/* Footer with contact info */

.pre-footer {
  margin-top: 133px;
  position: relative;
}

.pre-footer .logo-wrapper {
  text-align: left; /* check after adding map!*/
}
.pre-footer .logo-wrapper img {
  position: absolute;
  bottom: 100%;
  top: -135px;
  z-index: 3;
}

.pre-footer .title {
  color: #fff;
  letter-spacing: 0.2em;
  font-weight: 300;
  margin: 75px 0;
}

.pre-footer .left,
.pre-footer .map-container #map {
  min-height: 600px;
}

.pre-footer .left .contact-info-container .contact-info-inner {
  align-items: start;
}

.pre-footer .logo-wrapper img {
  position: absolute;
  bottom: 100%;
  top: -123px;
  z-index: 3;
}

.pre-footer .left,
.pre-footer .right {
  /* float: left; */
  width: 50%;
  position: relative;
}

.pre-footer .right {
  width: 50%;
  position: absolute;
  top: 0;
  margin-left: 50%;
}
.pre-footer .left {
  background-color: #000;
  min-height: 420px;
}

.pre-footer .left .contact-info-container {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(100% + 100px);
  height: 100%;
  background: #000;
  transform: skewX(-10deg);
  transform-origin: top;
  z-index: 2;
  overflow: hidden;
}

.pre-footer .left .contact-info-container .contact-info-inner {
  height: 100%;
  transform: skewX(10deg);
  transform-origin: top;
  display: flex;
  align-items: center;
  justify-content: center;

  background-image: url("./assets/img/footer-bg.png");
  background-repeat: no-repeat;
  background-position: 15vw -35px;
}

.pre-footer .left .contact-info {
  line-height: 24px;
  max-width: 480px;
  margin: 0 auto;
  padding: 20px;
}

.pre-footer .left .contact-info p,
.pre-footer .left .contact-info span {
  color: #fff;
}

.pre-footer .left .contact-info .address {
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.pre-footer .left .contact-info .address .small:not(:first-of-type) {
  letter-spacing: normal;
  text-transform: none;
}

.pre-footer .left .contact-info .small {
  font-size: 14px;
}

.pre-footer .left .contact-info .uppercase {
  text-transform: uppercase;
}

.pre-footer .left .contact-info .lowercase {
  text-transform: lowercase;
}

.pre-footer .left .contact-info .phone-email {
  margin: 16px 0;
}

.pre-footer .left .contact-info .phone-email p {
  font-size: 18px;
  text-transform: uppercase;
  margin: 0;
  color: #f6a600;
  letter-spacing: 0.2em;
}

.pre-footer .left .contact-info .details p {
  margin: 0;
  font-size: 14px;
}

.pre-footer .map-container #map {
  min-height: 420px;
}

footer .created-by {
  display: flex;
  align-items: center;
  text-transform: uppercase;
  font-size: 10px;
}

footer .created-by img {
  margin-left: 10px;
  margin-right: 5px;
}

footer .container-full {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
}

footer .container-full p {
  margin: 0;
  letter-spacing: 0.2em;
  font-size: 10px;
  text-transform: uppercase;
}

@media screen and (max-width: 1014px) {
  .pre-footer .left,
  .pre-footer .right {
    width: 100%;
  }
  .pre-footer .right {
    position: inherit;
    margin-left: 0;
  }

  .pre-footer .left .contact-info-container {
    width: 100%;
    transform: skewX(0deg);
  }

  .pre-footer .left .contact-info-container .contact-info-inner {
    transform: skewX(0deg);
  }
}

@media screen and (max-width: 996px) {
  .pre-footer .logo-wrapper img {
    width: 121px;
    top: -75px;
  }
}

@media screen and (max-width: 500px) {
  footer .container-full {
    padding: 20px 10px;
  }
}

@media screen and (max-width: 425px) {
  .pre-footer .left .contact-info .phone-email p {
    letter-spacing: normal;
  }
}

/* ACF fields styles*/

.full-width {
  margin-top: 55px;
  margin-bottom: 65px;
  text-align: center;
}

.description-wrapper {
  position: relative;
  display: flex;
  overflow: hidden;
}

.description-wrapper-cwi,
.description-wrapper-iwc {
  width: 61%;
}

.description-wrapper-iwc {
  order: 2;
}

.img-wrapper-cwi {
  width: 49%;
  height: 100%;
  position: absolute;
  top: 0;
  right: 0;
  z-index: -1;
}

.img-wrapper-iwc {
  order: 1;
  width: calc(50% - 100px);
  z-index: -1;
}
.description-container-cwi {
  width: calc(100% + 100px);
  background: #f2f1f0;
  transform: skewX(-10deg);
  transform-origin: top;
  height: 100%;
}

.description-container-iwc {
  width: calc(100% + 120px);
  background: #f2f1f0;
  transform: skewX(10deg);
  transform-origin: top;
  height: 100%;
  margin-left: -120px;
}

.description-inner-cwi {
  transform: skewX(10deg);
  transform-origin: top;
  width: 90%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.description-inner-iwc {
  transform: skewX(-10deg);
  transform-origin: top;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 100px;
}

.description-cwi,
.description-iwc {
  max-width: 650px;
  display: inline-block;
  font-size: 0;
  padding: 20px;
  text-align: left;
}

.img-wrapper-cwi .img,
.img-wrapper-iwc .img {
  min-height: 160px;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  height: 100%;
  width: 100%;
}

@media screen and (max-width: 920px) {
  .description-wrapper {
    display: block;
  }
  .description-container-cwi,
  .description-container-iwc {
    transform: none;
    width: 100%;
  }
  .description-container-iwc {
    margin-left: 0;
  }
  .description-wrapper-cwi,
  .img-wrapper-cwi,
  .description-wrapper-iwc,
  .img-wrapper-iwc {
    width: 100%;
  }

  .img-wrapper-cwi,
  .img-wrapper-iwc {
    position: relative;
  }
  .description-cwi,
  .description-iwc {
    display: block;
    text-align: center;
    max-width: 100%;
  }
  .description-inner-cwi,
  .description-inner-iwc {
    display: block;
    transform: none;
    width: 100%;
  }
  .description-inner-iwc {
    padding-left: 0;
  }
}

@media screen and (min-width: 920px) and (max-width: 1100px) {
  .description-cwi {
    margin-left: 40px;
  }
}

.services .title,
.partners .title {
  margin-top: 40px;
  text-align: center;
  padding: 34px 0;
}

.services-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.services-container .service {
  max-width: 250px;
  text-align: center;
  padding: 0 25px;
  margin-bottom: 30px;
}

.services-container .service .title {
  font-size: 12px;
  letter-spacing: 0.2em;
  margin-top: 10px;
}

.service-description {
  color: #000;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 12px;
}

.partners-logotypes-img-wrapper {
  max-width: 960px;
  font-size: 0;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
}
.partners-logotypes-img-wrapper img {
  max-width: 200px;
  padding: 10px;
  height: 100%;
}
/* Additional page styles */

.single-page {
  max-width: 960px;
}

/* Blog main page */

.container-blog {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}
.container-post {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.blog-post-item {
  flex-basis: 25%;
  padding: 15px;
  /* code for spreading content in one item */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* end of code */
}
.blog-post-h2 {
  font-size: 30px;
  padding: 0 5px;
  text-align: center;
}
.blog-post-h2 a {
  color: #212433;
  text-decoration: none;
  word-break: break-word;
}

.blog-post-thumbnail {
  max-width: 300px;
  max-height: 200px;
  overflow: hidden;
  height: 100%;
  width: 100%;
  text-align: center;
  margin: 0 auto;
}
.blog-post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pagination {
  text-align: center;
  margin-top: 20px;
  font-size: 18px;
}

.pagination a {
  color: #212433;
  text-decoration: none;
}

.pagination a:hover {
  padding: 7px;
  border: 1px solid black;
  border-radius: 8px;
}

.pagination .page-numbers {
  padding: 0 5px;
}
.pagination .current {
  background-color: #f6a600;
  border: none;
  color: white;
  padding: 8px;
  text-align: center;
  margin: 4px 2px;
  border-radius: 8px;
}

@media all and (max-width: 400px) {
  .container-post {
    display: block;
  }
  h2 {
    font-size: 20px;
  }
}
/* Post page and post ACF elements styles */

.post-thumbnail {
  text-align: center;
  padding-top: 30px;
}

.post-thumbnail img {
  max-width: 920px;
  width: auto;
  height: 100%;
}
.wp-block-embed__wrapper {
  text-align: center;
}

.wp-block-embed__wrapper > iframe {
  width: 90%;
  height: 50vh;
  max-height: 500px;
}

@media all and (max-width: 768px) {
  .wp-block-embed__wrapper > iframe {
    max-height: 300px;
  }
}

body .post-nav .prev .arrow {
  background-image: url(http://dsg.mmatch.atthouse.pl/wp-content/themes/dsg/assets/img/prev.png);
  right: 100%;
}

body .post-nav .next .arrow {
  background-image: url(http://dsg.mmatch.atthouse.pl/wp-content/themes/dsg/assets/img/next.png);
  left: 100%;
}

/* 404 page styles */

h1.not-found {
  text-align: center;
  margin: 60px auto;
}

div.not-found {
  text-align: center;
  padding: 20px 0;
  line-height: 2;
  font-size: 20px;
}

/* Slider styling */

.slideshow-container {
  max-width: 960px;
  position: relative;
  margin: 0 auto;
}

.slide {
  display: none;
}

.slide > img {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
}

.slide-prev,
.slide-next {
  cursor: pointer;
  color: #fff;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  background-color: rgba(0, 0, 0, 0.8);
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

.slide-next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.slide-text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {
    opacity: 0.6;
  }
  to {
    opacity: 1;
  }
}
