/*
Theme Name: 2M BUDOWNICTWO
Theme URI: /
Author: WEB-TECH: Strony internetowe Kraków
Author URI: https://webtech.com.pl
Description: Motyw dedykowany
Version: 1.0
License: Do not copy
*/
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

/*  MAIN CODE  */
:root {
  --dark-background: #191919;
  --gentle-background: #f8f8f8;
}

.sgcc {
  color: white;
}

html {
  scroll-behavior: smooth;
}

#photoblocks-6 .pb-block {
  border: 1px solid var(--dark-background);
}


* {
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  text-decoration: none;
  box-sizing: border-box;
  position: relative;
  margin: 0;
  padding: 0;
  font-size: 15px;
  color: black;
  line-height: 25px;
}

.copy_mark{
    top: -5px;
    right: -5px;
}

.frame {
  position: absolute;
  border: 1px solid white;
}

/* width */
::-webkit-scrollbar {
  width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
  background: var(--dark-background);
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: var(--gentle-background);
  border-radius: 20px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: var(--dark-background);
  border: 1px solid white;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 5px;
}

a {
  text-decoration: none;
  font-weight: bold;
}

p {
  margin: 10px 0;
}

.container {
  max-width: 1280px;
  margin: auto;
}

/*  MAIN CODE  */
/* HEADER  */
#masthead {
  background: white;
  padding: 20px 0;
  transition: .5s;
}


#masthead .mobile_menu {
  display: none;
}

.sticky {
  position: fixed !important;
  width: 100%;
  top: 0;
  z-index: 11;
  padding: 10px !important;
  transition: .5s;
  border: 1px solid lightgray;
}

.sticky .logo hr,
.sticky .logo .company_name,
.sticky .logo .company_desc {
  display: none;
}

#masthead>.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#masthead>.container .logo {
  display: flex;
  align-items: center;
}


#masthead>.container .logo img {
  height: 40px;
  display: block;
  margin-right: 20px;
  transition: .5s;
}

#masthead>.container .logo .company_name {
  font-size: 25px;
  font-weight: 300;
  margin: 0;
  text-transform: uppercase;
}

#masthead>.container .logo .company_desc {
  font-size: 12px;
  font-weight: 300;
  margin: 0;
  text-transform: uppercase;
}

#masthead>.container .logo hr {
  border: 1px solid black;
  margin: 2px 0;
}

#masthead>.container .menu {
  flex: 1 1 auto;
}

#masthead>.container .menu #menu-glowne {
  display: flex;
  justify-content: end;
  align-items: center;
}

#masthead>.container .menu #menu-glowne>li:last-of-type a {
  border: 1px solid;
  padding: 10px 20px;
  background: black;
  font-weight: 400;
  color: white;
}


#masthead>.container .menu #menu-glowne li {
  padding: 10px 20px;
  margin: 0 20px;
}

#masthead>.container .menu #menu-glowne li {
  padding: 10px 20px;
}

#masthead>.container .menu #menu-glowne a {
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 300;
}

#masthead>.container .menu #menu-glowne li.current-menu-item a {
  font-weight: bold;
}

#masthead>.container .menu #menu-glowne>li>a:before {
  content: "";
  width: 0%;
  height: 1px;
  position: absolute;
  display: block;
  background-color: black;
  bottom: -5px;
  transition: 1s;
}

#masthead>.container .menu #menu-glowne>li:hover>a:before {
  width: 100%;
}

#masthead>.container .menu #menu-glowne li.menu-item-has-children:after {
  content: '\25B6';
  transform: rotate(90deg);
  display: inline-block;
  font-size: 12px;
  color: #191919;
  position: absolute;
  right: 0;
}

#masthead>.container .menu #menu-glowne li.menu-item-has-children:hover .sub-menu {
  display: block;
}

#masthead>.container .menu #menu-glowne .sub-menu {
  display: none;
  position: absolute;
  z-index: 11;
  background: white;
  backdrop-filter: blur(1px);
  left: -76px;
  width: 250px;
  border-radius: 20px;
  padding: 10px 0;
}

#masthead>.container .menu #menu-glowne .sub-menu li {
  text-align: center;
  transition: 1s;
}

#masthead>.container .menu #menu-glowne .sub-menu li:hover {
  background-color: #191919;
}

#masthead>.container .menu #menu-glowne .sub-menu li:hover a {
  color: white;
}

#masthead>.container .menu #menu-glowne .sub-menu a {
  font-size: 12px;
}

/* HEADER  */
/* HOME */
.hero {
  height: 70vh;
  overflow: hidden;
  background-image: url('./assets/hero/1.webp');
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

.hero .text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -65%);
  text-align: center;
  z-index: 4;
  padding: 50px;
  border-radius: 20px;
  color: white;
  letter-spacing: 5px;
}

.hero .text h2 {
  font-size: 40px;
  font-weight: 200;
  margin-bottom: 20px;
  text-transform: uppercase;
  line-height: 55px;
  color: inherit;
}

.hero .text h3 {
  font-size: 20px;
  font-weight: 200;
  text-transform: uppercase;
  color: inherit;
}

.first,
.second {
  padding: 100px 0;
}

.first>.container,
.second>.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.first>.container div,
.second>.container div {
  flex: 1 1 45%;
}

.first>.container div img,
.second>.container div img {
  width: 100%;
  max-height: 700px;
  object-fit: cover;
}

.first .frame,
.second .frame {
  width: 90%;
  height: 90%;
  z-index: 1;
  left: 5%;
  top: 4%;
}

.first .frame,
.second .frame {
  width: 90%;
  height: 90%;
  z-index: 1;
  left: 5%;
  top: 4%;
}

.offer h2,
.gallery h2,
.first h2,
.second h2 {
  font-size: 35px;
  font-weight: 300;
  padding: 0;
  margin: 0 0 30px 0;
  line-height: 45px;
  text-transform: uppercase;
}

.about_text .backdrop_text {
  font-size: 45px;
  color: #cecece;
  position: absolute;
  top: 25px;
  left: -20px;
  opacity: .2;
}

.second .backdrop_text {
  left: -26px;
  top: -39px;
  line-height: 1;
}

.first .about_text,
.second .about_text {
  padding: 50px;
}

.offer {
  padding: 100px 0;
  background: url('./assets/hero/1.webp');
  background-attachment: fixed;
  background-position: 100% 100%;
  background-size: cover;
}

.offer h2 {
  text-transform: uppercase;
  color: white;
  text-align: center;
  font-weight: 300;
  margin-bottom: 50px;
}

.offer>.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.offer>.container>div {
  flex: 1 1 10%;
  height: 200px;
  margin: 10px;
}

.offer>.container>div .frame {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid lightgray;
  transform-style: preserve-3d;
  background: rgb(255 255 255 / 20%);
  backdrop-filter: blur(1px);
}

.offer>.container>div .frame h3 {
  transform: translateZ(20px);
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 300;
  color: white;
  background: black;
  padding: 10px 20px;
}

/* HOME */
/* PAGE  */
.page_header {
  height: 200px;
  background-color: var(--gentle-background);
}

.page_header>.container {
  display: flex;
  align-items: center;
  height: 100%;
  justify-content: center;
}

.page_header>.container h1 {
  font-size: 35px;
  text-transform: uppercase;
  font-weight: 300;
}

.page_content {
  margin: 50px 0;
}

.page_content .second .about_text {
  margin-left: 80px;
}

.page_content .second {
  background-color: var(--gentle-background);
}

.page_content .gallery {
  padding: 100px 0;
}

.page_content .gallery h2 {
  text-align: center;
  margin-bottom: 40px;
}

.page_content .about_text h2 {
  margin-bottom: 10px;
  font-size: 30px;
}

.page_content .about_text h3 {
  font-size: 20px;
  font-weight: 300;
  margin: 10px 0;
}

.page_content ul {
  list-style: disc;
  padding-left: 15px;
}

/* PAGE  */
/* SINGLE POST  */
.post_header {
  height: 200px;
  background-color: var(--gentle-background);
}

.post_header>.container {
  display: flex;
  align-items: center;
  height: 100%;
  justify-content: center;
}

.post_header>.container h1 {
  font-size: 35px;
  text-transform: uppercase;
  font-weight: 300;
}

.single-post .main_image {
  margin: 40px 0;
  overflow: hidden;
}

.single-post .main_image img {
  width: 100%;
  height: auto;
  max-height: 1000px;
  object-fit: cover;
  transition: 1s;
}

.single-post .main_content p *,
.single-post .main_content p {
  font-size: 16px !important;
}

.single-post .main_image:hover img {
  transform: rotateZ(3deg) scale(1.1);
}

/* SINGLE POST  */
/* POSTS  */
.page-id-8 .page_content .all_posts a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 50px 0 20px 0;
  box-shadow: 6px 5px 20px -10px lightgrey;
  transition: 1s;
}

.page-id-8 .page_content .all_posts a:hover {
  box-shadow: 6px 5px 20px 0px lightgrey;
}

.page-id-8 .page_content .all_posts a>div:nth-of-type(1) {
  flex: 1 1 35%;
  overflow: hidden;
}

.page-id-8 .page_content .all_posts a>div:nth-of-type(2) {
  flex: 1 1 65%;
  padding: 20px;
}

.page-id-8 .page_content .all_posts img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: 1s;
}

.page-id-8 .all_posts a:hover img {
  transform: rotateZ(3deg) scale(1.1);
}

.page-id-8 .page_content .all_posts .frame {
  width: 90%;
  height: 85%;
  border: 1px solid white;
  z-index: 10;
  left: 5%;
  top: 6%;
}

.page-id-8 .page_content .all_posts h2 {
  font-size: 30px;
  font-weight: 300;
  margin: 0;
}

.page-id-8 .page_content .all_posts p {
  font-weight: 300;
}

.page-id-8 .page_content .all_posts button i {
  color: white;
  transition: 1s;
}

.page-id-8 .page_content .all_posts button {
  padding: 5px 20px;
  border: none;
  outline: none;
  background: black;
  color: white;
  cursor: pointer;
  transition: 1s;
  border: 1px solid var(--dark-background)
}

.page-id-8 .page_content .all_posts button:hover i {
  color: var(--dark-background);
  margin-left: 10px;
}

.page-id-8 .page_content .all_posts button:hover {
  background-color: transparent;
  border: 1px solid var(--dark-background);
  color: var(--dark-background);
}

.page-id-16 .contact_wrapper {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.page-id-16 .contact_wrapper>div {
  flex: 1 1 45%;
}

.page-id-16 .contact_wrapper .map {
  filter: grayscale(100%);
}

.page-id-16 .contact_wrapper i {
  margin-right: 5px;
}

.page-id-16 .contact_wrapper div.left {
  margin-right: 20px;
}

.page-id-16 .contact_wrapper div.left a {
  display: block;
  margin: 10px 0;
}

.page-id-16 .contact_wrapper div.left h2 {
  margin: 5px;
  font-size: 25px;
  font-weight: 300;
}

.page-id-16 .contact_wrapper div.right textarea,
.page-id-16 .contact_wrapper div.right input {
  padding: 5px;
  border: 1px solid lightgray;
  width: 70%;
}

.page-id-16 .contact_wrapper div.right label {
  text-transform: uppercase;
}

.page-id-16 .contact_wrapper div.right label span {
  margin-top: 5px;
  display: block;
}

.page-id-16 .contact_wrapper div.right input[type="submit"] {
  padding: 5px 20px;
  border: none;
  outline: none;
  background: black;
  color: white;
  cursor: pointer;
  transition: 1s;
  border: 1px solid var(--dark-background);
  width: 200px;
}

.page-id-16 .contact_wrapper div.right input[type="submit"]:hover {
  background-color: transparent;
  border: 1px solid var(--dark-background);
  color: var(--dark-background);
}



.page-id-15 .offer_pages_container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.page-id-15 .offer_pages_container a {
  flex: 1 1 30%;
  margin: 10px;
  height: 350px;
  overflow: hidden;
}

.page-id-15 .offer_pages_container a img {
  width: 100%;
  object-fit: cover;
  height: 100%;
}

.page-id-15 .offer_pages_container a .frame {
  width: 90%;
  height: 90%;
  z-index: 10;
  left: 5%;
  top: 5%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-id-15 .offer_pages_container a .frame h2 {
  font-size: 20px;
  text-transform: uppercase;
  background-color: rgb(0 0 0 / .7);
  padding: 10px 23px;
  font-weight: 300;
  color: white;
}

/* POSTS  */
/* FOOTER */
footer {
  background-color: #191919;
  padding: 50px 0 10px 0;
}

footer * {
  color: lightgray;
  font-weight: 300;
}

footer>.container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

footer>.container>div {
  flex: 1 1 25%;
}

footer>.container>div:first-of-type {
  padding-right: 100px;
}

footer>.container>div.social_media a {
  display: block;
}

footer>.container>div.social_media i {
  margin-right: 10px;
}

footer h3 {
  padding: 0;
  font-size: 20px;
}

footer i {
  margin-right: 5px;
}

footer a,
footer p {
  margin: 5px 0;
}

footer hr {
  margin: 10px 0;
}

footer .copy {
  border-top: 1px solid rgba(211, 211, 211, 0.096);
  text-align: center;
  padding: 10px 0;
  margin-top: 5px;
}

#scroll_to_top {
  width: 40px;
  height: 40px;
  position: fixed;
  right: 10%;
  bottom: 10%;
  border: 1px solid lightgray;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: 1s;
  background-color: white;
  z-index: 12;
}

#scroll_to_top:hover {
  background-color: #191919;
}

#scroll_to_top:hover i {
  color: white;
}

/* FOOTER */
@media all and (max-width: 768px) {

  main,
  footer {
    padding: 10px;
  }

  footer .container,
  .offer>.container,
  #masthead>.container {
    flex-wrap: wrap;
  }

  .page-id-15 .offer_pages_container a,
  .offer>.container>div,
  footer .container>div,
  .first>.container div,
  .second>.container div {
    flex: 1 1 100%;
    padding: 0;
  }

  .offer>.container h3 {
    text-align: center;
  }

  #masthead>.container .menu #menu-glowne {
    flex-wrap: wrap;
  }

  #masthead .logo {
    flex: 1 1 100%;
    justify-content: center;
  }

  #masthead>.container .menu #menu-glowne li {
    margin: 0;
  }

  #masthead .logo a p {
    text-align: center;
  }

  #masthead .logo a p {
    text-align: center;
  }

  #masthead .mobile_menu {
    display: block;
    width: 100%;
    margin: 10px 0px;
    text-align: center;
  }

  #masthead .mobile_menu i {
    font-size: 20px;
  }

  #masthead>.container .menu #menu-glowne li {
    padding: 10px 20px;
    display: block;
    width: 100%;
    position: relative;
  }

  #masthead>.container .menu #menu-glowne {
    display: none;
  }

  #masthead>.container .menu #menu-glowne li.menu-item-has-children:after {
    position: absolute;
    top: 0;
    right: 20px;
  }

  #masthead>.container .menu #menu-glowne .sub-menu {
    display: none;
    position: relative;
    background: transparent;
    backdrop-filter: blur(0);
    left: 0;
    width: auto;
  }

  #masthead>.container .menu #menu-glowne .sub-menu li {
    text-align: left;
  }

  .sticky {
    padding: 10px !important
  }

  .page_header>.container h1 {
    font-size: 25px;
  }

  .page_content .about_text h2 {
    line-height: normal;
    font-size: 21px;
  }

  .first,
  .second {
    padding: 20px 0;
  }

  .page_content .second .about_text {
    margin: 0;
  }

  .page-id-8 .page_content .all_posts a>div:nth-of-type(1) {
    flex: 1 1 45%;
    overflow: hidden;
  }

  .page-id-16 .contact_wrapper div.right textarea,
  .page-id-16 .contact_wrapper div.right input {
    width: 100%;
  }

  .hero {
    height: 50vh;
  }

  .hero .text {
    width: 100%;
    transform: translate(-50%, -50%);
  }

  .hero .text h2 {
    font-size: 25px;
    line-height: 30px;
  }

  .hero .text h3 {
    font-size: 15px;
    /* line-height: 30px; */
  }

  .first,
  .second {
    overflow: hidden;
  }

  .post_header>.container h1 {
    font-size: 20px;
    line-height: 25px;
    text-align: center;
  }

  .page-id-8 .page_content .all_posts a {
    flex-wrap: wrap;
  }
}