/*
Theme Name: Avada Child
Description: Child theme for Avada theme
Author: ThemeFusion
Author URI: https://theme-fusion.com
Template: Avada
Version: 1.0.0
Text Domain:  Avada
*/

/********* Variables *********/
:root {
  --box-shadow: rgba(14, 63, 126, 0.04) 0px 0px 0px 1px,
    rgba(42, 51, 69, 0.04) 0px 1px 1px -0.5px,
    rgba(42, 51, 70, 0.04) 0px 3px 3px -1.5px,
    rgba(42, 51, 70, 0.04) 0px 6px 6px -3px,
    rgba(14, 63, 126, 0.04) 0px 12px 12px -6px,
    rgba(14, 63, 126, 0.04) 0px 24px 24px -12px;
  --box-shadow-hover: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  --box-border-radius: 1rem;
  --text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.25);
  --color5-transparent: rgba(46, 49, 146, 0.3);
}

/********* Global *********/
.section-padding {
  padding-top: 6rem !important;
  padding-bottom: 6rem !important;
}

.p_nomargin p:last-of-type {
  margin-bottom: 0px;
}

/* Section title */

.section-title {
  position: relative;

  p,
  h2 {
    position: relative;
    z-index: 1;
  }

  &::after {
    content: "";
    position: absolute;
    left: -12px;
    top: 0rem;
    z-index: 0;
    background-color: var(--awb-color6);
    width: 175px;
    height: 35px;
  }
}

.col__img-fill > .fusion-column-wrapper,
.col__img-fill > .fusion-column-wrapper > .fusion-image-element,
.col__img-fill
  > .fusion-column-wrapper
  > .fusion-image-element
  > .fusion-imageframe,
.col__img-fill
  > .fusion-column-wrapper
  > .fusion-image-element
  > .fusion-imageframe
  > img {
  width: 100%;
  height: 100%;
}

.col__img-fill
  > .fusion-column-wrapper
  > .fusion-image-element
  > .fusion-imageframe
  > img {
  object-fit: cover;
}

.avada_boxshadow.fusion-layout-column > .fusion-column-wrapper {
  box-shadow: var(--box-shadow);
}

/* Global - navigation */

.topNav-container img {
  width: 300px;
}

.topNav-container .fusion-checklist {
  margin-top: 0;
  font-size: 16px;

  .icon-wrapper {
    margin-right: 0;
  }

  .fusion-li-item-content {
    margin-left: 30px;
  }
}

header .nav-col > div.fusion-column-wrapper {
  box-shadow: var(--box-shadow);
}

/* Global - pattern */

.bcg-pattern {
  background: linear-gradient(
      25deg,
      #ffffff 40%,
      transparent 41%,
      transparent 59%,
      #ffffff 60%
    ),
    linear-gradient(
      90deg,
      transparent 45%,
      #d5d6e9 45%,
      #d5d6e9 55%,
      transparent 55%,
      transparent 20%,
      #d5d6e9 20%,
      #d5d6e9 30%,
      transparent 30%
    ),
    linear-gradient(90deg, #d5d6e9 9%, transparent 10%) !important;
  background-size: 1em 1em !important;
  background-color: #ffffff !important;
  opacity: 1 !important;
  position: relative;

  &:before {
    content: "";
    width: 100%;
    height: 100%;
    background: rgb(255, 255, 255);
    background: linear-gradient(
      0deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 1) 100%
    );
    position: absolute;
    left: 0;
    top: 0;
  }

  &:after {
    content: "";
    width: 100%;
    height: 100%;
    background: rgb(255, 255, 255);
    background: radial-gradient(
      circle,
      rgba(255, 255, 255, 1) 15%,
      rgba(255, 255, 255, 0) 100%
    );
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
}

/********* Cookies *********/

.fworks_consent_bar_mini-inner {
  display: inline-block !important;
}

.fworks_consent_bar_mini-inner > span {
  text-decoration: none;
}

.fworks_consent_modal_header .fworks_consent_modal_close {
  top: 15px;
}

.fworks_consent_modal_content .fworks_consent_modal_header {
  padding-top: 2.5rem;
}

.fworks_consent_modal_content .fworks_consent_modal_header h2 {
  font-size: 36px;
}

.fworks_consent_modal_content .fworks_consent_modal_body h3 {
  font-size: 26px;
}

/********* Homepage *********/

/* HP - hero */

.slide-4w .content-wrapper {
  animation: 2s ease-in-out customFadeIn;
}

/* HP - O nas */

.hp-o_nas-img_col {
  position: relative;

  .img-back {
    position: absolute;
    right: 0;
    top: 0;
    left: 4rem;
  }

  .img-front {
    position: absolute;
    left: 0;
    top: 2rem;
  }
}

/* HP - Služby */

.sluzby-box > div.fusion-column-wrapper {
  padding: 2.5rem;
  border-bottom: 4px solid var(--awb-color5);
  border-radius: var(--box-border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  position: relative;

  .text-wrapper {
    .fusion-text,
    .fusion-checklist {
      opacity: 0;
      transition: all 0.3s ease-in-out;
      transform: translateY(1.5rem);
    }
  }

  .bcg-img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;

    img {
      height: 100%;
      object-fit: cover;
    }

    &::after {
      content: "";
      position: absolute;
      width: 100%;
      height: 100%;
      left: 0;
      top: 0;
      background-color: var(--awb-color5);
      z-index: 0;
      opacity: 0.4;
    }

    &::before {
      content: "";
      position: absolute;
      width: 225px;
      height: 225px;
      left: 0;
      top: 0;
      background-color: var(--awb-color5);
      border-radius: 0% 0% 77% 23% / 23% 29% 71% 0%;
      transition: all 0.3s ease-in-out;
    }
  }

  svg {
    max-width: 60px;
    height: 55px;
    fill: var(--awb-color4);
  }

  div.cta-text {
    transition: all 0.3s ease-in-out;
    padding-right: 8px;
    color: var(--awb-color4) !important;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    height: 100%;
  }
}

.sluzby-box:hover > div.fusion-column-wrapper {
  background-color: var(--awb-color5) !important;
  border-bottom: 4px solid var(--awb-color4) !important;

  svg {
    fill: var(--awb-color4);
  }

  div.fusion-title h3 {
    color: var(--awb-color1) !important;
  }

  div.fusion-text p,
  ul > li > .fusion-li-item-content,
  ul > li > .icon-wrapper > i {
    color: var(--awb-color2) !important;
  }

  div.cta-text > p {
    color: var(--awb-color4) !important;
  }

  .bcg-img {
    &::before {
      width: 100%;
      height: 100%;
      border-radius: 0;
    }
  }

  .text-wrapper {
    .fusion-text,
    .fusion-checklist {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

.sluzby-box:hover > div.fusion-column-wrapper {
  div.cta-text {
    padding-right: 0;
  }
}

.sluzby-box-first > div.fusion-column-wrapper {
  div.cta-text {
    padding-right: 8px;
  }
}

.sluzby-box-first:hover > div.fusion-column-wrapper {
  div.cta-text {
    padding-right: 0;
  }
}

/* HP - vozovy park */

.hp-vozovy_park-text_col > div.fusion-column-wrapper {
  border-radius: var(--box-border-radius);
  box-shadow: var(--box-shadow);
}

/* HP - kontakty */

.hp-kontakt-text_nested_col > .fusion-column-wrapper {
  position: relative;

  &::before {
    content: "";
    width: 30px;
    height: 3px;
    position: absolute;
    left: 0;
    top: 0;
    background-color: var(--awb-color5);
  }

  &::after {
    content: "";
    width: 30px;
    height: 3px;
    position: absolute;
    left: 0;
    bottom: 0;
    background-color: var(--awb-color5);
  }
}

.hp-kontakt-col > .fusion-column-wrapper {
  gap: 1.5rem;
}

.hp-o_nas-img_col > div.fusion-column-wrapper {
  position: relative;

  .quote {
    position: absolute;
    left: -3rem;
    bottom: -6rem;
    padding: 1.5rem 2.5rem;
    background-color: var(--awb-color1);
    box-shadow: var(--box-shadow);
    border-radius: var(--box-border-radius);
    max-width: 540px;
    z-index: 10;
    border-left: 4px solid var(--awb-color5);
    animation: 2s ease-in-out customFadeIn;

    .name-wrapper {
      display: flex;
      flex-direction: row;
      gap: 1.25rem;

      span.fusion-imageframe {
        box-shadow: var(--box-shadow);
      }
    }
  }
}

.hp-kontakt-provozovna_col > div.fusion-column-wrapper {
  background-color: var(--awb-color1) !important;
  overflow: hidden;
  border-radius: var(--box-border-radius);
  box-shadow: var(--box-shadow);
  /* border-left: 5px solid var(--awb-color5); */

  .text-wrapper {
    padding: 2rem 1.5rem;
  }
}

footer img {
  min-width: 200px;
  filter: brightness(0) invert(1);
}

/********* Subpages *********/

/********* Responsivity *********/

@media screen and (max-width: 1024px) {
}

@media screen and (max-width: 640px) {
  .section-padding {
    padding-top: 3.5rem !important;
    padding-bottom: 3.5rem !important;
  }
}

/******* keyframes *******/

@keyframes customFadeIn {
  from {
    transform: translateY(1.5rem);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/*--- BOX s ikonkou - USP ikonka ----*/
.icon_usp {
  position: relative;
  width: 48px;
  height: 48px;
  fill: var(--awb-color5);
}

/*---------- PODSTRÁNKY -------------*/
.scrolldown-icon:hover {
  filter: brightness(1.2);
}

.flexrow {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
}
section#content {
  margin-bottom: 0;
}

::-webkit-input-placeholder {
  /* Chrome/Opera/Safari */
  white-space: pre-line;
  position: relative;
  top: -7px;
}
::-moz-placeholder {
  /* Firefox 19+ */
  white-space: pre-line;
  position: relative;
  top: -7px;
}
:-ms-input-placeholder {
  /* IE 10+ */
  white-space: pre-line;
  position: relative;
  top: -7px;
}
:-moz-placeholder {
  /* Firefox 18- */
  white-space: pre-line;
  position: relative;
  top: -7px;
}
