@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --daquv-blue: #4e7be9;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-400: #9ca3af;
    --gray-600: #4b5563;
    --gray-800: #1f2937;
    --white: #ffffff;
    --black: #000000;
    --transition-duration: 300ms;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    word-break: keep-all;
    line-break: strict;
}

body {
    padding-top: 64px;
    font-family: 'Pretendard', 'Inter', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 100vw;
    overflow-x: hidden;
}

/* Global Reset for Lists to match Tailwind */
ul,
li {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Header Container */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100vw;
    height: 64px;
    z-index: 50;
    transition: background-color var(--transition-duration);
}

.header.transparent {
    background-color: transparent;
}

.header.scrolled {
    background-color: oklch(0.985 0.002 247.839);
    backdrop-filter: blur(10px);
}

/* Nav Container */
.nav-container {
    display: flex;
    max-width: 1152px;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 16px;
    transition: color var(--transition-duration);
}


/* Logo */
.logo-container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-container a {
    display: flex;
    align-items: center;
    text-decoration: none;
    line-height: 0;
}

.logo-image {
    cursor: pointer;
    width: auto;
    height: 24px;
    transition: filter var(--transition-duration);
    filter: invert(1) drop-shadow(0 0 1px rgba(0, 0, 0, 0.1));
    display: block;
}

/* Desktop Menu Wrapper */
.desktop-wrapper {
    display: none;
}

@media (min-width: 768px) {
    .desktop-wrapper {
        display: flex;
        align-items: center;
        /* gap: 40px; */
        gap: 28px;
    }
}

/* Desktop Menu List */
.desktop-menu {
    display: flex;
    align-items: center;
    gap: 40px;
    font-size: 1.25rem;
    font-weight: 600;
    list-style: none;
    margin: 0;
    padding: 0;
}

.desktop-menu a {
    text-decoration: none;
    color: #000;
    transition: opacity var(--transition-duration);
    line-height: 1;
}

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

/* ConsultForm Button */
.consult-link {
  color: #4c7eeb !important;
  border: 1px solid #4c7eeb;
  border-radius: 20px;
  padding: 5px 10px;
  font-size: 1rem;
  display: inline-flex;
}

.consult-link:hover{
  opacity: 1 !important;
  box-shadow: 
  0 0 6px rgba(95, 115, 228, 0.6),
  0 0 12px rgba(95, 115, 228, 0.4),
  0 0 20px rgba(164, 180, 244, 0.2),
  inset 0 0 6px rgba(95, 115, 228, 0.4),
  inset 0 0 12px rgba(164, 180, 244, 0.2);
}

@media (max-width: 768px) {
    .consult-link, .home-topnav.scrolled .home-topnav-link.home-mobile-link.consult-link {
    color: var(--gray-800) !important;           
    border: none; /* 파란 테두리 */
    box-shadow: none;
  }
}

/* Language Dropdown Container */
.lang-dropdown {
    position: relative;
}

/* Language Button (Trigger) */
.lang-btn {
    position: relative;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 300ms;
    font-size: 1rem;
    line-height: 1.5rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: #000;
}

.lang-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Dropdown Menu */
.lang-dropdown-menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 8px;
    width: 64px;
    background-color: var(--white);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    z-index: 100;
    display: none;
    flex-direction: column;
    padding: 0;
}

.lang-dropdown-menu.show {
    display: flex;
}

.lang-dropdown-item {
    width: 100%;
    text-align: center;
    padding: 6px 4px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: color var(--transition-duration);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.lang-dropdown-item.active {
    color: var(--black);
}

.lang-dropdown-item.inactive {
    color: var(--gray-400);
}

.lang-dropdown-item.inactive:hover {
    color: var(--black);
}


/* Mobile Hamburger Button */
.hamburger-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 50;
    position: relative;
    padding: 0;
}

@media (min-width: 768px) {
    .hamburger-btn {
        display: none;
    }
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #000;
    transition: all var(--transition-duration);
}

.hamburger-btn.open .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-btn.open .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.open .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* Mobile Sidebar */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 320px;
    background-color: var(--white);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateX(100%);
    transition: transform var(--transition-duration) ease-in-out;
    z-index: 40;
}

@media (min-width: 768px) {
    .mobile-sidebar {
        display: none;
    }
}

.mobile-sidebar.open {
    transform: translateX(0);
}

.mobile-menu-container {
    display: flex;
    flex-direction: column;
    padding-top: 80px;
    padding-left: 24px;
    padding-right: 24px;
}

.mobile-menu-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-link {
    display: block;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-800);
    padding: 12px 8px;
    text-decoration: none;
    transition: color var(--transition-duration);
}

.mobile-menu-link:hover {
    color: var(--daquv-blue);
}

/* Mobile Language Section */
.mobile-lang-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
}

.mobile-lang-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 12px;
    padding: 0 8px;
}

.mobile-lang-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-lang-btn {
    width: 100%;
    text-align: center;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    transition: color 300ms, background-color 300ms;
    border: none;
    cursor: pointer;
}

.mobile-lang-btn.active {
    background-color: var(--gray-100);
    color: var(--black);
}

.mobile-lang-btn.inactive {
    background-color: var(--white);
    color: var(--gray-400);
}

.mobile-lang-btn.inactive:hover {
    color: var(--black);
}