/* reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* root variables */
:root {
  --color-primary-dark: #2b555b;
  --color-text-light: #4f868e;
  --color-text-dark: #434f58;
  --color-background: #fbf8f2;
  --color-body: #212529;
  --color-secondary-dark: #edefea;
  --color-icones: #a1cbd1;
  --color-heading: #020202;
  --color-primary-light: #20c19e;
  --color-border: #5e6a74;
  --color-banner: #fffffff2;
  --btnTextColor: #ffffff;
  --color-silver: #c4c4c4;
  --color-gold: #d5b565;
  --color-platinum: #9891b1;
}

/* base styles */
html {
  font-size: 62.5%;
}

body {
  font-family: "Vazirmatn", sans-serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--color-primary-dark);
}

h1,
h2,
h3 {
  color: var(--color-primary-dark);
}

h1 {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 120%;
  letter-spacing: 0%;
}

h2 {
  font-size: 1.8rem;
  font-weight: bold;
}

@media screen and (min-width: 1024px) {
  body {
    font-size: 1.8rem;
    padding-top: 80px;
  }
  h1 {
    font-size: 5.6rem;
    font-weight: 800;
  }
  h2 {
    font-size: 3.8rem;
  }
}

/* button */
.btn {
  border-radius: 1.2rem;
  font-size: 1rem;
  width: 16rem;
  height: 48px;
  font-weight: 700;
  transition: all 0.25s ease-in-out;
  padding: 1.6rem;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}

.btn--primary {
  color: var(--color-background);
  background-color: var(--color-primary-dark);
  border: 1px solid var(--color-background);
}

.btn--primary:hover {
  background-color: var(--color-secondary-dark);
  color: var(--color-primary-dark);
  border: 1px solid var(--color-primary-dark);
}

.btn--secondary {
  color: var(--color-primary-dark);
  background-color: var(--color-background);
  border: 1px solid var(--color-primary-dark);
}

.btn--secondary:hover {
  background-color: var(--color-primary-dark);
  color: #fff;
}

@media screen and (min-width: 1024px) {
  .btn {
    font-size: 1.6rem;
  }
}

/* navbar */
.main__header {
  background-color: var(--color-background);
}

.nav__list {
  display: none;
  width: 100%;
  order: 3;
}

.nav.nav__expanded .nav__list {
  display: block;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--color-background);
}

.nav__actions {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 0.6rem;
}

.nav__items {
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  max-height: 0;
}

.nav__item {
  display: block;
  border-bottom: 1px solid var(--color-icones);
  padding: 1rem;
}

.nav__items li {
  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.nav__items a {
  text-decoration: none;
  color: var(--color-primary-dark);
}

.nav.nav__expanded .nav__items {
  max-height: 100vh;
}

.nav__items li:hover {
  color: var(--color-primary-dark);
  transform: translateY(-2px);
}

.nav__button {
  display: none;
}

.nav__logo {
  display: flex;
  text-decoration: none;
  color: var(--color-text-light);
  border: 1px solid var(--color-icones);
  border-radius: 15px 50px 30px;
  -webkit-box-shadow: 2px 2px 5px 0px rgba(43, 85, 91, 1);
  -moz-box-shadow: 2px 2px 5px 0px rgba(43, 85, 91, 1);
  box-shadow: 2px 2px 5px 0px rgba(43, 85, 91, 1);
  margin-left: 1rem;
  order: 1;
  padding: 0.5rem;
}

.nav__toggler {
  margin: 2rem;
  cursor: pointer;
  order: 2;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: var(--color-primary-dark);
  margin: 5px 0;
  border-radius: 5px;
  transition:
    transform 0.4s,
    opacity 0.4s;
}

.nav.nav__expanded .bar--one {
  transform: rotate(-45deg) translate(-9px, 6px);
  margin: 8px 0;
}

.nav.nav__expanded .bar--two {
  opacity: 0;
  transform: translateX(-20px);
}

.nav.nav__expanded .bar--three {
  transform: rotate(45deg) translate(-8px, -8px);
  margin: 8px 0;
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
  .container {
    margin: auto;
  }

  .nav__logo {
    font-size: 2rem;
  }

  .nav__button {
    display: none;
  }

  .nav__toggler {
    display: block;
  }

  .bar {
    width: 35px;
    height: 4px;
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .nav__list {
    display: block;
    width: auto;
    order: -1;
  }

  .nav {
    flex-wrap: nowrap;
    padding: 2rem;
  }

  .nav__items {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    width: auto;
    max-height: 100%;
  }

  .nav__item {
    border-bottom: none;
    padding: 0;
  }

  .nav__logo {
    order: -2;
    margin-right: 1rem;
    font-size: 1.8rem;
  }

  .btn {
    padding: 0.8rem 1.5rem;
    font-size: 1.4rem;
  }

  .nav__button {
    display: block;
    margin-left: 1rem;
  }

  .btn--primary {
    text-decoration: none;
    padding: 1rem 1.8rem;
    font-size: 1.4rem;
    margin: 0;
    white-space: nowrap;
  }

  .nav__toggler {
    display: none;
  }
}

@media screen and (min-width: 1280px) {
  .nav__list {
    display: block;
    width: auto;
    order: -1;
  }

  .nav {
    flex-wrap: nowrap;
  }

  .nav__items {
    flex-direction: row;
    align-items: center;
    gap: 2.5rem;
    width: auto;
    max-height: 100%;
  }

  .nav__item {
    border-bottom: none;
    padding: 0;
  }

  .nav__item {
    cursor: pointer;
  }

  .nav__toggler {
    display: none;
  }

  .nav__logo {
    margin-right: 1rem;
    font-size: 2rem;
    order: -2;
  }

  .nav .btn--primary {
    text-decoration: none;
    padding: 1rem 1.8rem;
    font-size: 1.6rem;
    font-weight: 400;
    display: block;
    margin: 2rem 0 2rem 0;
  }

  .btn--primary {
    white-space: nowrap;
  }

  .nav__button {
    display: block;
    margin-left: 1rem;
  }
}

/* hero section */
.hero {
  width: 100%;
  min-height: 300px;
  position: relative;
}

.hero__image {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: block;
  object-position: 35%;
  object-fit: cover;
}

.hero__header {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 3.5rem;
  align-items: flex-start;
  gap: 1rem;
  padding-inline: clamp(1.2rem, 4vw, 5.5rem);
}

.hero__header span {
  display: block;
}

.hero__title {
  font-size: clamp(2.4rem, 6vw, 5rem);
}

.hero__intro,
.hero__btn {
  width: 100%;
  max-width: 300px;
  margin-top: 1rem;
}

.hero__intro--mobile {
  display: block;
}

.hero__intro--desktop {
  display: none;
}

.hero__intro p {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  margin-right: 1rem;
}

.hero__actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  width: 60%;
  max-width: 260px;
}

.hero__actions .btn {
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  height: 40px;
  text-align: center;
  white-space: nowrap;
  border-radius: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero__actions .btn--secondary {
  display: none;
}

@media screen and (min-width: 768px) {
  .hero {
    min-height: 450px;
  }

  .hero__header {
    justify-content: flex-end;
    padding-bottom: 12rem;
    padding-inline: 5.5rem;
    gap: 2rem;
  }

  .hero__intro--mobile {
    display: none;
  }

  .hero__intro--desktop {
    display: block;
  }

  .hero__intro,
  .hero__actions {
    max-width: 600px;
  }

  .hero__intro p {
    font-size: 1.6rem;
  }

  .hero__actions .btn {
    font-size: 1.6rem;
    font-weight: 700;
    width: 20rem;
    height: 44px;
  }

  .hero__actions .btn--secondary {
    display: inline-flex;
  }
}

@media screen and (min-width: 1024px) {
  .hero {
    height: 75vh;
    min-height: 620px;
  }

  .hero__header {
    padding-bottom: 20rem;
  }

  .hero__title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-right: 4rem;
  }

  .hero__actions .btn {
    height: 48px;
  }
}

@media (min-width: 1280px) {
  .hero__header {
    padding-inline: 8rem;
  }

  .hero__title {
    font-size: 5rem;
  }

  .hero__intro {
    max-width: 650px;
  }
}

/* why-us section */
.why-us__header {
  text-align: center;
  margin-top: 5rem;
  margin-bottom: 3rem;
}

.why-us__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 5rem;
}

.why-us__card {
  text-align: center;
  max-width: 35rem;
  margin: 0 auto;
}

.why-us__card svg {
  width: 60px;
  height: 60px;
  color: var(--color-primary-dark);
}

.why-us__card h3 {
  margin-bottom: 1rem;
  line-height: 1.5;
}

.why-us__card p {
  line-height: 1.8;
}

@media screen and (min-width: 768px) {
  .why-us__cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

@media screen and (min-width: 1024px) {
  .why-us__cards {
    grid-template-columns: repeat(4, 1fr);
    gap: 4rem;
  }

  .why-us__card svg {
    width: 100px;
    height: 100px;
  }
}

/* services section */
.services__container {
  background-color: var(--color-secondary-dark);
  margin-top: 5rem;
  padding-inline: 3rem;
}

.services__header {
  text-align: center;
  margin-bottom: 2.5rem;
  padding-top: 2.5rem;
}

.services__lists {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 5rem;
}

.services__list {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 1.5rem;
  transition: transform 0.3s ease;
}

.services__list:hover {
  transform: scale(1.05);
}

.services__list img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.services__list::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  transition: background 0.3s ease;
}

.service__list:hover::after {
  background: rgba(0, 0, 0, 0.45);
}

.services__title {
  position: absolute;
  bottom: 2.8rem;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  z-index: 2;
}

@media screen and (min-width: 768px) {
  .services__header {
    margin-top: 5rem;
    margin-bottom: 3rem;
    padding-top: 3rem;
  }

  .services__lists {
    grid-template-columns: 1fr 1fr;
    padding: 0 2rem 5rem 2rem;
  }

  .services__list img {
    height: 250px;
  }

  .services__title {
    font-size: 2rem;
    bottom: 2.8rem;
  }
}

@media screen and (min-width: 1024px) {
  .services__lists {
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    padding: 0 2rem 5rem 2rem;
  }
}

/* nurses section */
.nurses {
  margin-top: 5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  /* From https://css.glass */
  background: rgba(255, 255, 255, 0.9490196078431372);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(2.8px);
  -webkit-backdrop-filter: blur(2.8px);
  border: 1px solid rgba(255, 255, 255, 0.13);
}

.nurses__container {
  width: 90%;
  text-align: center;
  /* From https://css.glass */
  background: rgba(161, 203, 209, 0.24);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(2.8px);
  -webkit-backdrop-filter: blur(2.8px);
  border: 1px solid rgba(161, 203, 209, 0.13);
}

.nurses__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.nurses__title {
  display: flex;
  justify-content: center;
  align-items: center;
}

.nurses__title svg {
  width: 15px;
  height: 15px;
}

.nurses__title span {
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--color-primary-light);
}

.nurses__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.nurses__list {
  /* From https://css.glass */
  background: rgba(255, 255, 255, 1);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 1);
  width: 250px;
  height: 360px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  overflow: hidden;
}

.nurses__list:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.nurse--two img,
.nurse--one img {
  object-position: center 20%;
}

.nurses__list img {
  width: 100%;
  height: 40%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.nurses__list:hover img {
  transform: scale(1);
}

.nurses__list h3 {
  font-size: 1.4rem;
}

.nurses__list h4 {
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--color-primary-light);
}

.nurses__list p {
  font-size: 1.4rem;
}

.nurses__list hr {
  border: 1px solid var(--color-silver);
  width: 80%;
  margin: auto;
  margin-top: 0.5rem;
}

.nurses__skills {
  margin-top: 1rem;
}

.nurses__skill {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.nurses__skill svg {
  width: 14px;
  height: 14px;
}

.nurses__skill span {
  font-size: 1.4rem;
}

.nurses__button {
  margin-top: 1rem;
}

.btn--profile,
.btn--view-all {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.5rem 1rem;
  border: 0.2rem solid var(--color-primary-dark);
  border-radius: 5rem;
  background: transparent;
  color: var(--color-primary-dark);
  font-size: 1.4rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn--profile span,
.btn--view-all span {
  transition: transform 0.3s ease;
}

.btn--profile:hover,
.btn--view-all:hover {
  background-color: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 0.8rem 2rem rgba(32, 193, 158, 0.25);
}

.btn--profile:hover span,
.btn--view-all:hover span {
  transform: translateX(-4px) translateY(-2px) scale(1.02);
}

.nurses__footer {
  margin-top: 3rem;
}

.btn--view-all {
  width: 25rem;
  background-color: var(--color-primary-dark);
  color: var(--btnTextColor);
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.btn--view-all:hover {
  background-color: var(--btnTextColor);
  color: var(--color-primary-dark);
}

@media screen and (min-width: 768px) {
  .nurses__container {
    width: auto;
  }

  .nurses__box {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    place-items: center;
  }
}

@media screen and (min-width: 1024px) {
  .nurses__container {
    max-width: 1200px;
    width: 100%;
  }

  .nurses__title svg {
    width: 20px;
    height: 20px;
  }

  .nurses__title span {
    font-size: 1.6rem;
  }

  .nurses__box {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 3rem;
  }

  .nurses__list {
    width: 270px;
    height: 460px;
  }

  .nurses__list img {
    height: 50%;
  }

  .nurses__list h3 {
    font-size: 1.6rem;
  }

  .nurses__list h4 {
    font-size: 1.6rem;
  }

  .btn--profile,
  .btn--view-all {
    padding: 1rem 2rem;
    font-weight: 600;
  }

  .btn--view-all {
    font-size: 1.6rem;
  }
}

/* articles section */
.articles {
  margin-top: 5rem;
}

.articles__header {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}

.articles__content {
  display: flex;
  justify-content: center;
}

.articles__card {
  background-color: var(--btnTextColor);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  border-radius: 20px;
  overflow: hidden;
}

.articles__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.article__2,
.article__3 {
  display: none;
}

.articles__image {
  display: flex;
  justify-content: center;
}

.articles__image img {
  width: 95%;
  height: 220px;
  border-radius: 20px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.articles__image img:hover {
  transform: scale(1.05);
}

.articles__body {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

.articles__title {
  margin-bottom: 1.4rem;
  line-height: 1.5;
}

.articles__text {
  margin-bottom: 2rem;
  line-height: 1.9;
}

.articles__date {
  color: var(--color-platinum);
  text-align: left;
  margin-bottom: 2rem;
}

.link__box {
  display: inline-flex;
  align-items: center;
  justify-content: right;
  gap: 0.3rem;
  padding: 0.5rem 1rem;
  margin-top: auto;
}

.articles__link {
  text-decoration: none;
  color: var(--color-primary-dark);
}

.arrow__link {
  font-weight: bold;
  font-size: 2rem;
  color: var(--color-primary-dark);
}

.link__box:hover .articles__link,
.link__box:hover .arrow__link {
  transform: translateX(-5px);
}

.articles__link,
.arrow__link {
  transition: transform 0.3s ease;
}

.articles__footer {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

@media screen and (min-width: 768px) {
  .articles__content {
    justify-content: space-evenly;
    gap: 1rem;
  }

  .article__2 {
    display: block;
  }

  .articles__image img {
    width: 90%;
  }
}

@media screen and (min-width: 1024px) {
  .articles__content {
    gap: 2.5rem;
  }

  .articles__card {
    flex: 1 1 0;
  }

  .article__2,
  .article__3 {
    display: block;
  }

  .articles__image {
    margin: 0 1rem;
  }

  .articles__image img {
    width: 100%;
    height: 280px;
  }
}

/* footer */
.footer {
  background-color: #edefea;
}

.footer__container {
  margin-top: 5rem;
  padding-top: 3rem;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 2.5rem;
  padding: 1rem 3rem;
}

.footer__logo {
  color: var(--color-text-light);
  display: inline-flex;
  border: 1px solid var(--color-icones);
  margin-top: 1rem;
  text-decoration: none;
  border-radius: 15px 50px 30px;
  -webkit-box-shadow: 2px 2px 5px 0px rgba(43, 85, 91, 1);
  -moz-box-shadow: 2px 2px 5px 0px rgba(43, 85, 91, 1);
  box-shadow: 2px 2px 5px 0px rgba(43, 85, 91, 1);
  padding: 0.5rem;
}

.footer__description-link {
  text-decoration: none;
  color: var(--color-gold);
  cursor: pointer;
  transition: all 0.3s ease;
}

.footer__description-link:hover {
  color: var(--color-primary-dark);
}

.footer__list,
.footer__services,
.footer__actions {
  display: flex;
  flex-direction: column;
  padding-top: 2.5rem;
  padding-right: 3rem;
}

.footer__title {
  margin-top: 1.5rem;
}

.footer__divider {
  border: 0;
  width: 4rem;
  height: 2px;
  margin: 0 0 1.5rem;
  background-color: var(--color-primary-dark);
}

.footer__item,
.footer__service,
.footer__contact {
  padding-bottom: 1.5rem;
}

.footer__item:hover {
  color: var(--color-primary-dark);
  transform: translatex(-2px);
}

.footer__link {
  position: relative;
  display: inline-block;
  text-decoration: none;
  color: var(--color-primary-dark);
  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.footer__link:hover {
  color: var(--color-primary-dark);
  transform: translateX(-2px);
}

.footer__service {
  display: flex;
  gap: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.footer__service span {
  transition: transform 0.3s ease;
}

.footer__service:hover {
  transform: translateY(-2px);
}

.footer__service:hover span {
  transform: translateX(-4px);
}

.footer__service-link {
  text-decoration: none;
  color: var(--color-primary-dark);
}

.footer__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer__contact-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  gap: 1.5rem;
  color: var(--color-primary-dark);
  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.footer__contact-link:hover {
  color: var(--color-primary);
  transform: translateX(-3px);
}

.footer__contact-link svg {
  width: 25px;
  height: 25px;
  transition: transform 0.3s ease;
}

.footer__contact-link:hover svg {
  transform: scale(1.1);
}

.footer__socials {
  display: flex;
  gap: 0.5rem;
  margin-right: 3rem;
  margin-top: 1rem;
  margin-bottom: 2.5rem;
  margin-left: 2rem;
  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.footer__social-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  color: var(--color-primary-dark);
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-icones);
  border-radius: 10px;
  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.footer__social-link:hover {
  color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-3px) scale(1.05);
}

.footer__security {
  text-align: center;
  padding: 1.5rem 1rem;
  border-top: 1px solid var(--color-icones);
}

@media screen and (min-width: 768px) {
  .footer__container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5rem;
  }

  .footer__security {
    grid-column: 1 / -1;
  }
}

@media screen and (min-width: 1024px) {
  .footer__container {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1.2fr 1fr;
    column-gap: 3rem;
  }
}
