/*
Theme Name: Nest
*/

/*************** General styles ********/
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

@media (max-width: 480px) {
  html {
    scroll-padding-top: 80px;
  }
}

body {
  background-color: #f3f0e3;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  padding-top: 120px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.inner-section .container {
  padding-top: 0;
}

.section {
  width: 100%;
  scroll-margin-top: 120px;
  position: relative;
  overflow: hidden;
}

/*************** Header styles ********/
.site-header {
  padding: 30px 0;
  height: 120px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: #f3f0e3;
}

.site-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  position: relative;
}

.logo {
  display: block;
  width: 170px;
  overflow: hidden;
}

.logo-block {
  display: flex;
  align-items: center;
}

.menu-grid {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: auto;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-navigation a {
  text-decoration: none;
  text-transform: uppercase;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  display: inline-block;
}

.main-navigation a:hover {
  color: #0073aa;
}

.burger-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.burger-line {
  display: block;
  width: 25px;
  height: 2px;
  background: #333;
  margin: 5px 0;
  transition: all 0.3s ease;
}

@media (max-width: 1200px) {
  .menu-grid {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, auto);
    grid-template-rows: auto auto;
    gap: 15px 20px;
  }

  .site-header {
    height: auto;
    padding: 0px;
  }
}

@media (max-width: 900px) {
  .main-navigation {
    position: fixed;
    top: 90px;
    left: 0;
    width: 100%;
    background: #f3f0e3;
    padding: 20px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-150%);
    transition: transform 0.4s ease;
    z-index: 999;
  }

  .main-navigation.active {
    transform: translateY(0);
  }

  .menu-grid {
    display: block;
    grid-template-columns: none;
  }

  .main-navigation li {
    margin-bottom: 15px;
  }

  .burger-menu {
    display: block;
  }

  .burger-menu.active .burger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;
  }

  .burger-menu.active .burger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media (max-width: 768px) {
  .main-navigation a {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .site-header {
    height: 80px;
    padding: 15px 0;
  }

  .main-navigation {
    top: 80px;
  }

  .logo {
    width: 120px;
    height: 80px;
  }
}
/*************** inner section ********/

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

.error-message {
  color: #dc3232;
  font-size: 13px;
  display: none;
}

.wpcf7-not-valid-tip {
  display: none !important;
}

.wpcf7 form.invalid .error-message,
.wpcf7 form.unaccepted .error-message,
.wpcf7 form.payment-required .error-message {
  display: block;
}

.btn {
  padding: 12px 24px;
  background: #21759b;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

.btn:hover {
  background: #1a6485;
}

.required {
  color: #dc3232;
}

.inner-section {
  padding-top: 100px 0;
  margin-top: 120px;
  padding: 30px 0;
  background-image: url("img/1-section.jpg");
  background-size: none;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  z-index: 1;
}

.workspace-content {
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: center;
}

.workspace-content-left-bg {
  background-color: #000000;
  opacity: 0.9;
  position: absolute;
  border-radius: 10px;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  z-index: -1;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.workspace-content-left,
.workspace-content-right {
  width: 50%;
}

.workspace-content-left {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  color: #fff;
  padding: 10px 20px;
}

.section-subtitle {
  font-size: 35px;
  text-transform: uppercase;
}

.section-title {
  font-size: 48px;
  font-weight: 700;
}

.section-header {
  z-index: 100;
  top: 20px;
  width: 60%;
  position: absolute;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 15px 0px;
  opacity: 0;
  transition: all 0.6s ease;
  font-size: 30px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  text-align: center;
}

/* .section-header.gallary {
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(177, 177, 177, 0.8);
  color: #000000;
  width: 40%;
} */

/* .gallery-container {
  padding-top: 15px;
} */

@media (max-width: 850px) {
  .section-header {
    font-size: 25px;
    width: 65%;
  }
  .section-header.large {
    width: 80%;
  }
}

@media (max-width: 600px) {
  .section-header {
    font-size: 20px;
  }
}

.section-header.left {
  left: 0px;
  clip-path: polygon(0 0, 100% 0, 93% 100%, 0% 100%);
}

.section-header.right {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 7% 100%);
  right: 0px;
}

.welcome-text {
  font-size: 24px;
  margin-bottom: 10px;
  font-weight: 700;
}

.description {
  font-size: 15px;
  line-height: 1.4;
  margin-bottom: 10px;
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 500px;
  margin: 0 auto;
}

form textarea,
form input {
  width: 100%;
  padding: 5px;
  margin-bottom: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  max-height: 100px;
}

input::placeholder,
textarea::placeholder {
  color: #666;
  opacity: 1;
  font-style: normal;
  font-family: Arial, Helvetica, sans-serif;
}

form .wpcf7-submit {
  background-color: rgb(240, 157, 72);
  text-transform: uppercase;
  color: #000000;
  font-weight: bold;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
}

form .wpcf7-spinner
{
  display: none !important;
}

@media (max-width: 1200px) {
  .inner-section {
    margin-top: 90px;
  }
}

@media (max-width: 900px) {
  .workspace-content {
    flex-direction: column;
  }
  .workspace-content-left-bg {
    width: 80%;
    height: 100%;
    left: 10%;
  }
  .workspace-content-left {
    width: 80%;
  }

  .workspace-content-right {
    width: 0%;
  }
  .section-subtitle {
    font-size: 22px;
  }
  .welcome-text {
    margin-bottom: 10px;
  }
  .description {
    margin-bottom: 15px;
    line-height: 1.3;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 36px;
  }

  .welcome-text {
    font-size: 20px;
  }

  .description {
    font-size: 14px;
  }
}

/*about section*/
.about-section {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #000000;
  padding: 50px 0;
  position: relative;
}

.about-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
  text-align: center;
}

.about-block-text {
  width: 40%;
}

.about-block-img {
  width: 45%;
  padding-bottom: 40%;
  background-image: url("img/about.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

@media (max-width: 900px) {
  .about-inner {
    flex-direction: column;
  }
  .about-block {
    width: 100%;
    max-width: 600px;
  }
  .about-block-img {
    width: 100%;
    max-width: 515px;
    padding-bottom: 60%;
  }
}

@media (max-width: 700px) {
  .about-block-img {
    padding-bottom: 80%;
  }
}

@media (max-width: 600px) {
  .about-block-img {
    padding-bottom: 80%;
  }
}

/*cards section*/
.cards-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(3, 1fr);
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: #ffffff;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease;
}

.card:nth-child(odd) {
  background-color: rgb(245, 242, 235);
}

.card:nth-child(even) {
  background-color: rgb(222, 219, 210);
}

.card-icon img {
  width: 50px;
  height: 50px;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
}

.card-text {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.4;
}

@media (max-width: 1024px) {
  .cards-container {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(5, 1fr);
  }
}

@media (max-width: 768px) {
  .cards-container {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(8, 1fr);
  }
}

@media (max-width: 480px) {
  .cards-container {
    grid-template-columns: 1fr;
  }
}

/*gallery section*/
.gallery-container {
  background: rgb(206, 176, 147);
}
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: 10px;
  width: 100%;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  padding-bottom: 68%;
}

.gallery-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.05);
}

@media (max-width: 900px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 400px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}

/*plan section*/
.plan-section {
  background-image: url("img/plan.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #000000;
  position: relative;
}

.plan-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(240, 240, 240, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1;
  top: 0px;
}

/* .plan-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(122, 122, 122, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1;
  top: 400px;
}

.plan-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(122, 122, 122, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1;
  bottom: 570px;
} */

.plan-section .plan-container {
  position: relative;
  z-index: 2;
  color: white;
  padding: 2rem;
}

.plan-inner {
  margin: 150px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  gap: 40px;
  align-items: stretch;
}

@media (max-width: 500px) {
  .plan-inner {
    margin: 0;
  }
}

.plan-card {
  background: #ffffff;
  padding: 60px 0;
  width: 30%;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  color: #000000;
  position: relative;
}
.plan-card h3 {
  color: #000000;
  font-size: 18px;
  text-transform: uppercase;
  padding: 15px 10px 30px;
}

.plan-card .plan-icon {
  width: 60px;
  height: 60px;
  position: absolute;
  top: -25px;
  z-index: 100;
}

.plan-card .plan-icon img {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  object-fit: cover;
}

.plan-card .plan-text{
  padding: 0 60px;
  color: #666;
}

@media (max-width: 900px) {
  .plan-inner {
    flex-direction: column;
    gap: 50px;
    align-items: center;
  }
  .plan-section::before {
    inset: 0;
  }
  .plan-section::after {
    inset: 0;
  }
  .plan-section {
    padding: 0px;
  }
  .plan-card {
    width: 100%;
    max-width: 450px;
  }
}
/*community section*/
.section-community {
  align-items: center;
  color: #000000;
  padding: 50px 0;
  position: relative;
}

.community-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  text-align: center;
}

.community-block {
  width: 50%;
}

.community-block-img {
  width: 50%;
  padding-bottom: 34%;
  background-image: url("img/community.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

@media (max-width: 900px) {
  .community-inner {
    flex-direction: column;
  }
  .community-block {
    width: 100%;
    max-width: 600px;
  }
  .community-block-img {
    padding-bottom: 60%;
  }
}

/**map section*/
.section-map {
  background-image: url("img/map-section.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  padding: 50px 0;
  position: relative;
}

.section-map::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(122, 122, 122, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1;
}

.section-map .map-container {
  position: relative;
  z-index: 2;
}
.map-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.map-block {
  width: 50%;
}

.map-block-map {
  display: flex;
  justify-content: center;
  align-items: center;
}

.map-block-map iframe {
  display: block;
  border-radius: 15px;
  width: 100%;
  max-width: 600px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.map-block-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  width: 100%;
  max-width: 400px;
}
.map-block-text h3 {
  color: #fff;
  text-align: center;
  font-size: 24px;
  font-weight: 600;
}
.map-block-text p {
  color: #fff;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
}

@media (max-width: 900px) {
  .map-inner {
    flex-direction: column;
  }
  .map-block-text {
    max-width: 80%;
    line-height: 1;
  }
  .map-block-map {
    max-width: 70%;
  }
  .map-block-map iframe {
    width: unset;
  }
}

/*contact section*/
.section-contact {
  padding: 20px 0;
}
.contact-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.contact-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-line {
  align-self: center;
  width: fit-content;
}

.contact-line span {
  font-weight: 700;
}

.contact-block {
  max-width: 50%;
}
.contact-block-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  width: 100%;
  max-width: 400px;
}

.contact-block-text p {
  text-align: center;
  font-size: 18px;
}
.contact-block-img {
  width: 50%;
  padding-bottom: 56%;
  background-image: url("img/contact.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.contact-list img {
  width: 40px;
  height: 40px;
}

@media (max-width: 900px) {
  .contact-inner {
    flex-direction: column;
  }
  .contact-block-text {
    max-width: 60%;
  }
  .contact-block-img {
    width: 80%;
  }
}

/****************** footer*************/

footer {
  background-color: #000000;
  color: #fff;
}
.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 15px;
}

footer .nav-list {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list li {
  margin: 0 10px;
  list-style: none;
}

.nav-list ul li a {
  color: #fff;
  text-decoration: none;
}

.logo-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.contacts-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.contacts-block .nav-links {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: right;
  gap: 10px;
  margin-top: 20px;
}

.contacts-block .nav-links a{
  color: #fff;
  text-decoration: none;
  text-align: right;
}

.contacts-line a img {
  width: 30px;
  height: 30px;
}

.contacts-line a img:hover {
  cursor: pointer;
}

@media (max-width: 600px) {
  .footer-container {
    flex-direction: column;
    gap: 20px;
  }
}

/*************** tech page*************/

.tech-page-section {
  padding: 50px 0;
}
.tech-page-section h3,
.tech-page-section h1 {
  margin-bottom: 20px;
}

.tech-page-section h1 {
  text-align: center;
  font-size: 34px;
}

.tech-page-section h3 {
  text-transform: uppercase;
  font-size: 24px;
}

.tech-page-section .text-block {
  margin-bottom: 30px;
}

.tech-page-section a{
  color: inherit;
}

@media (max-width: 600px) {
  .tech-page-section h1 {
    font-size: 24px;
  }

  .tech-page-section h3 {
    font-size: 18px;
  }

  .tech-page-section .text-block {
    font-size: 14px;
  }
}
