/*===== RESET =======================================*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  width: 100%;
  height: auto;
}

/*===== ROOT ========================================*/
:root {
  --header-height: 5rem;
  --hue: 200;
  --base-color: hsl(var(--hue) 65% 30%);
  --base-color-second: hsl(var(--hue) 0% 40%);
  --base-color-alt: hsl(var(--hue) 57% 53%);
  --title-color: hsl(var(--hue) 41% 10%);
  --menu-color: hsl(1 0% 80%);
  --background-menu-color: hsl(1 0% 0%);
  --text-color: hsl(0 0% 10%);
  --text-color-alt: hsl(200 0% 40%);
  --text-color-light: hsl(0 0% 98%);
  --body-color: hsl(0 0% 98%);
  --title-font-size: 1.875rem;
  --subtitle-font-size: 1rem;
  --menu-font-size: 0.9rem;
  --font: 'Proxima Nova', sans-serif;
}

/*===== BASE ========================================*/

body {
  font: 400 1rem var(--font);
  color: var(--text-color);
  background: var(--body-color);
  -webkit-font-smoothing: antialiased;
}

h1 {
  font: 500 1.25rem var(--font);
  text-align: center;
}

.title {
  font: 700 var(--title-font-size) var(--font);
  color: var(--title-color);
  -webkit-font-smoothing: auto;
}

.mobile-menu {
  font: 700 var(--menu-font-size) var(--font);
  color: var(--menu-color);
  letter-spacing: 0.2rem;
  -webkit-font-smoothing: auto;
}

.button {
  background-color: var(--base-color);
  color: var(--text-color-light);
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  padding: 0 1.5rem;
  border-radius: 0.25rem;
  font: 600 1rem var(--font);
  transition: background 0.3s;
}

.button:hover {
  background: var(--base-color-alt);
}

.divider-1 {
  height: 1px;
  background: linear-gradient(
    270deg,
    hsla(var(--hue), 36%, 57%, 1) 0%,
    hsla(var(--hue), 65%, 88%, 0.34) 100%
  );
}

.divider-2 {
  height: 1px;
  background: linear-gradient(
    270deg,
    hsla(var(--hue), 65%, 88%, 0.34),
    hsla(var(--hue), 36%, 57%, 1)
  );
}

/*===== LAYOUT ===========================================*/
.container {
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}

.grid {
  display: grid;
  gap: 2rem;
}

.section {
  padding: 1rem 0;
}

.section .title {
  margin-bottom: 1rem;
}

.section .submenu,
.section .subtitle {
  font-size: var(--subtitle-font-size);
}

.hr1 {
  margin: 1rem 6rem;
  border: 0;
  height: 0.05rem;
  background-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0),
    var(--base-color),
    rgba(0, 0, 0, 0)
  );
}

.hr2 {
  margin: 1rem 6rem;
  border: 0;
  height: 0.25rem;
  background-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0),
    var(--base-color),
    rgba(0, 0, 0, 0)
  );
}

#header.scroll {
  box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.15);
}

/*===== MOBILE MENU ================================*/

nav.mobile {
  padding: 0.5rem 0;
  height: 3rem;
  align-items: center;
  min-width: 100%;
}

nav.mobile {
  background-color: var(--background-menu-color);
}

.mobile-menu {
  background-color: var(--background-menu-color);
}

.mobile-menu,
.mobile ul li {
  padding: 0.45rem 0;
  text-align: center;
}

nav .menu {
  visibility: hidden;
}

nav div:hover {
  cursor: pointer;
}

nav.show {
  height: 10rem;
}

nav.show .menu {
  opacity: 1;
  visibility: visible;
}

nav.container {
  justify-content: space-between;
}

/*===== PC MENU ================================*/

#pcnav .menu-2 {
  display: none;
}

#pcnav .logo img {
  display: flex;
}

/*===== LOGO ======================================*/

.logo {
  display: flex;
  gap: 1rem;
}
.logo img {
  max-height: 3.75rem;
  width: auto;
  display: flex;
  margin: 1rem auto;
}

.logo span {
  font-weight: 600;
  color: var(--base-color);
  align-self: center;
  display: none;
}

/*===== FOOTER ========================================*/

footer {
  background: var(--base-color);
}

#footer {
  display: grid;
  width: auto;
  gap: 1rem;
}

footer.section {
  padding: 1rem 0;
}

footer p {
  text-align: center;
  font: 300 var(--menu-font-size) var(--font);
  color: var(--text-color-light);
}

footer i {
  font-size: 1.5rem;
  color: var(--text-color-light);
}

footer .social {
  margin: 0 auto;
  grid-auto-flow: column;
  width: fit-content;
  gap: 1rem;
}

footer .social a {
  margin-right: 2rem;
  transition: 0.3s;
  display: inline-block;
}

footer .social a:hover {
  transform: translateY(-8px);
}

.back-to-top {
  background: var(--base-color);
  color: var(--text-color-light);
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  padding: 0.5rem;
  font-size: 1.5rem;
  clip-path: circle();
  line-height: 0;
  visibility: hidden;
  opacity: 0;
  transition: 0.3s;
  transform: translateY(100%);
}

.back-to-top.show {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

/*===== MEDIA QUERIES =================================*/

/*TABLET*/

/*DESKTOP*/
@media (min-width: 720px) {
  #header {
    border-bottom: 1px solid #e4e4e4;
    margin-bottom: 2rem;
    display: flex;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    background-color: var(--body-color);
  }

  .logo img {
    margin: 0.5rem auto;
  }

  .logo span {
    display: flex;
    color: var(--base-color);
    align-self: center;
    visibility: visible;
  }

  nav.mobile {
    display: none;
  }

  /*menu pc*/
  #pcnav {
    display: flex;
    height: var(--header-height);
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  #pcnav .menu-2 {
    display: flex;
  }

  nav .menu-2 ul {
    display: flex;
    gap: 2rem;
  }

  nav .menu-2 ul li {
    text-align: center;
  }

  .submenu {
    color: var(--text-color-alt);
    font-weight: 600;
    transition: color 0.2s;
    position: relative;
  }

  .submenu:visited {
    color: var(--text-color-alt);
  }

  .submenu:hover {
    color: var(--base-color);
  }

  .active {
    color: var(--base-color) !important;
  }

  .submenu::after {
    content: '';
    width: 0%;
    height: 2px;
    background: var(--base-color);
    position: absolute;
    left: 0;
    bottom: -0.5rem;
    transition: width 0.2s;
  }

  .submenu:hover::after {
    width: 100%;
  }

  main {
    margin-top: var(--header-height);
  }

  h1 {
    padding-top: 2rem;
    font-size: 1.5rem;
    max-width: 60%;
    margin: 0 auto;
  }

  /*FOOTER*/
  .clear {
    clear: both;
    height: 60px;
  }

  footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    margin-top: 1rem;
  }

  footer .social {
    margin: 0;
  }

  #footer {
    display: flex;
    justify-content: space-between;
    width: auto;
    align-items: center;
  }

  footer p {
    text-align: left;
  }

  .back-to-top {
    bottom: 5rem;
  }
}
