/* 
---------------------------------------------
font & reset css
--------------------------------------------- 

---------------------------------------------
reset
--------------------------------------------- 
*/

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, div pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img,
ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, figure, header, nav, section, article, aside, footer, figcaption 
{
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
}

.clearfix:after {
  content: ".";
  display: block;
  clear: both;
  visibility: hidden;
  line-height: 0;
  height: 0;
}

.clearfix {
  display: inline-block;
}

html[xmlns] .clearfix {
  display: block;
}

* html .clearfix {
  height: 1%;
}

html {
  scroll-behavior: smooth;
}

ul,
li {
  padding: 0;
  margin: 0;
  list-style: none;
}

header,
nav,
section,
article,
aside,
footer,
hgroup {
  display: block;
}

* {
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
}

html,
body {
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
  background-color: #fff;
  -ms-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  -webkit-transition: 0.5s;
  transition: 0.5s;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0px;
  margin-bottom: 0px;
  font-family: "Open Sans", sans-serif;
}

p {
  font-size: 14px;
  line-height: 25px;
  color: #7a7a7a;
}

.fl {
  float: left !important;
}

.fr {
  float: right !important;
}

/* 
---------------------------------------------
global styles
--------------------------------------------- 
*/
html, body {
  background: #fff;
  font-family: 'Open Sans', sans-serif;
}

::selection {
  background: #b40000;
  color: #fff;
}

::-moz-selection {
  background: #b40000;
  color: #fff;
}

.conteiner {
  max-width: 1280px;
  margin: 0 auto;
}

header {
  position: absolute;
  width: 100%;
  z-index: 9;
  top: 0;
}

header .logo{
  width: 200px;  
  position: absolute;
  top: 20px;
  right: 20px;
}
header .logo img{max-width: 100%; height: auto; display: block; border-radius: 15px;}

header .menu-button {
  position: fixed;
  width: 50px;
  height: 50px;
  top: 19px;
  left: 15px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  cursor: pointer;
  color: white;
  font-size: 30px;
  line-height: 40px;
  z-index: 0;
  box-shadow: none;
  outline: none;
}

header .sidenav {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  background-color:#04AA6D;
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 80px;
}

header .sidenav a {
  padding: 12px 32px 12px 8px;
  text-decoration: none;
  font-size: 20px;
  color: white;
  letter-spacing: 2px;
  display: block;
  transition: 0.3s;
}

header .sidenav a:hover {
  color: black;
}

header .sidenav .closebtn {
  position: absolute;
  top: 0px;
  left: 15px;
  font-size: 40px;
  padding: 0;
}

header .menu a.btn {
  transition: 0.5s;
  background-size: 200% auto;
  display: inline-block;
  background-image: linear-gradient(to right, #fe8c00 0%, #f83600 51%, #fe8c00 100%)
}

header .menu a.btn:hover {
  background-position: right center;
  /* change the direction of the change here */
  color: #fff;
  text-decoration: none;
}

.hero_section {
  width: 100%;
  display: block;
}

.hero_section .video-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.hero_section .video-container::after {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 0;
}

.hero_section video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero_section .overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  padding: 20px;
  border-radius: 10px;
  color: #ffffff;
  font-size: 2em;
  z-index: 1;
}

.main-section {
  display: block;
  padding: 100px 0;
}

.main-section .grid-container {
  display: grid;
  grid-template: auto / auto auto auto;
  grid-gap: 30px;
  width: 100%;
  justify-content: center;  
}

.main-section .grid-container>div {
  padding: 0;
  font-size: 30px;
}


/*** Start Portfolio ***/
.gallery {
	display: grid;	grid-template-columns: auto auto auto;
	gap: 30px;	
}

.gallery img.villa-gallery {
  display: block; max-width: 100%; height: auto; border-radius: 15px; cursor: pointer;
}

#lightbox {
	background: rgba(0,0,0,0.9); position: fixed; left: 0; top: 0; width: 100%; height: 100%; display: none;	justify-content: center; align-items: center;	color: #fff; z-index: 10;
}
#lightbox img{max-width: 90%; max-height: 90%; animation: zoomin 5s linear infinite;}

#lightbox .close, #lightbox .prev, #lightbox .next {
	position: absolute;
	cursor: pointer;
}

#lightbox .close {
  width: 40px;
  height: 40px;
	right: 20px; top: 20px;
  background-image: url(../images/close.png); background-repeat: no-repeat; background-size: 100% auto; background-position: right bottom;
}

#lightbox .prev {
  width: 40px;
  height: 40px;
	left: 10px;
  background-image: url(../images/arrow-l.png); background-repeat: no-repeat; background-size: 100% auto; background-position: right bottom;
}

#lightbox .next {
	right: 10px;
  width: 40px;
  height: 40px;	
  background-image: url(../images/arrow-r.png); background-repeat: no-repeat; background-size: 100% auto; background-position: right bottom;
}
  
@keyframes zoomin {
  0% {transform: scale(1);}
  50% {transform: scale(1.05);}
  100% {transform: scale(1);}
}
/*****/



/* עיצוב הגריד לקלפים */
.villa-img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 15px;
}

/* עיצוב קלף */
.flip-card {
  background-color: transparent;
  width: 100%;
  height: auto;
  perspective: 1000px;
  /* עומק תלת מימדי */
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

/* אפקט היפוך כאשר מעבירים עכבר */
.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

/* צד קדמי ואחורי */
.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  top: 0;
}

/* צד קדמי - תמונה */
.flip-card-front {
  background-size: cover;
  background-position: center;
  border-radius: 15px;
}

/* צד אחורי - טקסט */
.flip-card-back {
  background-color: rgba(255, 255, 255, 1);
  color: #333;
  transform: rotateY(180deg);
  padding: 8%;
  font-size: 16px;
  border-radius: 15px;

}

.flip-card-back .detail {
  display: block;
  padding: 5px 0;
}

.flip-card-back .detail .title {
  width: 115px;
  display: inline-block;
  color: #333;
  font-weight: 600;
  font-size: 17px;
}

.flip-card-back .detail span {
  max-width: 62%;
  display: inline-block;
  color: #04AA6D;
  font-weight: 600;
  vertical-align: top;
  font-size: 15px;
}
:root {
  --star-size: 26px;
  --star-color: #b6b6b6;
  --star-background: #fc0;
}
.flip-card-back .detail .Stars {
  --percent: calc(var(--rating) / 5 * 100%);
  display: inline-block;
  font-size: var(--star-size);
  font-family: Times;
  line-height: 1;
}
.flip-card-back .detail .Stars::before {
  content: "★★★★★";
  letter-spacing: 3px;
  background: linear-gradient(90deg, var(--star-background) var(--percent), var(--star-color) var(--percent));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}


.footer{
  display: block; text-align: center; font-size: 15px; background-color: #000; color: #ffffff;
  padding: 15px;
}


.about-map{  width: 100%;
  display:block;
}
.about-map iframe{ width: 100%; height: 80vh; display: block; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);}
.about-main .details{
  width: 100%;  display: block; text-align: center;
}
h2{ 
  font-size: 34px; color: #000; font-weight: 600; display: block; text-align: center; padding-bottom: 15px;
}
.about-main .details .card-main{ 
  width: 40%;  
  display: inline-block;
  padding: 15px;
  margin: 0 -2px; 
  vertical-align: top;  
}
.about-main .details .card-main .card{ 
  width: 100%;
  height: 270px;
  display: block;
  padding: 30px;  
  border: 1px solid #afafaf;
  border-radius: 15px;
  text-align: center;
}
.about-main .details .card-main .card .icon{ width: 70px; height: 70px; display: inline-block; vertical-align: middle; background-color: #afafaf; border-radius: 40px; text-align: center; margin-bottom: 10px;}
.about-main .details .card-main .card .icon img{max-width: 60%; height: auto; display: inline-block; margin-top: 20%;}
.about-main .details .card-main .card h3{ display: block; font-size: 22px; text-transform: uppercase;  margin-bottom: 15px;}
.about-main .details .card-main .card p{ display: block; font-size: 18px; color: #000;}
.about-main .details .card-main .card p a{ font-size: 18px; font-weight: 700; color: #333;}
.about-main .details .card-main .card p a:hover{ opacity: 0.5;}
.about-main .details .card-main .card.social a{width: 40px; height: 40px; display: inline-block; background-color: #afafaf; border-radius: 20px; margin: 0 2px;}
.about-main .details .card-main .card.social a img{max-width: 80%; height: auto; display: inline-block; margin-top: 20%;}
.about-main .details .card-main .card.social a:hover{ background-color: #f83600;}


.contact{width: 100%; display: block;}

/* עיצוב הטופס */
.signup-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.9);
  padding: 20px;
  border-radius: 10px;  
  width: 500px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.7);
  color: black;
  direction: ltr;
}
.signup-container form{ text-align: left;}

.signup-container input[type=text], .signup-container input[type=password], .signup-container textarea  {
  width: 100%;
  padding: 12px;
  margin: 5px 0 15px 0;
  border: none;
  background: #f1f1f1;
}
.signup-container label{ font-size: 14px;}

.signup-container input[type=text]:focus, input[type=password]:focus {
  background-color: #ddd;
  outline: none;
}

.signup-container button {
  background-color: #04AA6D;
  color: white;
  padding: 14px 20px;
  border: none;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
  opacity: 0.9;
}

.signup-container button:hover {
  opacity: 1;
}

.signup-container p {
  margin: 0;
  padding-bottom: 10px;
}

.success-msg{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);  
  z-index: 5;  
}
.success-msg p{
  font-size: 24px;
  color: #04AA6D;
  font-weight: 700;
  animation: zoomin 3s linear;
}

@media screen and (max-width:1366px) {
  .conteiner { max-width: 1100px;}
  .flip-card-back .detail span{
    width: 58%;
  }
}

@media screen and (max-width:1100px) {
  .conteiner { max-width: 90%; }
  .main-section {padding: 100px 0 50px;}

  .main-section .grid-container {   
    grid-template: auto / auto auto;
  }
  .gallery{
    grid-template: auto / auto auto;
  }
  .about-main .details .card-main{
    width: 50%;
  }
  .flip-card-back .detail span{
    width: 62%;
  }
}


@media screen and (max-width:992px) {
  header .logo{ width: 150px;}
  .hero_section .overlay-text{
    font-size: 1.5em;
  }
  .flip-card-back .detail span{
    width: 58%;
  }
  .signup-container {    
    max-height: 96vh;
    overflow: auto;
  }  
}

@media screen and (max-width:767px) {
  header .logo{ width: 120px; top:15px; right: 15px;}
  header .logo img{ border-radius: 10px;}
  .footer {
    font-size: 13px;    
    padding: 12px;
  }
  .main-section {padding: 100px 0 50px;}
  .main-section .grid-container {       
    gap: 20px;
  }
  .gallery{    
    gap: 20px;
  } 
  .flip-card-back .detail span{
    width: 56%;
  }
  h2 {
    font-size: 30px;
  }
  .about-map{ margin-bottom: -50px;}
  .about-main .details .card-main{
    width: 100%;
    padding:10px 0;
  }
  .about-main .details .card-main .card{
     height: auto;
     padding: 20px;
  }
  .about-main .details .card-main .card .icon{
    width: 50px; height: 50px;
  }
  .about-main .details .card-main .card h3 {   
    font-size: 20px; margin-bottom: 10px;
  }
  .about-main .details .card-main .card p {    
    font-size: 16px;    
  }
  .about-main .details .card-main .card p a {
    font-size: 16px;    
  }
  .about-main .details .card-main .card.social a {
    width: 34px;
    height: 34px;    
  }
  .about-main .details .card-main .card.social a img {   
    max-width: 66%; margin-top: 17%;
  }
  .signup-container {
    width: 400px;        
  }
  .success-msg{ width: 90%; text-align: center;}
  .success-msg p{
    font-size: 16px;    
  }
  
}


@media screen and (max-width:500px) {
  .hero_section .overlay-text{
    font-size: 1.2em;
    width: 90%;
    text-align: center;
  }  
  .main-section .grid-container {   
    grid-template: auto / auto;    
  }
  .gallery{
    grid-template: auto / auto;    
  } 
  .signup-container {
    width: 100%;    
  }
}