/* 브랜드 컬러 변수화 */
:root {
  --color-primary: #00A9DF;
  --color-secondary: #029ccf;
  --color-accent: #ED1B24;
  --color-highlight: #FEC00D;
  --color-dark: #222;
  --color-gray: #555;
}

.poppins {
  font-family: 'Poppins', sans-serif !important;
}

.jalnan {
  font-family: 'jalnangothic', sans-serif;
}

.mw1400 {
  margin: 0 auto;
  max-width: 1400px;
}

.flex {
  display: flex;
  justify-content: center;
  align-items: center;
}

.mobile-br {
  display: none;
}


/* 스크롤 시 떠오르기 */
.on-screen {
  opacity: 0;
  transform: translateY(70px);
  transition: transform 1s, opacity 1s;
}

/* Header */
.header {
  background: #fff;
  padding: 10px 50px;
  position: fixed;
  width: 100%;
  height: 100px;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.nav-container {
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 24px;
  font-weight: bold;
  color: white;
}

.logo img {
  margin-top: 10px;
  height: 65px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 50px;
}

.nav-menu a {
  color: #232323;
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
  transition: opacity 0.3s;
}

.nav-menu a:hover {
  opacity: 0.8;
}

.nav-menu-wrap {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 50px;
  display: flex;
  gap: 40px;
  justify-content: center;
  align-items: center;
}

/* 서브메뉴 초기 상태 */
.nav-menu li {
  position: relative;
}

.nav-menu .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  padding: 10px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 999;
  min-width: 180px;
  border-radius: 6px;
}

.nav-menu .submenu li a {
  color: #333;
  padding: 10px 20px;
  display: block;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 500;
}

.nav-menu .submenu li a:hover {
  background: var(--color-primary);
  color: white;
}

/* 호버 시 서브메뉴 표시 */
.nav-menu li:hover>.submenu {
  display: block;
}

.mobile-nav {
  display: none;
}


.phone-number {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
}

/* Footer */
.footer {
  background: #333;
  color: white;
  padding: 40px 0;
}

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

.footer-links {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-info h3 {
  margin-bottom: 20px;
  color: var(--color-primary);
}

.footer-info p {
  font-weight: 200;
  margin-bottom: 10px;
}

.contact-info {
  text-align: center;
}

.contact-info h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.contact-info .phone {
  font-size: 24px;
  font-weight: bold;
  color: var(--color-primary);
}

/* 햄버거 버튼 */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1100;
}

.hamburger span {
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
  width: 100%;
}


/* Floating Action Buttons */

.floating-buttons {
  position: fixed;
  bottom: 350px;
  right: 50px;
  z-index: 1000;
}

.floating-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  text-align: center;
  margin-bottom: 10px;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s;
  line-height: 100%;
}

.floating-btn img {
  display: block;
  width: 40px;
  height: 40px;
}

.floating-inquiry {
  display: none;
}

@media screen and (max-width: 1024px) {
  .header {
    height: 70px;
    padding: 0px;
  }

  .logo img {
    height: 50px;
    margin-top: 0;
  }

  .nav-container {
    height: 70px;
  }

  .nav-menu-wrap {
    display: none;
  }

  .mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100dvh;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    transition: right 0.3s ease;
    display: flex;
    z-index: 999;
    color: var(--color-primary);
    box-shadow: -6px 6px 8px 0px rgba(0, 0, 0, 0.3);
  }

  .mobile-nav.active {
    right: 0;
  }

  .mobile-menu {
    width: 100%;
    display: flex;
    margin-top: 70px;
    flex-direction: column;
    border-top: 1px solid #c6effd;
  }

  .mobile-menu>li {
    width: 100%;
  }

  .mobile-menu>li>a {
    color: #232323;
    padding: 20px 20px;
    display: block;
    width: 100%;
    font-family: 'jalnangothic', sans-serif;
    font-size: 20px;
    border-bottom: 1px solid #c6effd;
  }

  .mobile-menu .submenu {
    position: static;
    display: none;
    background: #fff;
    font-size: 18px;
    padding: 0 20px;
    color: #232323;
  }

  .mobile-menu .submenu li {
    padding: 10px 0;
  }

  /* .mobile-menu li.active .submenu {
    display: block;
  } */

  .phone-number {
    margin-top: 20px;
    width: 100%;
  }

  .hamburger {
    display: flex;
  }

  #hamburger.is-active .line:nth-child(2) {
    opacity: 0;
  }

  #hamburger.is-active .line:nth-child(1) {
    -webkit-transform: translateY(4px) rotate(45deg);
    -ms-transform: translateY(4px) rotate(45deg);
    -o-transform: translateY(4px) rotate(45deg);
    transform: translateY(4px) rotate(45deg);
  }

  #hamburger.is-active .line:nth-child(3) {
    -webkit-transform: translateY(-13px) rotate(-45deg);
    -ms-transform: translateY(-13px) rotate(-45deg);
    -o-transform: translateY(-13px) rotate(-45deg);
    transform: translateY(-13px) rotate(-45deg);
  }

  .footer-content {
    flex-direction: column-reverse;
  }

  .footer-links {
    gap: 15px;
  }

  /* floating buttons */

  .floating-buttons {
    bottom: 100px;
    right: 30px;
  }

  .floating-btn img {
    display: block;
    width: 25px;
    height: 25px;
  }

  .floating-btn {
    width: 80px;
    height: 80px;
    font-size: 12px;
  }

  .footer-content {
    width: 90%;
  }

  .footer-links a {
    font-size: 14px;
  }

  .footer-info p {
    font-size: 12px;
  }

}

@media screen and (max-width:480px) {

  .mobile-br {
    display: inline;
  }

  .mobile-hidden {
    display: none;
  }

  .floating-buttons {
    right: 10px;
  }

  .floating-btn {
    width: 40px;
    height: 40px;
  }

  .floating-btn span {
    display: none;
  }

  .floating-inquiry {
    box-shadow: -3px -3px 5px #00000035;
    display: block;
    position: fixed;
    bottom: 0;
    background: var(--color-secondary);
    width: 100%;
    font-size: 14px;
    text-align: center;
    padding: 10px;
    color: #fff;
    font-family: 'JalnanGothic';
    text-shadow: 2px 2px 5px #00000045;
  }

  .footer {
    padding-bottom: 100px;
  }
}