/*
 Theme Name:   MASA Architekci
 Author:       Gosia Gozdz myspot.ON
 Template:     Divi
 Version:      1.19

*/

/* ============== GLOBAL STYLES ============== */

/* Fix a horizontal scroll bug on mobile browsers */
#page-container { 
  overflow:hidden; 
  width:100%; 
  max-width:100%; }

/*SELECTION*/
::selection {
     background-color: #C3C3AA;
     color: #1C1C19;} 

body {
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "clig" 0;
  -webkit-font-feature-settings: "liga" 0, "clig" 0;
}

html body #page-container [class*="preset--group--divi-"][class*="--divi-background--"]:hover {
  background-image:none!important;
}

/* ============== TEXT STYLE ============== */

ul, li, ol {
  line-height:1.2em!important;
}

:where(.et_pb_text) :is(p,ul,ol,blockquote) ~ :is(h1,h2,h3,h4,h5,h6) {
  padding-top:.75em;
}

:where(.et_pb_text) p:last-of-type {
  padding-bottom:1em;
}
:where(.et_pb_text) :is(p,ul,ol,blockquote):last-child {
  padding-bottom:0;
}

:where(.et_pb_text) ::marker {
  color:#C3C3AA!important;
  font-family:var(--et_global_heading_font);
}
:where(.et_pb_text) p + :is(ul,ol) {
  padding-top:.2em!important;
}
:where(.et_pb_text) :is(ol,ul) li:not(:last-child) {
  padding-bottom:.5em;
}



/* Style Blockquotes */
:where(.et_pb_text) blockquote {
  border:none;
  position:relative;
  padding:30px;
  margin:.5em 0 1.5em;
  background:
    radial-gradient(ellipse at 45% 50%, rgba(237, 247, 133, .72) 0%, rgba(237, 247, 133, .46) 34%, rgba(250, 250, 247, .58) 68%, rgba(250, 250, 247, .95) 100%),
    linear-gradient(90deg, #FAFAF7 0%, #EDF785 48%, #FAFAF7 100%);
  overflow:hidden;
}
:where(.et_pb_text) blockquote::after {
  content:none;
}
:where(.et_pb_text) blockquote::before {
  content:none;
}



/* Style Links */
:where(.et_pb_text) a:not(.et_pb_button):not(.icon) {
  position: relative;
  text-decoration: none!important;
}

:where(.et_pb_text) a:not(.et_pb_button):not(.icon)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -.16em;
  height: .24em;
  background:
    linear-gradient(#1C1C19, #1C1C19) 0 0 / 100% 1px no-repeat,
    linear-gradient(#C3C3AA, #C3C3AA) 100% 100% / 100% 1px no-repeat;
  pointer-events: none;
}

/* ============== BACK TO TOP ============== */
.et_pb_scroll_top:before {
  content: '!';
  position: relative;
  z-index: 2;
}

.et_pb_scroll_top.et-pb-icon {
  background: radial-gradient(circle, #ECF494 0%, #ECF494 100%);
  border-radius: 100px;
  color: #1C1C19;
  padding: 12px;
  font-size: 22px;
  right: 20px;
  bottom: 40px !important;
  overflow: hidden;
  isolation: isolate;
}

.et_pb_scroll_top.et-pb-icon::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, #E6E6CA 0%, #E6E6CA 100%);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width .35s ease, height .35s ease;
}

.et_pb_scroll_top.et-pb-icon.et-visible {
  transition: all .3s ease-in-out;
}

@media (max-width:980px){
.et_pb_scroll_top.et-pb-icon {
  font-size: 22px;
  right: 10px;
  bottom: 10px !important;
}}



/* ===================== FORMULARZ ===================== */

.forminator-field input,
span.select2-selection.select2-selection--single,
textarea {
    padding: 15px!important;}

#checkbox-1 label {
    align-items:flex-start!important;}

span.forminator-checkbox-label {
    line-height:1.2em!important;
    text-align:left!important;
    font-size:14px!important;
    color:#195D51;
    width:80%;}

@media (max-width:980px){
	span.forminator-checkbox-label {
width:100%;}
}


button.forminator-button.forminator-button-submit {
    border-radius:40px!important;
    font-size:18px!important;
    padding:0.75em 3em!important;
    display: block!important;
    margin-left: auto!important;
    margin-top:20px!important;
    text-transform:uppercase;
}

/* ============== BUTTON ============== */
.masa-button {
  position: relative;
  display: inline-block;
  cursor: pointer;
  overflow: hidden;
  transition: transform .25s ease;
  z-index: 1;
  isolation: isolate;
}

.masa-button .sa-cursor {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(237, 247, 133, .95) 0%, rgba(237, 247, 133, .72) 34%, rgba(250, 250, 247, .42) 64%, rgba(250, 250, 247, 0) 100%),
    linear-gradient(90deg, rgba(250, 250, 247, .25) 0%, rgba(237, 247, 133, .78) 35%, rgba(250, 250, 247, .35) 70%, rgba(237, 247, 133, .78) 100%) !important;
  background-size: 100% 100%, 260% 100% !important;
  border-radius: 50%;
  pointer-events: none;
  transition: width .45s ease, height .45s ease, opacity .25s ease;
  transform: translate(-50%, -50%);
  opacity: .92;
  filter: blur(18px);
  mix-blend-mode: normal;
  z-index: 2;
}

.masa-button:hover .sa-cursor,
.masa-button:focus .sa-cursor {
  width: 280px;
  height: 190px;
  animation: masa-button-gradient 1.6s linear infinite;
}

.masa-button:active .sa-cursor {
  width: 250px;
  height: 170px;
}

.masa-button.et_pb_button:after {
  position: relative;
  z-index: 4;
}

.masa-button .masa-button__label,
.masa-button.et_pb_button .et_pb_button_text {
  position: relative;
  z-index: 3;
}

@keyframes masa-button-gradient {
  0% {
    background-position: 50% 50%, 0 50%;
  }

  100% {
    background-position: 50% 50%, 260% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .masa-button:hover .sa-cursor,
  .masa-button:focus .sa-cursor,
  .masa-button:active .sa-cursor {
    animation: none;
    background-position: 100% 50% !important;
  }
}


/* =========================
   HEADER
========================= */
#masa-header .et-menu-nav > ul,
#masa-header .et_pb_menu__menu > nav > ul {
  gap: clamp(36px, 6vw, 88px);
}

#masa-header .et-menu-nav > ul > li,
#masa-header .et_pb_menu__menu > nav > ul > li {
  padding-left: 0!important;
  padding-right: 0!important;
}

/* =========================
   FOOTER
========================= */
@media (max-width:980px) {
  #z-footer .et_mobile_nav_menu {
    display: none!important;
  }
  #z-footer .et_pb_menu__menu {
    display: block!important;
  }
  #z-footer .et_pb_menu__menu,
  #z-footer .et_pb_menu__menu > nav > ul {
    display: flex;
    flex-direction: column!important;
    flex-wrap: nowrap!important;
  }
  #z-footer .et_pb_menu--style-left_aligned .et_pb_menu__wrap {
    justify-content: flex-start!important;
  }
  #z-footer .kp-regulaminy .et_pb_menu__menu > nav > ul {
    flex-direction: row!important;
    justify-content: flex-start!important;
    flex-wrap: wrap!important;
  }
}