/* ============================================
   밥이요 - 공용 사이트 헤더
   home.php / intro / admin 등에서 공통 사용
   ============================================ */

.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.header .logo img {
    height: 48px;
    width: auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.header .logo:hover img { transform: scale(1.05); }

/* Nav */
.header .nav {
    display: flex;
    gap: 40px;
}
.header .nav a {
    font-weight: 500;
    color: var(--text, #1e293b);
    position: relative;
    padding: 8px 0;
    transition: color 0.25s ease;
}
.header .nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2.5px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--primary, #2563eb), var(--primary-light, #60a5fa));
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.header .nav a:hover { color: var(--primary, #2563eb); }
.header .nav a:hover::after,
.header .nav a.is-active::after { width: 100%; }
.header .nav a.is-active { color: var(--primary, #2563eb); }

/* Header right (phone + kakao) */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}
.phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text, #1e293b);
    font-weight: 500;
    transition: color 0.25s ease;
}
.phone:hover { color: var(--primary, #2563eb); }

/* Mobile */
@media (max-width: 900px) {
    .header .nav { gap: 22px; }
    .header .nav a { font-size: 0.92rem; }
}
@media (max-width: 768px) {
    .header-inner { height: 60px; }
    .header .logo img { height: 36px; }
    .header .nav { display: none; }
    .header-right { gap: 12px; }
    .phone { font-size: 0.88rem; }
}
