/*
Theme Name: Niko Solar Theme
Author: Serhii Rieznyk
Description: 17/04/2024
Version: 1.0
*/

@font-face {
    font-family: 'Fixel Display Extrabold';
    src: url('fonts/FixelDisplay-ExtraBold.woff2') format('woff2'),
    src: url('fonts/FixelDisplay-ExtraBold.otf') format('otf');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Fixel Bold';
    src: url('fonts/FixelText-Bold.woff2') format('woff2'),
    src: url('fonts/FixelText-Bold.otf') format('otf');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Fixel Medium';
    src: url('fonts/FixelText-Medium.woff2') format('woff2'),
    src: url('fonts/FixelText-Medium.otf') format('otf');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Fixel Regular';
    src: url('fonts/FixelText-Regular.woff2') format('woff2'),
    src: url('fonts/FixelText-Regular.otf') format('otf');
    font-weight: normal;
    font-style: normal;
}

:root {
  --bg-color: #F0F0F0;
  --white: #F0F0F0;
  --footer: #929292;
  --accent: #FFC501;
  --black: #161616;
}

*{
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body{
	background-color: var(--bg-color);
	font-family: 'Fixel Regular'; 
	font-weight: normal; 
	font-style: normal;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.main{
	width: 100%;
}

.wrapper{
	width: clamp(320px, 90%, 1200px);
	margin: 0 auto;
}

.header{
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 70px;
	position: fixed;
    z-index: 1000;
    width: 100%;
}

.header-bg{
	background-color: rgba(22, 22, 22, .75);
	backdrop-filter: blur(4px);
}

a.logo{
	display: block;
	height: 44px;
}

.flex-wrap{
	display: flex;
	justify-content: space-between;
	align-items: center;
}

ul.nav{
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 24px;
  align-items: center;
}

.nav li a{
	display: inline-block;
	padding: 8px 16px;
	padding-bottom: 4px;
	border-radius: 36px;
  	text-decoration: none;
  	color: var(--white);
  	font-size: 16px;
  	transition: all 200ms;
  &:hover{
  	color: var(--black);
  	background-color: var(--accent);
  }
}

.nav li.lang-item:first-child{
	margin-left: 40px;
}

/* Приховуємо стандартні прапори Polylang */
.pll-parent-menu-item img {
    display: none;
}

/* Кастомний прапор для української мови */
.lang-item-uk a {
    background-image: url('/wp-content/themes/niko-solar/images/ukraine-flag.svg');
    background-size: cover;
    width: 21px; /* Розмір прапора */
    height: 15px;
    display: inline-block;
    text-indent: -9999px; /* Приховуємо текст, щоб він не заважав */
}

/* Кастомний прапор для англійської мови */
.lang-item-en a {
    background-image: url('/wp-content/themes/niko-solar/images/english-flag.svg');
    background-size: cover;
    width: 21px;
    height: 15px;
    display: inline-block;
    text-indent: -9999px;
}

li.lang-item{
	list-style: none;
	margin: 0;
}

.lang-wrapper{
	display: flex;
	gap: 24px;
}

.hero{
	width: 100%;
	height: 100dvh; 
	overflow: hidden;
	background: url(images/hero-bg.jpg) no-repeat center center fixed;
	background-size: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.47);
}

.slogan-flex{
	width: clamp(320px, 100%, 1200px);
	margin: 0 auto;
	display: flex;
	justify-content: flex-start;
	align-items: center;
	height: 100dvh;
}

.hero h1{
	font-family: 'Fixel Display Extrabold';
	color: var(--white);
	font-size: 86px;
	line-height: 102%; 
	text-transform: uppercase;
}

span.yellow{
	color: var(--accent);
}

.section{
	height:786px;
	display: flex;
	align-items: center;
}

.geography, .appointment, .reports{
	position: relative;
	display: flex;
	align-items: center;
	background-color: var(--accent);
	filter:drop-shadow(0px 8px 22px rgba(0.0941176488995552,0.15294118225574493,0.29411765933036804,0.11999999731779099));
	overflow: hidden;
}

.geography_pic, .appointment img{
	position: absolute;
	height:666px;
	width: clamp(320px, 50%, 900px);
	filter:drop-shadow(0px 8px 22px rgba(0.0941176488995552,0.15294118225574493,0.29411765933036804,0.11999999731779099));
	border-radius:90px 0px 0px 0px;
	border:18px solid var(--white);
	overflow: hidden;
}

.appointment{
	justify-content: flex-end;
	background-color: var(--bg-color);
}

.geography_pic{
	bottom: -18px;
	right: -18px;
	border-radius:90px 0px 0px 0px;
}

.appointment img{
	bottom: -18px;
	left: -18px;
	border-radius: 0px 90px 0px 0px;
}


.appointment .wrapper{
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: flex-end;
}

.section h2{
	font-family: 'Fixel Display Extrabold';
	color: var(--black);
	font-size: 42px;
	line-height: 112%;
	letter-spacing: -2px;
	margin-bottom: 40px;
}

.section p{
	font-size: 16px;
	font-style: normal;
	line-height: 150%;
	color: var(--black);
	margin-bottom: 24px;
	max-width: 540px;
}

.section p:last-child{
	margin-bottom: 0;
}

.right-col,
.left-col{
	display: flex;
	flex-direction: column;
}

.left-col{
	align-items: center;
	gap: 48px;
}

.features-wrap{
	display: flex;
	gap: 24px;
	align-items: flex-start;
}

.feature-item{
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 192px;
	gap: 24px;
	transition: all 200ms;
}

.feature-item:hover{
	cursor: pointer;
}

.feature-item:hover > .feature-number{
	border: 10px solid var(--accent);
}

.feature-number{
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 166px;
	height: 166px;
	background-color: var(--white);
	border-radius: 42px;
	filter:drop-shadow(0px 8px 22px rgba(0.0941176488995552,0.15294118225574493,0.29411765933036804,0.11999999731779099));
	transition: all 100ms;
}

p.big-number, p.small-number{
	font-family: 'Fixel Display Extrabold';
	color: var(--black);
	font-size: 46px;
	line-height: 100%;
	letter-spacing: -2px;
	margin-bottom: 0;
}

p.small-number{
	font-size: 36px;
}

.feature-text p{
	font-family: 'Fixel Medium';
	color: var(--black);
	font-size: 18px;
	line-height: 112%;
	text-align: center;
}

.columns{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 60px;
}

a.report-lnk{
	font-size: 22px;
	color: var(--black);
	line-height: 22px;
	text-decoration: none;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	padding: 14px 24px;
	border-radius: 40px;
	border: 2px var(--black) solid;
	transition: all 200ms;
	margin-bottom: 24px;
	padding-top: 18px;
  &:hover{
  	background-color: var(--white);
  }
}

.contact-block{
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: 32px 40px;
	background: var(--white);
	border-radius: 42px;
	filter:drop-shadow(0px 8px 22px rgba(0.0941176488995552,0.15294118225574493,0.29411765933036804,0.11999999731779099));
}

.contact-wrap p{
	font-size: 16px;
}

.contact-block a{
	color: var(--black);
	transition: all 200ms;
	&:hover{
  	color: var(--accent);
  	text-decoration: none;
  }
}

p.contact-title{
	font-family: 'Fixel Bold';
	font-size: 16px;
	margin-bottom: 8px;
}

.contact-block h2{
	margin-bottom: 0;
}

.reports .columns{
	align-items: flex-start;
	justify-content: center;
	gap: 110px;
}

/* FOOTER */

.footer{
	padding: 32px 0;
	background-color: var(--black);
	width: 100%;
}

.footer-wrap{
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
}

.footer p{
	color: var(--footer);
	font-size: 16px;
	line-height: 150%;
}

.footer a{
	color: var(--footer);
	text-decoration: none;
	transition: all 200ms;
	&:hover{
		color: var(--white);
	}
}

.footer-contact{
	max-width: 370px;
}

.footer-copy{
	display: flex;
	flex-direction: column;
	align-items: flex-end;
}

img.footer-logo {
	margin-bottom: 50px;
}

.cursor{
	display: flex;
	gap: 8px;
	align-items: center;
	margin-top: 8px;
}

.footer-copy{
	margin-bottom: 0;
}

.phone{
	margin: 8px 0;
}

.person:first-child{
	margin-bottom: 16px;
}

/* NAV */

/* Nav humburger */

.menu {
    text-align: center;
}

.menu-icon {
    display: none;
    width: 29px;
    height: 26px;
    position: relative;
    cursor: pointer;
    z-index: 6000;
}

.menu-icon span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: var(--white);
    border-radius: 0;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.menu-icon-bg span {
    background: var(--white);
}

.menu-icon span:nth-child(1) {
    top: 0px;
}

.menu-icon span:nth-child(2), 
.menu-icon span:nth-child(3) {
    top: 10px;
}

.menu-icon span:nth-child(4) {
    top: 20px;
}

.burger span:nth-child(1) {
  top: 10px;
  width: 0%;
  left: 50%;
}

.burger span:nth-child(2) {
  transform: rotate(45deg);
}

.burger span:nth-child(3) {
  transform: rotate(-45deg);
}

.burger span:nth-child(4) {
  top: 18px;
  width: 0%;
  left: 50%;
}

.menu-state-open {
  display: flex;  
}



@media (max-width: 900px){

.mobile-nav{
	display: none;
}

.mobile-wrap{
	display: flex;
	align-items: center;
	justify-content: center;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100dvh;
	background-color: var(--black);
}

ul.nav,
.columns{
  flex-direction: column;
}

ul.nav li a{
  font-size: 26px;
  text-align: left;
}

.menu-icon {
   display: block;
}

.menu-state-open {
  display: flex !important;  
}

.columns{
	align-items: center;
}

.section p{
	max-width: 100%;
}

.section{
	height: auto;
	padding: 80px 0;
}

.hero h1{
	margin-left: 5%;
}

.geography_pic, .appointment img{
	width: 90%;
	border-radius: 90px 90px 0px 0px;
	height: 500px;
	left: 0; 
  	right: 0; 
  	margin-left: auto; 
  	margin-right: auto; 
}

.geography, .appointment{
	padding: 80px 0 560px 0;
}

.reports .columns{
	gap: 60px;
}

.contact-block{
	width: 100%;
}

.footer-wrap{
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 16px;
}

.footer p{
	text-align: center;
}

.footer-copy{
	align-items: center;
}

img.footer-logo{
	margin: 16px 0 24px 0;
}

}

@media (max-width: 600px){

.hero h1{
	font-size: 48px;
}

.features-wrap {
	flex-direction: column; 
    align-items: center;
    gap: 40px;
}

.section h2 {
	font-size: 36px;
}

.geography_pic, .appointment img{
	width: 100%;
	border-radius: 0px;
	border: none;
	border-top:18px solid var(--white);	
}

a.report-lnk{
	font-size: 20px;
}

.feature-item{
	width: 90%;
}

}

@media (max-width: 414px){

.hero h1{
	font-size: 40px;
}

a.report-lnk{
	font-size: 16px;
}

.contact-block{
	padding: 24px;
	gap: 16px;
}

.nav li.lang-item:first-child{
	margin-left: 0;
	margin-top: 40px;
}

}

