:root {
  --primary: #085a63;
  --secondary: #f5f3ec;
  --white: #fefefe;

  --font-family: "FarhangFaNum", sans-serif;
  --font-weight-thin: 100;
  --font-weight-regular: 400;
  --font-weight-bold: 700;
  --font-weight-black: 900;

  --line-height-tight: 1.2;
  --line-height-base: 1.6;
  --line-height-loose: 1.8;

  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-base: 16px;
  --font-size-md: 18px;
  --font-size-lg: 22px;
  --font-size-xl: 28px;
  --font-size-xxl: 36px;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: all ease 0.3s;
}

a {
  text-decoration: none;
  color: inherit;
  font-family: inherit;
}

a:hover {
  color: var(--primary);
}

button {
  background-color: transparent;
  border: none;
  font-family: inherit;
  cursor: pointer;
}

.button {
  background-color: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 0.75em 1.5em;
  border-radius: 0.25em;
  font-weight: 700;
}
.button:hover {
  background-color: var(--primary);
  color: var(--white);
}

/* Start Farhang Font Family */

@font-face {
  font-family: "FarhangFaNum";
  src: url("../../fonts/farhang/FarhangFaNum-Regular.eot");
  src: url("../../fonts/farhang/FarhangFaNum-Regular.eot?#iefix")
      format("embedded-opentype"),
    url("../../fonts/farhang/FarhangFaNum-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "FarhangFaNum";
  src: url("../../fonts/farhang/FarhangFaNum-Light.eot");
  src: url("../../fonts/farhang/FarhangFaNum-Light.eot?#iefix")
      format("embedded-opentype"),
    url("../../fonts/farhang/FarhangFaNum-Light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "FarhangFaNum";
  src: url("../../fonts/farhang/FarhangFaNum-ExtraLight.eot");
  src: url("../../fonts/farhang/FarhangFaNum-ExtraLight.eot?#iefix")
      format("embedded-opentype"),
    url("../../fonts/farhang/FarhangFaNum-ExtraLight.woff") format("woff");
  font-weight: 200;
  font-style: normal;
}

@font-face {
  font-family: "FarhangFaNum";
  src: url("../../fonts/farhang/FarhangFaNum-Medium.eot");
  src: url("../../fonts/farhang/FarhangFaNum-Medium.eot?#iefix")
      format("embedded-opentype"),
    url("../../fonts/farhang/FarhangFaNum-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "FarhangFaNum";
  src: url("../../fonts/farhang/FarhangFaNum-DemiBold.eot");
  src: url("../../fonts/farhang/FarhangFaNum-DemiBold.eot?#iefix")
      format("embedded-opentype"),
    url("../../fonts/farhang/FarhangFaNum-DemiBold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: "FarhangFaNum";
  src: url("../../fonts/farhang/FarhangFaNum-Bold.eot");
  src: url("../../fonts/farhang/FarhangFaNum-Bold.eot?#iefix")
      format("embedded-opentype"),
    url("../../fonts/farhang/FarhangFaNum-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "FarhangFaNum";
  src: url("../../fonts/farhang/FarhangFaNum-ExtraBold.eot");
  src: url("../../fonts/farhang/FarhangFaNum-ExtraBold.eot?#iefix")
      format("embedded-opentype"),
    url("../../fonts/farhang/FarhangFaNum-ExtraBold.woff") format("woff");
  font-weight: 800;
  font-style: normal;
}

@font-face {
  font-family: "FarhangFaNum";
  src: url("../../fonts/farhang/FarhangFaNum-Black.eot");
  src: url("../../fonts/farhang/FarhangFaNum-Black.eot?#iefix")
      format("embedded-opentype"),
    url("../../fonts/farhang/FarhangFaNum-Black.woff") format("woff");
  font-weight: 900;
  font-style: normal;
}

/* End Farhang Font Family */

body {
  direction: rtl;
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-base);
  background-color: #f5f3ec;
}
body,
h1,
h2,
h3,
h4,
h5,
h6,
a,
p,
div,
span,
article,
pre,
button,
label,
input,
textarea,
select,
::placeholder {
  font-family: var(--font-family);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--font-weight-black);
  line-height: var(--line-height-base);
  margin: 0 0 0.5em 0;
}
h1 {
  font-size: var(--font-size-xxl);
}

h2 {
  font-size: var(--font-size-xl);
}

h3 {
  font-size: var(--font-size-lg);
}

h4 {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-bold);
}

h5 {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
}

h6 {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
}

p {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-loose);
  text-align: justify;
  margin-bottom: 1em;
  color: #666;
}

button,
label {
  font-family: var(--font-family);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
}

section {
  position: relative;
  margin-bottom: 5em;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 64em) {
  section {
    margin-bottom: 2em;
  }
  section .container .box {
    padding: 2em;
  }
}

header {
  height: 6em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4em;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
}
header .leftbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5em;
}

header .leftbar nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2em;
}
header .leftbar nav ul li a {
  font-size: var(--font-size-md);
}

header .hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

@media (max-width: 36em) {
  body.no-scroll {
    height: 100vh;
    overflow: hidden;
  }
  header {
    padding: 0 2em;
    flex-direction: row-reverse;
  }

  header .hamburger {
    display: block;
  }

  header .leftbar {
    position: fixed;
    top: 6em;
    right: -100%;
    width: 100%;
    height: calc(100vh - 6em);
    background: var(--secondary);
    transition: right 0.3s ease-in-out;
    z-index: 999;
  }

  header .leftbar.open {
    right: 0;
  }

  header .leftbar nav ul {
    flex-direction: column;
    padding: 2em;
    gap: 2em;
  }

  header .leftbar nav ul li a {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
  }
}

#hero {
  height: 70vh;
}

#hero img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
  z-index: -1;
}

#hero .box {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5em;
  text-align: center;
  margin: 0 auto;
  padding: 5em 0;
  color: var(--white);
}

#hero .box p {
  color: var(--white);
}

@media (max-width: 36em) {
  #hero .box {
    padding: 1em;
  }
}

#about .box {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  align-items: center;
  gap: 1em;
  padding: 4em;
}
#about .box .box-item {
  position: relative;
  width: 100%;
}

#about .box .box-item:last-child {
  text-align: center;
}

#about .box .box-item .tagline {
  color: var(--primary);
  margin-bottom: 0.5em;
  display: block;
}

#about .box .box-item img {
  width: 100%;
  max-width: 20em;
  height: 100%;
  min-height: 30em;
  max-height: 30em;
  object-fit: cover;
  border-radius: 0.5em;
  box-shadow: 4px 8px 16px rgba(0, 0, 0, 0.1);
}

#about .box .box-item img#AboutBackImg {
  position: absolute;
  left: 25%;
  top: 2em;
  z-index: -1;
  border-radius: 0.5em;
  box-shadow: 4px 8px 16px rgba(0, 0, 0, 0.1);
}

#AboutFrontImg {
  z-index: 1;
}

@media screen and (min-with: 48em) {
  #about .box .box-item {
    width: 50%;
  }
}
@media (max-width: 36em) {
  #about .box {
    padding: 2em;
    flex-direction: column;
  }
  #about .box .box-item img#AboutBackImg {
    display: none;
  }
}
@media (max-width: 64em) {
  #about .box .box-item img#AboutBackImg {
    display: none;
  }
}
#books .box > div {
  margin-bottom: 3em;
}
#books .box .box-category .box-category__header {
  text-align: center;
  margin-bottom: 1.5em;
}
#books .box .box-category .box-category__header p {
  text-align: center;
}

#books .books-category-swiper {
  width: 100%;
  overflow: hidden;
  padding: 0.25em;
}
#books .books-category-swiper .swiper-wrapper .swiper-slide {
  width: 5em;
}
#books .books-category-swiper .swiper-wrapper .swiper-slide a {
  display: inline-block;
  width: 100%;
  text-align: center;
  color: var(--primary);
  border: 1.25px solid var(--primary);
  padding: 0.5em 0;
  border-radius: 0.5em;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  user-select: none;
}

.tagline {
  color: var(--primary);
  margin-bottom: 0.5em;
  display: block;
}

#books .box-books .books-swiper {
  width: 100%;
  overflow: hidden;
}

#books .box-books .box-slider__header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--secondary);
  margin-bottom: 1em;
}

#books .box-books .box-slider__header::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 8em;
  height: 2px;
  background-color: var(--primary);
}
#books .box-books .box-slider__header a {
  color: var(--primary);
}

#books .box-books .books-swiper .swiper-slide {
  width: 100%;
}
#books .box-books .books-swiper .swiper-slide img {
  width: 100%;
  height: 20em;
  object-fit: contain;
  padding: 1em;
}

#books .box-books .books-swiper .swiper-slide .title {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-bold);
  margin-bottom: 0.5em;
}

#books .box-books .books-swiper .swiper-slide .author {
  font-size: var(--font-size-sm);
  color: #666;
}
#books .box-books .books-swiper .swiper-slide .publisher {
  font-size: var(--font-size-sm);
  color: #666;
}
#books .box-books .books-swiper .swiper-slide .price {
  margin-top: 0.75em;
}
#books .box-books .books-swiper .swiper-slide .price .amount {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-regular);
  font-family: var(--font-family);
}
#books .box-books .books-swiper .swiper-slide .price .currency {
  font-size: var(--font-size-xs);
}

@media (max-width: 36em) {
  #books .box {
    padding: 2em;
  }
  #books .box > div {
    margin-bottom: 1.5em;
  }
}

#cafe .cafe-slider {
  width: 100%;
  overflow: hidden;
  margin-top: 2em;
}
#cafe .cafe-slider .cafe-items-swiper .swiper-slide img {
  width: 100%;
}

#courses .box-courses {
  margin-top: 2em;
}
#courses .courses-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

#courses .courses-list .course-item {
  background-color: #fafafa;
  padding: 15px;
  border-radius: 4px;
  transition: transform 0.2s;
}
#courses .courses-list .course-item .course-item__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#courses .courses-list .course-item:hover {
  transform: translateY(-5px);
}

#courses .courses-list .course-item h4 {
  font-size: 1.2rem;
  color: calc(var(--primary), 0.75);
  margin-bottom: 0.5rem;
}

#courses .courses-list .course-item p {
  font-size: 0.9rem;
  color: calc(var(--primary), 0.2);
  margin-bottom: 0.5rem;
}

#courses .courses-list .course-duration {
  display: block;
  font-size: var(--font-size-sm);
}

@media (max-width: 36em) {
  #courses .courses-list {
    grid-template-columns: 1fr;
  }
}

.footer .tagline {
  color: var(--secondary);
}

.footer-main {
  background-color: var(--primary);
  color: var(--secondary);
  padding: 40px 20px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2em;
}

.footer-column {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  width: 5em;
  height: auto;
  margin-bottom: 10px;
}

.footer-column h4 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: var(--secondary);
}

.footer-column .cafe-name {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--secondary);
}

.social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--secondary);
  text-decoration: none;
  font-size: 0.9rem;
}

.social-link img {
  width: 24px;
  height: 24px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--white);
}

.contact-info p {
  font-size: 0.9rem;
  color: var(--secondary);
  margin: 5px 0;
}

.footer-copyright {
  background-color: var(--secondary);
  font-size: var(--font-size-base);
  color: var(--secondary);
  padding: 1em;
}

.footer-copyright p a {
  color: var(--primary);
  text-decoration: none;
}

.footer-copyright p {
  text-align: center;
  margin: 0;
}

.footer-copyright a:hover {
  text-decoration: underline;
}

@media screen and (max-width: 36em) {
  .footer-main {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-column {
    align-items: center;
  }

  .footer-logo {
    margin: 0 auto 10px;
  }

  .social-link {
    justify-content: center;
  }
}
