@charset "utf-8";

/* ========================================================
   ONCAP24 Header CSS (Hosting.kr Style)
======================================================== */

.site-header {
    width: 100%;
    position: relative;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid var(--border-color);
}

.site-header.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* 1. Utility Menu */
.header-util {
    background: var(--bg-light);
    height: 36px;
    border-bottom: 1px solid var(--border-color);
}

.header-util .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
    gap: 16px;
}

.header-util a {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.header-util a:hover {
    color: var(--text-dark);
}

/* 2. Header Main */
.header-main {
    height: 72px;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.header-logo {
    display: flex;
    align-items: center;
}

.header-logo img {
    height: 32px;
    width: auto;
}

/* Search Bar */
.header-search {
    flex: 1;
    max-width: 400px;
    margin: 0 40px;
    position: relative;
}

.header-search input {
    width: 100%;
    height: 44px;
    border: 2px solid var(--primary-color);
    border-radius: 22px;
    padding: 0 20px;
    font-size: 15px;
    transition: box-shadow 0.2s;
}

.header-search input:focus {
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.header-search button {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 18px;
}

/* Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-actions .contact-info {
    text-align: right;
    margin-right: 12px;
}

.header-actions .contact-info span {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
}

.header-actions .contact-info strong {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-color);
}

/* 3. Main Navigation */
.header-nav {
    border-top: 1px solid var(--border-color);
    height: 52px;
}

.header-nav .container {
    height: 100%;
}

.nav-list {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    gap: 40px;
}

.nav-item {
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

.nav-item > a {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

.nav-item > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: width 0.2s;
}

.nav-item:hover > a::after {
    width: 100%;
}

.nav-item:hover > a {
    color: var(--primary-color);
}

/* Dropdown */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #fff;
    min-width: 180px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    padding: 12px 0;
    border: 1px solid var(--border-color);
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 8px 20px;
    font-size: 14px;
    color: var(--text-base);
    font-weight: 500;
}

.dropdown-menu a:hover {
    color: var(--primary-color);
    background: var(--bg-light);
}

/* Hamburger Mobile */
.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    width: 24px;
    height: 24px;
    flex-direction: column;
    justify-content: space-around;
    padding: 0;
    cursor: pointer;
}

.mobile-toggle span {
    width: 100%;
    height: 2px;
    background: var(--text-dark);
    transition: all 0.3s;
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: #fff;
    z-index: 10000;
    box-shadow: -5px 0 25px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mobile-drawer.is-active {
    right: 0;
}

.drawer-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.drawer-close {
    font-size: 24px;
    color: var(--text-dark);
}

.drawer-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.drawer-nav a {
    display: block;
    padding: 16px 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    border-bottom: 1px solid var(--bg-light);
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.drawer-overlay.is-active {
    opacity: 1;
    visibility: visible;
}
