/*
Theme Name: mytheme
Theme URI: http://localhost:8080
Author: itband.pl
Author URI: https://itband.pl
Description: Minimalny motyw startowy do WordPress.
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mytheme
*/

:root {
  --wp--style--global--content-size: 1040px;
  --wp--style--global--wide-size: 1080px;
}

@media (min-width: 1400px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: var(--wp--style--global--wide-size);
    }
}

@media (min-width: 1200px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl {
        max-width: var(--wp--style--global--wide-size);
    }
}

html {
  margin: 0!important;
  padding: 0;
  box-sizing: border-box;
}

::-webkit-scrollbar {
  width: 0.5rem;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #0c3066;
  border-radius: 0.25rem;
}

::-webkit-scrollbar-thumb:hover {
  background: #0c3066;
}

body {
  background: #fff;
  color: #000;
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  position: relative;
  --scrollbar-width: calc(100vw - 100%);
}

main#content {
    overflow: hidden;
}

h1, h2, h3, h4, h5, h6 , 
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: "Raleway", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 900;
  color: #0c3066;
  margin-top: 0;
  margin-bottom: 1rem;
}

.relaway {
  font-family: "Raleway", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

h2, .h2 {
  font-size: 3.75rem;
}

body.admin-bar header.fixed-top {
  top: var(--wp-admin--admin-bar--height);
}

html #wpadminbar {
  margin-top: 0;
}

a {
  color: #0c3066;
}

a:hover {
  color: #0c3066;
}

.post {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
}

.post-title {
  margin: 0 0 0.4rem;
}

.post-meta {
  margin: 0 0 0.9rem;
  color: #4a4a4a;
  font-size: 0.95rem;
}

.post-content {
  line-height: 1.8125rem;
}

.post-thumb img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 2rem 0;
}

.no-posts {
  padding: 1rem 1.2rem;
  background: #f7f7f7;
  color: #000;
  border-radius: 0.5rem;
}

.archive-header {
  margin-bottom: 1.5rem;
}

.navbar-brand {
  font-weight: 700;
}

.accent {
  color: #0c3066;
}

.custom-logo {
  height: auto;
  width: 100%;
  max-width: 255px;
  display: block;
}

.is-scrolled .custom-logo {
  max-width: 49px;
}

.alignfull {
  width: 100vw;
  width: 100dvw;
  max-width: calc(100dvw - 0.5rem);
  max-width: calc(100vw - 0.5rem);
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.alignwide {
  max-width: min(1200px, 90vw);
  margin-left: auto;
  margin-right: auto;
}

.offcanvas.show:not(.hiding) {
  z-index: 99999;
}

footer {
  background-color: #191e22;
}

footer * {
  color: #fff;
}

#topBanner {
  align-items: end;
  padding-top: 10rem;
  padding-bottom: 2rem;
}

.site-header {
  background: transparent;
}

body:not(.is-scrolled) header.site-header .custom-logo {
    margin-top: 2rem;
}

body.is-scrolled .site-header {
  background: rgb(12 48 102 / 95%);
  box-shadow: 0 5px 40px -15px rgba(0, 0, 0, 1);
}

.navbar-dark, .navbar[data-bs-theme=dark] {
  --bs-navbar-color: #fff;
  --bs-navbar-hover-color: #fff;
  --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.is-scrolled .navbar-dark, .is-scrolled .navbar[data-bs-theme=dark] { 
  --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

header .offcanvas-body {
  flex-direction: column;
  align-items: flex-end;
}

body:not(.is-scrolled) header > .navbar {
  padding-top: 0;
  padding-bottom: 0;
}

header .navbar-nav {
  width: 100%;
  align-items: center;
  justify-content: space-between;
  max-width: 977px;
}

header .navbar-nav a.nav-link {
  font-family: "Raleway", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color: #000;
  font-weight: 700;
  font-size: 0.9375rem;
}

header .navbar-nav a.nav-link:hover , header .navbar-nav a.nav-link.active {
  color: #0c3066;
}

@media (min-width: 992px) {

  body.is-scrolled header .navbar-nav a.nav-link {
  color: #fff;
}

}

header > .navbar > .container {
  gap: 3rem;
}

#primary-menu {
  position: relative;
}

.menu-underline , .menu-underline::after {
  background: #0c3066;
}

.menu-underline {
  position: absolute;
  bottom: 0px;
  left: 0;
  height: 2px;
  width: 0;
  background: #0c3066;
  border-radius: 999px;
  transition: transform 0.25s ease, width 0.25s ease, box-shadow 0.25s ease;
  pointer-events: none;
}

.is-scrolled .menu-underline , .is-scrolled .menu-underline::after {
  background: #fff;
}

.menu-underline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -2px;
  height: 6px;
  background: #0c3066;
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.menu-underline.moving {
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}

.menu-underline.moving::after {
  opacity: 0.3;
}

.widget-before-menu {
  color: #fff;
  font-size: 1.6875rem;
  font-weight: 700;
}

:where(.wp-block-button__link) {
  border-radius: 1rem;
}

.wp-block-buttons .wp-element-button , .wp-block-buttons a {
  width: 100%;
  padding: .85rem 1.75rem;
  background: #fff;
  color: #0c3066;
  line-height: 1em;
  font-weight: 900;
}

header.site-header .wp-block-buttons .wp-element-button, header.site-header .wp-block-buttons a {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

header.site-header .wp-block-buttons .wp-element-button:hover, header.site-header .wp-block-buttons a:hover {
    background: #fff;
    color: #0c3066;
    border: 2px solid #fff;
}

footer .copyright-content {
  padding-top: 3rem;
  margin-top: 3rem;
  border-top: 2px solid #50606d;
}

footer .copyright-content * {
  color: #6f8597;
}

.footer-contact-list {

}

.alignfull .wp-block-cover__inner-container {
  max-width: 1060px;
  margin-left: auto!important;
  margin-right: auto!important;
}

.wp-block-group.is-content-justification-left {
    margin-left: 0 !important;
}

.wp-block-group.is-content-justification-right {
    margin-right: 0 !important;
}

.nextSection {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #092a5a;
    text-decoration: none;
    background: transparent;
    border: 3px solid #092a5a;
    border-radius: 30px;
    width: 35px;
    height: 55px;
    margin: 190px auto 30px !important;
    position: relative;
}

.nextSection::before {
    content: "";
    position: absolute;
    display: block;
    top: 7px;
    left: 0;
    right: 0;
    width: 3px;
    height: 10px;
    border-radius: 9px;
    margin: 0 auto;
    background-color: #092a5a;
    animation: wheel 1.4s ease-in-out infinite;
}

.nextSection::after {
    content: "";
    position: absolute;
    display: block;
    bottom: -20px;
    left: 0;
    right: 0;
    width: 12px;
    height: 12px;
    border-radius: 2px;
    margin: 0 auto;
    background: transparent;
    border: 2px solid #092a5a;
    border-left: 0;
    border-top: 0;
    transform: rotate(45deg);
}

button.nextSection:hover::after {
    bottom: -23px;
    animation: arrow 1.4s ease-in-out infinite;
}

button#goTop {
  position: fixed;
  bottom: 100px;
  right: 30px;
  border: 2px solid #0c3066;
  border-radius: 15px;
  background: #0c3066;
  width: 40px;
  height: 40px;
  box-shadow: 0px 3px 25px -11px #000;
  z-index: 2;
}

button#goTop svg {
  color: #fff;
  width: auto;
  height: 24px;
  position: relative
}

button#goTop:hover svg {
  transform: translateY(-5px)
}

button#goTop.visible {
  display: block!important
}

.btn-primary {
  --bs-btn-color: #000;
  --bs-btn-bg: #0c3066;
  --bs-btn-border-color: #0c3066;
  --bs-btn-hover-color: #000;
  --bs-btn-hover-bg: #0c3066;
  --bs-btn-hover-border-color: #0c3066;
  --bs-btn-active-color: #000;
  --bs-btn-active-bg: #0c3066;
  --bs-btn-active-border-color: #0c3066;
  --bs-btn-disabled-color: #000;
  --bs-btn-disabled-bg: #0c3066;
  --bs-btn-disabled-border-color: #0c3066;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 15px;
  border-width: 2px;
}

.btn-outline-primary {
  --bs-btn-color: #000;
  --bs-btn-border-color: #0c3066;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #0c3066;
  --bs-btn-hover-border-color: #0c3066;
  --bs-btn-active-color: #000;
  --bs-btn-active-bg: #0c3066;
  --bs-btn-active-border-color: #0c3066;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 15px;
  border-width: 2px;
}
 
.post-content ul:not(.list-unstyled) {
  padding-left: 1.5rem;
}

.post-content ul:not(.list-unstyled) li {
    margin-bottom: 0.75rem;
    line-height: 1.45rem;
}

.post-content ul:not(.list-unstyled) li::marker {
  color: #0c3066;
}

#home {
  align-items: bottom;
  padding-top: 10rem;
  padding-bottom: 2rem;
}

#home .wp-block-cover__inner-container {
  margin-top: auto;
}

#docieplenia {
  position: relative;
  overflow: unset;
}

.wp-block-gallery.is-masonry-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: row;
  gap: 1.25rem;
}

.wp-block-gallery.is-masonry-2 > * {
  width: 100%;
}

.wp-block-gallery .is-hidden-fancybox {
  display: none !important;
}

.products-carousel {
  --pc-visible: 3;
  --pc-gap: 4rem;
  --pc-nav-space: 4rem;
  display: block;
  position: relative;
  overflow: hidden;
  padding: 0 var(--pc-nav-space);
}

.wp-block-group.products-carousel,
.products-carousel.is-layout-grid,
.products-carousel.is-layout-flex {
  display: block !important;
  grid-template-columns: none !important;
  gap: 0 !important;
}

.products-carousel__track {
  display: flex;
  gap: var(--pc-gap);
  transition: transform 0.4s ease;
  will-change: transform;
}

.products-carousel__item {
  flex: 0 0 calc((100% - (var(--pc-visible) - 1) * var(--pc-gap)) / var(--pc-visible));
  padding: .5rem;
}

.products-carousel__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 0;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.products-carousel__nav--prev {
    left: 0.5rem;
    background: url(img/cut.png) no-repeat -756px -25px;
}

.products-carousel__nav--next {
  right: 0.5rem;
  background: url(img/cut.png) no-repeat -824px -25px;
}

.products-carousel__nav:hover {
  scale: 1.05;
}

.products-carousel__nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

@media (max-width: 991.98px) {
  .products-carousel {
    --pc-visible: 2;
  }
}

@media (max-width: 640px) {
  .products-carousel {
    --pc-visible: 1;
  }
}

.wp-block-image>a:hover img , .wp-block-image>figure>a:hover img {
  transform: scale(1.025);
  box-shadow: 0px 13px 35px -23px #0c3066;
}

span.separator {
    display: block;
    width: 35px;
    height: 35px;
    margin-left: auto;
    margin-right: auto;
    border: 6px solid #577da4;
    border-radius: 300px;
}

p.tel a {
  text-decoration: none;
  position: relative;
  padding-left: 55px;
}

p.tel a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 40px;
    height: 40px;
    background: url(img/cut.png) no-repeat -355px -25px;
    display: inline-block;
}

p.tel a:hover {
  color: inherit;
  filter: drop-shadow(1px 0px 5px #577da4);
}

p.tel a:hover::before {
    transform: scale(1.075);
}

p.tel a > strong {
  font-weight: 700;
}

ul.contact-list {
    list-style-type: none;
    padding: 0;
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    font-size: 18px;
}

ul.contact-list a {
  text-decoration: none;
  position: relative;
  padding-left: 45px;
}

ul.contact-list a[href*="tel:"]::before , ul.contact-list a[href*="mailto:"]::before  {
    content: "";
    position: absolute;
    left: 0;
    top: -1px;
    width: 29px;
    height: 29px;
    background: url(img/cut.png) no-repeat -462px -32px;
    display: inline-block;
}

ul.contact-list a[href*="mailto:"]::before {
    background: url(img/cut.png) no-repeat -555px -32px;
}

ul.contact-list a:hover {
  color: inherit;
  filter: drop-shadow(1px 0px 5px #234465);
}

ul.contact-list a:hover::before {
    transform: scale(1.075);
}

ul.contact-list a > strong {
  font-weight: 700;
}

.header-contact-list {
  list-style-type: none;
    padding: 0;
    display: flex;
    gap: 3rem;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    font-size: 1.25rem;
    font-weight: 400;
}

.header-contact-list a {
  text-decoration: none;
  position: relative;
  padding-left: 40px;
}

.header-contact-list a[href*="tel:"]::before, .header-contact-list a[href*="mailto:"]::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0px;
    width: 29px;
    height: 26px;
    background: url(img/cut.png) no-repeat -106px -32px;
    display: inline-block;
}

.header-contact-list a[href*="mailto:"]::before {
    background: url(img/cut.png) no-repeat -247px -32px;
}

li.list-separator {
    display: block;
    width: 15px;
    height: 15px;
    margin-left: auto;
    margin-right: auto;
    border: 3px solid #577da4;
    border-radius: 300px;
}

ul.header-contact-list a:hover {
  filter: drop-shadow(0px 2px 5px #577da4a3);
}

ul.header-contact-list a:hover::before {
    transform: scale(1.075);
}

.is-scrolled li.list-separator {
  display: none;
}

.is-scrolled .header-contact-list {
    gap: 0;
    margin: 0;
    display: block;
}

button.navbar-toggler {
    border: 0 !important;
    outline: none !important;
}

a , ::after, ::before , button , .site-header , img , svg {
  -webkit-transition: ease 0.25s all;
  transition: ease 0.25s all;
}

body:not(.home) main#content {
    padding-top: 300px;
}

#cookie-notice .cn-button {
    color: #fff;
    background: #466d99;
    padding: .5rem 1rem;
    border-radius: 0;
    line-height: 1em;
    font-size: .85rem !important;
}

@media (min-width: 992px) {

  #docieplenia .wp-block-gallery {
      position: absolute;
      right: 0;
      left: 50%;
      top: auto;
      bottom: -200px !important;
      width: 49.8vw;
      margin: 0;
      transform: translateX(0%);
  }

  .wp-block-gallery.is-masonry-2 > *:nth-child(1) {
    grid-column: 2;
    grid-row: 1;
  }

  .wp-block-gallery.is-masonry-2 > *:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }

  .wp-block-gallery.is-masonry-2 > *:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
  }

  .wp-block-gallery.is-masonry-2 > *:nth-child(4) {
    grid-column: 1;
    grid-row: 3;
  }

  .wp-block-gallery.is-masonry-2 > *:nth-child(5) {
    grid-column: 2;
    grid-row: 3;
  }

  .wp-block-gallery.is-masonry-2 img {
    display: block;
    width: 100%;
    height: auto;
  }

  .wp-block-gallery.wp-block-gallery.is-masonry-2 .wp-block-image:nth-child(1) {
      width: 70% !important;
  }

  .wp-block-gallery.wp-block-gallery.is-masonry-2 .wp-block-image:nth-child(2) {
      margin-top: -35px !important;
  }

  .wp-block-gallery.wp-block-gallery.is-masonry-2 .wp-block-image:nth-child(3) {
    width: 90%!important;
  }

  .wp-block-gallery.wp-block-gallery.is-masonry-2 .wp-block-image:nth-child(4) {
      width: 79% !important;
      justify-self: end;
      right: -10%;
  }

  .wp-block-gallery.wp-block-gallery.is-masonry-2 .wp-block-image:nth-child(5) {
      width: 90% !important;
      justify-self: end;
  }

  .is-scrolled .header-contact-list a {
    color: #fff;
  }

  .is-scrolled .header-contact-list a::before {
      top: -2px;
      filter: invert(1) grayscale(1) contrast(1.5) grayscale(1);
      transform: scale(.75)!important;
  }

  .is-scrolled .header-contact-list a {
    font-size: 1rem;
  }

  body.is-scrolled header .offcanvas-body {
    flex-direction: row-reverse;
    align-items: center;
  }

  body.is-scrolled header .offcanvas-body  .navbar-nav {
    width: auto;
  }
  
  body.is-scrolled header .offcanvas-body .widget-before-menu {
    margin-bottom: 0 !important;
    margin-left: .5rem;
    padding-left: 1rem;
    border-left: 1px solid rgba(255, 255, 255, .35);
    font-size: 0.9375rem;
  }
  
  body.is-scrolled header .offcanvas-body .widget-before-menu .wp-block-group {
    gap: 1rem !important;
  }

  body.is-scrolled header .offcanvas-body .navbar-nav {
    width: auto;
    gap: .85rem;
  }

  body.is-scrolled header .offcanvas-body .navbar-brand {
    margin: 0!important;
    padding: 0!important;
  }

}

@media (max-width: 991.98px) {

  #docieplenia .wp-block-gallery {
    margin-bottom: 3rem;
  }

  #tynki , #docieplenia {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  #wykonczenia + .wp-block-cover.alignfull.js-reveal {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .custom-logo {
    max-width: 85px;
  }

  .wp-block-gallery.is-masonry-2 {
    grid-template-columns: 1fr;
  }

  .wp-block-gallery.is-masonry-2 > * {
    grid-column: auto;
    grid-row: auto;
  }

  h2, .h2 {
    font-size: 2.25rem;
  }
  #home p {
    font-size: 1.5rem !important;
  }
  div#home {
    min-height: 800px !important;
  }

  li.list-separator {
    display: none;
  }

  header .offcanvas-body {
    flex-direction: column;
    align-items: center;
    display: flex;
    justify-content: center;
    gap: 2rem;
  }

  .header-contact-list {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
  }

  #primary-menu {
    order: -1;
  }

  header .navbar-nav a.nav-link {
    font-size: 1.4rem;
  }

  .products-carousel {
        --pc-visible: 1!important;
  }

  ul.contact-list {
     justify-content: flex-start;
  }

  #wykonczenia + .wp-block-cover.alignfull.js-reveal h2 {
    font-size: 2rem!important;
  }

  main > .container {
    padding: 0;
  }

  #galeria , #wynajem {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .alignfull {
    max-width: 100%!important;
  }

  :where(.wp-block-group.has-background) {
    padding: 1rem;
  }

}

@keyframes wheel {
        0% {
            transform: translateY(0);
            opacity: 1;
            height: 5px
        }

        33% {
            transform: translateY(5px);
            opacity: 0.75;
            height: 12px
        }

        66% {
            transform: translateY(7px);
            opacity: 0.2;
            height: 7px
        }

        100% {
            transform: translateY(0);
            opacity: 1;
            height: 5px
        }
}

@keyframes arrow {
        0% {
            transform: rotate(45deg);
            opacity: 1
        }

        50% {
            transform: rotate(45deg);
            opacity: 0.2
        }

        100% {
            transform: rotate(45deg);
            opacity: 1
        }
}
