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

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

@font-face {
  font-family: "Raleway";
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/Raleway-SemiBold.woff2") format("woff2");
}

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

@font-face {
  font-family: "Lora";
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/Lora-SemiBold.woff2") format("woff2");
}

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

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

  --container-width: 1280px;

  /*===============================*/
  /*======== FONT SIZE H1 =========*/
  /*===============================*/
  --title-h1: 6vw; /* Adjust number hero title font: high = big, low = small */

  /*===============================*/
  /*======== THEME COLORS =========*/
  /*===============================*/
  --hue-color: 5;
  /*- Red     = 0 
    - Green   = 120
    - Cyan    = 180 
    - Blue    = 230
    - Purple  = 250 
    - Magenta = 300 
    - Pink    = 340
    - Orange  = 380
  */

  /* HSL color mode */
  --first-color: hsl(var(--hue-color), 49%, 51%);
  --first-color-second: hsl(var(--hue-color), 69%, 61%);
  --first-color-lighter: hsl(var(--hue-color), 62%, 29%);
  --title-color: hsl(var(--hue-color), 8%, 99%);
  --text-color: hsl(var(--hue-color), 16%, 77%);
  --text-color-light: hsl(var(--hue-color), 8%, 50%);
  --input-color: hsl(var(--hue-color), 30%, 89%);
  --body-color: hsl(var(--hue-color), 20%, 9%);

  --container-color: hsl(0, 0%, 100%);
  --scroll-bar-color: hsl(var(--hue-color), 12%, 90%);
  --scroll-thumb-color: hsl(var(--hue-color), 12%, 80%);
  --button-color: hsl(0, 0%, 99%);
  --danger-color: hsl(0, 100%, 50%);
  --light-color: hsl(10, 10%, 100%);
  --dark-color: hsl(10, 10%, 10%);

  /*===============================*/
  /*===== FONT AND TYPOGRAPHY =====*/
  /*===============================*/
  --main-font: "Raleway", sans-serif;
  --sub-font: "Lora", serif;

  /* .5rem = 8px, 1rem = 16px, 1.5rem = 24px ... */
  --h1-font-size: clamp(2.5rem, var(--title-h1), 4rem);
  --h2-font-size: clamp(2rem, 5vw, 2.25rem);
  --h3-font-size: clamp(1.125rem, 5vw, 1.25rem);
  --font-size-4-5: 4.5rem;
  --font-size-3-5: 3.5rem;
  --font-size-3: 3rem;
  --font-size-2-5: 2.5rem;
  --font-size-2: 2rem;
  --font-size-1-75: 1.75rem;
  --font-size-1-5: 1.5rem;
  --font-size-1-25: 1.25rem;
  --font-size-1-2: 1.2rem;
  --font-size-1-1: 1.1rem;
  --font-size-1: 0.938rem;
  --font-size-0-813: 0.813rem;
  --font-size-0-75: 0.75rem;

  /*===============================*/
  /*========= FONT WEIGHT =========*/
  /*===============================*/
  --font-light: 300;
  --font-medium: 400;
  --font-semi-bold: 600;
  --font-bold: 700;
  --font-black: 900;

  /*===============================*/
  /*========== SPACINGS ===========*/
  /*===============================*/
  /* .25rem = 4px, .5rem = 8px, .75rem = 12px ... */
  --space-0-25: 0.25rem;
  --space-0-5: 0.5rem;
  --space-0-75: 0.75rem;
  --space-1: 1rem;
  --space-1-25: 1.25rem;
  --space-1-5: 1.5rem;
  --space-2: 2rem;
  --space-2-5: 2.5rem;
  --space-3: 3rem;
  --space-3-5: 3.5rem;
  --space-4: 4rem;
  --space-4-5: 4.5rem;
  --space-5: 5rem;
  --space-6: 6rem;
  --space-8: 8rem;
  --space-10: 10rem;
  --space-14: 14rem;

  /*===============================*/
  /*=========== Z INDEX ===========*/
  /*===============================*/
  --z-tooltip: 10;
  --z-fixed: 100;
  --z-modal: 1000;

  /*===============================*/
  /*=========== SHADOW ============*/
  /*===============================*/
  --shadow-sm: 5px 5px 15px rgba(172, 172, 172, 0.1);
  --shadow-md: 0 -1px 4px rgba(0, 0, 0, 0.15);

  /*===============================*/
  /*=========== BORDER ============*/
  /*===============================*/
  --border-sm: 1px solid var(--border-color);

  /*===============================*/
  /*============ EMBLA ============*/
  /*===============================*/
  --slide-height: 32rem;
  --slide-spacing-xs: 2rem;
  --slide-spacing-sm: 3rem;
  --slide-spacing-md: 4rem;
  --slide-spacing-lg: 5rem;
  --slide-spacing-xl: 16rem;
  --slide-size: 100%;
  --slide-size-sm: 50%;
  --slide-size-lg: calc(100% / 3);
}

/* Font size for large devices */
@media screen and (min-width: 968px) {
  :root {
    --font-size-1: 0.9rem;
    --font-size-0-813: 0.813rem;
    --font-size-0-75: 0.75rem;
  }
}

/*===============================*/
/*===== VARIABLES DARK THEME ====*/
/*===============================*/
body.dark-theme {
  /* HSL color mode */
  --first-color-second: hsl(var(--hue-color), 49%, 49%);
  --title-color: hsl(var(--hue-color), 8%, 8%);
  --text-color: hsl(var(--hue-color), 8%, 28%);

  --input-color: hsl(var(--hue-color), 40%, 86%);
  --body-color: hsl(var(--hue-color), 12%, 90%);

  --container-color: hsl(var(--hue-color), 29%, 16%);
  --scroll-bar-color: hsl(var(--hue-color), 12%, 48%);
  --scroll-thumb-color: hsl(var(--hue-color), 12%, 36%);
}

#dark-mode > img {
  cursor: pointer;
}

#dark-mode.dark-theme .moon__mode,
#dark-mode .sun__mode {
  display: none;
}

#dark-mode.dark-theme .sun__mode {
  display: block;
}

.moon__mode svg,
.sun__mode svg {
  margin-top: var(--space-0-25);
  width: var(--space-1-25);
  height: var(--space-1-25);
  cursor: pointer;
  color: var(--first-color);
  transition: 1s;
}

.moon__mode svg:hover,
.sun__mode svg:hover {
  transform: translateY(-0.25rem);
}

.moon__mode.visible,
.sun__mode.visible {
  visibility: visible;
}

/*===============================*/
/*======= BUTTON DARKMODE =======*/
/*===============================*/
.theme__container {
  display: flex;
  align-items: center;
  column-gap: var(--space-0-75);
}

.change-theme {
  font-size: var(--font-size-1-25);
  color: var(--title-color);
  margin-right: var(--space-1);
  cursor: pointer;
}

.change-theme:hover {
  color: var(--first-color);
}

/*===============================*/
/*============ EMBLA ============*/
/*===============================*/
.embla {
  max-width: 111.5rem;
  margin: auto;
}

.embla__viewport {
  overflow: hidden;
}

.embla__container {
  backface-visibility: hidden;
  display: flex;
  touch-action: pan-y pinch-zoom;
  /* margin-left: calc(var(--slide-spacing-lg) * -1); */
}

@media (max-width: 798px) {
  .embla__container.embla__testimonial {
    margin-left: calc(var(--slide-spacing-lg) * -1);
  }
}

@media (min-width: 799px) {
  .embla__container.embla__testimonial {
    margin-left: calc(var(--slide-spacing-sm) * -1);
  }
}

@media (min-width: 1280px) {
  .embla__container.embla__testimonial {
    margin-left: calc(var(--slide-spacing-md) * -1);
  }
}

.embla__slide {
  min-width: 0;
  /* flex: 0 0 var(--slide-size); */
  /* padding-left: var(--slide-spacing-md); */
  cursor: grab;
}

@media (max-width: 798px) {
  .embla__slide.testimonial__slide {
    flex: 0 0 var(--slide-size);
    padding-left: var(--slide-spacing-lg);
  }
}

@media (min-width: 799px) {
  .embla__slide.testimonial__slide {
    flex: 0 0 var(--slide-size);
    padding-left: var(--slide-spacing-sm);
  }
}

@media (min-width: 1280px) {
  .embla__slide.testimonial__slide {
    flex: 0 0 var(--slide-size-lg);
    padding-left: var(--slide-spacing-md);
  }
}

.embla__slide__number {
  box-shadow: inset 0 0 0 0.2rem var(--first-color-lighter);
  border-radius: 1.8rem;
  font-size: 4rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--slide-height);
  user-select: none;
}

.embla__buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}

.embla__button {
  -webkit-tap-highlight-color: var(--first-color);
  -webkit-appearance: none;
  appearance: none;
  background-color: transparent;
  touch-action: manipulation;
  display: inline-flex;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  padding: 0;
  margin: 0;
  width: 3.6rem;
  height: 3.6rem;
  z-index: 1;
  border-radius: 50%;
  color: var(--first-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.embla__button:disabled {
  color: var(--first-color-lighter);
}

.embla__button__svg {
  width: 35%;
  height: 35%;
}

.embla__bottom {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  row-gap: 1rem;
  margin-top: 2rem;
}

.embla__dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  column-gap: 1rem;
  /* margin-right: calc((2.8rem - 1.4rem) / 2 * -1); */
}

.embla__dot {
  -webkit-tap-highlight-color: var(--input-color);
  -webkit-appearance: none;
  appearance: none;
  background-color: transparent;
  touch-action: manipulation;
  display: inline-flex;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15%;
}

.embla__dot:after {
  box-shadow: inset 0 0 0 0.6rem var(--input-color);
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 15%;
  display: flex;
  align-items: center;
  content: "";
}

.embla__dot--selected:after {
  box-shadow: inset 0 0 0 0.6rem var(--first-color);
}

.embla__selected-snap-display {
  justify-self: center;
  align-self: center;
  color: var(--text-color);
  font-weight: 600;
  font-size: 0.837rem;
}

/*===============================*/
/*=========== SOCIALS ===========*/
/*===============================*/
.socials {
  column-gap: var(--space-1);
}

.socials__icon {
  display: flex;
  transition: 1s;
}

.socials__icon:hover {
  transform: translateY(-0.25rem);
}

/*===============================*/
/*========== ANIMATION ==========*/
/*===============================*/
.animate-fade {
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  /* transform: translateY(50px); */
  /* transition: opacity 0.2s ease-in-out, transform 4s ease-in-out; */
}

.animate-fade.active {
  opacity: 1;
  /* transform: translateY(0); */
}

/*===============================*/
/*========== SCROLL BAR =========*/
/*===============================*/
::-webkit-scrollbar {
  width: 0.6rem;
  background-color: var(--scroll-bar-color);
  border-radius: var(--space-0-5);
}

::-webkit-scrollbar-thumb {
  background-color: var(--scroll-thumb-color);
  border-radius: var(--space-0-5);
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--text-color-light);
}

/*=============================*/
/*=========== PAGE ============*/
/*=============================*/
.page__container {
  padding: 2rem;
  height: 100dvh;
}

.page__content {
  max-width: 32rem;
  margin: 0 auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page__title {
  margin-bottom: 1rem;
  line-height: 1;
  text-transform: uppercase;
}

.page__thanks {
  font-size: clamp(5rem, 10vw, 10rem);
}

.page__error {
  font-size: clamp(5.5rem, 10vw, 10rem);
}

.page__subtitle {
  max-width: 20rem;
  font-size: clamp(1.1rem, 3vw, 1.3rem);
  margin-bottom: var(--space-2);
  line-height: 1.4;
}

.page__link {
  padding: 12px 24px;
  font-size: clamp(0.893rem, 3vw, 1.1rem);
  background: var(--first-color);
  color: var(--container-color);
}

.page__link:hover {
  background: var(--first-color-lighter);
}

/* policy */
.page__policy {
  margin-top: var(--space-6);
}

.page__policy-content {
  max-width: 60rem;
  margin: var(--space-2-5) auto 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.page__policy-title {
  font-size: var(--h2-font-size);
  text-transform: uppercase;
}

.page__policy-subtitle {
  font-size: var(--h3-font-size);
  text-transform: uppercase;
}

.page__policy-description {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.page__policy-date {
  font-style: italic;
}

.page__policy-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1-25);
}

.page__policy-link {
  color: var(--title-color);
  font-size: var(--font-size-875);
}

.page__policy-link:hover {
  color: var(--first-color);
}

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

body {
  margin: 0 0 var(--space-1) 0;
  font-family: var(--sub-font);
  font-size: var(--font-size-1);
  background: var(--body-color);
  color: var(--text-color);
  transition:
    background 0.3s,
    color 0.3s;
}

h2,
h3,
h4 {
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
  font-family: var(--main-font);
}

h1 {
  color: var(--title-color);
  font-family: var(--main-font);
  font-weight: var(--font-bold);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

p {
  letter-spacing: 0.0625em;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--space-0-75);
}

/*===============================*/
/*===== REUSABLE CSS CLASSES ====*/
/*===============================*/
.section__title,
.section__subtitle {
  text-align: center;
  margin: 0 auto;
}

.section__title {
  margin-top: var(--space-0-5);
  font-size: var(--h2-font-size);
  color: var(--title-color);
}

.section__subtitle {
  display: block;
  font-size: var(--font-size-1);
  text-transform: capitalize;
  color: var(--first-color);
}

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

.container {
  max-width: var(--container-width);
  width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.grid {
  display: grid;
  gap: var(--space-1-5);
}

.grid__stack > * {
  grid-area: 1/-1;
}

/*=============================*/
/*========== BUTTONS ==========*/
/*=============================*/
.button {
  display: inline-block;
  width: fit-content;
  padding: var(--space-0-5) var(--space-1-25);
  background-color: var(--first-color);
  color: var(--button-color);
  font-weight: var(--font-semi-bold);
  font-family: var(--main-font);
  font-size: var(--font-size-1);
  text-transform: uppercase;
  border: none;
  border-radius: var(--space-0-25);
  cursor: pointer;
  transition: 1s;
}

.button:hover {
  background-color: var(--first-color-lighter);
}

.button__white {
  background-color: var(--button-color);
  color: var(--first-color);
}

.button__white:hover {
  background-color: var(--button-color);
}

.button__flex {
  display: inline-flex;
  align-items: center;
}

.button__link {
  padding: 0;
  background: transparent;
  color: var(--first-color);
}

.button__link:hover {
  background-color: transparent;
  color: var(--first-color);
}

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

/* nav info */
.nav__infos {
  display: flex;
  align-items: center;
  gap: var(--space-1-5);
}

.nav__info {
  display: flex;
  align-items: center;
  gap: var(--space-0-5);
}

.nav__info svg {
  width: calc(var(--space-1-25) - 0.25rem);
  height: calc(var(--space-1-25) - 0.25rem);
  color: var(--first-color);
}

.nav__text {
  font-size: var(--font-size-0-75);
  color: var(--title-color);
}

.nav__logo {
  display: flex;
  align-items: center;
  column-gap: var(--space-0-25);
  z-index: 9999;
}

.nav__icon {
  width: var(--space-2);
  height: var(--space-2);
  cursor: pointer;
  filter: invert(100%); /* Remove line when use color logo */
}

.nav__title {
  margin-top: calc(var(--space-0-25) - 0.1rem);
  font-size: var(--font-size-1-25);
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
  text-transform: uppercase;
  color: var(--light-color);
}

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

.nav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: var(--font-size-0-813);
  color: var(--light-color);
  font-weight: var(--font-medium);
  text-transform: capitalize;
}

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

/* menu */
.nav__toggle {
  margin-top: var(--space-0-25);
  z-index: 1;
  cursor: pointer;
  transform: scaleX(-1);
}

.nav__toggle svg {
  width: var(--space-1-25);
  height: var(--space-1-25);
  color: var(--first-color);
}

.nav__toggle.visible {
  visibility: visible;
}

.nav__close {
  position: fixed;
  top: 1rem;
  right: 5%;
  scale: 1.1;
  cursor: pointer;
  transform: translate(20rem);
  transition: 0.8s ease-in-out;
}

.nav__close svg {
  width: var(--space-1-25);
  height: var(--space-1-25);
  color: var(--danger-color);
}

/* Active link */
.nav__link.active-link {
  color: var(--first-color-second);
  transition: 1s;
}

/* Change background header */
.scroll-header {
  background-color: var(--body-color);
  box-shadow: var(--shadow-sm);
  transition: 1s;
}

body.dark-theme .scroll-header .nav__icon {
  filter: invert(0);
}

body.dark-theme .scroll-header .nav__title,
body.dark-theme .scroll-header .nav__link {
  color: var(--dark-color);
}

body.dark-theme .scroll-header .nav__link.active-link {
  color: var(--first-color-second);
}

/*===============================*/
/*============= HOME ============*/
/*===============================*/
.home .container {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  transform: translateY(-1rem);
  z-index: 2;
}

.home__img {
  height: 100dvh;
  width: 100%;
  object-fit: cover;
  z-index: -1;
}

.home__overlay {
  height: 100dvh;
  width: 100%;
  background: linear-gradient(
    to top left,
    hsla(0, 0%, 0%, 0.75),
    hsla(0, 0%, 0%, 0.75),
    hsla(0, 0%, 0%, 0.75)
  );
  z-index: 1;
  overflow: hidden;
}

.home__content {
  display: flex;
  flex-direction: column;
  row-gap: var(--space-2);
}

.home__title {
  margin: 0 auto;
  font-size: var(--h1-font-size);
  text-transform: uppercase;
  color: var(--light-color);
}

.home__subtitle {
  margin: var(--space-1-5) auto 0;
  font-size: var(--h3-font-size);
  font-weight: var(--font-medium);
  color: var(--text-color);
  line-height: 1.4;
}

.home__scroll {
  width: fit-content;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
}

.home__scroll-name {
  font-size: var(--font-size-1);
  font-weight: var(--font-medium);
  color: var(--light-color);
}

.home__scroll-mouse {
  transition: 1s;
}

.home__scroll-mouse svg {
  margin-top: var(--space-0-25);
  width: var(--space-2);
  height: var(--space-2);
  color: var(--first-color);
}

.home__scroll:hover .home__scroll-mouse {
  transform: translateY(0.15rem);
}

/* home clients */
.home__clients {
  margin: var(--space-3) auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-0-75);
}

.home__clients-icon {
  display: flex;
  transform: translateX(var(--space-0-5));
}

.home__clients-img {
  width: var(--space-3);
  height: var(--space-3);
  object-fit: cover;
  border: 2px solid var(--body-color);
}

.home__clients-img:nth-child(2) {
  transform: translateX(-0.75rem);
}

.home__clients-img:nth-child(3) {
  transform: translateX(-1.25rem);
}

.home__clients-title {
  margin-top: calc(var(--space-0-25) * -1);
  font-size: var(--font-size-0-813);
  text-transform: capitalize;
  color: var(--title-color);
}

.home__clients-value {
  font-size: var(--font-size-1-5);
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
}

/*===============================*/
/*============ ABOUT ============*/
/*===============================*/
.about .section__title,
.about .section__subtitle {
  max-width: 35rem;
}

.about__container {
  margin-top: var(--space-3);
  align-items: center;
}

.about__description {
  max-width: 32rem;
  margin-top: var(--space-2-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-1-5);
}

.about__description p {
  line-height: 1.5;
  color: var(--text-color);
}

.about__img {
  width: 100%;
  object-fit: cover;
}

/*===============================*/
/*============ MENUS ============*/
/*===============================*/
.menu .section__title,
.menu .section__subtitle {
  max-width: 30rem;
  text-align: center;
}

.menu__filter-container {
  margin: var(--space-2-5) auto;
  padding: var(--space-0-5) var(--space-0-75);
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  column-gap: var(--space-1);
  row-gap: var(--space-0-75);
  border-radius: var(--space-5);
}

/* Filter Buttons */
.menu__filter-btn {
  padding: var(--space-0-5);
  border: none;
  color: var(--title-color);
  background: none;
  font-size: var(--font-size-0-938);
  font-weight: var(--font-medium);
  font-family: var(--sub-font);
  text-transform: capitalize;
  cursor: pointer;
  transition: all 0.3s ease;
}

.menu__filter-btn:hover,
.menu__filter-btn.active {
  color: var(--first-color-second);
}

/* Menu Card */
.menu__card {
  width: 100%;
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-1-5);
  opacity: 0;
}

.menu__img {
  width: var(--space-6);
  height: var(--space-8);
  aspect-ratio: 1/1;
  object-fit: cover;
}

.menu__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-0-75);
}

.menu_title {
  font-size: var(--font-size-1);
}

.menu__description {
  margin-top: var(--space-0-25);
  max-width: 20rem;
  line-height: 1.4;
}

.menu__price {
  font-size: var(--font-size-1-25);
  color: var(--title-color);
}

/*===============================*/
/*======== WHY CHOOSE US ========*/
/*===============================*/
.why .section__title,
.why .section__subtitle {
  max-width: 32rem;
}

.why__description {
  max-width: 28rem;
  margin: var(--space-2-5) auto 0;
  font-size: var(--font-size-1-1);
  color: var(--text-color);
  line-height: 1.4;
  text-align: center;
}

.why__container {
  margin-top: var(--space-4);
}

.why__card {
  display: flex;
  flex-direction: column;
  gap: var(--space-1-5);
}

.why__card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.why__card-title {
  font-size: var(--font-size-1-25);
  text-transform: uppercase;
  line-height: 1.1;
}

.why__card-description {
  max-width: 20rem;
  font-size: var(--font-size-875);
  line-height: 1.5;
}

/*===============================*/
/*============= CTA =============*/
/*===============================*/
.cta__img {
  width: 100%;
  object-fit: cover;
}

.cta__card {
  display: flex;
  flex-direction: column;
  gap: var(--space-1-5);
}

.cta__special {
  color: var(--first-color);
}

.cta__title {
  margin-bottom: var(--space-0-5);
  font-size: var(--h2-font-size);
  line-height: 1.1;
}

.cta__description {
  font-size: var(--font-size-1-5);
  line-height: 1.4;
}

.cta__price {
  font-size: var(--font-size-2);
  font-weight: var(--font-medium);
  text-transform: uppercase;
  color: var(--title-color);
}

.cta__bottom {
  margin-top: var(--space-5);
  display: flex;
  flex-direction: column;
}

.cta__text {
  font-size: var(--font-size-0-813);
}

.cta__button {
  margin-top: var(--space-2-5);
}

/*===============================*/
/*========== TESTIMONIAL ========*/
/*===============================*/
.testimonial .section__title,
.testimonial .section__subtitle {
  max-width: 32rem;
}

.testimonial__head {
  margin-bottom: var(--space-2-5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-2-5);
}

/* reviews */
.testimonial__reviews {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-0-5);
}

.testimonial__rate {
  font-size: var(--font-size-1-5);
  font-weight: var(--font-semi-bold);
  font-family: var(--main-font);
  color: var(--title-color);
}

.testimonial__rate span {
  display: inline-block;
  transform: translateY(0.175rem);
}

.testimonial__stars {
  display: flex;
  align-items: center;
  gap: var(--space-0-25);
}

.testimonial__stars svg {
  width: var(--space-1);
  height: var(--space-1);
  color: var(--first-color);
}

.testimonial__card {
  padding: 0 var(--space-2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.testimonial__card-name {
  font-size: var(--font-size-1);
  font-weight: var(--font-medium);
  margin-top: var(--space-1);
}

.testimonial__card-description {
  max-width: 20rem;
  margin: 0 auto var(--space-2-5);
  font-size: var(--font-size-1);
  line-height: 1.4;
  text-align: center;
}

.testimonial__card-img {
  width: var(--space-6);
  height: var(--space-8);
  object-fit: cover;
}

/*===============================*/
/*============= VIDEO ===========*/
/*===============================*/
.video__card {
  align-items: center;
}

.video__overlay {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    hsla(0, 0%, 0%, 0.75),
    hsla(0, 0%, 0%, 0.5),
    hsla(0, 0%, 0%, 0.25)
  );
  border-radius: var(--space-0-5);
  z-index: 1;
  overflow: hidden;
}

.video__video {
  width: 100%;
  height: fit-content;
  aspect-ratio: 16/9;
  border-radius: var(--space-0-5);
}

.video__head {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-1-5);
  z-index: 2;
}

.video__title {
  max-width: 40rem;
  font-size: var(--h2-font-size);
  line-height: 1.1;
  color: var(--light-color);
}

.video__subtitle {
  max-width: 30rem;
  font-size: var(--font-size-1-1);
  line-height: 1.5;
  color: var(--light-color);
  opacity: 0.8;
}

.video__text {
  font-size: var(--font-size-1);
  color: var(--light-color);
  opacity: 0.8;
}

/*===============================*/
/*=========== CONTACT ===========*/
/*===============================*/
.contact .section__title,
.contact .section__subtitle {
  max-width: 40rem;
}

.contact__container {
  margin-top: var(--space-5);
}

.contact__main {
  display: flex;
  flex-direction: column;
  gap: var(--space-2-5);
}

.contact__description {
  max-width: 32rem;
  margin: 0 auto;
  font-size: var(--font-size-1);
  color: var(--text-color);
  line-height: 1.4;
  text-align: center;
}

/* cotnact socials */
.contact__info {
  width: fit-content;
  margin: var(--space-2-5) auto 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2-5);
}

.contact__card {
  display: flex;
  align-items: center;
}

.contact__card-icon {
  margin-top: calc(var(--space-0-25) * -1);
  margin-right: var(--space-0-5);
  color: var(--first-color);
}

.contact__card-icon svg {
  width: var(--space-1-5);
  height: var(--space-1-5);
}

.contact__card-title {
  font-size: var(--font-size-1);
  font-weight: var(--font-semi-bold);
  text-transform: uppercase;
}

.contact__card-subtitle {
  font-size: var(--font-size-0-813);
  color: var(--text-color);
}

.contact__img {
  width: 100%;
  object-fit: cover;
}

.contact__label {
  font-size: var(--font-size-0-813);
  color: var(--title-color);
}

.contact__input {
  width: 100%;
  margin-top: var(--space-0-25);
  padding: var(--space-0-75);
  background-color: var(--input-color);
  color: var(--dark-color);
  font-family: var(--body-font);
  font-size: var(--font-size-1);
  border-radius: var(--space-0-25);
  border: none;
  outline: none;
}

input::placeholder,
textarea::placeholder {
  color: var(--dark-color);
}

.contact__button {
  width: 100%;
  padding: calc(var(--space-0-25) + 0.15rem) var(--space-1-25);
  justify-content: center;
}

.send__icon {
  margin-left: var(--space-0-25);
  color: var(--light-color);
}

.send__icon svg {
  margin-top: 0.15rem;
  width: calc(var(--space-1-25) - 0.1rem);
  height: calc(var(--space-1-25) - 0.1rem);
  transition: 1s;
}

/*===============================*/
/*=========== FOOTER ============*/
/*===============================*/
footer {
  margin-top: var(--space-6);
  border-top: 1px solid var(--first-color);
}

.footer__container {
  padding: var(--space-5) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.footer__top {
  margin: 0 auto;
  text-align: center;
}

.footer__logo {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-0-25);
}

body.dark-theme .footer__logo img {
  filter: invert(0); /* Remove line when use color logo */
}

.footer__title {
  font-size: var(--font-size-1-5);
  font-family: var(--sub-font);
  text-transform: uppercase;
  color: var(--title-color);
}

.footer__description {
  margin-top: var(--space-0-75);
  max-width: 25rem;
  line-height: 1.5;
}

.footer__side {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.footer__subtitle {
  font-size: var(--font-size-1-1);
  margin-bottom: var(--space-1);
}

.footer__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-1-5);
}

.footer__item {
  display: flex;
  justify-content: space-between;
}

.footer__item svg {
  width: var(--space-1-25);
  height: var(--space-1-25);
  color: var(--first-color);
}

.footer__side {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__links {
  display: flex;
  gap: var(--space-1-5);
}

.footer__link {
  font-size: var(--font-size-1);
  text-transform: capitalize;
}

.footer__link:hover {
  color: var(--first-color);
}

/* Active Link */
.footer__link.active-link {
  color: var(--first-color);
}

.footer__socials {
  display: flex;
  align-items: center;
  column-gap: var(--space-1-5);
}

.socials__icon svg {
  width: var(--space-1-25);
  height: var(--space-1-25);
  color: var(--first-color);
}

.footer__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer__bottom {
  padding-top: var(--space-1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-1);
  border-top: 1px solid var(--first-color);
}

.footer__copy {
  display: flex;
  flex-wrap: wrap;
  column-gap: var(--space-0-25);
  font-size: var(--font-size-0-75);
  color: var(--text-color);
}

.footer__title,
.footer__subtitle,
.footer__link,
.footer__copy-link,
.footer__social,
.page__policy-links {
  color: var(--title-color);
}

/*===============================*/
/*========== SCROLL UP ==========*/
/*===============================*/
.scroll__up {
  margin-top: var(--space-0-25);
  border: none;
  background: none;
}

.scroll__up-icon {
  margin: 0 auto;
  cursor: pointer;
}

.scroll__up-icon svg {
  width: calc(var(--space-1-5) + 0.25rem);
  height: calc(var(--space-1-5) + 0.25rem);
  color: var(--first-color);
  transition: 1.5s;
}

.scroll__up-icon svg:hover {
  transform: translateY(-0.25rem);
}

/*===============================*/
/*======== MEDIA QUERIES ========*/
/*===============================*/
/*====== FOR SMALL DEVICES ======*/
/*===============================*/
@media screen and (max-width: 490px) {
  .embla__viewport {
    padding: 0 1rem;
  }

  .section__title {
    font-weight: var(--font-semi-bold);
    line-height: 1.1;
    text-transform: uppercase;
  }

  .section {
    padding: var(--space-8) 0 0;
  }

  .nav__menu {
    padding: var(--space-2) var(--space-0-25);
  }

  .nav__list {
    column-gap: 0;
  }

  .nav__socials {
    display: none;
  }

  .home__img {
    aspect-ratio: 7/9;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }

  .home__overlay {
    aspect-ratio: 7/9;
  }

  .home__title {
    max-width: 22rem;
    line-height: 1.2;
  }

  .home__subtitle {
    max-width: 22rem;
  }

  .about__container.grid {
    gap: var(--space-5);
  }

  .about__img {
    aspect-ratio: 1/1;
  }

  .about__description {
    margin: 0 auto;
    text-align: center;
  }

  .menu__main.grid {
    gap: var(--space-4);
  }

  .menu__card {
    flex-direction: column;
  }

  .menu__content {
    margin: 0 auto;
    text-align: center;
  }

  .menu__img {
    margin: 0 auto;
  }

  .why__container.grid {
    gap: var(--space-5);
  }

  .why__card {
    text-align: center;
  }

  .why__card-description {
    margin: 0 auto;
  }

  .cta__container.grid {
    gap: var(--space-5);
  }

  .cta__card {
    text-align: center;
  }

  .cta__img {
    aspect-ratio: 16/9;
  }

  .cta__bottom {
    align-items: center;
  }

  .faq__container.grid {
    gap: var(--space-5);
  }

  .faq__img {
    aspect-ratio: 1/1;
  }

  .contact__container.grid {
    gap: var(--space-5);
  }

  .contact__img {
    aspect-ratio: 1/1;
  }

  .contact__info {
    flex-direction: column;
  }

  .footer__main.grid {
    gap: var(--space-5);
  }

  .footer__links {
    flex-direction: column;
  }

  .footer__map {
    width: 100%;
    aspect-ratio: 1/1;
  }

  .footer__bottom {
    flex-direction: column-reverse;
  }
}

/*===============================*/
/*====== FOR MEDIUM DEVICES =====*/
/*===============================*/
@media screen and (min-width: 491px) {
  .embla__viewport {
    padding: 0 1rem;
  }

  .section {
    padding: var(--space-8) 0 0;
  }

  .section__title {
    font-weight: var(--font-semi-bold);
    line-height: 1.1;
    text-transform: uppercase;
  }

  .nav__socials {
    display: none;
  }

  .home__img {
    aspect-ratio: 7/9;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }

  .home__overlay {
    aspect-ratio: 7/9;
  }

  .home__title {
    max-width: 30rem;
    line-height: 1.1;
  }

  .home__subtitle {
    max-width: 27rem;
  }

  .about__container.grid {
    gap: var(--space-5);
  }

  .about__img {
    aspect-ratio: 1/1;
  }

  .about__description {
    margin: 0 auto;
    text-align: center;
  }

  .menu__main.grid {
    gap: var(--space-2-5);
  }

  .why__container.grid {
    gap: var(--space-5);
  }

  .why__card {
    text-align: center;
  }

  .why__card-description {
    margin: 0 auto;
  }

  .cta__container.grid {
    gap: var(--space-5);
  }

  .cta__card {
    text-align: center;
  }

  .cta__img {
    aspect-ratio: 16/9;
  }

  .cta__bottom {
    align-items: center;
  }

  .faq__container.grid {
    gap: var(--space-5);
  }

  .faq__img {
    aspect-ratio: 1/1;
  }

  .contact__container.grid {
    gap: var(--space-5);
    align-items: start;
  }

  .contact__img {
    aspect-ratio: 1/1;
  }

  .footer__main.grid {
    gap: var(--space-5);
  }

  .footer__links {
    flex-direction: column;
  }

  .footer__map {
    width: 100%;
    aspect-ratio: 1/1;
  }

  .footer__bottom {
    flex-direction: row;
  }
}

/*===============================*/
/*=== MEDIA QUERIES NAVIGATION ==*/
/*===============================*/
@media screen and (max-width: 767px) {
  .nav__sub {
    display: none;
  }

  .nav__menu {
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-modal);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--body-color);
    padding: var(--space-2) var(--space-1-5);
    box-shadow: var(--shadow-sm);
    transform: translateX(100%);
    opacity: 0;
    transition: 0.6s ease-in;
  }

  /* show menu */
  .show-menu {
    opacity: 1;
    transform: translateX(0%);
  }

  .show-menu .nav__close {
    transform: translateX(0);
  }

  .nav__title {
    display: none;
  }

  .nav__infos {
    display: none;
  }
}

/*===============================*/
/*====== FOR MEDIUM DEVICES =====*/
/*===============================*/
@media screen and (min-width: 768px) {
  body {
    margin: 0;
  }

  .section {
    padding: var(--space-14) 0 0;
  }

  .header {
    top: 0;
    bottom: initial;
  }

  .change-theme {
    margin: 0;
  }

  .nav {
    height: calc(var(--header-height) + 0.75rem);
    column-gap: var(--space-1);
  }

  .nav__menu-icon,
  .nav__toggle {
    display: none;
  }

  .nav__logo {
    margin-left: calc(var(--space-3) * -1);
  }

  .nav__list {
    display: flex;
    flex-direction: row;
    column-gap: var(--space-3);
  }
}

/*===============================*/
/*====== FOR LARGE DEVICES ======*/
/*===============================*/
@media screen and (width: 800px) and (height: 1278px) {
  .about__img {
    aspect-ratio: 1/1;
  }

  .why__card-description {
    max-width: 30rem;
  }
}

/*===============================*/
/*====== FOR LARGE DEVICES ======*/
/*===============================*/
@media screen and (min-width: 1024px) {
  .embla__viewport {
    padding: 0 var(--space-1-5);
  }

  .socials {
    display: flex;
    align-items: center;
    margin-right: var(--space-0-75);
  }

  .home__title {
    max-width: 50rem;
    line-height: 1;
  }

  .about__img {
    aspect-ratio: 16/9;
  }

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

  .menu__main.grid {
    column-gap: var(--space-5);
    row-gap: var(--space-2-5);
  }

  .why__container {
    /* Uncomment or Comment next line (Press Ctrl + ?) if you have 2 or 4 why */
    /* grid-template-columns: repeat(2, 1fr);  */
    /* Uncomment or Comment next line (Press Ctrl + ?) if you have 3 or 6 why */
    grid-template-columns: repeat(3, 1fr);
  }

  .why__bottom {
    text-align: left;
    flex-direction: row;
  }

  .cta__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }

  .cta__card {
    text-align: initial;
  }

  .cta__bottom {
    align-items: end;
  }

  .faq__container {
    grid-template-columns: 0.45fr 1fr;
  }

  .faq__container.grid {
    gap: var(--space-6);
  }

  .faq__img {
    aspect-ratio: 7/9;
  }

  .contact__container {
    grid-template-columns: 0.45fr 1fr;
    align-items: center;
  }

  .contact__container.grid {
    gap: var(--space-6);
  }

  .contact__img {
    aspect-ratio: 7/9;
  }

  .footer__main {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer__main.grid {
    gap: var(--space-5);
  }

  .footer__links {
    flex-direction: row;
  }

  .footer__map {
    width: 100%;
    aspect-ratio: 8/3;
  }

  .footer__bottom {
    flex-direction: row;
  }
}

/*===============================*/
/*====== FOR LARGE DEVICES ======*/
/*===============================*/
@media screen and (min-width: 1280px) {
  .cta__img {
    aspect-ratio: 7/9;
  }

  .cta__img-container {
    grid-template-columns: 1fr 0.75fr;
  }

  .cta__img-container.grid {
    gap: var(--space-2-5);
  }

  .cta__img:nth-child(1) {
    width: 80%;
    order: 4;
  }

  .cta__img:nth-child(2) {
    aspect-ratio: 16/9;
    transform: translateY(7.5rem);
  }

  .testimonial__card {
    grid-template-columns: 6rem auto;
  }
}

/*===============================*/
/*====== FOR LARGE DEVICES ======*/
/*===============================*/
@media screen and (min-width: 1440px) {
  .about__container {
    grid-template-columns: repeat(3, 1fr);
  }

  .about__img {
    aspect-ratio: 7/8;
  }

  .about__description {
    margin: 0;
    text-align: left;
  }
}

/*===============================*/
/*====== FOR LARGE DEVICES ======*/
/*===============================*/
@media screen and (min-width: 1600px) {
  .home__overlay {
    aspect-ratio: 16/9;
  }

  .why__card-img {
    aspect-ratio: 16/9;
  }
}
