:root {
  /* متغیرهای مشترک بین هر دو تم */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: all 0.3s ease;
  --shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  --gradient: linear-gradient(135deg, var(--golden-l) 0%, var(--golden-d) 100%);

  /* فونت‌ها */
  --fs-base: .9rem;
  --fs-base-s: 0.8rem;
  --fs-1: 1.5rem;
  --fs-2: 1.3rem;
  --fs-3: 1.2rem;
  --fs-4: 1.1rem;
  --fs-5: 1rem;
  --fs-6: .9rem;

  /* رنگ‌های ثابت (در هر دو تم یکسان) */
  --golden-l: rgb(242, 192, 113);
  --golden-d: rgb(175, 130, 55);
  --turq: rgb(0, 184, 182);
  --turq2: #4eb7b3;
  --accent: rgb(118, 167, 246);
  --accent1: rgb(62, 106, 177);

  --white-s: #fff;
  --white-hover-s: rgba(255, 255, 255, 0.5);
  --black-s: #000000;
  --black-hover-s: rgba(0, 0, 0, 0.5);
}

/* تم روشن */
body.light {
  --bg-sefid: #fff;
  --bg-khak: #f0f8ff;
  --bg-khak2: #dcebf9;

  --white: rgba(255, 255, 255, 0.9);
  --white-hover: rgba(255, 255, 255, 0.7);
  --black: #000000;
  --black-hover: rgba(0, 0, 0, 0.7);

  --bg-golden-l: rgb(242, 192, 113);
  --bg-golden-d: rgb(175, 130, 49);
}

/* تم تاریک */
body.dark {
  --bg-sefid: #000000;
  --bg-khak: #0a1628;
  --bg-khak2: #112240;

  --white: rgba(0, 0, 0, 0.9);
  --white-hover: rgba(0, 0, 0, 0.5);
  --black: rgb(255, 255, 255, 0.9);
  --black-hover: rgba(255, 255, 255, 0.7);

  --bg-golden-l: rgb(175, 130, 49);
  --bg-golden-d: rgb(242, 192, 113);
}

/*=============== Reset ===============*/

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: "iranp-r";
  src:
    url("/fonts/iran-p/regular.woff2") format("woff2"),
    url("/fonts/iran-p/regular.woff") format("woff"),
    url("/fonts/iran-p/regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
  font-weight: 400;
}
@font-face {
  font-family: "iranp-b";
  src:
    url("/fonts/iran-p/bold.woff2") format("woff2"),
    url("/fonts/iran-p/bold.woff") format("woff"),
    url("/fonts/iran-p/bold.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
  font-weight: 600;
}

@font-face {
  font-family: "iranp-black";
  src:
    url("/fonts/iran-p/black.woff2") format("woff2"),
    url("/fonts/iran-p/black.woff") format("woff"),
    url("/fonts/iran-p/black.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
  font-weight: 700;
}

body {
  font-family: "iranp-r", "iranp-b", "iranp-black", sans-serif;
  background-color: var(--bg-sefid);
  font-size: var(--fs-base);
  color: var(--black-hover);
  direction: rtl;
  line-height: 1.5;
  text-align: justify;
  overflow-x: hidden;
  width: 100vw;
  margin: 0;
  padding-right: 0px;
  transition: var(--transition);
}

html,
option {
  font-family: "iranp-r", "iranp-b", "iranp-black", sans-serif;
}

/* حالت تاریک/روشن */
.toggle-switch {
  cursor: pointer;
}

.toggle-switch .icon {
  font-size: 1.5rem;
  position: absolute;
  transition: opacity 0.3s ease;
}

.toggle-switch .moon {
  opacity: 0;
  color: var(--white-hover-s);
}

body.dark .toggle-switch .sun {
  color: var(--golden-d);
  opacity: 0;
}

body.dark .toggle-switch .moon {
  opacity: 1;
}

a {
  text-decoration: none;
  font-weight: 400;
}

p,
input {
  text-decoration: none;
  font-weight: 500;
  font-family: "iranp-r", "iranp-b", "iranp-black", sans-serif;
}

p > strong,
p > span {
  display: inline;
}

li {
  list-style: none;
  font-weight: 400;
}

img {
  max-width: 100%;
  aspect-ratio: auto 640px / 360px;
}

img,
button {
  display: block;
}

a,
span,
strong {
  display: inline-block;
}

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

:focus {
  outline-offset: 4px;
}

/*=============== scrollbar style ===============*/
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-thumb {
  background: var(--black-s);
  border-radius: 20px;
  border: 5px double var(--golden-l);
}

::-webkit-scrollbar-track {
  background: var(--turq);
}

/*=============== BASE ===============*/
p,
b,
h1,
h2,
h3,
h4,
h5,
h6,
ul,
li,
a,
span {
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "iranp-b", "iranp-black", "iranp-r", sans-serif;
  color: var(--black);
  display: block;
  text-align: right;
}

h1,
.h1 {
  font-size: var(--fs-1);
  font-weight: 900;
}

h2,
.h2 {
  font-size: var(--fs-2);
  font-weight: 800;
}

h3,
.h3 {
  font-size: var(--fs-3);
  font-weight: 700;
}

h4,
.h4 {
  font-size: var(--fs-4);
  font-weight: 600;
}

h5,
.h5 {
  font-size: var(--fs-5);
  font-weight: 600;
}

h6,
.h6 {
  font-size: var(--fs-6);
  font-weight: 550;
}

.c-accent {
  color: var(--accent);
}

.bg-accent {
  background-color: var(--accent);
}

.c-accent1 {
  color: var(--accent1);
  font-weight: 700;
}

.bg-accent1 {
  background-color: var(--accent1);
}

.c-turq {
  color: var(--turq);
}

.c-golden-l {
  color: var(--golden-l);
}

.c-golden-d {
  color: var(--golden-d);
}

.fs-base-s {
  font-size: var(--fs-base-s);
}

.inline-block {
  display: inline-block;
}

.inline-block.h2,
.inline-block.h3,
.inline-block.h4 {
  margin-right: 5px;
}

.fw-bold {
  font-weight: bold;
}

.dir-ltr {
  direction: ltr;
}

.dir-rtl {
  direction: rtl;
}

.align-left {
  text-align: left;
}

.align-right {
  text-align: right;
}

.align-center {
  text-align: center;
}

/*=============== body ===============*/
.color-pass,
.color-pass-back {
  transition: all 0.5s ease-in-out;
  transform: scale(1);
  overflow: hidden;
}

.color-pass .span-pass,
.color-pass-back .span-pass {
  position: absolute;
  display: flex;
}

.color-pass .span-pass:nth-child(1),
.color-pass-back .span-pass:nth-child(1) {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.color-pass .span-pass:nth-child(1) {
  left: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, var(--bg-sefid));
  animation: color-pass 10s linear infinite;
}

.color-pass-back .span-pass:nth-child(1) {
  right: 0;
  bottom: 0;
  background: linear-gradient(-90deg, transparent, var(--bg-sefid));
  animation: color-pass-back 10s linear infinite;
}

/*==== breadcrumb ====*/
.breadcrumb {
  padding: 20px 10vw 15px;
  border-bottom: 1px dotted var(--black-hover);
  text-align: right;
}

.breadcrumb ul,
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.breadcrumb a,
.breadcrumb span {
  color: var(--turq);
  transition: color 0.3s ease;
  padding: 0 2px;
  font-size: var(--fs-base-s);
}
.breadcrumb a:hover span {
  color: var(--golden-l) !important;
}
.breadcrumb .current {
  color: var(--black-hover);
}

.english-font {
  font-family: "Times New Roman", Times, serif;
}

.bta-box {
  background-color: var(--bg-khak);
  padding: 20px;
  border-left: 5px solid var(--sabz);
  margin: 30px 0;
}

.cta-box {
  background-color: var(--bg-khak);
  padding: 20px;
  border-right: 5px solid var(--sabz);
  margin: 30px 0;
}

.floating-whatsapp {
  position: fixed;
  bottom: 60px;
  left: 10px;
  background: #25d366;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  z-index: 1000;
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
  transition: all 0.3s ease;
  animation: whatsapp-shadow 2s infinite;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
}

@keyframes whatsapp-shadow {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.divider {
  height: 2px;
  background: linear-gradient(
    to right,
    transparent,
    var(--bg-golden-l),
    transparent
  );
}

.divider-right {
  height: 2px;
  background: linear-gradient(
    to left,
    var(--bg-golden-l),
    var(--bg-golden-l),
    transparent
  );
}

.divider-left {
  height: 2px;
  background: linear-gradient(
    to right,
    var(--bg-golden-l),
    var(--bg-golden-l),
    transparent
  );
}

/* استایل سوالات متداول */
.faq {
  border-radius: 10px;
  max-width: 1200px;
  margin: 0 auto;
}

.faq-title {
  margin-bottom: 20px;
  color: var(--black);
}

.faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 2px var(--accent);
}

.faq-question {
  padding: 15px 20px;
  background: var(--bg-khak);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.faq-question h4,
.faq-question h3 {
  font-size: 1.2rem;
}

.faq-question .faq-toggle {
  transition: transform 0.3s ease;
}

.faq-question .faq-toggle i {
  font-size: 1rem;
  color: var(--black);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: var(--bg-khak2);
}

.faq-answer p {
  padding: 20px;
  color: var(--black-hover);
  line-height: 1.8;
}

.faq-answer a {
  position: relative;
  color: var(--accent);
  padding: 0 20px;
}

footer {
  position: relative;
  background-color: var(--bg-khak);
  width: 100vw;
  direction: rtl;
  text-align: right;
  z-index: 10;
  box-shadow: 0 0px 1px var(--black);
}

footer .content {
  max-width: 1250px;
  margin: auto;
  padding: 20px 30px 30px 30px;
}

footer .content .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--black);
}

.content .top .logo-details {
  position: absolute;
  opacity: 0.2;
  right: -10px;
  top: 70px;
  z-index: -1;
}

.content .top .logo-details img {
  height: 300px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links:last-child .social-link {
  text-align: left;
  direction: ltr;
}

.social-link {
  width: 35px;
  height: 35px;
  background-color: var(--turq);
  border: 3px solid var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--turq);
  transform: translateY(-3px);
}

footer .content .link-boxes {
  z-index: 1;
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.content .link-boxes .box .link_name {
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 10px;
  position: relative;
}

.link-boxes .box .link_name::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: -2px;
  height: 1px;
  width: 100%;
  background-color: var(--black);
}

.content .link-boxes .box li {
  margin: 6px 0;
  list-style: none;
  color: var(--black);
}

.content .link-boxes .box > li > a {
  color: var(--black);
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.7;
  transition: all 0.4s ease;
}

.content .link-boxes .box > li > a:hover {
  text-decoration: underline;
  opacity: 1;
}

footer .contact li a {
  direction: ltr;
}

.content .link-boxes .input-box {
  z-index: 1;
}

/*=============== responsive for larger than 550px screen ===============*/
@media (min-width: 300px) {
  footer .content .top {
    flex-direction: column;
    padding-bottom: 10px;
  }

  footer .content .link-boxes {
    flex-wrap: wrap;
  }

  footer .content .link-boxes .box {
    width: calc(100% / 2 - 10px);
  }

  footer .content .link-boxes .input-box {
    width: 80%;
    margin-top: 10px;
    margin-right: 10%;
  }

  footer .content .link-boxes .input-box iframe {
    height: 250px;
  }
}

/*=============== responsive for larger than 768px screen  ===============*/
@media (min-width: 768px) {
  :root {
    /*=============== typography  ===============*/
    --fs-base: .9rem;
    --fs-base-s: .8rem;
    --fs-1: 1.5rem;
    --fs-2: 1.3rem;
    --fs-3: 1.2rem;
    --fs-4: 1.15rem;
    --fs-5: 1.1rem;
    --fs-6: 1rem;
  }

  .main {
    height: calc(90vh - 60px);
  }

  .main .content {
    width: 49vw;
    padding: 10px 30px;
  }

  /*=============== REUSED STYLE  ===============*/
  .container-head {
    max-width: 800px;
  }

  footer {
    position: relative;
  }

  footer .top {
    padding-top: 40px;
    position: relative;
  }

  footer .top .social-links {
    position: absolute;
    right: 0;
    top: 0;
  }

  .content .top .logo-details {
    right: -40px;
  }

  footer .content .link-boxes .box {
    width: calc(100% / 3 - 10px);
  }

  footer .content .link-boxes .input-box {
    width: 57%;
  }

  footer .content .link-boxes .input-box iframe {
    height: 203px;
    width: 100%;
  }
}

/*=============== responsive for larger than 1024px screen  ===============*/
@media (min-width: 992px) {
  :root {
    /*=============== typography  ===============*/
    --fs-base: 1rem;
    --fs-base-s: .9rem;
    --fs-1: 1.5rem;
    --fs-2: 1.3rem;
    --fs-3: 1.2rem;
    --fs-4: 1.15rem;
    --fs-5: 1.1rem;
    --fs-6: 1rem;
  }

  /*=============== REUSED STYLE   ===============*/
  .container-head {
    max-width: 1000px;
    margin-right: calc(50vw - 410px);
  }

  /*=============== HEADER ===============*/
  header .btn-group {
    display: none;
  }

  header .flex-wrapper {
    display: flex;
    gap: 30px;
  }

  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 35px;
    float: right;
    direction: rtl;
  }

  .desktop-nav .nav-link {
    transition: all ease-in-out 0.2s;
    font-size: 0.95rem;
    padding: 5px 10px 10px 10px;
    font-weight: 900;
    color: var(--white-s);
  }

  .desktop-nav .nav-link:hover {
    color: var(--white-hover-s);
  }

  .desktop-nav .nav-link > i {
    position: absolute;
    margin: 5px 5px 0 0;
    transition: var(--transition);
  }

  .desktop-nav .nav-link:hover > i,
  .desktop-nav ul:hover .nav-link i {
    transform: rotate(-180deg);
  }

  .mobile-menu {
    display: none;
  }

  #main-100 {
    height: calc(99.5vh - 60px);
  }

  /*=============== Body ===============*/

  .floating-whatsapp {
    bottom: 30px;
    left: 30px;
  }

  /*=============== Footer ===============*/
  footer {
    padding-bottom: 0px;
  }

  footer .content .link-boxes .box {
    width: calc(100% / 5 - 10px);
  }

  footer .content .link-boxes .input-box {
    margin: 0;
  }
}

/*======= C-animated =======*/
@keyframes color-pass {
  0%,
  50% {
    left: -100%;
  }

  60%,
  100% {
    left: 100%;
  }
}

@keyframes color-pass-off {
  0%,
  50%,
  60%,
  100% {
    left: -100%;
  }
}

@keyframes color-pass-back {
  0%,
  50% {
    right: -100%;
  }

  60%,
  100% {
    right: 100%;
  }
}

/* انیمیشن مورفینگ (تغییر شکل) */
@keyframes morphing {
  0% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }

  50% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
  }

  100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
}

.morph-shape {
  animation: morphing 8s ease-in-out infinite;
}

/* انیمیشن متن روان مثل آب */
@keyframes liquidText {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.liquid-text {
  background: linear-gradient(90deg, #009fff, #0064d4, #009fff);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: liquidText 3s linear infinite;
}

/* انیمیشن پارالاکس سه‌بعدی */
.parallax-3d {
  transform-style: preserve-3d;
  perspective: 1000px;
}

.parallax-3d:hover {
  transform: rotateX(10deg) rotateY(10deg) translateZ(20px);
  transition: transform 0.5s ease;
}
