@font-face {
  font-family: "vazir";
  src: url("../fonts/Vazirmatn-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "vazir";
  src: url("../fonts/Vazirmatn-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "lalehzar";
  src: url("../fonts/Lalezar-Regular.woff2") format("woff2");
  font-display: swap;
}

/* CSS variables */
:root {
  /* Colors */
  --dark-blue: #006ba6;
  --light-blue: #0496ff;
  --yellow: #ffbc42;
  --dark-pink: #d81159;
  --dark-purple: #8f2d56;
  --white: #fafafa;
  --black: #111;
}

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

html {
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
  html {
    scroll-padding-top: 95px;
  }
}

body {
  font-family: "vazir";
  direction: rtl;
}

body.show-mobile-menu header::before {
  content: "";
  position: fixed;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  backdrop-filter: blur(5px);
  background: rgba(0, 0, 0, 0.5);
  z-index: 2;
}

body.show-mobile-menu {
  overflow: hidden;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

a {
  text-decoration: none;
  transition: 0.3s ease;
}

ul {
  list-style-type: none;
}

button,
input,
textarea {
  font-family: inherit;
}

.page-wrapper {
  position: relative;
}

.section {
  transition:
    transform 1s,
    opacity 1s;
}

.section-hidden {
  opacity: 0;
  transform: translateY(5rem);
}

/* Remove the blue tap highlight from interactive elements */
a,
button,
[role="button"],
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}

/* Remove the default focus style when clicking or tapping */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
[role="button"]:focus:not(:focus-visible),
input:focus:not(:focus-visible),
select:focus:not(:focus-visible),
textarea:focus:not(:focus-visible),
summary:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}

/* Prevent text selection on links and buttons */
a,
button,
[role="button"],
summary {
  -webkit-user-select: none;
  user-select: none;
}

/* mobile styles */

/* Navbar styling */
header .navbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--white);
  padding: 5px 10px;
}

header .navbar .menu-btn .menu-icon {
  width: 25px;
  height: 25px;
  transition: 0.3s ease;
  color: var(--yellow);
  vertical-align: middle;
}

header .navbar .nav-list {
  position: fixed;
  right: -230px;
  top: 0;
  width: 230px;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 60px 20px 0 0;
  gap: 40px;
  background: var(--yellow);
  transition: right 0.3s ease;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
  z-index: 2;
}

body.show-mobile-menu .navbar .nav-list {
  right: 0;
}

header .navbar .nav-list .menu-exit .close-menu-icon {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 25px;
  height: 25px;
}

header .navbar .nav-list .menu-exit .close-menu-icon:hover,
header .navbar .nav-list .menu-exit .close-menu-icon:active {
  color: red;
}

header .navbar .nav-list .header-nav-link {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 5px;
}

header .navbar .nav-list .nav-icon {
  width: 16px;
  height: 16px;
  transition: 0.3s ease;
}

header .navbar .nav-list .nav-item a {
  color: var(--black);
  font-size: 15px;
}

header .navbar .nav-list .nav-item:active,
header .navbar .nav-list .nav-item a:active {
  color: var(--white);
}

header .navbar .logo-container a {
  display: flex;
  align-items: center;
}

header .navbar .logo-container .logo-img {
  width: 60px;
  height: auto;
}

header .navbar .logo-container .logo-text {
  font-family: "lalehzar";
  font-size: 20px;
  color: var(--black);
}

/* Hero section styling */
.hero-section {
  margin: 0 auto;
}

.hero-section .img-wrapper {
  text-align: center;
}

.hero-section .img-wrapper img {
  width: 100%;
  height: auto;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  filter: grayscale(20%);
}

.hero-section .hero-content {
  text-align: center;
  margin-top: 20px;
  padding: 0 25px;
}

.hero-section .hero-content .hero-title {
  font-size: 22px;
  font-family: "lalehzar";
  margin-bottom: 15px;
}

.hero-section .hero-content .hero-context {
  font-size: 14px;
  line-height: 28px;
  margin-bottom: 50px;
}

.hero-section .hero-content .contact-us-btn {
  background: var(--yellow);
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  border: 1px solid var(--yellow);
}

.hero-section .hero-content .contact-us-btn:hover,
.hero-section .hero-content .contact-us-btn:active {
  background-color: var(--white);
  color: var(--yellow);
}

/* About section styling */
.about-section {
  margin: 50px 10px;
  text-align: center;
  border-radius: 10px;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.about-section .about-wrapper {
  padding: 15px 25px;
}

.about-section .img-container {
  margin-bottom: 10px;
}

.about-section .img-container img {
  width: 68%;
  height: auto;
  border: 3px solid var(--yellow);
  padding: 5px;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(20%);
}

.about-section .about-content .about-context {
  font-size: 14px;
  line-height: 30px;
  margin-bottom: 20px;
}

.about-section .about-content .about-us-desktop-btn {
  display: none;
}

.about-section .about-us-btn {
  background: var(--dark-purple);
  display: inline-block;
  width: 100%;
  padding: 12px 0;
  border: 1px solid var(--dark-purple);
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  font-size: 15px;
  color: var(--white);
}

.about-section .about-content .about-us-btn:active,
.about-section .about-content .about-us-btn:hover {
  background: var(--white);
  color: var(--dark-purple);
}

/* Card styling*/
.card {
  display: flex;
  flex: 0 0 100%;
  flex-direction: column;
  height: 100%;
  transition: 0.3s ease;
  border-radius: 20px;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  text-align: center;
  justify-content: space-between;
}

.card-img {
  width: 100%;
  display: block;
}

.card-img img {
  width: 100%;
  height: auto;
  filter: grayscale(30%);
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.card-title {
  font-size: 18px;
  margin: 10px 0 15px;
  line-height: 30px;
}

.card--article .card-content {
  flex: 1;
}

.card-content--service {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  padding: 0 20px;
  line-height: 30px;
  list-style-type: none;
  text-align: right;
}

.card-content--service li {
  display: flex;
  align-items: flex-start;
  gap: 5px;
}

.card-content--service li::before {
  content: "✓";
  flex-shrink: 0;
  color: darkblue;
  font-weight: 700;
  margin-left: 10px;
}

.card .card-link {
  display: inline-block;
  margin-top: 30px;
  background: var(--dark-blue);
  width: 100%;
  height: 50px;
  padding-top: 10px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  border: 1px solid var(--dark-blue);
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  transition: 0.3s ease;
  color: var(--white);
}

.card .card-link:hover,
.card .card-link:active {
  background: var(--white);
  color: var(--dark-blue);
}

/* Services section styling */

.section-title {
  width: 100%;
  text-align: center;
  font-size: 18px;
  margin-bottom: 15px;
}

.services-list,
.articles-list {
  margin: 0 10px 70px;
}

.services-section .services-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  justify-content: center;
}

/* Article section styling */
.articles-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.card--article .card-img img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.card--article .card-title {
  padding: 0 20px;
}

.article-excerpt {
  padding: 20px 30px;
  line-height: 24px;
  text-align: center;
}

.card--article .card-link {
  background: var(--dark-pink);
  border: 1px solid var(--dark-pink);
}

.card--article .card-link:hover,
.card--article .card-link:active {
  background: var(--white);
  color: var(--dark-pink);
}

.article-meta {
  text-align: right;
  padding-right: 50px;
  color: gray;
}

/* Footer section styling */
footer.footer-section {
  background: #f2f2f2;
}

.footer-section .footer-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 40px 25px 10px;
}

.footer-section .footer-wrapper .footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.footer-section .footer-wrapper .footer-nav-list a {
  color: var(--black);
  font-size: 14px;
  font-weight: 600;
}

.footer-section .footer-wrapper .footer-nav-list a:hover,
.footer-section .footer-wrapper .footer-nav-list a:active {
  color: var(--dark-pink);
}

.footer-section .footer-wrapper .contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.footer-section .footer-wrapper .contact-list li {
  font-size: 12px;
}

.footer-section .footer-wrapper .contact-list .footer-contact-icon {
  color: var(--dark-pink);
  width: 14px;
  height: 14px;
  margin-left: 5px;
}

.footer-section .footer-wrapper .contact-list address.address {
  font-family: "vazir";
}

.footer-section .footer-wrapper .contact-list .phone-num {
  font-size: 15px;
  color: var(--dark-pink);
  padding-right: 10px;
  font-weight: 600;
}

.footer-section .footer-wrapper .contact-list .phone-num:active,
.footer-section .footer-wrapper .social i:active {
  color: var(--yellow);
}

.footer-section .footer-wrapper .social {
  margin-top: 15px;
  display: flex;
  gap: 10px;
}

.footer-section .footer-wrapper .social .footer-social-icon {
  width: 16px;
  height: 16px;
  fill: var(--dark-pink);
  margin-right: 8px;
}

.footer-section .footer-wrapper .slogan {
  font-family: "lalehzar";
  margin-top: 15px;
  text-align: center;
  font-size: 15px;
}

p.copy-right {
  text-align: center;
  font-size: 10px;
  color: var(--dark-pink);
  padding-bottom: 10px;
}
p.copy-right .copy-right-icon {
  width: 8px;
  height: 8px;
  vertical-align: middle;
}

.scroll-top-btn {
  position: fixed;
  bottom: 10px;
  right: 10px;
  width: 50px;
  height: 50px;
  opacity: 0;
  pointer-events: none;
  border: 2px solid var(--dark-pink);
  border-radius: 50%;
  text-align: center;
  align-content: center;
  background: white;
  transform: translateY(15px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.scroll-top-btn .scroll-top-icon {
  width: 24px;
  height: 24px;
  color: var(--dark-pink);
}

.scroll-top-btn.show {
  opacity: 1;
  background: none;
  transform: translateY(0);
  pointer-events: auto;
  z-index: 5;
}

/* media screen for 768xp width */
@media screen and (min-width: 768px) and (max-width: 1023.99px) {
  html {
    scroll-padding-top: 70px;
  }
  main {
    margin: 0 20px;
  }

  .section-title {
    font-size: 22px;
  }

  /* header section styling */
  header .navbar {
    justify-content: space-between;
    padding: 0 10px;
  }

  .navbar .menu-btn {
    display: none;
  }

  header .navbar .nav-list {
    position: static;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    width: 70%;
    transform: none;
    background: none;
    padding: 10px 0;
    gap: 15px;
  }

  header .navbar .nav-list .nav-item {
    color: var(--black);
  }

  header .navbar .nav-list .nav-item a:hover,
  header .navbar .nav-list .nav-item a:active {
    color: var(--yellow);
    cursor: pointer;
  }

  header .navbar .nav-list .nav-item a {
    font-size: 16px;
  }

  header .navbar .nav-list .nav-item i {
    font-size: 12px;
    margin-left: 2px;
  }

  header .navbar .nav-list .nav-item .menu-exit {
    display: none;
  }

  header .navbar .logo-container {
    display: flex;
    justify-content: space-between;
    width: 28%;
  }

  header .navbar .logo-container .logo-text {
    font-size: 18px;
    font-weight: 700;
  }

  header .navbar .logo-container .logo-img {
    width: 100px;
    height: 100px;
  }

  /* Hero section styling */
  .hero-section {
    margin: 0;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    margin: 50px 0;
  }

  .hero-section .img-wrapper {
    flex: 1;
  }

  .hero-section .img-wrapper img {
    height: auto;
    border-radius: 20px;
  }

  .hero-section .hero-content {
    flex: 1;
  }

  .hero-section .hero-content .hero-title {
    font-size: 24px;
    margin-bottom: 15px;
  }

  .hero-section .hero-content .hero-context {
    font-size: 16px;
  }

  .hero-section .hero-content .contact-us-btn {
    padding: 10px 15px;
    font-size: 14px;
    display: inline-block;
    color: var(--white);
    margin-top: 0;
  }

  /* About section styling */
  .about-section {
    box-shadow: none;
    margin: 80px 0;
    position: relative;
  }

  .about-section .about-wrapper {
    display: flex;
    padding: 0;
    justify-content: center;
    gap: 40px;
  }

  .about-section .img-container {
    max-width: 42%;
  }

  .about-section .img-container img {
    width: 100%;
  }

  .about-section .about-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 45%;
    align-items: center;
  }

  .about-section .about-content .about-context {
    font-size: 16px;
    line-height: 25px;
  }

  .about-section .about-us-btn {
    display: none;
  }

  .about-section .about-content .about-us-desktop-btn {
    display: inline-block;
    width: fit-content;
    padding: 10px 30px;
    border-radius: 8px;
    background: var(--dark-purple);
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    border: 1px solid var(--dark-purple);
    margin-top: 10px;
    text-align: center;
  }

  .about-section .about-content .about-us-desktop-btn:hover {
    background: var(--white);
    color: var(--dark-purple);
  }

  /* Card styling */
  .card-title {
    font-size: 18px;
    margin-bottom: 15px;
  }

  .card .card-link {
    margin-top: 15px;
  }

  /* Secvices section styling */
  .services-section .services-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-content.card-content--service {
    flex: 1;
    margin-bottom: 20px;
    gap: 10px;
    padding: 0 15px;
  }

  .card-content.card-content--service li {
    font-size: 15px;
    font-weight: 400;
  }

  /* Article section styling */
  .articles-list {
    grid-template-columns: repeat(2, 1fr);
    justify-content: center;
  }

  /* Footer section styling */
  .footer-section {
    margin: 0;
  }

  .footer-section .footer-wrapper {
    flex-direction: row;
    gap: 30px;
    padding: 20px 30px;
  }

  .footer-section .footer-wrapper .footer-nav-list {
    align-items: flex-start;
    width: 20%;
    gap: 15px;
  }

  .footer-section .footer-wrapper .footer-nav-list a {
    font-size: 14px;
    font-weight: 600;
  }

  .footer-section .footer-wrapper .contact-list {
    gap: 15px;
  }

  .footer-section .footer-wrapper .contact-list li {
    font-size: 14px;
  }

  .footer-section .footer-wrapper .contact-list .footer-contact-icon {
    width: 14px;
    height: 14px;
    vertical-align: middle;
    margin-left: 2px;
  }

  .footer-section .footer-wrapper .contact-list .phone-num {
    font-size: 16px;
    font-weight: 600;
    padding-right: 10px;
  }

  .footer-section .footer-wrapper .social {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
  }

  .footer-section .footer-wrapper .social .footer-social-icon {
    transition: 0.3s ease;
  }

  .footer-section .footer-wrapper .contact-list .phone-num:hover,
  .footer-section .footer-wrapper .social i:hover {
    color: var(--yellow);
  }

  .footer-section .footer-wrapper .slogan {
    font-size: 20px;
    padding-right: 20px;
  }

  p.copy-right {
    font-size: 14px;
    padding-bottom: 10px;
  }

  p.copy-right .copy-right-icon {
    width: 8px;
    height: 8px;
  }
}

/* media screen for minimum 1024xp width */
@media screen and (min-width: 1024px) {
  /* general styls */
  .section-title {
    font-size: 24px;
  }

  /* header section styling */
  header .navbar {
    justify-content: space-between;
    padding: 0 20px;
    gap: 40px;
  }

  .navbar .menu-btn {
    display: none;
  }

  header .navbar .nav-list {
    position: static;
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex: 3;
    transform: none;
    background: none;
    padding: 0;
    gap: 35px;
  }

  header .navbar .nav-list .nav-item {
    color: var(--black);
  }

  header .navbar .nav-list .nav-item a:hover,
  header .navbar .nav-list .nav-item a:active {
    color: var(--yellow);
    cursor: pointer;
  }

  header .navbar .nav-list .nav-item a {
    font-size: 16px;
  }

  header .navbar .nav-list .nav-item i {
    font-size: 15px;
    margin-left: 3px;
  }

  header .navbar .nav-list .nav-item .menu-exit {
    display: none;
  }

  header .navbar .logo-container {
    display: flex;
    justify-content: space-around;
  }

  header .navbar .logo-container .logo-text {
    font-size: 26px;
  }

  header .navbar .logo-container .logo-img {
    width: 100px;
    height: 100px;
  }

  /* Hero section styling */
  .hero-section {
    margin: 0;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    margin: 50px;
    gap: 20px;
  }

  .hero-section .img-wrapper {
    flex: 1;
  }

  .hero-section .img-wrapper img {
    height: auto;
    border-radius: 20px;
  }

  .hero-section .hero-content {
    flex: 1;
    text-align: center;
  }

  .hero-section .hero-content .hero-title {
    font-size: 32px;
    margin-bottom: 30px;
  }

  .hero-section .hero-content .hero-context {
    font-size: 18px;
    line-height: 35px;
    max-width: 680px;
  }

  .hero-section .hero-content .contact-us-btn {
    padding: 15px 25px;
    font-size: 16px;
    display: inline-block;
    margin-top: 0px;
    color: var(--white);
  }

  /* About section styling */
  .about-section {
    box-shadow: none;
    margin: 100px 50px;
    position: relative;
  }

  .about-section .about-wrapper {
    display: flex;
    padding: 0;
    justify-content: center;
    gap: 80px;
  }

  .about-section .img-container {
    max-width: 35%;
  }

  .about-section .img-container img {
    width: 100%;
  }

  .about-section .about-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 42%;
    align-items: center;
  }

  .about-section .about-content .about-context {
    font-size: 18px;
    line-height: 40px;
  }

  .about-section .about-us-btn {
    display: none;
  }

  .about-section .about-content .about-us-desktop-btn {
    display: inline-block;
    width: fit-content;
    padding: 15px 40px;
    border-radius: 8px;
    background: var(--dark-purple);
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
    border: 1px solid var(--dark-purple);
    margin-top: 30px;
    text-align: center;
  }

  .about-section .about-content .about-us-desktop-btn:hover {
    background: var(--white);
    color: var(--dark-purple);
  }

  /* Card styling */

  .card:hover {
    transform: translateY(-5px);
  }

  .card-title {
    font-size: 20px;
    margin: 10px;
  }

  .card-link {
    padding: 10px;
    margin-top: 15px;
  }

  /* Secvices section styling */
  .services-section {
    width: 100%;
  }

  .services-section,
  .articles-section {
    padding: 0 50px;
  }

  .services-section .services-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-section .services-list {
    width: 100%;
    margin-inline: auto;
  }

  .card-content.card-content--service {
    flex: 1;
    margin-bottom: 20px;
    gap: 15px;
    padding: 0 10px;
  }

  .card-content.card-content--service li {
    font-size: 16px;
    font-weight: 400;
    line-height: 30px;
  }

  /* Article section styling */

  .articles-list {
    margin-inline: auto;
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
  }

  .card--article .card-title {
    font-size: 20px;
  }

  /* Footer section styling */
  .footer-section {
    margin: 0;
  }

  .footer-section .footer-wrapper {
    flex-direction: row;
    padding: 50px 40px;
  }

  .footer-section .footer-wrapper .footer-nav-list {
    align-items: flex-start;
    flex: 0 0 20%;
    gap: 25px;
  }

  .footer-section .footer-wrapper .footer-nav-list a {
    font-size: 16px;
    font-weight: 600;
  }

  .footer-section .footer-wrapper .contact-info-wrap {
    flex: 0 0 35%;
  }

  .footer-section .footer-wrapper .contact-list {
    gap: 20px;
  }

  .footer-section .footer-wrapper .contact-list li {
    font-size: 16px;
    line-height: 30px;
  }

  .footer-section .footer-wrapper .contact-list .footer-contact-icon {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-left: 5px;
  }

  .footer-section .footer-wrapper .contact-list .phone-num {
    font-size: 20px;
    font-weight: 600;
    padding-right: 10px;
  }

  .footer-section .footer-wrapper .social {
    display: flex;
    align-items: center;
    vertical-align: middle;
    flex-wrap: wrap;
    gap: 10px;
  }

  .footer-section .footer-wrapper .social-icons {
    display: flex;
    gap: 15px;
    vertical-align: middle;
  }

  .footer-section .footer-wrapper .social .footer-social-icon {
    width: 18px;
    height: 18px;
  }

  .footer-section .footer-wrapper .contact-list .phone-num:hover,
  .footer-section .footer-wrapper .social i:hover {
    color: var(--yellow);
  }

  .footer-section .footer-wrapper .slogan {
    font-size: 24px;
    padding-right: 100px;
  }

  p.copy-right {
    font-size: 14px;
    padding-bottom: 10px;
  }

  p.copy-right .copy-right-icon {
    width: 14px;
    height: 14px;
  }

  .scroll-top-btn {
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
  }

  .scroll-top-btn .scroll-top-icon {
    width: 28px;
    height: 28px;
  }
}

@media screen and (min-width: 1400px) {
  .services-section .services-list {
    grid-template-columns: repeat(3, 1fr);
  }
}
