/*
Theme Name: Rural Social Economy
Theme URI: https://airtilion.com/wp/rural-social-economy
Author: the Airtilion team
Author URI: https://airtilion.com
Description: Motyw przygotowany na potrzeby strony Rural Social Economy
Requires at least: 6.4
Tested up to: 6.5
Requires PHP: 7.0
Version: 0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ruralsocialeconomytheme
*/

@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Kaushan+Script&display=swap');

* {
  box-sizing: border-box;
}

html{scroll-behavior: smooth;}

body {
  min-height: 100vh;
  line-height: 1;
  text-rendering: optimizeSpeed;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Jost', sans-serif;
}

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
  line-height: inherit;
  color: inherit;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

/*-----HEADER-----*/

header {
  display: flex;
  position: relative;
  flex-direction: column;
  height: 120vh;
  background: url('./assets/images/header-backgound.webp') lightgray 50% / cover no-repeat;
  backdrop-filter: lightgrey 100%;
}

.navigation {
  z-index: 1;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  position: relative;
  margin-top: 10px;
  padding-bottom: 10px;
}

.navigation::after {
  content: '';
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: rgba(217, 217, 217, 0.50);
}

.nav-buttons {
  display: flex;
  flex-direction: row;
}

nav {
  display: flex;
  align-items: center;
}

nav ul {
  list-style-type: none;
  display: flex;
  flex-direction: row;
  gap: 40px;
}

nav ul li {
  height: 100%;
}

nav ul li a {
  text-decoration: none;
  color: #FFF;
  font-size: 25px;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

nav ul li a::after {
  overflow: hidden;
  content: '';
  position: absolute;
  width: 100%;
  bottom: -50px;
  left: 0;
  height: 4px;
  background-color: #FFF;
  display: none;
}

nav ul li a:hover::after {
  /* left: 0; */
  display: block;
  transition-duration: 500ms;
}

.languages {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  margin-left: 60px;
}

header .darker {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: black;
  opacity: 0.2;
  top: 0;
}

.lighter-area {
  height: 75%;
  margin: 63px 93px auto 93px;
  z-index: 1;
  border-radius: 10px;
  background: rgba(80, 80, 80, 0.10);
  box-shadow: 0px 5px 100px 30px #0C0C0C;
  padding-inline: 67px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.lighter-area::after {
  content: '';
  position: absolute;
  width: calc(100% - 132px);
  bottom: 60px;
  height: 2px;
  background: rgba(217, 217, 217, 0.50);
}

.lighter-area :is(h1, h2) {
  color: #FFF;
  text-align: center;
  margin: 0;
}

.header-text {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.header-text h1 {
  font-size: 45px;
}

.header-text h2 {
  margin-top: 23px;
  font-size: 25px;
}

.header-text a {
  border-radius: 10px;
  background: rgba(26, 33, 28, 0.25);
  cursor: pointer;
  text-decoration: none;
  color: #FFF;
  font-size: 20px;
  font-weight: 600;
  margin-top: 40px;
  transition-duration: 400ms;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  border: 5px solid #1A211C;
  padding-inline: 32px;
  padding-block: 6px;
}

.header-text a:hover {
  color: #e1e1e1;
  transform: scale(0.9);
}

.header-text p {
  margin: 0;
}

.menu-logo {
  color: #FFF;
  text-align: center;
  font-family: "Kaushan Script";
  font-size: 40px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  width: 336px;
  margin: 0;
}

.gradient-bottom {
  position: absolute;
  width: 100%;
  height: 200px;
  bottom: 0;
  z-index: 3;
  background: linear-gradient(180deg, rgba(217, 217, 217, 0.00) 0%, #FFF 70%);
}

/*----MENU----*/

.nav-buttons-mobile {
  display: none;
}

.mb-show {
  width: 50px;
  height: 40px;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  align-self: center;
  cursor: pointer;
}

.active {
  display: block;
  position: relative;
}

.active span {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.active span:nth-child(2) {
  display: none;
}

.active span:nth-child(1) {
  transform: rotate(45deg);
}

.active span:nth-child(3) {
  transform: rotate(-45deg);
}


.mb-show span {
  width: 100%;
  height: 6px;
  background-color: #FFF;
  transition-duration: 500ms;
}

.nav-buttons-mobile {
  position: fixed;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.663);
  height: 100vh;
  right: 0;
  width: 30%;
  flex-direction: column;
  gap: 50px;
  padding: 30px;
}

.mb-languages{
  display: flex;
  flex-direction: row;
  gap: 20px;
}

.nav-buttons-mobile nav ul{
  flex-direction: column;
}

/*----FOOTER----*/

footer {
  position: relative;
  width: 100%;
  background-color: #1A211C;
  background-image: url('./assets/images/green-background-v2.webp');
  background-size: contain;
  background-position: 10%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #FFF;
  padding-inline: 30px;
  z-index: 10;
}

footer p {
  text-align: center;
  line-height: 1.2;
}

.footer-logo {
  color: #FFF;
  text-align: center;
  font-family: "Kaushan Script";
  font-size: 40px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  width: 210px;
}

footer .copy {
  color: rgb(157, 157, 157);
}

footer .made-by {
  font-size: 0.9rem;
  color: rgb(157, 157, 157);
  text-decoration: none;
  margin-left: auto;
  margin-block: 16px;
  display: flex;
  justify-content: end;
  align-items: center;
  gap: 10px;
  transition-duration: 700ms;
}

footer .made-by:hover{
  transform: scale(1.1);
}

footer .license{
  display: flex;
  justify-content: center;
  align-items: center;
}

footer .license a{
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: #A7D3B9;
  transition-duration: 700ms;
  gap: 6px;
}

footer .privacy{
  text-decoration: none;
  color: #fff;
  transition-duration: 700ms;
}

footer .license a:hover,
footer .privacy:hover{transform: scale(0.95);}


/* Wtyczka WCAG */

#pojo-a11y-toolbar .pojo-a11y-toolbar-overlay ul.pojo-a11y-toolbar-items {
  flex-direction: column;
  gap: 5px;
}

/*----Błąd 404----*/
.text-back-to-home{
	font-size: 20px;
	color: #fff;
}

.back-to-home{
  text-decoration: none;
  display: inline-block;
  transition-duration: 700ms;
  color: #e67e22 !important;
}

.back-to-home:hover{
  transform: translateY(10px);
  color: #fff;
  padding: 6px !important;
}

@media only screen and (max-width: 1600px) {
  .menu-logo {
    font-size: 30px;
    width: 236px;
  }

  nav ul li a {
    font-size: 20px;
  }

  nav ul li a::after {
    bottom: -40px;
  }

  .languages img {
    width: 40px;
  }

  .header-text h1 {
    font-size: 35px;
  }

  .header-text h2 {
    font-size: 20px;
  }

  .header-text a {
    font-size: 15px;
  }

  .nav-buttons-mobile{display: none;}
}

@media only screen and (max-width: 1240px) {
  .nav-buttons {
    display: none !important;
  }

  .mb-show{
    display: flex;
  }

  nav ul li a::after{
    bottom: -10px;
  }

  .header-text h1 {
    font-size: 30px;
  }

  .header-text h2 {
    font-size: 17px;
  }

}

@media only screen and (max-width: 1020px) {
  .header-text h1 {
    font-size: 23px;
  }

  .header-text h2 {
    font-size: 13px;
  }

  .header-text a {
    font-size: 13px;
    border: 3px solid #1A211C;
  }
}

@media only screen and (max-width: 740px) {
  .lighter-area{
    margin: 0;
    border-radius: 0;
  }

  .header-text a{
    background: rgb(131 177 144 / 25%);
    padding-block: 3px;
    padding-inline: 16px;
  }

  .nav-buttons-mobile{width: 60%;}
}

@media only screen and (max-width: 540px){
  .lighter-area{padding-inline: 20px;}
  .lighter-area::after{width: calc(100% - 40px);}

  .header-text h1 {
    font-size: 23px;
    padding-inline: 10px;
  }

  .header-text h2 {
    font-size: 13px;
    padding-inline: 10px;
  }

  .menu-logo{
    font-size: 25px;
    width: 136px;
  }
  .nav-buttons-mobile{width: 100%; left: 0}
  footer .made-by{flex-direction: column; margin-left: 0px;}
  footer .license{flex-direction: column;}
}