/* Pretendard 웹폰트 로드 */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css");

/* --------------------------------------------------
   1. Design System & CSS Variables
-------------------------------------------------- */
:root {
    /* Color Palette */
    --primary: #2B5F8C;       /* 신뢰감 있는 딥블루 */
    --primary-light: #4A83B6;
    --primary-dark: #1E4364;
    --secondary: #3D8C7A;     /* 편안한 민트 그린 */
    --secondary-light: #519E8A;
    --accent: #E67E22;        /* 시선을 끄는 부드러운 오렌지 */
    --accent-light: #F39C12;
    
    /* Neutral Colors */
    --bg-light: #F8FAFC;
    --text-main: #2C3E50;
    --text-muted: #7F8C8D;
    --border-color: #E2E8F0;
    --white: #FFFFFF;
    
    /* Layout Constants */
    --container-max: 1200px;
    --header-height: 80px;
    --top-bar-height: 40px;
    --quick-bar-height: 65px;
    
    /* Fonts */
    --font-family: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
}

/* --------------------------------------------------
   2. Reset & Typography
-------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-family);
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

li {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button, input, select, textarea {
    font-family: inherit;
    color: inherit;
    border: none;
    background: none;
    outline: none;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.bg-light {
    background-color: var(--bg-light) !important;
}

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

.section {
    padding: 80px 0;
}

@media (max-width: 768px) {
    .section {
        padding: 50px 0;
    }
}

/* --------------------------------------------------
   3. Top Utility Bar
-------------------------------------------------- */
.top-bar {
    height: var(--top-bar-height);
    background-color: #1a344d;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-left span i {
    margin-right: 6px;
    color: var(--accent-light);
}

.top-right {
    display: flex;
    gap: 15px;
}

.top-right a {
    color: rgba(255, 255, 255, 0.8);
}

.top-right a:hover {
    color: var(--white);
}

.top-right .admin-btn {
    color: var(--accent-light);
    font-weight: bold;
}

@media (max-width: 1024px) {
    .top-bar {
        display: none; /* 태블릿/모바일 이하에서는 탑바 숨김 */
    }
}

/* --------------------------------------------------
   4. Header & Navigation (PC)
-------------------------------------------------- */
.header {
    height: var(--header-height);
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.header.scrolled {
    height: 70px;
    box-shadow: var(--shadow-md);
}

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

/* Logo */
.logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

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

.logo-accent {
    color: var(--primary);
}

.logo-main {
    color: var(--secondary);
}

/* PC GNB Navigation */
.gnb-pc {
    height: 100%;
}

.gnb-depth1 {
    display: flex;
    height: 100%;
    align-items: center;
}

.menu-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.menu-link {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.menu-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary);
    transition: var(--transition);
}

.menu-item:hover .menu-link {
    color: var(--primary);
}

.menu-item:hover .menu-link::after {
    width: 100%;
}

/* Dropdown Menu Depth 2 */
.gnb-depth2 {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    padding: 12px 0;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    border-top: 3px solid var(--primary);
}

.gnb-depth2 li a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
    white-space: nowrap;
    text-align: center;
}

.gnb-depth2 li a:hover {
    background-color: var(--bg-light);
    color: var(--primary);
}

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

/* Header Call Box */
.header-call-box {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.call-title {
    font-size: 11px;
    color: var(--text-muted);
}

.call-number {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.call-number i {
    color: var(--accent);
    animation: phone-wiggle 1.5s infinite;
}

@keyframes phone-wiggle {
    0%, 100% { transform: rotate(0); }
    10% { transform: rotate(-10deg); }
    20% { transform: rotate(12deg); }
    30% { transform: rotate(-10deg); }
    40% { transform: rotate(9deg); }
    50% { transform: rotate(0); }
}

/* Mobile Toggle Hamburger Button */
.btn-menu-open {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
    background: transparent;
}

.btn-menu-open span {
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition);
}

@media (max-width: 1024px) {
    .gnb-pc, .header-call-box {
        display: none;
    }
    .btn-menu-open {
        display: flex;
    }
}

/* --------------------------------------------------
   5. Mobile Drawer Menu (Slide-in)
-------------------------------------------------- */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-drawer.active {
    visibility: visible;
}

.drawer-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: var(--transition);
}

.mobile-drawer.active .drawer-overlay {
    opacity: 1;
}

.drawer-content {
    position: absolute;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background-color: var(--white);
    box-shadow: -5px 0 25px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-drawer.active .drawer-content {
    transform: translateX(-300px);
}

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

.drawer-logo {
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.drawer-logo .logo-img {
    height: 42px;
}

.drawer-logo span {
    color: var(--primary);
}

.btn-menu-close {
    font-size: 24px;
    color: var(--text-main);
    cursor: pointer;
}

/* User Info Panel inside drawer */
.drawer-user-info {
    background-color: var(--bg-light);
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.user-greeting {
    font-size: 14px;
    margin-bottom: 10px;
}

.user-links {
    display: flex;
    gap: 12px;
}

.user-links a {
    font-size: 12px;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    padding: 4px 8px;
    border-radius: 4px;
    background-color: var(--white);
}

/* Mobile Nav Link List */
.gnb-mobile {
    flex: 1;
    overflow-y: auto;
    padding: 15px 0;
}

.m-menu-item {
    border-bottom: 1px solid #f9fafb;
}

.m-menu-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
}

.m-menu-link .toggle-icon {
    font-size: 12px;
    color: var(--text-muted);
    transition: var(--transition);
}

.m-menu-item.open .m-menu-link {
    color: var(--primary);
    background-color: #f7fafc;
}

.m-menu-item.open .toggle-icon {
    transform: rotate(180deg);
}

.m-depth2 {
    display: none;
    background-color: #f8fafc;
    padding: 10px 0;
}

.m-depth2 li a {
    display: block;
    padding: 10px 30px;
    font-size: 14px;
    color: #4a5568;
    font-weight: 500;
}

.m-depth2 li a:hover {
    color: var(--primary);
}

.drawer-footer {
    padding: 20px;
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

.drawer-call-btn {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: bold;
}

.drawer-call-btn a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--white);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 8px 0;
    border-radius: 6px;
}

.drawer-call-btn.accent a {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* --------------------------------------------------
   6. Footer Section
-------------------------------------------------- */
.footer {
    background-color: #2c3e50;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-top {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 18px 0;
    background-color: #22313f;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-links .bar {
    color: rgba(255, 255, 255, 0.2);
}

.footer-main {
    padding: 50px 0 30px;
}

.footer-info-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    color: var(--white);
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 15px;
}

.footer-logo span {
    color: var(--secondary-light);
}

.company-desc {
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
}

.footer-details {
    display: flex;
    justify-content: flex-end;
}

.detail-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-list li {
    display: flex;
    gap: 10px;
}

.detail-list li span {
    font-weight: bold;
    color: rgba(255, 255, 255, 0.9);
    width: 80px;
    display: inline-block;
}

.phone-highlight {
    color: var(--accent-light) !important;
    font-weight: bold;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    text-align: center;
}

.copyright {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 1024px) {
    .footer-info-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-details {
        justify-content: flex-start;
    }
}

/* --------------------------------------------------
   7. Mobile Bottom Fixed Quick Menu
-------------------------------------------------- */
.mobile-quick-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--quick-bar-height);
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.08);
    z-index: 999;
    display: none; /* 기본적으로 PC에서는 안 보임 */
    border-top: 1px solid var(--border-color);
}

.quick-bar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 100%;
}

.quick-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: var(--transition);
}

.quick-icon {
    font-size: 18px;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.quick-label {
    font-size: 11px;
    font-weight: bold;
    color: #4a5568;
}

/* 각 아이템별 시그니처 컬러링 */
.quick-item.call {
    color: var(--white);
    background-color: var(--primary);
}
.quick-item.call .quick-icon {
    color: var(--primary);
    background-color: var(--white);
}
.quick-item.call .quick-label {
    color: var(--white);
}

.quick-item.sms {
    color: var(--secondary);
}
.quick-item.sms .quick-icon {
    background-color: rgba(61, 140, 122, 0.1);
}

.quick-item.grade {
    color: var(--accent);
}
.quick-item.grade .quick-icon {
    background-color: rgba(230, 126, 34, 0.1);
}

.quick-item.chat {
    color: #34495e;
}
.quick-item.chat .quick-icon {
    background-color: rgba(52, 73, 94, 0.1);
}

/* 터치 반응 및 액티브 피드백 */
.quick-item:active {
    background-color: #f7fafc;
}
.quick-item.call:active {
    background-color: var(--primary-dark);
}

/* 모바일 뷰 전용 미디어 쿼리 */
@media (max-width: 768px) {
    .mobile-quick-bar {
        display: block; /* 모바일에서 고정바 렌출 */
    }
    
    /* 모바일에서는 고정바가 하단을 가리지 않도록 전체 레이아웃에 하단 패딩 부여 */
    body {
        padding-bottom: var(--quick-bar-height);
    }
}

/* --------------------------------------------------
   8. Subpage Common Header Banner
-------------------------------------------------- */
.sub-header-banner {
    background: linear-gradient(135deg, rgba(43, 95, 140, 0.85) 0%, rgba(30, 67, 100, 0.85) 100%), url('../img/sub_banner.png') no-repeat center center;
    background-size: cover;
    padding: 80px 0;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.sub-header-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    transform: rotate(30deg);
}

.sub-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a:hover {
    color: var(--white);
}

.breadcrumb .separator {
    font-size: 9px;
}

.sub-page-container {
    padding: 60px 20px;
    min-height: 500px;
}

@media (max-width: 768px) {
    .sub-header-banner {
        padding: 40px 0;
    }
    .sub-title {
        font-size: 24px;
    }
    .sub-page-container {
        padding: 40px 15px;
    }
}

/* --------------------------------------------------
   9. Service Introduction Pages (System, Yoyang, Bath)
-------------------------------------------------- */
.premium-service-list {
    display: flex;
    flex-direction: column;
    gap: 35px;
    margin-top: 25px;
}

.premium-service-section {
    background: #fff;
    border-radius: 15px;
    padding: 35px 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s;
    border-left: 5px solid var(--primary);
    border-right: none;
}

.premium-service-section:nth-child(2n) {
    flex-direction: row-reverse;
    border-right: 5px solid var(--secondary);
    border-left: none;
}

.premium-service-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.premium-service-image-large {
    width: 340px;
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.premium-service-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.premium-service-section:hover .premium-service-image-large img {
    transform: scale(1.05);
}

.premium-service-content {
    flex: 1;
}

.premium-service-title {
    color: var(--text-main);
    margin-bottom: 12px;
    font-size: 22px;
    font-weight: 800;
}

.premium-service-desc {
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 15px;
    line-height: 1.6;
    text-align: justify;
}

.premium-service-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.premium-service-items li {
    background-color: #f8fafc;
    border-left: 3px solid #cbd5e1;
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 14px;
    line-height: 1.5;
}

.premium-service-items li strong {
    color: var(--primary);
    margin-bottom: 4px;
    display: block;
}

.premium-service-section:nth-child(2n) .premium-service-items li strong {
    color: var(--secondary);
}

@media (max-width: 900px) {
    .premium-service-section {
        gap: 30px;
        padding: 30px;
    }
    .premium-service-image-large {
        width: 280px;
        height: 220px;
    }
}

@media (max-width: 768px) {
    .premium-service-section,
    .premium-service-section:nth-child(2n) {
        flex-direction: column !important;
        align-items: stretch;
        gap: 20px;
        padding: 25px;
    }
    .premium-service-image-large {
        width: 100% !important;
        height: 220px;
    }
    .premium-service-items {
        grid-template-columns: 1fr !important;
    }
}

