/* Montserrat */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/* Cairo */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200..1000&display=swap');

/* Gravitas One */
@import url('https://fonts.googleapis.com/css2?family=Gravitas+One&display=swap');

/* Noto Sans Display */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Display:ital,wght@0,100..900;1,100..900&display=swap');

*,
*::before,
*::after {
  margin: 0;
  box-sizing: border-box;
}

.divider {
  margin: 0 auto;
  border: none;
  height: 0.125rem;
  background: #ddd;
  width: 80%;
}

.hero__container {
  position: relative;
  width: 100vw;
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-position: center;
  background-size: cover;
}

.hero__title {
  position: absolute;
  font-size: 6.5rem;
  line-height: 1;
  padding: 1.5rem 2.5rem;
  text-align: center;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  z-index: 3;
  background-color: rgba(255, 255, 255, 0.6);
  mix-blend-mode: color-dodge;
  letter-spacing: -15px;
}

.line-break {
  display: block;
}

body {
  background-color: #f8f9fa;
  font-family: 'Cairo', sans-serif;
  display: grid;
  grid-template-rows: fit-content(3rem) fit-content(4rem) 1fr fit-content(17rem);
  grid-template-areas:
    'top-bar'
    'header'
    'main'
    'footer';
}

button,
.btn {
  cursor: pointer;
  font: inherit;
}

button:focus {
  outline: none;
}

/* h1,
h2,
h3,
p {
  padding: 0.5rem;
} */

/* Heading */
/* .heading {
  font-size: 2rem;
  text-align: center;
  padding: 1rem;
} */
/* Top bar*/

.top-bar__language-switch button {
  background-color: transparent;
  border: none;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0.5rem 0.5rem;
  height: 4rem;
  flex-wrap: nowrap;
  grid-area: top-bar;
}

.top-bar__logo img {
  width: 6.5rem;
  vertical-align: middle;
}

.top-bar__right {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 0;
}
.top-bar__socials {
  gap: 0.5rem;
}
.top-bar__socials a img {
  height: 2rem;
  width: auto;
  vertical-align: middle;
}

@media (max-width: 770px) {
  .top-bar__socials {
    display: none;
  }
}

/* Toggle button */

.top-bar-toggle__buttons {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 3rem;
  height: 1.5rem;
  gap: 0.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: transform 0.3s ease;
}

.top-bar-toggle__button {
  width: 2rem;
  height: 0.5rem;
  background-color: black;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

/* main header */

.main-header {
  width: 100vw;
  height: 10vh;
  display: flex;
  align-items: center;
  background: rgba(248, 249, 250, 0.95);
  border-bottom: solid #e7e8e9;
  position: sticky;
  top: 0;
  z-index: 4;
  grid-area: header;
}

.main-header > div {
  vertical-align: middle;
}

.main-nav {
  flex: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-nav__items {
  flex: 1 1 auto;
  list-style: none;
  text-align: center;
  justify-content: center;
  display: flex;
  padding: 0;
  font-size: 1rem;
}

.main-nav__item {
  width: 100%;
  height: 100%;
  border-right: solid hsl(210, 17%, 93%);
}

.main-nav__item a,
.mobile-nav__item a,
.top-bar__language-switch button {
  text-decoration: none;
  color: #000000;
  white-space: nowrap;
}

.main-nav__item--active a,
.top-bar__language-switch--active {
  font-weight: bold;
}

.main-nav__item:not(.main-nav__item--active) a:hover,
.top-bar__language-switch button:hover {
  color: rgb(52, 105, 162);
}

.main-nav__item a:active,
.mobile-nav__item a:active {
  color: white;
}

/* Socials img*/

.top-bar__socials img,
.main-footer__socials img {
  width: 2rem;
  filter: grayscale(50%);
}

.top-bar__socials img:hover,
.main-footer__socials img:hover {
  filter: grayscale(0%);
}

main {
  grid-area: main;
}
/* Main Footer */

.main-footer {
  background: #213448;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-content: space-around;
  align-items: center;
  padding: 0.5rem;
  /* overflow: hidden; */
  width: 100vw;
  grid-area: footer;
}

.main-footer h2 {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  text-align: center;
}

.main-footer__links {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex: 1 1 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.main-footer__link {
  margin: 0.5rem 0.5rem;
  text-align: center;
}

.main-footer__link a {
  color: white;
  text-decoration: none;
}

.main-footer__link a:hover,
.main-footer__link a:active {
  display: inline-block;
  color: #ccc;
  transform: translateY(-5px);
}

.main-footer__socials,
.main-footer__contact-us {
  display: flex;
  align-items: center;
  flex-direction: column;
  flex-wrap: wrap;
}

.main-footer__contact-us a {
  /* text-decoration: none; */
  color: white;
}

.main-footer__copyright {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  text-align: center;
}

@media (max-width: 770px) {
  .main-footer__links {
    display: none;
  }
}

/* Mobile Nav */

.mobile-nav__header {
  background: #213448;
}

.mobile-nav__logo {
  display: flex;
  justify-content: center;
  padding: 1rem;
}
.mobile-nav__logo img {
  width: 5rem;
}

.mobile-nav__title {
  text-align: center;
  font-size: 1.5rem;
  padding: 1rem;
  color: white;
}
.mobile-nav {
  position: fixed;
  height: 100vh;
  left: -100%;
  z-index: 100;
  display: flex;
  flex-direction: column;
  width: 80vw;
  background: white;
  overflow: hidden;
  overflow-y: scroll;
}

.mobile-nav.open{
  left: 0;
}

.mobile-nav__items {
  display: flex;
  flex-direction: column;
  padding: 0;
}
.mobile-nav__item {
  display: flex;
  list-style: none;
  text-align: left;
  align-items: center;
  flex: 1 1 0;
}

.mobile-nav__item a {
  display: flex;
  align-items: center;
  width: 100%;
  color: black;
  flex-wrap: wrap;
  text-wrap: wrap;
  text-align: center;
  font-size: 1rem;
  flex-direction: column;
  border-bottom: 1px solid rgb(206, 206, 206);
}

.mobile-nav__item a:active {
  color: black; 
}

.mobile-nav__item span {
  padding: 1rem;
}
.mobile-nav__item a i {
  width: 3rem;
  padding: 1rem;
}

/* Backdrop */

.backdrop {
  position: fixed;
  top:0;
  left: 0;
  display: none;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 5;
  
}

.backdrop.open{
  display: block;
} 

/* .open {
  display: block !important;
} */

@media (max-width: 770px) {
  .main-header {
    display: none;
  }

  .top-bar-toggle__buttons {
    display: flex;
  }
}

.location__container h2 {
  text-align: center;
  margin: 1rem;
}

/* loader */
.slider__spinner {
  border: 4px solid rgba(255,255,255,0.2);
  border-top: 4px solid black;
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.slider__container.loading .slider__images {
  opacity: 0;
}

.slider__container:not(.loading) .slider__spinner {
  display: none;
}

