/* GOOGLE FONTS */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");

/*=========== VARIABLES ===========*/
:root {
  --header-height: 3rem;

  /*=========== Colors ===========*/
  --first-color: #d31221;
  --first-color-light: #ecf3f2;
  --title-color: #11443f;
  --text-color: #5b7b78;
  --body-color: #f5fffe;

  /*=========== Fonts and typography ===========*/
  --body-font: "Poppins", sans-serif;
  --biggest-font: 2.5rem;
  --big-font: 1.25rem;
  --normal-font: 0.938rem;

  /*=========== Font weight ===========*/
  --font-medium: 500;
  --font-semi-bold: 600;

  /*=========== z index ===========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

@media screen and (min-width: 1024px) {
  :root {
    --biggest-font: 3rem;
    --big-font: 2rem;
  }
}

/*=========== BASE ===========*/
*,
::before,
::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--body-font);
  font-size: var(--normal-font);
  background-color: var(--body-color);
  color: var(--text-color);
}

h1,
h2,
ul,
p {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/*=========== LAYOUT ===========*/
.main {
  position: relative;
}

.bd-container {
  max-width: 968px;
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}

/*=========== HEADER ===========*/
.header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
}

/*=========== NAV ===========*/
.nav {
  max-width: 968px;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media screen and (max-width: 768px) {
  .nav__menu {
    position: fixed;
    top: -100%;
    left: 0;
    right: 0;
    width: 90%;
    margin: 0 auto;
    text-align: center;
    padding-top: 1.5rem;
    background-color: var(--first-color-light);
    border-radius: 1rem;
    transition: 0.4s;
  }
}

.nav__logo,
.nav__toggle {
  color: var(--first-color-light);
}

.nav__link {
  color: var(--title-color);
  font-weight: var(--font-medium);
}

.nav__item {
  margin-bottom: 1.5rem;
}

.nav__toggle {
  font-size: 1.2rem;
  cursor: pointer;
}

/*=========== Show menu ===========*/
.show-menu {
  top: calc(var(--header-height) + 1rem);
}

/*=========== INLANDS ===========*/
.top {
  height: 100vh;
  position: relative;
}

.top__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  object-fit: cover;
  object-position: center;
}

.top__container {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-columns: 2fr 0.25fr;
  align-content: center;
}

.top__subtitle,
.top__title,
.top__description {
  color: var(--first-color-light);
}

.top__subtitle {
  font-size: var(--big-font);
  font-weight: var(--font-medium);
}

.top__title {
  font-size: var(--biggest-font);
}

.top__description {
  margin-bottom: 1rem;
}

.top__button {
  display: inline-flex;
  align-items: center;
  padding: 1rem 1.5rem;
  background-color: var(--first-color-light);
  color: var(--first-color);
  border-radius: 0.5rem;
  font-weight: var(--font-medium);
}

.top__button:hover {
  background-color: var(--body-color);
}

.top__button-arrow {
  font-size: 1rem;
  margin-left: 0.4rem;
}

.top__video {
  display: flex;
  align-items: flex-end;
  padding-bottom: 0.75rem;
}

.top__video-content {
  display: inline-flex;
  padding: 0.15rem;
  background-color: var(--first-color-light);
  border-radius: 50%;
  cursor: pointer;
}

.top__video-icon {
  font-size: 1.8rem;
  color: var(--first-color);
}

.top__popup {
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--first-color-light);
  padding: 1rem 0.75rem;
  border-radius: 1rem;
}

.top__popup-close {
  position: absolute;
  top: -0.75rem;
  right: -0.75rem;
  display: inline-flex;
  padding: 0.35rem;
  background-color: var(--first-color);
  color: var(--first-color-light);
  font-size: 1.2rem;
  border-radius: 50%;
  cursor: pointer;
}

/*=========== Show popup ===========*/
.show-popup {
  display: block;
}

/*=========== Controls ===========*/
.controls__img {
  width: 35px;
  height: 35px;
  border-radius: 0.5rem;
  cursor: pointer;
}

.controls {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.25rem 0.5rem;
  background-color: var(--body-color);
  border-radius: 0.75rem;
  z-index: var(--z-tooltip);
  overflow: hidden;
}

.controls__img {
  width: 35px;
  height: 35px;
  border-radius: 0.5rem;
  cursor: pointer;
}

.controls__container {
  display: flex;
  align-items: center;
  column-gap: 1rem;
}

/*=========== Active controls ===========*/
.swiper-slide-thumb-active {
  width: 45px;
  height: 45px;
}

/*=========== MEDIA QUERIES ===========*/
@media screen and (max-width: 320px) {
  .bd-container {
    margin-left: 1rem;
    margin-right: 1rem;
  }

  .controls__container {
    column-gap: 0.25rem;
  }

  .top__popup-video {
    width: 230px;
    height: 130px;
  }
}

@media screen and (min-width: 768px) {
  .nav {
    height: calc(var(--header-height) + 1.5rem);
  }

  .nav__list {
    display: flex;
  }

  .nav__item {
    margin-right: 2rem;
    margin-bottom: 0;
  }

  .nav__link {
    color: var(--first-color-light);
  }

  .nav__toggle {
    display: none;
  }

  .top__container {
    grid-template-columns: repeat(2, 1fr);
  }

  .top__description {
    padding-right: 5rem;
    margin-bottom: 2rem;
  }

  .top__video {
    justify-content: center;
    align-items: center;
    padding: 0;
  }

  .top__video-icon {
    font-size: 3rem;
  }

  .top__popup-video {
    width: 500px;
    height: 250px;
  }

  .top__popup-close {
    font-size: 1.5rem;
  }

  .controls {
    padding: 0.5rem;
    border-radius: 1.25rem;
  }

  .controls__container {
    column-gap: 1.5rem;
  }

  .controls__img {
    width: 45px;
    height: 45px;
    border-radius: 0.75rem;
  }

  .swiper-slide-thumb-active {
    width: 55px;
    height: 55px;
  }
}

@media screen and (min-width: 1024px) {
  .bd-container {
    margin-left: auto;
    margin-right: auto;
  }

  .top__description {
    padding-right: 11rem;
  }
}
