/* General styles */
@font-face {
  font-family: Helvetica;
  font-weight: 300;
  src: url('../assets/fonts/Helvetica-Light.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: Helvetica;
  font-weight: 400;
  src: url('../assets/fonts/Helvetica.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: Helvetica;
  font-weight: 700;
  src: url('../assets/fonts/Helvetica-Bold.ttf') format('truetype');
  font-display: swap;
}

@keyframes scrolldown-animation {
  0% {
    transform: translate(0, 0);
    opacity: 0;
  }

  40% {
    opacity: 1;
  }

  80% {
    transform: translate(0, 20px);
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

:root {
  --uttc-black: #1e1e1e;
  --uttc-white: #fff;
  --uttc-gold: #ded3b0;
  --uttc-gray: #616161;
}

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  height: -webkit-fill-available;
  scroll-behavior: smooth;
  overscroll-behavior: none;
}

body {
  font-family: Helvetica, "Noto Sans TC", sans-serif;
  font-optical-sizing: auto;
  font-size: 16px;
  font-weight: 400;
  color: var(--uttc-black);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

main section .container,
footer .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 16px;
  position: relative;
  width: calc(100% - 32px);
  height: 100%;
  max-width: 1288px;
  margin: 0 auto;
}

/* header styles */
header {
  position: fixed;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 75px;
  z-index: 999;
  background-color: var(--uttc-white);
  box-shadow: 0 1px 0 0 rgba(0, 0, 0, .1);
  opacity: .95;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  max-width: 1440px;
  width: calc(100% - 32px);
}

header .logo {
  display: flex;
  font-size: 20px;
  color: var(--uttc-gold);
  text-decoration: none;
}

header .logo img {
  height: 50px;
}

header .header__links {
  display: flex;
  align-items: center;
  gap: 40px;
  justify-content: space-between;
}

header .header__links a {
  font-weight: 700;
  color: var(--uttc-black);
  text-decoration: none;
}

header .header__sublinks {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

header .header__sublinks .icon {
  position: relative;
  left: 12px;
  top: 1px;
  width: 18px;
}

header .header__sublinks a {
  position: relative;
  font-family: "Noto Sans TC", sans-serif;
  font-weight: 700;
  color: var(--uttc-black);
  text-decoration: none;
}

header .header__sublinks a:last-child::before {
  position: absolute;
  left: -12.5px;
  top: 12.5px;
  transform: translateY(-50%);
  width: 1px;
  height: 15px;
  background-color: rgba(0, 0, 0, .2);
  content: '';
}

header .header__links a,
header .header__sublinks a {
  transition: all .2s;
}

header .header__links a:hover,
header .header__sublinks a:hover {
  color: var(--uttc-gold);
}

header .header__toggle {
  position: relative;
  display: none;
  width: 28px;
  height: 28px;
  cursor: pointer;
}

header .header__toggle .hamburger {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 18px;
  transform: translate(-50%, -50%);
}

header .header__toggle .hamburger>div {
  width: 28px;
  height: 2px;
  background-color: var(--uttc-black);
  margin: 6px 0;
  transition: 0.7s;
}

header .header__toggle .hamburger>div:nth-child(1) {
  margin-top: 0;
}

header .header__toggle .hamburger>div:nth-child(2) {
  transition: 0.35s;
}

header .header__toggle .hamburger>div:nth-child(3) {
  margin-bottom: 0;
}

header .header__toggle .hamburger.active>div:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

header .header__toggle .hamburger.active>div:nth-child(2) {
  opacity: 0;
}

header .header__toggle .hamburger.active>div:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* .header-menu styles */
.header-menu {
  display: none;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, -100%, 0);
  width: 100%;
  height: 100%;
  background-color: var(--uttc-white);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  transition: opacity 700ms step-end, transform 700ms cubic-bezier(0.8, 0, 0.55, 0.94), visibility 700ms step-end, background-color 700ms cubic-bezier(0.8, 0, 0.55, 0.94);
}

.header-menu__navs {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12vh;
  padding: 0 29px;
  height: 100vh;
}

.header-menu .header-menu__nav {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 9vh;
}

.header-menu .header-menu__nav a {
  font-size: 16px;
  font-weight: 700;
  color: var(--uttc-black);
  text-decoration: none;
}

.header-menu .header-menu__nav a:hover,
.header-menu .header-menu__subnav a:hover {
  color: var(--uttc-gold);
}

.header-menu .header-menu__subnav {
  display: flex;
  justify-content: space-between;
  max-width: 100%;
  align-self: center;
  gap: 24px;
}

.header-menu .header-menu__subnav a {
  position: relative;
  font-family: "Noto Sans TC", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--uttc-black);
  text-decoration: none;
}

.header-menu .header-menu__subnav a:last-child::before {
  position: absolute;
  left: -12.5px;
  top: 15px;
  transform: translateY(-50%);
  width: 1px;
  height: 15px;
  background-color: rgba(0, 0, 0, .2);
  content: '';
}

.header-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0);
  transition: opacity 700ms step-start, transform 700ms cubic-bezier(0.8, 0, 0.55, 0.94), visibility 700ms step-start, background-color 700ms cubic-bezier(0.8, 0, 0.55, 0.94);
  transition-delay: 0s;
}

footer {
  background-color: var(--uttc-white);
  padding: 40px 0;
  font-size: 12px;
}

footer a {
  color: var(--uttc-black);
  text-decoration: none;
}

footer .footer__top {
  padding-bottom: 30px;
  margin-bottom: 30px;
  box-shadow: inset 0 -.6px 0 0 rgba(0, 0, 0, .2);
}

footer .footer__address {
  line-height: 1.5;
}

footer .footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 30px;
}

footer .footer__links {
  display: flex;
  gap: 8px 24px;
  flex-wrap: wrap;
}

footer .footer__links a {
  position: relative;
  transition: all .2s;
}

footer .footer__links a:hover {
  color: var(--uttc-gold);
}

footer .footer__links a:not(:last-child)::after {
  position: absolute;
  right: -12.5px;
  top: calc(50% + 0.5px);
  transform: translateY(-50%);
  height: 12px;
  width: 1px;
  background-color: rgba(0, 0, 0, .2);
  content: '';
}

@media (max-width: 991.98px) {

  /* General styles */
  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
  }

  /* header styles */
  header {
    height: 60px;
  }

  header .logo img {
    height: 40px;
  }

  header .header__links,
  header .header__sublinks {
    display: none;
  }

  header .header__toggle {
    display: block;
  }

  /* .header-menu styles */
  .header-menu {
    display: block;
  }
}