/* Font Family */

@import url("https://fonts.googleapis.com/css2?family=Prompt:wght@100;300;500;900&display=swap");

:root {
  --primary-color: rgb(9, 33, 173);
  --secundary-color: #559fff;
  --third-color: rgb(78, 132, 181);
  --blue-light: #006bca;
  --beige-color: #fbf2e7;
  --blk-color: #000;
  --white-color: #fff;
  --white-color2: #f9f9f9;
  --black-color: #000;
  --transp-blue: #2465ff;
  --dark-blue: #1e3d66;
  --grey: #333;
  --menu-icon-bg: #4b81ff;
  --default-color: #727272;
  --font-b: 600;
  --font-m: 400;
  --font-l: 100;
}

/* Animations */

@keyframes bg-change {
  0% {
    background-image:
      linear-gradient(to left, rgba(0,0,0,0.5), rgba(0,0,0,0.1)),
      url("../img/bg-1.jpg");
  }
  25% {
    background-image:
      linear-gradient(to left, rgba(0,0,0,0.5), rgba(0,0,0,0.1)),
      url("../img/bg-2.jpg");
  }
  50% {
    background-image:
      linear-gradient(to left, rgba(0,0,0,0.5), rgba(0,0,0,0.1)),
      url("../img/bg-3.jpg");
  }
  75% {
    background-image:
      linear-gradient(to left, rgba(0,0,0,0.5), rgba(0,0,0,0.1)),
      url("../img/bg-4.jpg");
  }
  100% {
    background-image:
      linear-gradient(to left, rgba(0,0,0,0.5), rgba(0,0,0,0.1)),
      url("../img/bg-5.jpg");
  }
}

@keyframes opacity-change {
  0% {
    opacity: 0%;
  }
  100% {
    opacity: 100%;
  }
}

* {
  font-family: "Prompt", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

html {
  font-size: 3vw;
  font-family: "Prompt", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  display: grid;
  grid-template-areas:
    "header"
    "main"
    "footer";
  grid-template-rows: 1fr;
  grid-auto-rows: auto;
}

.grid-area-header {
  grid-area: header;
}

.grid-area-main {
  grid-area: main;
}

.grid-area-footer {
  grid-area: footer;
}

header {
  height: auto;
  position: sticky;
  top: 0;
  overflow: auto;
  padding: 20px;
}

header nav {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
}

nav > *.menu-responsive {
  display: none;
}

.menu-display {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: var(--font-l);
}

.menu-display li {
  text-align: end;
  transition-property: all;
  transition-timing-function: ease-in-out;
  transition-duration: 0.2s;
  font-size: 3vw;
}

.menu-display a li {
  display: flex;
  gap: 5px;
}

nav:focus-within .menu-responsive {
  display: flex;
  width: 100%;
  flex-direction: column;
  margin: 15px 0;
}

nav:focus-within .menu-responsive a {
  width: 100%;
}

header nav img {
  width: fit-content;
}

header nav .logo {
  margin-top: 0px;
  height: 40px;
  width: auto;
}

.home {
  background-color: var(--default-color);
  background-size: cover;
  background-repeat: no-repeat;
  animation-name: bg-change;
  animation-timing-function: ease-in-out;
  animation-duration: 30s;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

.home:hover {
  animation-play-state: paused;
}

.phrase {
  height: calc(100% - 66px);
  justify-content: center;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.grid-feature{
  display: grid;
  grid-template-columns: 1fr;
}

.grid-footer{
  display: grid;
  grid-template-columns: 1fr;
}

.grid-form{
  display:grid;
  grid-template-columns: 1fr;
}

.grid-form input, .grid-form textarea{
  border-radius:3px;
  border-color: var(--primary-color);
  font-weight:300;
  font-size:0.8rem;
  outline: none;
  padding-left:5px;
}

/* #region Classes-predefined */

/* Display */

.flex {
  display: flex;
}

.d-column {
  flex-direction: column;
}

.g-5 {
  gap: 5px;
}

.g-10 {
  gap: 10px;
}

.g-15 {
  gap: 15px;
}

.just-center {
  justify-content: center;
}

.al-items{
  align-items: center;
}

.flex-col{
  flex-direction: column;
}

/* Width */

.w-100 {
  width: 100%;
}

.w-80{
  width:80%;
}

.h-100vh {
  height: 100vh;
}

.h-100 {
  height: 100%;
}

.min-h300 {
  min-height: 300px;
}

/* Cursor */

.cur-pointer {
  cursor: pointer;
}

/* Text decoration */

.txt-dec {
  text-decoration: none;
}

/* Border */

.bord-0 {
  border: 0;
}

/* Font Size */

.fs-06 {
  font-size: 0.6rem;
}

.fs-1 {
  font-size: 1rem;
}

.fs-1-5{
  font-size:1.5rem;
}

.fs-2 {
  font-size: 2rem;
}

.fs-3 {
  font-size: 3rem;
}

.fs-4 {
  font-size: 4rem;
}

/* Font Weight */

.fw-100 {
  font-weight: 100;
}

.fw-300 {
  font-weight: 300;
}

.fw-600 {
  font-weight: 600;
}

/* Transform */

.scale-7 {
  transform: scale(0.7) !important;
}

.scale-5 {
  transform: scale(0.5) !important;
}

/* Border */

.bg-rad10 {
  border-radius: 10px;
}

/* Background Colors */

.bg-primary {
  background-color: var(--primary-color);
}
.bg-secundary {
  background-color: var(--secundary-color);
}
.bg-third {
  background-color: var(--third-color);
}
.bg-menu {
  background: linear-gradient(var(--blue-light),  var(--white-color));
}
.bg-icon-menu {
  background-color: var(--menu-icon-bg);
}
.bg-grey {
  background-color: var(--grey);
}
.bg-beige{
  background-color: var(--beige-color);
}
.bg-white{
  background-color: var(--white-color);
}
.bg-black{
  background-color: var(--black-color);
}

/* Text Color */

.color-wh {
  color: var(--white-color);
}

.color-blue{
  color: var(--secundary-color);
}

/* Aligment Text */

.al-start {
  text-align: start;
}
.al-center {
  text-align: center;
}

.al-end {
  text-align: end;
}

/* Padding */

.p-2 {
  padding: 2px;
}
.p-5 {
  padding: 5px !important;
}

.p-10 {
  padding: 10px;
}

.p-15 {
  padding: 15px;
}

.p-25 {
  padding: 25px;
}

.pb-50{
  padding-bottom: 50px;
}

/* Margin */

.mt-20 {
  margin-top: 20px;
}

.my-10{
  margin:10px 0;
}

.my-15{
  margin:15px 0;
}

.mb-20{
  margin-bottom:20px;
}

/* Display */

.block {
  display: block;
}

/* Line Height */

.line-initial {
  line-height: initial;
}

.line-inherit{
  line-height: inherit;
}

/* Animation */

.scroll-slow {
  scroll-behavior: smooth;
}

.anim-op-change {
  animation-name: opacity-change;
  animation-duration: 1.5s;
  animation-timing-function: ease-in;
}

.trans-smoth {
  transition: all;
  transition-duration: .5s;
  transition-timing-function: ease-in-out;
}

.scroll-slow{
  scroll-behavior: smooth;
}

/* #endregion classes-predefined */

@media (min-width: 600px) {
  html {
    font-size: 16px;
  }
  .menu-display li {
    font-size: 1rem;
  }
}

@media (min-width: 768px) {
  body {
    grid-template-areas:
    "header main"
    "header footer";
    grid-template-columns: 200px;
    grid-auto-rows: auto;
  }
  header {
    height: 100vh;
    padding: 0px;
  }
  
  header nav {
    flex-direction: column;
    height: 100%;
  }
  
  header nav .logo {
    margin-top: 20px;
  }
  
  nav > *.menu-responsive {
    display: inherit;
  }
  
  nav:focus-within .menu-responsive {
    display: inherit;
    width: 100%;
    margin: 0;
  }
  
  nav:focus-within .menu-responsive a {
    width: max-content;
  }
  
  .btn-hover:hover {
      background: var(--dark-blue);
    }
    
    .menu-display {
      flex-direction: column;
    }

  .menu-display a li span {
    display: none;
  }

  .menu-display a:hover li span {
    display: block;
  }

  .menu-display li:hover {
    font-weight: 400;
    letter-spacing: 1px;
  }
  
  .icon-menu-responsive {
    display: none;
  }
  
  .phrase {
    position: relative;
    right: 50px;
  }
  .grid-feature{
    grid-template-columns: repeat(3,1fr);
  }
  .grid-footer{
    display: grid;
    grid-template-columns: repeat(2,1fr);
  }
  .grid-form{
    display:grid;
    grid-template-columns: repeat(2,1fr);
  }
  .grid-spancol2{
    grid-column: span 2;
  }
}

@media (min-width: 768px) and (max-height: 500px) {
  header nav {
    height: 500px;
  }
}
