/*
Theme Name: RXGym
Template: hello-elementor
Author: Czarny Koń Wojciech Sychowicz
Author URI: https://sychowicz.eu
Description: RX Gym Warszawa Zachodnia
Version: 1.0.0
Updated: 2026-08-15 22:26:37

*/

body {
  background: transparent url(./img/rxgym_bg.jpg) center center repeat;
}

.overflowed {
  overflow: hidden !important;
}

.asymmetric-zigzag {
  clip-path: polygon(0 5vw, 100% 0, 100% calc(100% - 5vw), 0 100%);
}
.cut-right-corner {
  clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 0 100%);
}
.cut-left-corner {
  clip-path: polygon(50px 0, 100% 0, 100% 100%, 0 100%, 0 50px);
}
.cut-right-bottom-corner {
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - 50px),
    calc(100% - 50px) 100%,
    0 100%
  );
}
.cut-tilt-corner {
  clip-path: polygon(
    50px 0,
    /* lewy górny róg - cięcie */ 100% 0,
    /* prawy górny róg */ 100% calc(100% - 50px),
    /* prawy dolny róg - cięcie */ calc(100% - 50px) 100%,
    /* prawy dolny róg - cięcie */ 0 100%,
    /* lewy dolny róg */ 0 50px /* lewy górny róg - cięcie */
  );
}

.cut-left-container {
  clip-path: polygon(20px 0, 100% 0, 100% 100%, 0 100%);
  margin-left: -20px;
}

@media screen and (max-width: 768px) {
  .cut-tilt-corner,
  .cut-left-corner,
  .cut-right-bottom-corner,
  .cut-left-container {
    clip-path: initial;
  }
}

/* menu */

#rx-menu__wrapper {
  position: relative;
  display: flex;
  flex-direction: row;
}

#rx-menu {
  .menu-list {
    font-family: "Fjalla One", Sans-serif;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 2.9px;
    color: #ffffff;
    margin: 0;
    padding: 0;
    display: flex;
    text-transform: uppercase;
    gap: 10px;

    li {
      list-style-type: none;
      padding: 0;
      margin: 0;

      a {
        color: #fff;

        &:hover {
          color: var(--e-global-color-primary);
        }
      }

      &.active {
        a {
          color: var(--e-global-color-primary);
        }
      }
    }
  }

  .rx-copy {
    display: none;
  }
}

#rx-menu__button {
  display: none;
  flex-direction: column;
  width: 60px;
  gap: 4px;
  padding: 10px;
  height: 50px;
  span {
    display: block;
    height: 4px;
    background-color: #fff;
    position: relative;
    transition: all 0.6s;
  }
}

@media screen and (max-width: 768px) {
  #rx-menu {
    display: none;
    .menu-list {
      flex-direction: column;
      .spacer {
        display: none;
      }
    }
  }
  #rx-menu.closed {
    display: none;
  }
  #rx-menu.opened {
    display: flex;

    .menu-list {
      position: fixed;
      z-index: 99;
      top: 90px;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 100;
      background-color: transparent;
      background-image: linear-gradient(90deg, #636363cc 0%, #ddd3d3cc 100%);
      padding: 60px;
      justify-content: center;
      align-items: center;
      gap: 30px;
    }

    .rx-copy {
      display: flex;
      position: fixed;
      font-family: "Bebas Neue", sans-serif;
      font-size: 80px;
      color: #fff;
      bottom: 30px;
      left: 50%;
      transform: translateX(-50%);
      z-index: 100;
      span {
        opacity: 0;
        display: inline-block;
        transform: scale(0);
      }
    }
  }

  #rx-menu__button {
    display: flex;
    z-index: 100;
  }
  #rx-menu__button.close {
    span:nth-child(1) {
      transform: rotate(45deg);
      top: 10px;
      left: 0;
    }
    span:nth-child(4) {
      transform: rotate(-45deg);
      top: 2px;
      right: 0;
    }
    span:nth-child(2),
    span:nth-child(3) {
      display: none;
    }
  }
}

/* setup dla efektu bubbleit */

.bubbleIt span {
  opacity: 0;
  display: inline-block;
  transform: scale(0);
}

/* content */

.single-trener #content {
  .page-content {
    background-color: #fff;
    padding: 30px 50px;

    &::after {
      content: '';
      display: block;
      clear: both;
    }
  }
}
