/*
  Theme Name: Męski wzmacniacz
  Theme URI: http://meskiwzmacniacz.com/
  Description: Custom theme for Męski wzmacniacz
  Version: 1.0
  Author: <a href="http://bitrebel.com">Andrzej Kała</a>
  Author URL: http://bitrebel.com
*/

body {
  background: var(--bg-color);
  color: var(--text-color);
  font-family: var(--default-font-family);
  font-optical-sizing: auto;
  font-weight: var(--font-weight-medium);
  font-style: normal;
  font-size: var(--font-size-default);
  line-height: var(--line-height-default);
  overflow-x: hidden;
}

a {
  color: var(--text-color);
}

a:hover {
  text-decoration: none;
  color: var(--accent-color);
}

p {
  margin-bottom: var(--single-gap);
}

.section-accent {
  font-weight: var(--font-weight-semibold);
  position: relative;
}

@media screen and (max-width: 960px) {
  .section-accent {
    display: none;
  }
}

.section-accent::after {
  content: "";
  width: var(--triple-gap);
  height: 1px;
  background-color: var(--accent-color);
  display: block;
  position: absolute;
  left: calc(var(--quad-gap) * -1);
  top: calc(50% - 1px);
  pointer-events: none;
}

.read-more-link {
  margin-top: var(--double-gap);
  margin-bottom: 0;
}

.read-more-link a {
  font-weight: var(--font-weight-semibold);
  position: relative;
}

.read-more-link a::after {
  content: "";
  width: var(--double-gap);
  height: 1px;
  background: var(--text-color);
  display: block;
  position: absolute;
  right: calc((var(--double-gap) * -1) - var(--single-gap));
  top: calc(50% - 1px);
  pointer-events: none;
}

.read-more-link a:hover::after {
  background-color: var(--accent-color);
}

.wrapper {
  margin: var(--section-gap) 0;
  padding-left: 230px;
  padding-right: 140px;
}

@media screen and (max-width: 1290px) {
  .wrapper {
    margin: var(--double-gap) 0;
    padding-left: 20px;
    padding-right: 20px;
  }
}

.section-title {
  font-size: var(--font-size-st);
  line-height: var(--line-height-st);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--single-gap);
}

.section-title--accented {
  color: var(--accent-color);
}

.section-title--smaller {
  font-size: var(--font-size-smaller);
  line-height: var(--line-height-smaller);
}

.section-title--bigger {
  font-size: var(--font-size-bigger);
  line-height: var(--line-height-bigger);
}

.section-title--huge {
  font-size: var(--font-size-huge);
  line-height: var(--line-height-huge);
}

.section-title--vertical {
  writing-mode: vertical-rl;
}

.section-title--right {
  text-align: right;
}

/* Header */
.main-header {
  background: #fff;
  position: fixed;
  width: 100%;
  max-width: 1440px;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 75px;
  z-index: 100;
}

.main-header .wrapper {
  margin-top: 0;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.main-header::before {
  content: "";
  display: block;
  background: var(--accent-color);
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  right: 65%;
  z-index: -1;
}

.site-logo {
  width: 75px;
  pointer-events: none;
}

.site-logo--inverted {
  display: none;
}

.main-navigation ul {
  display: flex;
  gap: var(--double-gap);
}

/* Scrolled */
.main-header.scroll { background: rgba(255, 255, 255, 0.9); padding: 15px 0; }
.main-header.scroll .site-logo { display: none; }
.main-header.scroll .site-logo--inverted { display: block; }
.main-header.scroll .site-title--mobile { color: var(--accent-color); }
.main-header.scroll::before { background: rgba(255, 255, 255, 0.9); right: 100%; }

@media screen and (max-width: 1290px) {
  .main-navigation {
    display: none;
  }

  .main-header::before {
    right: 0;
  }
}

/* Layout */
.content-section,
.main-footer {
  width: 100%;
  max-width: 1440px;
  padding: 0 20px;
  margin: 0 auto;
}

@media screen and (max-width: 960px) {
  .content-section,
  .main-footer {
    padding: 0;
  }
}

/* Hero section */
.hero-section {
  position: relative;
}

.hero-section .wrapper {
  margin-top: 75px;
}

.hero-section::before {
  content: "";
  display: block;
  background: var(--accent-color);
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  right: 65%;
  z-index: -1;
}

.hero-section .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "a b"
  ;
  grid-gap: var(--section-gap);
}

.hero-photo {
  position: relative;
}

.hero-photo__image {
  position: absolute;
  left: calc(var(--quad-gap) * -1);
  bottom: 0;
  max-width: 123%;
}

.hero-text {
  text-align: right;
}

.hero-text__headline {
  font-size: var(--font-size-title-big);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-title-big);
  color: var(--accent-color-2);
  margin-right: 92px; /* custom */
}

.hero-text__accent {
  display: block;
  font-size: var(--font-size-title);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-title);
  color: var(--accent-color);
  margin-top: calc(var(--triple-gap) * -1);
}

.hero-section-content {
  grid-area: b;
  padding-top: var(--double-gap);
  padding-bottom: var(--section-gap);
}

.site-title--mobile {
  display: none;
}


@media screen and (max-width: 960px) {
  .hero-section::before {
    display: none;
  }

  .hero-text {
    text-align: center;
  }

  .hero-text__headline {
    font-size: var(--font-size-bigger);
    line-height: var(--line-height-bigger);
    margin: 0;
  }

  .hero-text__accent {
    font-size: var(--font-size-st2);
    line-height: var(--line-height-st2);
    margin-top: 0;
  }

  .hero-section .grid {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .hero-section-content {
    padding-bottom: var(--double-gap);
  }
}

@media screen and (max-width: 1290px) {
  .hero-photo__image {
    left: 0;
    position: static;
    max-width: 100%;
  }
}

@media screen and (min-width: 768px) and (max-width: 1290px) {
  .hero-section .grid {
    grid-gap: var(--quarter-gap);
  }
}

@media screen and (max-width: 1290px) {
  .site-title {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .site-title--mobile {
    display: block;
    font-size: var(--font-size-st2);
    line-height: var(--line-height-st2);
    font-weight: var(--font-weight-bold);
    color: #fff;
    margin-left: var(--single-gap);
  }

  .hero-text {
    display: none;
  }
}

@media screen and (max-width: 550px) {
  .site-title--mobile {
    font-size: var(--font-size-sth);
    line-height: var(--line-height-sth);
  }
}


/* Content section */

/* Coaching and support */
#coaching-and-support .wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: var(--quad-gap);
  margin-bottom: var(--section-gap);
}

#coaching-and-support .section-title {
  max-width: 90%;
}

#coaching-and-support p {
  max-width: 75%;
}

#coaching-and-support .content-section-photo {
  position: relative;
}

#coaching-and-support .content-section-photo img {
  position: absolute;
  bottom: calc(var(--double-gap) * -1);
  left: 0;
  max-width: 100%;
}

#coaching-and-support .content-section-photo .handwriting {
  max-height: 125%;
  left: -40px;
  bottom: -60px;
}

@media screen and (max-width: 960px) {
  #coaching-and-support .wrapper {
    display: flex;
    flex-direction: column-reverse;
    gap: var(--single-gap);
  }

  #coaching-and-support .section-title,
  #coaching-and-support p {
    max-width: 100%;
  }

  #coaching-and-support .content-section-photo img {
    position: static;
  }

  #coaching-and-support .content-section-photo .handwriting {
    display: none;
  }
}

@media screen and (min-width: 961px) and (max-width: 1290px) {
  #coaching-and-support .content-section-photo .handwriting {
    max-height: 75%;
  }
}


/* What I offer */
#what-i-offer {
  position: relative;
  overflow: hidden;
}

#what-i-offer .section-accent {
  position: absolute;
  right: -50px;
  top: 195px;
  transform: rotate(90deg);
  transform-origin: 0 0;
}

#what-i-offer .inner-wrapper {
  max-width: 840px;
}

#what-i-offer > .section-title {
  margin-bottom: var(--half-gap);
}

.offer-content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1fr;
  grid-gap: var(--single-gap);
  list-style: decimal-leading-zero;
  position: relative;
}

@media screen and (max-width: 960px) {
  .offer-content-grid {
    display: flex;
    flex-direction: column;
  }
}

.offer-content-grid::before {
  content: "";
  background: var(--bg-accent-color);
  display: block;
  width: 300%;
  height: 385px;
  position: absolute;
  z-index: -1;
  top: var(--double-gap);
  left: calc(var(--half-gap) * -1);
}

.offer-content-grid__item {
  max-width: 260px;
}

@media screen and (max-width: 960px) {
  .offer-content-grid::before {
    display: none;
  }

  .offer-content-grid__item {
    max-width: 100%;
  }
}

.offer-content-grid__figure {
  position: relative;
  margin-bottom: var(--double-gap);
  min-height: 260px;
}

.offer-content-grid__figure::before {
  content: "";
  display: block;
  background: var(--accent-color);
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  mix-blend-mode: multiply;
  opacity: 0;
  transition: opacity .15s;
}

.offer-content-grid__figure::after {
  content: "0" counter(list-item);
  display: block;
  position: absolute;
  right: 0;
  bottom: var(--half-gap);
  z-index: 3;

  color: var(--accent-color);
  font-size: var(--font-size-counter);
  font-weight:var(--font-weight-light);
  line-height: var(-line-height-counter);

  transition: color .15s;
}

.offer-content-grid__figure img {
  max-width: 100%;
}

.offer-content-grid__item:hover .offer-content-grid__figure::before {
  opacity: .85;
}

.offer-content-grid__item:hover .offer-content-grid__figure::after {
  color: #fff;
}

.offer-content-grid__item > .section-title {
  height: var(--section-gap);
  margin-bottom: var(--double-gap);
}

@media screen and (max-width: 960px) {
  .offer-content-grid__item > .section-title {
    height: auto;
  }

  .offer-content-grid__item > .section-title br {
    display: none;
  }
}

/* Why me */
#why-me .wrapper {
  display: grid;
  grid-template-columns: 110px 350px 260px 260px;
  grid-template-rows: 1fr 1fr;
  grid-template-areas:
    "a b c e "
    "a b d f "
  ;
  grid-gap: var(--single-gap);
  margin-bottom: var(--section-gap);
}



#why-me .section-title {
  grid-area: a;
  margin-right: calc(-1 * var(--single-gap));
  letter-spacing: 4.95px;
  margin-top: -5px;
}

#why-me p {
  margin: 0;
}

#why-me figure {
  grid-area: b;
  position: relative;
  color: #fff;
}

#why-me figure::before {
  content: "";
  display: block;
  width: 75%;
  height: 575px;
  background: black;
  position: absolute;
  top: 0;
  left: -1000px;
  border-left: 1000px solid var(--bg-accent-color);
  z-index: -1;
}

#why-me figure::after {
  content: "";
  display: block;
  width: 90px;
  height: 100%;
  background: red;
  position: absolute;
  left: var(--single-gap);
  top: 0;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: multiply;
}

#why-me figure img {
  max-width: 100%;
}

#why-me p:nth-of-type(1) {
  grid-area: c;
  align-self: flex-end;
}

#why-me p:nth-of-type(2) {
  grid-area: d;
  align-self: flex-start;
}

#why-me p:nth-of-type(3) {
  grid-area: e;
  align-self: flex-end;
  margin-bottom: -68px
}

#why-me p:nth-of-type(4) {
  grid-area: f;
  align-self: flex-start;
  margin-top: 70px;
}

@media screen and (max-width: 1100px) {
  #why-me .wrapper {
    display: flex;
    flex-direction: column;
  }

  #why-me .section-title {
    font-size: var(--font-size-bigger);
    line-height: var(--line-height-bigger);
    letter-spacing: 1px;
    writing-mode: lr;
  }

  #why-me p:nth-of-type(3) {
    align-self: flex-start;
  }

  #why-me figure {
    display: none;
  }
}



/* Support */
#support .wrapper {
  display: grid;
  grid-template-columns: 435px 25px 360px;
  grid-template-areas:
    "a b c"
    "d e f"
    "g h i"
  ;
  grid-gap: var(--single-gap);
  margin-bottom: var(--section-gap);
}

#support h2.section-title {
  font-size: var(--font-size-st2);
  line-height: var(--line-height-st2);
  grid-area: a;
  text-align: right;
  margin: 0 0 0 37%;
}

#support p:nth-of-type(1) {
  grid-area: d;
  text-align: right;
  padding: 0 0 0 31%;
}

#support h3:nth-of-type(1) {
  grid-area: e;
}

#support figure {
  grid-area: f;
  position: relative;
}

#support figure img {
  position: absolute;
  left: 0;
  bottom: 0;
  max-width: 100%;
}

#support figure::after {
  content: "";
  display: block;
  width: 90px;
  height: 360px;
  background: red;
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: multiply;
}

#support .section-accent {
  left: 80px;
  top: -165px;
}

#support h3:nth-of-type(2) {
  grid-area: h;
}

#support p:nth-of-type(2) {
  grid-area: i;
}

@media screen and (max-width: 960px) {
  #support .wrapper {
    display: flex;
    flex-direction: column;
  }

  #support h2.section-title {
    margin: 0;
  }

  #support .section-title--vertical {
    writing-mode: lr;
    margin: 0;
  }

  #support p:nth-of-type(1) {
    text-align: left;
    padding: 0;
  }

  #support figure img {
    position: static;
  }
}

/* Questions */
#questions .wrapper {
  display: grid;
  grid-template-columns: 1fr 3fr;
  grid-template-areas:
    "a a"
    "b c"
  ;
  grid-gap: var(--single-gap);
  margin-bottom: var(--section-gap);
}

#questions .section-title {
  grid-area: a;
  font-size: var(--font-size-bigger2);
  line-height: var(--line-height-bigger2);
}

#questions figure {
  grid-area: b;
  position: relative;
}

#questions figure img {
  position: absolute;
  right: 0;
  max-width: 490px;
}

#questions .content {
  grid-area: c;
}

.contact-me {
  margin-left: var(--triple-gap);
}

.contact-me a {
  font-weight: var(--font-weight-semibold);
  position: relative;
}

.contact-me a::after {
  content: "";
  width: var(--double-gap);
  height: 1px;
  background-color: var(--accent-color);
  display: block;
  position: absolute;
  left: calc(var(--triple-gap) * -1);
  top: calc(50% - 1px);
  pointer-events: none;
}

@media screen and (max-width: 960px) {
  #questions .wrapper {
    display: flex;
    flex-direction: column;
  }

  #questions figure img {
    position: static;
    max-width: 100%;
  }
}



/* Footer */
.main-footer .wrapper {
  border-top: 15px solid var(--accent-color);
  display: flex;
  justify-content: flex-end;
  gap: var(--triple-gap);
  text-align: right;
  padding-top: var(--double-gap);
  position: relative;
}

/* .main-footer .wrapper::before {
  content: "";
  background: var(--accent-color);
  height: 15px;
  width: 6000px;
  left: 0;
  top: -15px;
  position: absolute;
} */

.main-footer .site-logo {
  background: #fff;
  height: 35px;
  top: -24px;
  left: -15px;
  position: absolute;
}

.social-media a {
  display: inline-block;
}

.social-icon {
  width: 26px;
}

@media screen and (max-width: 960px) {
  .main-footer .wrapper {
    flex-direction: column;
    gap: var(--single-gap);
  }

  .main-footer .wrapper::before {
    display: none;
  }
}
