/* فونت‌های Vazirmatn */
@font-face {
  font-family: Vazirmatn;
  src: url("fonts/Vazirmatn-Thin.woff2") format("woff2");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url("fonts/Vazirmatn-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url("fonts/Vazirmatn-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url("fonts/Vazirmatn-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Vazirmatn", sans-serif;
  direction: rtl;
  scroll-behavior: smooth;
  background: #fff;
  color: #344e41;
  padding-top: 80px;
}

body.has-fixed-nav {
  padding-top: 80px;
}

::selection {
  background: #588157;
  color: #fff;
}

::-moz-selection {
  background: #588157;
  color: #fff;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #fff;
}

::-webkit-scrollbar-thumb {
  background: #588157;
  border-radius: 20px;
  transition: 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: #588157;
}

/* Loader */
.loader {
  border: 3px solid #588157;
  border-left-color: #588157;
  border-radius: 50%;
  width: 120px;
  height: 120px;
  animation: spin 1s linear infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.95);
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.inner {
  border: 2px solid #588157;
  border-radius: 5px;
  width: 30px;
  height: 30px;
  animation: pulse 1s ease-in-out infinite;
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

.hidden {
  opacity: 0;
  visibility: hidden;
}

#site-content {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.navbar {
  width: 100%;
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  backdrop-filter: blur(14px);
  border-radius: 0;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-right {
  font-size: 25px;
  font-weight: 700;
  background-color: line;
  background-image: linear-gradient(#588157, #dad7cd);
  color: transparent;
  background-clip: text;
}

.nav-center {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav-center a {
  text-decoration: none;
  list-style: none;
  color: #344e41;
  font-weight: 500;
  position: relative;
  transition: color 0.25s ease;
}

/* Underline hover */
.nav-center a::after {
  list-style: none;
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  left: 0;
  bottom: -4px;
  background: #588157;
  transition: width 0.2s ease;
}
.nav-center a:hover::after {
  width: 100%;
}

/* دکمه همبرگر */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 22px;
  height: 18px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #588157;
  border-radius: 2px;
  transition: 0.3s;
}

/* حالت باز شدن همبرگر */
.nav-center.active {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  right: 0;
  background: #ffffffdd;
  width: 100%;
  padding: 1rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.nav-center.active li {
  margin-bottom: 1rem;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 860px) {
  .nav-center {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffffdd;
    width: 200px;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  }

  .hamburger {
    display: flex;
  }
}

/* Left Action Buttons */
.actions {
  display: flex;
}

.action-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: #344e41;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: 0.3s;
  text-decoration: none;
}

.action-btn:hover {
  transform: translateY(-3px) scale(1.05);
}

/* Section Container */
.section__container {
  max-width: 1200px;
  margin: auto;
  padding: 5rem 1rem;
}

.section__header {
  font-size: 2rem;
  font-weight: 600;
  color: #344e41;
  text-align: center;
  margin-bottom: 2rem;
}

button {
  padding: 15px 25px;
  border: unset;
  border-radius: 35px;
  color: #0d1f15;
  z-index: 1;
  background: #588157;
  position: relative;
  font-weight: 1000;
  font-size: 17px;
  -webkit-box-shadow: 4px 8px 19px -3px rgba(0, 0, 0, 0.27);
  box-shadow: 4px 8px 19px -3px rgba(0, 0, 0, 0.27);
  transition: all 250ms;
  overflow: hidden;
  font-family: "Vazirmatn", sans-serif;
  text-decoration: none;
}

button a {
  font-family: "Vazirmatn", sans-serif;
  text-decoration: none;
  color: #dad7cd;
}

button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  border-radius: 15px;
  background-color: #0d1f15;
  z-index: -1;
  -webkit-box-shadow: 4px 8px 19px -3px rgba(0, 0, 0, 0.27);
  box-shadow: 4px 8px 19px -3px rgba(0, 0, 0, 0.27);
  transition: all 250ms;
}

button:hover::before {
  width: 100%;
}

/* Card Hover Effects */
.card-hover {
  transition: all 0.3s;
}

.card-hover:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(to right, #0c871b, #086412);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* انیمیشن‌های Scroll */
.fade-in-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in-on-scroll {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scale-in-on-scroll.visible {
  opacity: 1;
  transform: scale(1);
}

/* Google Maps */
.map-section {
  padding: 4rem 1rem;
  background: #ffffff;
}

.map-container {
  width: 100%;
  height: 400px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin-top: 2rem;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 768px) {
  .map-container {
    height: 300px;
  }
}

.footer {
  background: linear-gradient(135deg, #0d1f15 0%, #588157 100%);
  color: #ffffff;
  margin-top: 5rem;
  position: relative;
  overflow: hidden;
  padding-top: 3rem;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.footer__container {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 4rem;
  max-width: 1200px;
  margin: auto;
  padding: 4rem 1rem 2rem;
  position: relative;
  z-index: 1;
}

.footer__col h3 {
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: #dad7cd;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer__col h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50px;
  height: 3px;
  background: #588157;
  border-radius: 2px;
}

.footer__col h4 {
  margin-bottom: 1.25rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: #dad7cd;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer__col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 30px;
  height: 2px;
  background: #588157;
  border-radius: 2px;
}

.footer__col p {
  color: #dad7cd;
  line-height: 1.9;
  font-size: 0.95rem;
}

.footer__col a {
  margin-bottom: 0.875rem;
  color: #dad7cd;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
  text-decoration: none;
  font-size: 0.95rem;
  padding-right: 0.5rem;
  position: relative;
}

.footer__col a::before {
  content: "→";
  position: absolute;
  right: -15px;
  opacity: 0;
  transition: all 0.3s ease;
}

.footer__col a:hover {
  padding-right: 1.25rem;
}

.footer__col a:hover::before {
  opacity: 1;
  right: 0;
}

.footer__bar {
  position: relative;
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #dad7cd;
  border-top: 1px solid #dad7cd;
  max-width: 1200px;
  margin: auto;
}

@media (max-width: 900px) {
  .footer__container {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .footer__container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.language-dropdown {
  position: relative;
  display: inline-block;
}

.language-btn {
  background: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: none;
}

.language-btn:hover {
  background: #588157;
}

.flag-icon {
  font-size: 20px;
}

.language-dropdown-content {
  display: none;
  position: absolute;
  left: 0;
  top: 50px;
  background-color: white;
  min-width: 150px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1001;
  border-radius: 8px;
  overflow: hidden;
}

.language-dropdown-content.show {
  display: block;
}

.language-dropdown-content a {
  color: #344e41;
  padding: 12px 16px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background-color 0.3s ease;
}

.language-dropdown-content a:hover {
  background-color: #f1f1f1;
}

.language-switcher-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.language-switcher-footer a {
  color: #dad7cd;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  padding: 5px 10px;
  border-radius: 4px;
}

.language-switcher-footer a:hover,
.language-switcher-footer a.active {
  color: #588157;
  background-color: rgba(88, 129, 87, 0.1);
}

/* صفحه اصلی */
.header__container {
  position: relative;
  height: 90vh;
  min-height: 600px;
  max-width: 90%;
  overflow: hidden;
  border-radius: 30px;
  margin-bottom: 4rem;
}

.header__image__container {
  position: relative;
  width: 100%;
  height: 100%;
}

.header__slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.slider-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 1;
  border-radius: 30px;
}

.slider-background.active {
  opacity: 1;
  z-index: 2;
}

.slider-background::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(45, 134, 89, 0.3) 100%
  );
  z-index: 1;
  border-radius: 30px;
}

.slider__copy {
  position: absolute;
  bottom: 12%;
  right: 8%;
  max-width: 540px;
  color: #ffffff;
  z-index: 3;
  text-align: right;
  backdrop-filter: blur(6px);
  background: #0d1f1567;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.slider-background.active .slider__copy {
  opacity: 1;
  transform: translateY(0);
}

.slider__copy h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.slider__copy p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.slider__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #dadada;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.3s ease;
}

.slider__cta:hover {
  transform: translateY(-2px);
}

.slider__controls {
  position: absolute;
  bottom: 40px;
  left: 50px;
  display: flex;
  gap: 1rem;
  z-index: 4;
}

.slider-control {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: #58815864;
  color: #dadada;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: background 0.3s ease, transform 0.3s ease;
  backdrop-filter: blur(4px);
}

.slider-control:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.popular__container {
  padding: 4rem 1rem;
}

.popular__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.popular__card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  border: 3px solid #588158;
}

.popular__card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 15px 40px rgba(45, 134, 89, 0.2);
}

.popular__card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.popular__card:hover img {
  transform: scale(1.1);
}

.popular__content {
  padding: 1.5rem;
}

.popular__card__header {
  margin-bottom: 1rem;
}

.popular__card__header h4.room-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #344e41;
  margin-bottom: 1rem;
}

.popular__card__header .room-card-description {
  font-size: 0.95rem;
  color: #344e41;
  line-height: 1.6;
  margin-bottom: 1rem;
  min-height: 60px;
}

.popular__card__header .room-card-info {
  display: block;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.popular__card__header .room-card-info span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #588158;
  font-weight: 500;
}

.popular__card__header .room-card-info span i {
  font-size: 1.1rem;
}

/* بخش نظرات مشتریان */
.client {
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
  padding: 5rem 0;
  margin: 4rem 0;
}

.client__container {
  max-width: 1200px;
  margin: auto;
  padding: 0 1rem;
}

.client__slider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 3rem;
}

.client__track-wrapper {
  overflow: hidden;
  flex: 1;
}

.client__track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.5s ease;
}

.client__card {
  flex: 0 0 calc((100% - 3rem) / 3);
  background: #ffffff;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 3px solid #588158;
}

.client__card::before {
  content: '"';
  position: absolute;
  top: -20px;
  right: 20px;
  font-size: 6rem;
  color: rgba(45, 134, 89, 0.1);
  font-family: serif;
  line-height: 1;
}

.client__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(45, 134, 89, 0.15);
}

.client__card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
  border: 4px solid #588158;
  box-shadow: 0 4px 15px rgba(45, 134, 89, 0.2);
}

.client__card p {
  color: #666;
  line-height: 1.8;
  font-size: 0.95rem;
  font-style: italic;
  position: relative;
  z-index: 1;
}

.client__card small {
  display: block;
  margin-top: 1rem;
  color: #588158;
  font-weight: 600;
}

.client__nav {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  color: #588158;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(12, 135, 27, 0.15);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.client__nav:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(12, 135, 27, 0.2);
  color: #dadada;
}

.client__slider--stacked {
  flex-direction: column;
  align-items: stretch;
}

.client__slider--stacked .client__track {
  display: block;
}

.client__slider--stacked .client__card {
  width: 100%;
  margin-bottom: 1.5rem;
  flex: none;
}

.client__empty {
  margin-top: 2rem;
  text-align: center;
  color: #344e41;
}

/* بخش عضویت */
.reward__container {
  background: linear-gradient(135deg, #588158 0%, #344e41 100%);
  padding: 4rem 2rem;
  border-radius: 25px;
  text-align: center;
  color: #dadada;
  position: relative;
  overflow: hidden;
  margin: 4rem 0;
}

.reward__container::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.reward__btn:hover {
  color: #dadada;
}

.reward__container p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

.reward__container h4 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .header__content h1 {
    font-size: 2rem;
  }

  .slider__copy {
    right: 5%;
    left: 5%;
    bottom: 8%;
    padding: 1.5rem;
  }

  .slider__copy h1 {
    font-size: 2rem;
  }

  .slider__controls {
    left: 25px;
    bottom: 20px;
  }

  .popular__grid {
    grid-template-columns: 1fr;
  }

  .client__slider {
    flex-direction: column;
  }

  .client__nav {
    display: none;
  }

  .client__slider--stacked .client__card:nth-child(n + 4) {
    display: none;
  }

  .reward__container h4 {
    font-size: 1.5rem;
  }
}
